Esempio n. 1
0
#Test code for saying faces that robbie sees
#Mitch Deplazes
#2/16/16

from naoqi import ALProxy
import FacialRecognitionModule
import time

#IP of the Robot
IP = "10.0.0.7"
#Port Number of the Robot
PORT = 9559

while(True):
    foundFace = False
    faceData = FacialRecognitionModule.getFaceData(IP, PORT)

    while(not foundFace):
        #Get data until face is found
        while (faceData is None or len(faceData) == 0):
            print ("looking for face")
            faceData = FacialRecognitionModule.getFaceData(IP, PORT)

        if(FacialRecognitionModule.getFaceConfidince(faceData) > 0.4):
            foundFace = True
        else:
            print ("conf found")
            faceData = FacialRecognitionModule.getFaceData(IP, PORT)


    faceName = FacialRecognitionModule.getFaceName(faceData)
Esempio n. 2
0
#Test code for learning a face
#Mitch Deplazes
#2/16/16

from naoqi import ALProxy
import FacialRecognitionModule
import time

#IP of the Robot
IP = "10.0.0.7"
#Port Number of the Robot
PORT = 9559

while (FacialRecognitionModule.learnFace(IP,PORT,"Josh")):
    print ("face not learned")
print ("face learned")
Esempio n. 3
0
#Test code for clearing face detection database
#Mitch Deplazes
#2/16/16

from naoqi import ALProxy
import FacialRecognitionModule
import time

#IP of the Robot
IP = "10.0.0.6"
#Port Number of the Robot
PORT = 9559

FacialRecognitionModule.clearFaceDatabase(IP, PORT)

print ("Faces cleared")