提交 c04dbef5 编写于 作者: A Adam Geitgey 提交者: GitHub

Update facerec_on_raspberry_pi.py

Should capture in rgb (not bgr) format.
上级 aff06e96
......@@ -29,7 +29,7 @@ face_encodings = []
while True:
print("Capturing image.")
# Grab a single frame of video from the RPi camera as a numpy array
camera.capture(output, format="bgr")
camera.capture(output, format="rgb")
# Find all the faces and face encodings in the current frame of video
face_locations = face_recognition.face_locations(output)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册