[FREE]πŸƒβ€β™‚οΈ MotionDetection Extension: OpenCV based motion detection with area marking

Motion Detection

[FREE] :free_button: :robot: Motion Detection

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

Open store


:clipboard: Extension specifications

Package in.sarthakdev.motiondetection
Version 2.0
Price Free
Category AI/ML
Updated 18 September 2026
Platforms MIT App Inventor, Kodular, Niotron, Android Builder, Thunkable
Built using FAST
Store Motion Detection Extension - AI/ML Extension for MIT App Inventor, Kodular, Niotron | SarthakDev.in

:open_book: About

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

:sparkles: 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

:puzzle_piece: Blocks

MotionDetection blocks

:bell: Events

Motion Detected

Triggered when motion is detected

MotionDetected

  • motionAreas (number)

Camera Error

Triggered when camera error occurs

CameraError

  • errorMessage (text)

Web View Error

Triggered when WebView encounters an error

WebViewError

  • errorCode (number)
  • description (text)
  • failingUrl (text)

:wrench: Methods

Initialize

Initialize the motion detection system

Initialize

  • container (component) β†’ Arrangement that hosts the preview.

Stop Detection

Stop motion detection and release resources

StopDetection

:gear: Properties

Camera Facing

Set the camera facing direction: 'back' or 'front'

CameraFacing

CameraFacing

CameraFacing

Type: text Β· Default: back

Returns text.


:shopping_cart: Get the AIX

Download the AIX from the store, then import from Projects β†’ Import extension.


Built by Sarthak Gupta Β· hi@sarthakdev.in Β· sarthakdev.in

7 Likes

Done :+1:

motionAreas is number?

1 Like

Yes, the number of rectangles formed or the number or places where motion was detected
BTW did you flag the above post?

Renaming these events as suggested below would be good practice.

OnMotionDetected β†’ MotionDetected
OnCameraError β†’ CameraError

2 Likes

(Offtopic)When you take a look at most of the native components and many extensions how they are named :joy: . How often you will find this β€žwhen afterβ€œ thing? but I agree with you.

1 Like

:loudspeaker: Version 2 (1.1)

New Blocks

New blocks to adjust between front and back cameras

image

image

Fixed Block naming

As suggested by @JEWEL

Download link updated at top

hi.
I like this extention can you also get value x and y on where to motion happened?

2 Likes

Will try to add. Also it would be better if you could sponsor it

updated