Detect a person standing?

Forum for questions and support relating to the 1.25.x releases only.
Post Reply
hjf
Posts: 5
Joined: Tue Sep 11, 2012 1:06 pm

Detect a person standing?

Post by hjf » Tue Sep 11, 2012 1:22 pm

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.
Attachments
zone.jpg
zone.jpg (122.16 KiB) Viewed 2258 times

Christo
Posts: 89
Joined: Wed Feb 01, 2012 9:48 pm

Re: Detect a person standing?

Post by Christo » Tue Sep 11, 2012 6:05 pm

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

hjf
Posts: 5
Joined: Tue Sep 11, 2012 1:06 pm

Re: Detect a person standing?

Post by hjf » Tue Sep 11, 2012 7:43 pm

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.
Attachments
Sin título.jpg
Sin título.jpg (101.72 KiB) Viewed 2241 times

Carrier82
Posts: 96
Joined: Sat Jul 28, 2012 8:30 pm

Re: Detect a person standing?

Post by Carrier82 » Wed Sep 12, 2012 9:44 am

Try decreasing frame rate from the ubuquiti cam (not from zoneminder settings but camera settings). Do the same errors occur when using ffmpeg?

hjf
Posts: 5
Joined: Tue Sep 11, 2012 1:06 pm

Re: Detect a person standing?

Post by hjf » Wed Sep 12, 2012 4:47 pm

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.

hjf
Posts: 5
Joined: Tue Sep 11, 2012 1:06 pm

Re: Detect a person standing?

Post by hjf » Wed Sep 12, 2012 11:55 pm

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).

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests