add detect camera
This commit is contained in:
parent
2f7ade23e3
commit
07be19be7c
11
detect_camera.py
Normal file
11
detect_camera.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
import cv2
|
||||||
|
|
||||||
|
print("🔍 Recherche des caméras disponibles...")
|
||||||
|
|
||||||
|
for i in range(10): # teste 0 à 9
|
||||||
|
cap = cv2.VideoCapture(i)
|
||||||
|
if cap.isOpened():
|
||||||
|
print(f"🎥 Camera found at index: {i}")
|
||||||
|
cap.release()
|
||||||
|
|
||||||
|
print("✅ Fini.")
|
||||||
Loading…
x
Reference in New Issue
Block a user