Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 4 Next »

Do face recognition on a nao’s camera stream

WARNING: this pseudeocode for the next version, use only as a reference of how to set up a structure to the image above

 Setters
image = None
def set_image_variable(img):
  image = img

bbox = None
def set_bbox_variable(box):
  bbox = box

# code continues in code box below

nao = Nao(ip="192.168.0.1")
face_recognition = FaceRecognition(ip='localhost')

nao.top_camera.register_callback(set_image_variable)

face_recognition.connect(nao.top_camera)
face_recognition.register_callback(set_bbox_variable)

while True:
  image.draw(bbox)
  display(image)

  • No labels