Page 1 of 2
No modetect
Posted: Mon Sep 19, 2011 3:35 pm
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!
Re: No modetect
Posted: Wed Sep 21, 2011 5:11 pm
by mastertheknife
Those warnings are normal. What are your zone settings, and the reference blend percent?
mastertheknife
Re: No modetect
Posted: Mon Sep 26, 2011 1:41 pm
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!
Re: No modetect
Posted: Fri Oct 21, 2011 11:37 pm
by allangood
Some one can help me? What I need to debug?
Any help will be very appreciated!
Thank you.
Re: No modetect
Posted: Sat Oct 22, 2011 7:03 pm
by dogmeat206
Where did you get the performence patch? I would love to give it a whirl.
Re: No modetect
Posted: Sat Oct 22, 2011 8:46 pm
by bb99
Re: No modetect
Posted: Sat Oct 22, 2011 8:51 pm
by bb99
allangood: Please post your zone settings and monitor function they should be something similar to: Modect and -
Re: No modetect
Posted: Sun Oct 23, 2011 7:49 pm
by dogmeat206
Great! I will apple the patch tomorrow and see how it affects the system.
Thanks again!
Re: No modetect
Posted: Tue Oct 25, 2011 7:08 pm
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
Re: No modetect
Posted: Tue Oct 25, 2011 7:57 pm
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?
Re: No modetect
Posted: Wed Oct 26, 2011 8:46 am
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
Re: No modetect
Posted: Wed Oct 26, 2011 4:20 pm
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!
Re: No modetect
Posted: Sun Oct 30, 2011 12:50 pm
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!
Many thanks.
Re: No modetect
Posted: Sun Oct 30, 2011 1:02 pm
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
Re: No modetect
Posted: Thu Nov 03, 2011 1:43 pm
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.