コード例 #1
0
def smart_camera():
  COUNT = 15
  face_finder = FaceFinder()
  for _ in range(COUNT):
    face_finder.show()
  face_finder.shutdown()
  responder.default()
コード例 #2
0
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)
コード例 #3
0
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)
コード例 #4
0
def smart_camera():
    COUNT = 50
    face_finder = FaceFinder()
    for _ in range(COUNT):
        face_finder.show()
    face_finder.shutdown()