Motion detection detects motion outside deffined zone

Current Development version likely to have breaking changes
Post Reply
DR_Omi
Posts: 11
Joined: Fri Oct 16, 2020 1:54 pm

Motion detection detects motion outside deffined zone

Post 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.
User avatar
iconnor
Posts: 3351
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Motion detection detects motion outside deffined zone

Post by iconnor »

We have one other report of this. I havn't been able to reproduce it though.
IgorA100
Posts: 203
Joined: Sat Feb 03, 2024 11:55 am

Re: Motion detection detects motion outside deffined zone

Post by IgorA100 »

Yes, sometimes it happens.
But I couldn't find the reason, because it's impossible to repeat....
User avatar
iconnor
Posts: 3351
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Motion detection detects motion outside deffined zone

Post 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.
IgorA100
Posts: 203
Joined: Sat Feb 03, 2024 11:55 am

Re: Motion detection detects motion outside deffined zone

Post by IgorA100 »

iconnor wrote: Wed Mar 19, 2025 2:42 pm I am working on bringing back live analysis highlighting..
This is great!
DR_Omi
Posts: 11
Joined: Fri Oct 16, 2020 1:54 pm

Re: Motion detection detects motion outside deffined zone

Post 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
Attachments
Screenshot_20250319_zone.png
Screenshot_20250319_zone.png (883.71 KiB) Viewed 18106 times
Last edited by DR_Omi on Thu Mar 27, 2025 2:27 pm, edited 1 time in total.
Fressikus
Posts: 15
Joined: Fri Jul 29, 2016 7:51 pm

Re: Motion detection detects motion outside deffined zone

Post 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.
Attachments
zm_blob_trigger4.jpg
zm_blob_trigger4.jpg (31.67 KiB) Viewed 25367 times
zm_blob_trigger2.jpg
zm_blob_trigger2.jpg (91.93 KiB) Viewed 25367 times
zm_blob_trigger1.jpg
zm_blob_trigger1.jpg (123.61 KiB) Viewed 25367 times
User avatar
iconnor
Posts: 3351
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Motion detection detects motion outside deffined zone

Post 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.
User avatar
Bluemax
Posts: 140
Joined: Wed Jun 12, 2019 5:15 pm

Re: Motion detection detects motion outside deffined zone

Post 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.
User avatar
Bluemax
Posts: 140
Joined: Wed Jun 12, 2019 5:15 pm

Re: Motion detection detects motion outside deffined zone

Post by Bluemax »

Here is another example.

Image Image Image Image Image
DR_Omi
Posts: 11
Joined: Fri Oct 16, 2020 1:54 pm

Re: Motion detection detects motion outside deffined zone

Post by DR_Omi »

good tip Bluemax with the camera day night switching

This is my zone with parameters and detected area (pixel / blob)
Attachments
Screenshot_20250414_150454.jpg
Screenshot_20250414_150454.jpg (301.04 KiB) Viewed 12411 times
Screenshot_20250414_151107.jpg
Screenshot_20250414_151107.jpg (299.31 KiB) Viewed 12411 times
Fressikus
Posts: 15
Joined: Fri Jul 29, 2016 7:51 pm

Re: Motion detection detects motion outside deffined zone

Post 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 8073 times
zones2.jpg
zones2.jpg (281.56 KiB) Viewed 8073 times
Kinda looks like it's drawing lines where it should not or something
points_configuration.jpg
points_configuration.jpg (71.52 KiB) Viewed 8073 times
Post Reply