No modetect
No modetect
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!
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!
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: No modetect
Those warnings are normal. What are your zone settings, and the reference blend percent?
mastertheknife
mastertheknife
Kfir Itzhak.
Re: No modetect
Hello Mastertheknife!mastertheknife wrote:Those warnings are normal. What are your zone settings, and the reference blend percent?
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
Some one can help me? What I need to debug?
Any help will be very appreciated!
Thank you.
Any help will be very appreciated!
Thank you.
-
- Posts: 51
- Joined: Tue Oct 11, 2011 10:15 pm
Re: No modetect
Where did you get the performence patch? I would love to give it a whirl.
Re: No modetect
Description and patch are here: http://www.zoneminder.com/forums/viewto ... =9&t=17652
Re: No modetect
allangood: Please post your zone settings and monitor function they should be something similar to: Modect and -
- Attachments
-
- Screenshot-1.png (19.6 KiB) Viewed 7686 times
-
- Posts: 51
- Joined: Tue Oct 11, 2011 10:15 pm
Re: No modetect
Great! I will apple the patch tomorrow and see how it affects the system.
Thanks again!
Thanks again!
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: No modetect
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
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.
-
- Posts: 51
- Joined: Tue Oct 11, 2011 10:15 pm
Re: No modetect
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?
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: No modetect
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: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?
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.
-
- Posts: 51
- Joined: Tue Oct 11, 2011 10:15 pm
Re: No modetect
@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!
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
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.
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.
- Attachments
-
- zone_edit.png (199.34 KiB) Viewed 7607 times
-
- zone.png (22.54 KiB) Viewed 7607 times
-
- Posts: 678
- Joined: Wed Dec 16, 2009 4:32 pm
- Location: Israel
Re: No modetect
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
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
Kfir Itzhak.
Re: No modetect
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.
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.