motion trigger depending on direction of movement

Add any particular hints or tricks you have found to help with your ZoneMinder experience.
Post Reply
cmos
Posts: 1
Joined: Fri Dec 06, 2024 12:33 am

motion trigger depending on direction of movement

Post by cmos »

Is there any way to have a trigger that depends on the direction of movement? I have an underwater camera in a stream that has salmon run. Leaves and detritus in the stream cause was too many false alarms. If an event was only triggered by something going upstream it would only spot fish, and much fewer false alarms. Thanks.
User avatar
iconnor
Posts: 3263
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: motion trigger depending on direction of movement

Post by iconnor »

Nope.

Of course you could use AI to detect fish.
rockedge
Posts: 1197
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: motion trigger depending on direction of movement

Post by rockedge »

cmos wrote: Fri Dec 06, 2024 12:43 am Is there any way to have a trigger that depends on the direction of movement? I have an underwater camera in a stream that has salmon run.
Using something similar but on a fish ladder for trout I managed to do it but using Darknet streamed through ZM and then switched later to object detection routines using open opencv and python to plot points on detected fish using object detection for fish shapes (trout) using a custom training weights for trout images. The plotted points using tensor flow it can be determined which direction the points are moving. Then send a start event recording trigger via zmtrigger.pl.

This worked fairly OK. Had room for improvement but the basic idea worked.

Opencv has example code that shows the basics.

Later helped a member on this forum that wanted to detect if a train was inbound or outbound on tracks by his house. Determined timing of being able to get to the road of the track crossing. Long freight trains. Tried with setting up multiple zones and different zone types but with limited success. The object detection plotted points with tensor flow written in python that determined the inbound outbound status and sent an alarm notification .

I'll try to see if I can dig up what the programs looked like. Zoneminder was configured to start the python program.
Post Reply