Page 1 of 1

Detect a person standing?

Posted: Tue Sep 11, 2012 1:22 pm
by hjf
I have set a camera pointing out at the glass door in my shop. I've set the zone as attached.

The problem is that, of course, I get a lot of false positives because of people just passing by (unfortunately, business is not so good that there are more people coming in :P).

What I'd like to do is set up ZM so it only records a person standing in front of my door. Is it possible? For example, if the person has been standing in the motion detect area for, say, 3 seconds, only then consider it as motion and generate an event.

Re: Detect a person standing?

Posted: Tue Sep 11, 2012 6:05 pm
by Christo
hjf wrote:I have set a camera pointing out at the glass door in my shop. I've set the zone as attached.

The problem is that, of course, I get a lot of false positives because of people just passing by (unfortunately, business is not so good that there are more people coming in :P).

What I'd like to do is set up ZM so it only records a person standing in front of my door. Is it possible? For example, if the person has been standing in the motion detect area for, say, 3 seconds, only then consider it as motion and generate an event.
Hello hjf,

This is possible by increasing the value of the "Alarm Frame Count" settings inside the monitor source.

See TAB "Buffers"!

See also my explanations on post: http://www.zoneminder.com/forums/viewto ... 29&t=19582

Goodluck and regards, Christo

Re: Detect a person standing?

Posted: Tue Sep 11, 2012 7:43 pm
by hjf
Christo wrote:
hjf wrote:I have set a camera pointing out at the glass door in my shop. I've set the zone as attached.

The problem is that, of course, I get a lot of false positives because of people just passing by (unfortunately, business is not so good that there are more people coming in :P).

What I'd like to do is set up ZM so it only records a person standing in front of my door. Is it possible? For example, if the person has been standing in the motion detect area for, say, 3 seconds, only then consider it as motion and generate an event.
Hello hjf,

This is possible by increasing the value of the "Alarm Frame Count" settings inside the monitor source.

See TAB "Buffers"!

See also my explanations on post: http://www.zoneminder.com/forums/viewto ... 29&t=19582

Goodluck and regards, Christo
That's excellent, thanks! I've tried it and it seems to work, except i get some false alarms because of weird images. What could be causing this? The camera is an ubiquiti aircam, it's h.264. The server is remote, over a 1km wireless link, could that be dropping packets and causing the corruption?

I get some of this in the logs:

Code: Select all

Sep 11 10:29:45 servidor zms[88324]: ERR [Terminating, last frame sent time 1347370185.436728 secs more than maximum of 10.000000]
Sep 11 10:29:45 servidor zms[88324]: ERR [Can't glob '/tmp/zm/zmswap-m2/zmswap-q600028/*.*': No error: 0]
Sep 11 10:29:45 servidor zma_m2[88318]: WAR [Waiting for capture daemon]
Sep 11 10:41:50 servidor zms[88377]: ERR [Frame send time 3149 msec too slow, throttling maxfps to 10.00]
Sep 11 10:42:05 servidor zms[88377]: ERR [Frame send time 13502 msec too slow, throttling maxfps to 6.67]
Sep 11 13:46:03 servidor zma_m2[32942]: WAR [Waiting for capture daemon]
Sep 11 15:22:04 servidor zmc_m1[81439]: WAR [Buffer overrun at index 32, image 3205512, slow down capture, speed up analysis or increase ring buffer size]
Sep 11 16:03:48 servidor zms[37429]: ERR [Frame send time 495 msec too slow, throttling maxfps to 10.00]
Sep 11 16:04:06 servidor zms[37429]: ERR [Frame send time 16257 msec too slow, throttling maxfps to 6.67]
Sep 11 16:04:10 servidor zms[37429]: ERR [Unable to send stream frame: Broken pipe]
Sep 11 16:13:18 servidor zmc_m2[37464]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Sep 11 16:13:18 servidor zmdc[77974]: ERR ['zmc -m 2' exited abnormally, exit status 255]
Sep 11 16:13:18 servidor zmc_m2[37466]: ERR [Can't shmget, probably not enough shared memory space free: Invalid argument]
Sep 11 16:13:18 servidor zmdc[77974]: ERR ['zmc -m 2' exited abnormally, exit status 255]
Sep 11 16:13:19 servidor zma_m2[37468]: ERR [Shared data not initialised by capture daemon]
Sep 11 16:13:19 servidor zmdc[77974]: ERR ['zma -m 2' exited abnormally, exit status 255]
Sep 11 16:13:19 servidor zma_m2[37469]: ERR [Shared data not initialised by capture daemon]
Sep 11 16:13:19 servidor zmdc[77974]: ERR ['zma -m 2' exited abnormally, exit status 255]
Sep 11 16:13:24 servidor zma_m2[37478]: WAR [Waiting for capture daemon]
Sep 11 16:13:24 servidor zms[37477]: ERR [Terminating, last frame sent time 1347390803.949347 secs more than maximum of 10.000000]
Sep 11 16:13:24 servidor zms[37477]: ERR [Can't glob '/tmp/zm/zmswap-m2/zmswap-q667632/*.*': No error: 0]
Sep 11 16:13:25 servidor zma_m2[37478]: WAR [Waiting for capture daemon]
Sep 11 16:23:09 servidor zmc_m1[81439]: WAR [Buffer overrun at index 38, image 3264318, slow down capture, speed up analysis or increase ring buffer size]
I don't know what to do about shmget errors as this is FreeBSD, not linux.

Re: Detect a person standing?

Posted: Wed Sep 12, 2012 9:44 am
by Carrier82
Try decreasing frame rate from the ubuquiti cam (not from zoneminder settings but camera settings). Do the same errors occur when using ffmpeg?

Re: Detect a person standing?

Posted: Wed Sep 12, 2012 4:47 pm
by hjf
Carrier82 wrote:Try decreasing frame rate from the ubuquiti cam (not from zoneminder settings but camera settings). Do the same errors occur when using ffmpeg?
The camera is already set as follows: Video Settings: 2048 Kbit/s, 3 fps, 50 Hz
I set up a local server now, to discard possible wireless link issues. All wired. I will post back later after a few hours running.

Re: Detect a person standing?

Posted: Wed Sep 12, 2012 11:55 pm
by hjf
UPDATE: I've been running the camera for 12 hours now over a wired connection. No issues whatsoever. It seems the image problems were caused by packet loss over the wireless link.

(This is a slow ~6mbit, lossy link, as it's 1KM, with no line of sight, thanks to the 900MHz band. It works even with 3 10-story buildings in the middle).