Skip to content

Commit c04dbef

Browse files
authored
Update facerec_on_raspberry_pi.py
Should capture in rgb (not bgr) format.
1 parent aff06e9 commit c04dbef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/facerec_on_raspberry_pi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
while True:
3030
print("Capturing image.")
3131
# Grab a single frame of video from the RPi camera as a numpy array
32-
camera.capture(output, format="bgr")
32+
camera.capture(output, format="rgb")
3333

3434
# Find all the faces and face encodings in the current frame of video
3535
face_locations = face_recognition.face_locations(output)

0 commit comments

Comments
 (0)