djdd87 / SynoAI

A Synology Surveillance Station notification system utilising DeepStack AI
GNU General Public License v3.0
204 stars 24 forks source link

Motion detection history in Synology #194

Open Coolawy opened 1 year ago

Coolawy commented 1 year ago

Hello

I'd like to ask if someone knows a way to make that only AI confirmed motion detections are marked by Surveillance Station? I configured my synology like this:

Currently during windy day I have hundreds of motion detections marked for each camera. Of course I disabled in settings all notifications from motion detections and set up Action rule to notify Surveillance Station through webhook, so I could get notification from DS cam app, but still motion detection history is a mess. Is there a way to detect motions initially by Surveillance Station but not mark them in history?

Thanks!

djdd87 commented 11 months ago

It's possible to do this using "bookmarks". I can set a bookmark with the name of the type or types selected or something similar.

JoeyJoe6 commented 11 months ago

I currently use 2 entries for each camera I need to have better detection being marked in SS timelines.

  1. Create camera cam1, disable event detection, create action rule mark_cam1_alert, event:webhook, trigger-type: onetime, this will generate a webhook to use in synoai, Action:cam1, trigger motion event webook generated by SS: "URL": "http://192.168.xxx.xxx:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Webhook&method=\"Incoming\"&version=1&token=auto generated key",

  2. using the same camera, create camera cam1-alerts in SS (yes you will use an additional SS camera license), set event detection to camera or SS to detect. This will be the camera to send alerts to synoai. Set this up per the synoai instructions with the action rule.

Now cam1-alerts triggers a event and sends it synoai to review. If a positive result occurs, synoai will send the webhook to SS which will mark a motion event under cam1. You should only now see positive hits that synoai fines on the cam1 timeline.

synoai appsettings.conf: "Notifiers": [ { "Type": "Webhook", "URL": "http://192.168.xxx.xxx:5000/webapi/entry.cgi?api=SYNO.SurveillanceStation.Webhook&method=Incoming&version=1&token=auto generated key", "Method": "GET", "Cameras": [ "cam1-alerts" ] }, ............ "Cameras": [ { "Name": "cam1-alerts", "Threshold": 55, "MinSizeX": 150, "MinSizeY": 150 }, ............