In my python application I'm using OpenCV, among other things, to stream a Video from an IP camera:
cap = cv2.VideoCapture("http://usr:psw@192.168.1.1/video.cgi")
and everithing works fine.
But i needed to obtain an executable, and so I used PyInstaller
. In the resulting .exe
the stream doesn't work anymore.
Instead if I change the capture with this:
# works with camera_num = 0 (pc's webcam) and = 1 (external USB webcam)
cap = cv2.VideoCapture(camera_num)
capturing from webcam of my pc, or with and external USB webcam, everything works.
Any suggestions?