Real-Time Facial Recognition
This plugin allows you to capture faces using the device's camera and compare them with a list of predefined images, identifying matches based on facial similarity. Ideal for authentication, access control, time and attendance, identity validation, and other modern applications with visual recognition.
Features:
π₯ Live capture via webcam.
π Comparison with multiple images provided via URL.
β
Automatic face detection.
π Similarity calculation with precision (threshold) adjustment.
π¦ Exposed States: Face detected, match found, corresponding image, match distance, and error messages.
β‘ Custom events: Face detected, match found.
π Action to stop recognition at any time.
You can use it to log in, grant access, and more.
The plugin basically returns:
1) Results of comparisons between the person on the camera and a list of images you uploaded.
2) If a face (any) is identified on the camera.
3) *NEW* : The Facial Expression, age and gender of the person on the camera.
4) *NEW* : if the 'Show square around face?' option is enabled, it will draw a square around the face of the person detected on the camera. You can dynamically choose the color of this square.
5) *NEW* : Now you have a new action: take a photo of the person on camera. When this action is triggered, take a screenshot of the camera, saving it in the Cam Picture state. You can use it, for example, in a conditional statement: every time the expression is 'happy,' take a screenshot of the image and save it to your database, or something similar.
Demo page:
https://retornadado4.bubbleapps.io/version-test/facial_recognition?debug_mode=trueEditor:
https://bubble.io/page?id=retornadado4&test_plugin=1752318117739x216774072614256640_current&tab=Design&name=facial_recognition&type=page&elements=bTJFt______________________________________________________
Updated on July 15, 2025:
The plugin now returns:
Facial expression :
'neutral'
'happy'
'sad'
'angry'
'fearful'
'disgusted'
'surprised'
Age
Gender
Of the person on camera
Updated on July 26, 2025:
There are now two more improvements:
1) If the 'Show square around face?' option is enabled, it will draw a square around the face of the person detected on the camera.
2) You can dynamically choose the color of this square.
Updated on August, 1, 2025:
Now you have a new action: take a photo of the person on the camera. When this action is triggered, take a screenshot from the camera, saving it in the Cam Picture state. You can use it, for example, in a conditional: every time the expression is 'happy,' take a screenshot of the image and save it to your database, or something similar. Now you have the "an_image_was_captured_from_the_camera" event, which, whenever an image is available in the Cam Picture state, you can trigger this event.