OpenCV with standalone python executable (py2exe/pyinstaller) -


i have python program uses opencv frames video file processing. create standalone executable using py2exe (also tried pyinstaller , got same error). computer , target computer both windows 7, target computer not have python installed. use opencv read frame rate , individual images video file.

problem: when run executable on target computer frame rate returned 0.0 , cannot read frames.

if python installed on target machine executable runs expected, otherwise produces error. seems missing in executable, no errors when creating executable indicate might missing.

others have reported similar issues have not included numpy dependency (and error indicating this), have included numpy. have tried including entire pyqt4 module since listed dependency on python xy site opencv (i have parts of pyqt4 other parts of code) , not solve problem either.

i guess go ahead , post answer this, solution provided @otterb in comments question. pasting text here:

"py2exe not perfect miss libraries or dll, pyd etc needed. missing opencv_highgui249.dl‌​l , opencv_ffmpeg249.dll etc. use py2exe no single executable option enabled. and, start manually copying files might needed app. after identifying them, modify setup.py py2exe include them automatically."

i note use pyinstaller rather py2exe, since fewer problems while building. still have manually copy opencv dll files though.on windows 7 located here: "c:\python27\dlls" , need copied distribution folder on same path other dll files go distribution.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -