The testxhiveai is provided to run some preset test cases. Please follow the below steps to try some testing:
Step 1: Modify the test cases configurations
vi /etc/test/testxhiveai.xml
Facial Detection Display: Show the video in the window and draw box on the detected face.
disp_1win_face_detect | disp_2win_face_detect | disp_3win_face_detect | disp_4win_face_detect
To edit link="xxxxx"
<alias name="xxxxx"/>
Facial Recognition Display: Detected face and compare it with the picture respository.
If matching, display it on the screen.
disp_1win_face_recog | disp_2win_face_recog | disp_3win_face_recog | disp_4win_face_recog
To edit link="xxxxx"
<alias name="xxxxx"/>
Facial Recognition Callback: Call the registered callback function for matching face.
callback_face_recog
To edit link="xxxxx"
<alias name="xxxxx"/>
Step2: Run the test cases
testxhiveai <test case name>
Facial Detection Example:
Facial Recognition Callback Example:
To print out the matching person information and the position of the face in the picture.
[2021-4-2 05:51:42]: the capturing date
1116x712 126:121: the position of the face in picture (<X>x<Y> <Width>x<Height>)
id: the matching person id
name: the matching person name
score: the similarity score between captured face and registered face in the repository