Closed ra100 closed 8 years ago
On my computer 'pip install cv2' didn't really do anything, so I had to do 'sudo apt-get install python-opencv' before I could import the cv2 module. I'll probably make it optional though and only implement the builtin webcam server if the user has the cv2 module installed since there's no reliable way to enforce having it installed and not everyone plans on using their webcam.
M3D Fio's opencv usage is pretty cool though. I was testing out OctoPrint's webcam support yesterday on Linux and Windows, and getting mjpg-streamer compiled wasn't easy since it's pretty old, and getting Yawcam installed required installing java too. So now M3D Fio can host the webcam on its own and automatically configure OctoPrint's settings to use the paths that it host for streaming and snapshots, so it's very easy to get OctoPrint's webcam supporting working now :)
Ok, so the cv2 requirement is optional now. It'll just show/hide the camera settings depending on if it's installed or not.
Nice feature and thanks for making it optional, I don't have webcam and don't need opencv on RPi for now.
I tried to install cv2 module (pip instal cv2), but that didn't help.