Extensions
FaceDetection icon

FaceDetection

Detect faces in real time with OpenCV and mark them directly in your app.

18 September 2026v2.0
Free
AI/ML

About

FaceDetection adds reliable real-time face detection to your projects. Leverage OpenCV to highlight faces with bounding rectangles, trigger responsive events, and build security or analytics experiences without leaving the App Inventor ecosystem.

Features

  • Real-time face detection via device camera
  • Automatic rectangles around detected faces
  • FacesDetected, CameraError, and Error events
  • Initialize detection inside any arrangement
  • Start and stop detection on demand
  • Count faces for analytics and automation
  • Works alongside MotionDetection and CameraFilters
  • Sample AIA project available for quick start

Documentation

OpenCV face detector on the live camera. Initialize into an arrangement; OnFacesDetected reports how many faces are in frame.

Docs5

OnFacesDetected

Event

Triggered when faces are detected with the count of faces

ParameterType
faceCountnumber

OnCameraError

Event

Triggered when camera error occurs

ParameterType
errorMessagetext

OnError

Event

Triggered when WebView encounters an error

ParameterType
errorCodenumber
descriptiontext
failingUrltext
Blocks5
FaceDetection block 1FaceDetection block 2FaceDetection block 3FaceDetection block 4FaceDetection block 5

Compatible platforms

MIT App InventorKodularNiotronAndroid BuilderThunkable

Related extensions