No modetect

Forum for questions and support relating to the 1.25.x releases only.
allangood
Posts: 12
Joined: Mon Jun 06, 2011 3:00 pm

No modetect

Post by allangood »

Hello!

I have the lastest SVN version with performance patch (impressive work!) from Masterknife and libjpeg-turbo. Everything works like a charm, but modetect. I think my problem are my hardware, a Bluecherry with MJPEG compression card. I can see videos, record, monitor etc. but the motion detection only works if I change all picture (i.e, put a paper in front of camera and turns all image to black).

I can see a lot of "socket_sendto" error (but, really, I don't think this is a problem) and some of these:
"Failed to get JPEG compression options: Invalid argument"
"No match for the selected palette and colourspace. Conversion required, performance penalty expected"
(both on zm_local_camera.cpp) And this, I think seems to be the problem.

Anyone have some idea for me?

Thanks in advance!
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: No modetect

Post by mastertheknife »

Those warnings are normal. What are your zone settings, and the reference blend percent?

mastertheknife
Kfir Itzhak.
allangood
Posts: 12
Joined: Mon Jun 06, 2011 3:00 pm

Re: No modetect

Post by allangood »

mastertheknife wrote:Those warnings are normal. What are your zone settings, and the reference blend percent?

mastertheknife
Hello Mastertheknife!

Well, I has tried with many options:
1) "Reference Image Blend %ge": 1%, 8%, 12% and 20%
2) Buffers: "Image Buffer Size": 50, 60 and 80
Pre Event Image Count: 25, 50 and 80
Alarm Frame Count: 1, 15 and 30

No matter what I change, the result are always the same. Only alarm if the image goes all black.

Thank you for your help!
allangood
Posts: 12
Joined: Mon Jun 06, 2011 3:00 pm

Re: No modetect

Post by allangood »

Some one can help me? What I need to debug?

Any help will be very appreciated!

Thank you.
dogmeat206
Posts: 51
Joined: Tue Oct 11, 2011 10:15 pm

Re: No modetect

Post by dogmeat206 »

Where did you get the performence patch? I would love to give it a whirl.
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: No modetect

Post by bb99 »

bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Re: No modetect

Post by bb99 »

allangood: Please post your zone settings and monitor function they should be something similar to: Modect and -
Attachments
Screenshot-1.png
Screenshot-1.png (19.6 KiB) Viewed 7689 times
dogmeat206
Posts: 51
Joined: Tue Oct 11, 2011 10:15 pm

Re: No modetect

Post by dogmeat206 »

Great! I will apple the patch tomorrow and see how it affects the system.

Thanks again!
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: No modetect

Post by mastertheknife »

Blobs is tricky to tune right and at the moment, analysis image is broken in my patch so there isn't much benefit in using Blobs motion detection.
Try using Alarmed Pixels, with minimum difference of 30 and area of 1%. This should generate many false alarms. Then, slowly increase\play with this stuff.

This might help: http://www.zoneminder.com/wiki/index.ph ... planations

mastertheknife
Kfir Itzhak.
dogmeat206
Posts: 51
Joined: Tue Oct 11, 2011 10:15 pm

Re: No modetect

Post by dogmeat206 »

mastertheknife wrote:Blobs is tricky to tune right and at the moment, analysis image is broken in my patch so there isn't much benefit in using Blobs motion detection.
Try using Alarmed Pixels, with minimum difference of 30 and area of 1%. This should generate many false alarms. Then, slowly increase\play with this stuff.

This might help: http://www.zoneminder.com/wiki/index.ph ... planations

mastertheknife

Have you had sucess working with the patch on 1.25?
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: No modetect

Post by mastertheknife »

dogmeat206 wrote:
mastertheknife wrote:Blobs is tricky to tune right and at the moment, analysis image is broken in my patch so there isn't much benefit in using Blobs motion detection.
Try using Alarmed Pixels, with minimum difference of 30 and area of 1%. This should generate many false alarms. Then, slowly increase\play with this stuff.

This might help: http://www.zoneminder.com/wiki/index.ph ... planations

mastertheknife

Have you had sucess working with the patch on 1.25?
Of course! Although i removed the attachments in my thread, you can get latest ZM SVN version with my changes ontop of it already applied, here:
http://github.com/mastertheknife/ZoneMi ... all/master
And just install as you would install standard ZM from source. If the database already exists, you might need to run the SQL query in my thread to update the Monitors table layout. No need anymore for the -msse2 flag provided you have GCC 4.4 or newer.

EDIT: I have now also put that link in my thread and updated the instructions accordingly.

mastertheknife
Kfir Itzhak.
dogmeat206
Posts: 51
Joined: Tue Oct 11, 2011 10:15 pm

Re: No modetect

Post by dogmeat206 »

@Master,

I was having issues patching it. Tons of errors and such. The patch I was using wanted zm_jpeg.c not zm_jpeg.cpp.

So I can attempt to install this the same way I did before. Can you please link me to the post your referring to. So that I know I am using the right info.

This is gonna go on to an already running install that I have almost perfectly working. I want to make sure I don't pooch the database.

Thanks!
allangood
Posts: 12
Joined: Mon Jun 06, 2011 3:00 pm

Re: No modetect

Post by allangood »

Hi masterknife,

here my configuration, and sorry for the late of my reply.

I believe theres no error on my config, becouse I has another instalation with the same configuration, but a cheap bttv chip card.
I think this is a issue with the mjpeg palette...

So, any help will be very appreciated! :D

Many thanks.
Attachments
zone_edit.png
zone_edit.png (199.34 KiB) Viewed 7610 times
zone.png
zone.png (22.54 KiB) Viewed 7610 times
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

Re: No modetect

Post by mastertheknife »

Hi allangood!

My zone settings look not too different from yours for my car parking.
Your zone settings are good, with one exception: you told the AlarmedPixels motion detection step to only trigger an alarm when a minimum of 10% of the zone was changed! This is too much! Try values between 0.5% and 3% and see what works best.

mastertheknife :D
Kfir Itzhak.
allangood
Posts: 12
Joined: Mon Jun 06, 2011 3:00 pm

Re: No modetect

Post by allangood »

Ok masterknife,

I will try these change and update the result here.
BTW, did you tried modetecion with your USB MJPEG camera? Works fine for you?

Thank you for your help.
Locked