sudheerachary / Mesh-Flow-Video-Stabilization

Online video stabilization using a novel MeshFlow motion model
300 stars 62 forks source link

Error reading the video #7

Open JenniferVandoni opened 5 years ago

JenniferVandoni commented 5 years ago

Hello, when I run: python Stabilization.py ../data/shaky-5.avi or python Stabilization.py ../data/small-shaky-5.avi I get the following error:

OpenCV Error: Assertion failed (scn == 3 || scn == 4) in ipp_cvtColor, file /home/travis/miniconda/conda-bld/conda_1486587069159/work/opencv-3.1.0/modules/imgproc/src/color.cpp, line 7456 Traceback (most recent call last): File "Stabilization.py", line 252, in x_motion_meshes, y_motion_meshes, x_paths, y_paths = read_video(cap) File "Stabilization.py", line 21, in timed result = method(*args, **kwargs) File "Stabilization.py", line 52, in read_video old_gray = cv2.cvtColor(old_frame, cv2.COLOR_BGR2GRAY) cv2.error: /home/travis/miniconda/conda-bld/conda_1486587069159/work/opencv-3.1.0/modules/imgproc/src/color.cpp:7456: error: (-215) scn == 3 || scn == 4 in function ipp_cvtColor

How can I solve this? Should I use another version of opencv? Thank you!

HITxyer commented 4 years ago

+1

sohee-zoe commented 3 years ago

same issue

LS11111 commented 2 years ago

same issue

yuebaoW commented 2 years ago

+1

Aaaangel commented 7 months ago

same issue.... how to solve this problem?