cv2.VideoCapture(0).isOpened() return always false
Some information on my configuration :
windows 10
python 3.7.3
openCV 4.1.0 (get with the command : cv2.__version__)
My problem is that the following code return me False all time, so i think that the program can't find my integrated camera( i have a laptop). But i don't know, so the problem may come from everywhere...
import cv2
cap = cv2.VideoCapture(0)
print( cap.isOpened() )
I think that i have a good installation of opencv and python because i can open a video with the following code :
cv2.VideoCapture('video.avi')
So i don't know how to solve my problem, thanks for help and sorry for my english.
can you try again in english, please ?
that's done, thanks to take time for me
have you tried another cap position? Try
VideoCapture(1)orVideoCapture(2). If you've never used the camera before you might have to manually turn the camera on with Fn+F6 and then turn it off then run your script. Check your camera privacy settingscap = cv2.VideoCapture(2) then it work for me, thanks