removing distorted frames

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
Post Reply
User avatar
Sir Veillance
Posts: 11
Joined: Tue Nov 13, 2007 3:44 am
Location: Germany

removing distorted frames

Post by Sir Veillance »

my wireless camera sometimes sends distorted pictures, mostly at night and while it's raining.

Examples:
Image
Image

I have two ideas how to avoid those false alarms:

:idea: 1: a plugin interface so that people could write filter programs. Those filters would have to be called by ZM before an alarm is generated.

:idea: 2: (probably easier to implement)
If I store distorted images as reference pictures, ZM could match those against the current event frames, and if there are more than x frames y% similar to the reference frame, then the alarm should be cancelled.

I guess, the comparison routines are already implemented, so this might be fairly easy to integrate into ZM :?:

Definitely, this would help avoid many false alarms (and thus make cheap cameras usable :wink: )
Martin from Germany
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Or you could set the zones to throw out anything that has more than say 60% change. Analysis is a process hungry application, specially dealing with video where it is process hungry as it is. This would mean that a more robust server would be needed to handle the extra workload which is a greater expence of putting together a server. If your looking to get more reliable alarm status, invest in a PIR and intigrate it into the ZM server. To many things can affect a cameras field of view to cause an alarm where a PIR would limit that to more interesting things. Other wise it would be cheaper to get a good camera.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I am considering the idea of plugins for future development but for now, as cordel mentioned, the best thing would be to put an upper limit on the amount of change that comprises an alarm. If exceeded you can also ignore the next 'x' frames in case it takes a few to settle down.

Ultimately though it's very difficult to come up with a strategy that reliable detects motion etc that you want and also can handle cameras that occasionally just sent rubbish. It's not always easy to tell the difference.
Phil
User avatar
Sir Veillance
Posts: 11
Joined: Tue Nov 13, 2007 3:44 am
Location: Germany

Post by Sir Veillance »

I think, the processing time wouldn't be that much of an issue here, because it doesn't have to be done in realtime, but only (as a filter) after an event had occurred.

As for setting maximum alarmed area: this has to be changed in each zone, right?

As for plugins: maybe I can build my own plugin filter using the script interface and one of these programs: Image Magick or jpegdiff

I'll play around with these and let you know what I find out.
Martin from Germany
Post Reply