Jak liczyć, ile masz kamer z Pythonem
import cv2
def camera_amount():
'''Returns int value of available camera devices connected to the host device'''
camera = 0
while True:
if (cv2.VideoCapture(camera).grab()) is True:
camera = camera + 1
else:
cv2.destroyAllWindows()
return(int(camera))
Condemned Camel