Chargement...
Video bientot disponible
## OpenCV sur Raspberry Pi Traitement d images et vision par ordinateur. ## Installation pip3 install opencv-python ## Detection de visages import cv2 face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + "haarcascade_frontalface_default.xml") cap = cv2.VideoCapture(0) ret, frame = cap.read() gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) faces = face_cascade.detectMultiScale(gray, 1.1, 4) ## Applications Serrure intelligente, pointage automatique.