Python script runtime error: frame_resize = cv2.resize(frame, None, fx=1 / DOWNSAMPLE_RATIO, fy=1 / DOWNSAMPLE_RATIO)
niyaoyao opened this issue · comments
NY commented
When I run "generate_train_data.py", it would failed with error:
OpenCV Error: Assertion failed (ssize.area() > 0) in resize, file /Users/jenkins/miniconda/1/x64/conda-bld/conda_1486587097465/work/opencv-3.1.0/modules/imgproc/src/imgwarp.cpp, line 3229
Traceback (most recent call last):
File "generate_train_data.py", line 98, in <module>
main()
File "generate_train_data.py", line 27, in main
frame_resize = cv2.resize(frame, None, fx=1 / DOWNSAMPLE_RATIO, fy=1 / DOWNSAMPLE_RATIO)
cv2.error: /Users/jenkins/miniconda/1/x64/conda-bld/conda_1486587097465/work/opencv-3.1.0/modules/imgproc/src/imgwarp.cpp:3229: error: (-215) ssize.area() > 0 in function resize
NY commented
It seems that the error only occurred when I use my video file recorded by myself, the https://dl.dropboxusercontent.com/s/2g04onlkmkq9c69/angela_merkel_speech.mp4 would not cause it.
Eun (e-un) commented
Is there anyone who solve this issue? I had this problem when I import the video I made.
Kyle Mathewson commented
same problem here, trying to use live webcam