PyImageSearch / imutils

A series of convenience functions to make basic image processing operations such as translation, rotation, resizing, skeletonization, and displaying Matplotlib images easier with OpenCV and Python.
MIT License
4.54k stars 1.03k forks source link

Fatal error while running the exe created by pyinstaller #126

Open Samjith888 opened 5 years ago

Samjith888 commented 5 years ago

I'm working on tensorflow object detection, its working fine while running the py file by using the pycharm IDE. Now i have created exe for the same by using pyinstaller following command

pyinstaller.exe --onefile --windowed --icon=app.ico app.py

When i run the exe, then i can see 'Fatal error' , then i referred some tutorial and i build the exe by uisng following command (without '--windowed') pyinstaller.exe --onefile --icon=app.ico app.py

Then i run the exe in cmd and i found the following error in the command promt [ WARN:0] terminating async callback Traceback (most recent call last): File "tensor_webcam.py", line 19, in <module> from object_detection.utils import ops as utils_ops ModuleNotFoundError: No module named 'object_detection' [4548] Failed to execute script tensor_webcam

I have already copied the the 'object_detection' folder in the exe directory, but still facing the same issue.

HassanBT commented 5 years ago

Anyone able to solve this issue