I am using opencv and Python3 to read webcam.
The webcam light keeps on even though I released the webcam.
I am doing:
webcam = cv2.VideoCapture(0)
webcam.release()
After the release command, if I try to read the cam I get: (False, None)
but the webcam itself is still <VideoCapture 0EE62DC0>
. I don't know if this is the issue, but the light keeps on until I kill all python script or python terminal.
I am on a Windows 10, python 3.5, opencv 4.0.1. Am I doing something wrong?
Whenever your webcam light is on, it indicates that it's in use. If you're not using the webcam, but the light is on, it can show that another app is using it. You should identify that app and cut its access to the webcam.
You can press the Esc key to exit.
I had exactly the same problem. Was using python3.6 and opencv 3.4.2 (also on Windows10), reinstalled opencv-python version to 3.4.0.14. That worked for me.
Seems that there is a problem with opencv 3.4.2.
That specific version you can install by running the command:
pip install opencv-python==3.4.0.14
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With