[FREE]
Motion Detection
Detect real-time motion with OpenCV and highlight active areas using the device camera.
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 |
About
OpenCV motion detector that draws on a camera preview inside an arrangement. Call Initialize, then StopDetection when you leave the screen.
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
Blocks
Events
Motion Detected
Triggered when motion is detected
- motionAreas (
number)
Camera Error
Triggered when camera error occurs
- errorMessage (
text)
Web View Error
Triggered when WebView encounters an error
- errorCode (
number) - description (
text) - failingUrl (
text)
Methods
Initialize
Initialize the motion detection system
- container (
component) β Arrangement that hosts the preview.
Stop Detection
Stop motion detection and release resources
Properties
Camera Facing
Set the camera facing direction: 'back' or 'front'
Type: text Β· Default: back
Returns text.
Get the AIX
Download the AIX from the store, then import from Projects β Import extension.
Built by Sarthak Gupta Β· hi@sarthakdev.in Β· sarthakdev.in








