Page 1 of 1

Motion Detector

Posted: Mon Jul 04, 2022 8:05 pm
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

Re: Motion Detector

Posted: Thu Aug 04, 2022 5:26 pm
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.