FaceDetection: Detect faces in real time
Features
- FaceDetection via camera
- Rectangle drawing around Faces
Use Cases
- Detect faces via camera
- Trigger events when face is detected
- Use phone as a security camera
- Detect number of faces
Demo video
Blocks
Events:
OnFacesDetected
Triggered when faces are detected with the count of faces
Parameter | Type |
---|---|
faceCount | number |
OnCameraError
Triggered when camera error occurs
Parameter | Type |
---|---|
errorMessage | text |
OnError
Triggered when View encounters an error
Parameter | Type |
---|---|
errorCode | number |
description | text |
failingUrl | text |
Methods:
Initialize
Initialize the face detection system
Parameter | Type |
---|---|
container | component |
StopDetection
Stop face detection and release resources
Sample blocks used for the above demo
Download the extension
I'm a 16 year old high school student, I like to create and maintain many extensions. I research a lot daily to bring something new to App Inventor
While my primary goal and perspective on App Inventor is not to earn money, it really helps and motivates me a lot if you could spare some donations.
io.opencv.facedetection (44.7 KB)
Building something awesome!
Sarthak Gupta @techxsarthak