Skip to main content
. 2022 Mar 7;9:720448. doi: 10.3389/frobt.2022.720448

FIGURE 14.

FIGURE 14

For developing the learning machine in Mathematica, a training set of photos for face recognition was created. Through the command “SetDirectory” the photos of a person of the group were imported and the face acquisition procedure was carried out with the function “FindFaces”. This procedure is repeated in the program for all classes of persons to be recognised by the robot. The last step is programming in Choregraphe. Using the “Face Detection” and “Take a Picture” blocks, the NAO searches for a face in the environment and takes a picture of she/he. These photos are saved in the NAO’s internal memory, passed to Mathematica and processed. The response file given by Mathematica is passed to Choreographe thanks to the “Get Attached” block. The file is read by “Get String”, programmed specifically in Python, and then played back through “Say Text".