MotionDetection: Detect motion in real time
Features
- MotionDetection via camera
- Rectangle drawing around motion
Use Cases
- Detect motion via camera
- Trigger events when motion is detected
- Use phone as a security camera
- Detect part of feed where motion occurs
Demo video
Blocks
Events:
OnMotionDetected
Triggered when motion is detected. Returns the number of points where motion is detected.
Parameter | Type |
---|---|
motionAreas | number |
OnCameraError
Triggered when camera error occurs.
Parameter | Type |
---|---|
errorMessage | text |
OnError
Triggered when View encounters an error.
Parameter | Type |
---|---|
errorCode | number |
description | text |
failingUrl | text |
Methods:
Initialize
Initialize the motion detection system inside an arrangement.
Parameter | Type |
---|---|
container | component |
StopDetection
Stop motion detection and release resources.
Sample Blocks
Loading the MotionDetection inside Horizonal Arrangement and starting detection.
Download the extension
I'm a 16 year old high school student, I like to create and maintain many extensions. I research a lot daily to bring something new to App Inventor
While my primary goal and perspective on App Inventor is not to earn money, it really helps and motivates me a lot if you could spare some donations.
io.opencv.motiondetection (45.0 KB)
Building something awesome!
Sarthak Gupta @techxsarthak