This function is used to match the input image from the camera with the stored classes previously stored in the database.
The function also stores all the face data in PictoBlox for access by other functions.
Function Definition: recognisefromcamera()
This function is used to match the input image from the camera with the stored classes previously stored in the database.
The function also stores all the face data in PictoBlox for access by other functions.
The example demonstrates the application of face recognition with camera feed. Following are the key steps happening:
sprite = Sprite('Tobi')
fd = FaceDetection()
import time
fd.setthreshold(0.5)
fd.video("on", 0)
fd.enablebox()
time.sleep(2)
fd.deleteallclass()
# Adding face 1 to database
fd.addclassfromstage(1, "Face 1")
while True:
fd.recognisefromcamera()
if fd.isclassdetected(1):
sprite.say("Face 1 Recognised")
else:
sprite.say("Face 1 Missing")
Copyright 2024 – Agilo Research Pvt. Ltd. All rights reserved – Terms & Condition | Privacy Policy