def smart_camera(): COUNT = 15 face_finder = FaceFinder() for _ in range(COUNT): face_finder.show() face_finder.shutdown() responder.default()
def smart_move(key): relayer.command(key) face_finder = FaceFinder() for _ in range(0, COUNTS): if face_finder.face_detected(): relayer.command("move arms") face_finder.show(update = False)
from face_finder import FaceFinder import os FACE = "sudo fbi -T 1 -d /dev/fb0 -a -noverbose /home/pi/hellobot/images/default-eye.jpg" face_finder = FaceFinder() for _ in range(100): face_finder.show() face_finder.shutdown() os.system(FACE)
def smart_camera(): COUNT = 50 face_finder = FaceFinder() for _ in range(COUNT): face_finder.show() face_finder.shutdown()