You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's definitely my fault, but would be nice to prevent code from doing panic.
Here's the case:
OpenCV(3.4.1) Error: Assertion failed (result || fps != 0) in cvCreateVideoWriterWithPreference, file /tmp/opencv/opencv-3.4.1/modules/videoio/src/cap.cpp, line 389
terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(3.4.1) /tmp/opencv/opencv-3.4.1/modules/videoio/src/cap.cpp:389: error: (-215) result || fps != 0 in function cvCreateVideoWriterWithPreference
Assume you have service A and service B. Service A sends a payload that containers a list of images (1 video second, i.e. 25 to 60 FPS). With a dummy payload check, service tries to define a new FPS fro video segment and somehow defines FPS as 0.
So, when calling the following code:
It's definitely my fault, but would be nice to prevent code from doing panic.
Here's the case:
Assume you have service A and service B. Service A sends a payload that containers a list of images (1 video second, i.e. 25 to 60 FPS). With a dummy payload check, service tries to define a new FPS fro video segment and somehow defines FPS as
0
.So, when calling the following code:
where
float64(len(framesReceived))
is zero, code panis with hello of the output, which is quite not nice i suppose.So, as a developer, I'd like to get the error if any of numerical parameters (FPS, width, height) is empty instead of panic.
The text was updated successfully, but these errors were encountered: