I would like to access my web camera on my python program using cv2 library.
I can see and use my camera in any mac program (photobooh, facetime,..) as well as skype,...
But if I try to access it in python I can't:
cap = cv
cv2.VideoCapture(1)
success,image = cap.read()
print(success)
>> False
I also try to get list of all devices (cameras) like this:
for i in range(1600):
cap = cv2.VideoCapture(i)
success,image = cap.read()
if success:
print(i)
cap.release()
>> 0
>> 1200
Both are default mac cameras,...