Page 1 of 1

Motion detection detects motion outside deffined zone

Posted: Mon Mar 17, 2025 2:25 pm
by DR_Omi
Hi,

Zoneminder 1.37.66 Ubuntu 24.04

I have defined "activ" zone on the right side of the scene but ZM detects motion which take place on the left side of the scene.
I tried deleting the zone and creating new one in the same area. The same happens.
No problem when zone is from left to the right or in the middle of the camera picture.

Re: Motion detection detects motion outside deffined zone

Posted: Tue Mar 18, 2025 2:06 am
by iconnor
We have one other report of this. I havn't been able to reproduce it though.

Re: Motion detection detects motion outside deffined zone

Posted: Wed Mar 19, 2025 2:34 pm
by IgorA100
Yes, sometimes it happens.
But I couldn't find the reason, because it's impossible to repeat....

Re: Motion detection detects motion outside deffined zone

Posted: Wed Mar 19, 2025 2:42 pm
by iconnor
I am working on bringing back live analysis highlighting... which may help.

Most of this code has not been touched in 10 years and could certainly do with some test cases.

Re: Motion detection detects motion outside deffined zone

Posted: Wed Mar 19, 2025 2:52 pm
by IgorA100
iconnor wrote: Wed Mar 19, 2025 2:42 pm I am working on bringing back live analysis highlighting..
This is great!

Re: Motion detection detects motion outside deffined zone

Posted: Thu Mar 20, 2025 8:44 am
by DR_Omi
Hi,

In my case it's permanent on two cameras:
Dahua model IPC-HFW2320R-VFS-IRE6



Cars are passing in a red highlighted part of the image, right up corner.
When car is passing activ zone Z2a detects motion on the left side. Other zones are set inactiv.

looks like image is flipped y axis before analysis.

In Source tab:
Orientation = Normal
Decoder = Auto

all manual Decoder settings has the same "flipped y" effect

Re: Motion detection detects motion outside deffined zone

Posted: Fri Mar 21, 2025 11:16 am
by Fressikus
Adding on to this that I have the same problem and had for a while. For me, cars are passing by the only defined zone (both on the left side of the image) and getting blob detected anyway. For me, it's on an 640x480 lowres RTSP stream from a Reolink Webcam. I've also tried deleting all zones and re-adding them, to no avail. I'll add some screenshots to showcase the issue, please let me know if I can do anything else to help pinpoint the problem.

Re: Motion detection detects motion outside deffined zone

Posted: Fri Mar 21, 2025 2:10 pm
by iconnor
I'm a little swamped. Had intended to release 1.38 next week. I will delay it in order to ensure this is fixed first.

Re: Motion detection detects motion outside deffined zone

Posted: Thu Apr 10, 2025 8:24 pm
by Bluemax
Try to lookup/verify the zones:
- enable jpg analysis frames
- Trigger a max-motion picture (by camera) e.g. by changing day/night mode (hikvision). This will create a white flash on every switch that will trigger every active pixel/blob so the analysis frames should show a pixelcloud of the true areas. Compare it with the originally defined areas.

Re: Motion detection detects motion outside deffined zone

Posted: Sat Apr 12, 2025 9:05 pm
by Bluemax
Here is another example.

Image Image Image Image Image

Re: Motion detection detects motion outside deffined zone

Posted: Mon Apr 14, 2025 1:23 pm
by DR_Omi
good tip Bluemax with the camera day night switching

This is my zone with parameters and detected area (pixel / blob)

Re: Motion detection detects motion outside deffined zone

Posted: Fri Apr 25, 2025 10:16 am
by Fressikus
I've flipped my image horizontally in the camera to simulate an "all pixels changed" situation and got this:
zones1.jpg
zones1.jpg (257.3 KiB) Viewed 11065 times
zones2.jpg
zones2.jpg (281.56 KiB) Viewed 11065 times
Kinda looks like it's drawing lines where it should not or something
points_configuration.jpg
points_configuration.jpg (71.52 KiB) Viewed 11065 times