Send Motion-user mailing list submissions to
        motion-user@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
        motion-user-requ...@lists.sourceforge.net

You can reach the person managing the list at
        motion-user-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. Re: some comments on motion detection (tosiara)


----------------------------------------------------------------------

Message: 1
Date: Mon, 10 Jun 2019 12:25:54 +0300
From: tosiara <tosi...@gmail.com>
To: b...@suresys.com
Cc: Motion discussion list <motion-user@lists.sourceforge.net>, Graham
        Toal <gt...@gtoal.com>
Subject: Re: [Motion-user] some comments on motion detection
Message-ID:
        <cachtdwqtw2kra-s22ndeyrmrqtijzbo2je4rhcmnzgnburj...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Would be great if you could create a pull request on github for every
separate feature. Thanks!

On Sun, Jun 9, 2019, 22:16 <b...@suresys.com> wrote:

> Re. supplementing motion's image-based motion detection with external
> sensor detection.
>
> I have been doing this for more than 6 years to deal with sudden changes
> in room illumination coming from outdoors (the "light switch" feature
> didn't do the job for me).
>
> Comment summary of the changes to motion.c is:
>
> external alarm function, logically "ored" w/ video motion detection
> memory-mapped file /<pidfile dir>/mdT.mmap (T=thread no.), containing
> a 1-char alarm status plus \0 terminator.  file must be dynamically
> updated by separate program.  alarm status may be included in
> event string formats as substitution symbol "%!" for values:
> * "-" motion access to memory-mapped file failed (see log at startup)
> * "0" external alarm program inactive or not implemented
> * "1" external alarm program operational, but no alarm signalled
> * "2" external alarm signalled (only value significant to this module
> * "3" external alarm fault (as determined by external alarm program)
>
> I'm using a Phidgets, Inc. (https://www.phidgets.com/) USB sensor device
> to read PIR contact closure, controlled by a Python program using
> Phidgets' Python API (one of several languages they support). With
> careful coding for opening and initialization of the memory-mapped file,
> I have had totally reliable operation regardless of which side starts
> first or is restarted. Unfortunately, my code is based on motion 3.2.12
> as of June 2010 and is accompanied by other fairly extensive mods, so I
> doubt it could be easily ported to the latest and greatest motion.
>
> Be glad to share if anyone is interested in trying.  FYI, functions of
> the other mods are:
>
> 1. Asynchronous DB transactions, so motion doesn't miss frames waiting
> for a remote DB commit.  Useful for rapid off-site logging of motion
> events; I presume competent burglars will snag the motion server within
> 1 minute of a break-in.
>
> 2. Prepared SQL statements and binary transmission to minimize DB
> session bandwidth and load.
>
> 3. An on_event_end_sql option plus several new mystrftime() substitution
> symbols to allow shell or SQL stored procedures to figure out what to do
> with motion vs. PIR alarms.
>
> 4. Change on_camera_lost event to on_camera_change (loss/gain/stop) and
> add an on_camera_change_sql option to allow camera loss to be logged
> and/or begin and terminate automatic recovery (e.g., bouncing power to
> the camera, possibly more than once).
>
> 5. Multiple SQL statements per camera thread (presently 3: new
> image/video file, camera acquired/lost/stopped, motion event end/summary).
>
> Most DB-related mods are implemented only for PostgreSQL.
>
> Contact me off list if you want the code ...
>
> -- Bill Clay
>
> On 6/7/19 5:02 PM, tosiara wrote:
>
> > Some of your concens may be addressed as soon as MrDave is back to
> development:
> > https://github.com/Motion-Project/motion/issues/941
> > With motion detection moved into a library with API, you will be able
> > to "plug" better detector, either physical PIR or software AI
> >
> > On Thu, Jun 6, 2019 at 9:16 AM Graham Toal <gt...@gtoal.com> wrote:
> >> Hi - I've been using motion on raspberry pies for a few years now.
> >>
> >> I have some thoughts I'ld like to pass on.  Motion's detection has too
> many false positives for my liking, and the offered solutions haven't ever
> really fixed it for me.  So...
> >>
> >> ...
> >>
> >> 3) Could there be a mechanism to add some external trigger to
> supplement the motion detection, eg a PIR sensor or radar sensor - and have
> motion handle the video only if it detects motion in the video *and* the
> external trigger also has detected motion?  (and some users might want the
> option of "OR" rather than "AND" depending on their tolerance of false
> positives)
> >>
> >> just passing thoughts to consider some day...
> >>
> >> regards
> >>
> >> Graham
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------



------------------------------

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user


------------------------------

End of Motion-user Digest, Vol 156, Issue 17
********************************************

Reply via email to