Motion Detector

RVMedia support and discussion (components for displaying and controlling IP cameras, webcams, video conferencing, video chats, recording audio and video files)
Post Reply
cueiogordo
Posts: 4
Joined: Wed Apr 13, 2022 7:03 pm

Motion Detector

Post by cueiogordo »

Good afternoon
I need to know if there is any movement on the camera in a certain area.
Would you be able to perform this check?
Do you also have a depth detector?
Looking at the Example, he pays for moving the entire camera
Sergey Tkachenko
Site Admin
Posts: 17520
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Motion Detector

Post by Sergey Tkachenko »

Currently, TRVMotionDetector class works with 2 complete images (it detects if there were changes, and returns coordinates of rectangles that cover changed areas).
If you need to process not the whole image but a rectangular area, you can create smaller TRVMBitmap-s and copy this area to them using CopyRect method:

Code: Select all

DestBmp.CopyRect(DesRect, SourceBitmap, SourceRect);
Then use these smaller bitmaps for motion detection.
Post Reply