Error cv :: VideoWriter :: open VIDEOIO (CV_IMAGES): raised OpenCV exception: when executing a .exe packaged from a .py

asked 2020-02-06 17:03:31 -0500

gersonmlb gravatar image

updated 2020-02-06 19:19:04 -0500

I have this error when executing the exe, but running only the .py from the same console works for me all normal, I am packing the .py from windows with x64 architecture, with the pyinstaller packager. [ERROR:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap.cpp (392) cv::VideoWriter::open VIDEOIO(CV_IMAGES): raised OpenCV exception:

OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\videoio\src\cap_images.cpp:253: error:(-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file):http://192.168.1.70/video in function 'cv::icvExtractPattern

edit retag flag offensive close merge delete

Comments

1

pyinstaller

DON'T try, ever, its totally bs

(in this case, it lost the ffmpeg related dll, so you cant write video)

berak gravatar imageberak ( 2020-02-06 17:10:53 -0500 )edit

But can you help me please, I have not found a solution for this error for days

gersonmlb gravatar imagegersonmlb ( 2020-02-06 19:19:50 -0500 )edit
1

don't try with pyinstaller, it worked for noone before.

berak gravatar imageberak ( 2020-02-07 01:19:20 -0500 )edit

and, Which packer do you recommend so that I don't get any more mistakes?

gersonmlb gravatar imagegersonmlb ( 2020-02-07 08:48:52 -0500 )edit