Extensions
Motion Detection icon

Motion Detection

Detect real-time motion with OpenCV and highlight active areas using the device camera.

18 September 2026v2.0
Free
AI/ML

About

Motion Detection extension lets you build security and automation experiences by running OpenCV-powered motion detection inside your app. Highlight motion areas with rectangles, react to detection events, and switch between cameras while managing detection lifecycle easily.

Features

  • Real-time motion detection using OpenCV
  • Automatic rectangle overlays on detected motion areas
  • MotionDetected, CameraError, and Error events
  • Initialize detection inside any arrangement
  • Programmatic start and stop controls
  • Switch between front and back cameras
  • Use device as a security camera or motion trigger
  • Lightweight processing optimized for mobile

Documentation

OpenCV motion detector that draws on a camera preview inside an arrangement. Call Initialize, then StopDetection when you leave the screen.

Docs6

MotionDetected

Event

Triggered when motion is detected

ParameterType
motionAreasnumber

CameraError

Event

Triggered when camera error occurs

ParameterType
errorMessagetext

WebViewError

Event

Triggered when WebView encounters an error

ParameterType
errorCodenumber
descriptiontext
failingUrltext
Blocks8
Motion Detection block 1Motion Detection block 2Motion Detection block 3Motion Detection block 4Motion Detection block 5Motion Detection block 6Motion Detection block 7Motion Detection block 8

Compatible platforms

MIT App InventorKodularNiotronAndroid BuilderThunkable

Related extensions