You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 11, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,7 @@ An example appsettings.json configuration file can be found [here](#example-apps
78
78
* MinSizeX [optional] (Default: ```50```): The minimum size in pixels that the object must be to trigger a change (will be ignored if specified on the Camera)
79
79
* MinSizeY [optional] (Default: ```50```): The minimum size in pixels that the object must be to trigger a change (will be ignored if specified on the Camera).
80
80
* Delay [optional] (Default: ```5000```): The period of time in milliseconds (ms) that must occur between the last motion detection of camera and the next time it'll be processed. i.e. if your delay is set to 5000 and your camera reports motion 4 seconds after it had already reported motion to SynoAI, then the check will be ignored. However, if the report from Surveillance Station is more than 5000ms, then the cameras image will be processed.
81
+
* DelayAfterSuccess [optional] (Default: ```0```): The period of time in milliseconds (ms) that must occur between the last successful motion detection of camera and the next time it'll be processed. i.e. if you set the delay to 15000, then 15 seconds must pass before another motion detection is processed
81
82
* MaxSnapshots [optional] (Default: ```1```): Upon movement, the maximum number of snapshots sequentially retrieved from SSS until finding an object of interest. e.g. if 4 is specified, then SynoAI will make a maximum of 4 requests until it finds a type of interest. If a matching type is found on the 1st snapshot, then no further snapshots will be taken. If nothing is found within the 4 requests, then no further snapshots will be taken until the next time Surveillance Station detects motion
82
83
* DrawMode [optional] (Default: ```Matches```): Whether to draw all predictions from the AI on the capture image:
83
84
* Matches: Will draw boundary boxes over any object/person that matches the types defined on the cameras
@@ -104,9 +105,11 @@ An example appsettings.json configuration file can be found [here](#example-apps
104
105
* Name: [required]: The name of the camera on Surveillance Station
105
106
* Types: [required]: An array of types that will trigger a notification when detected by the AI, e.g. ["Person", "Car"]
106
107
* Threshold [required]: An integer denoting the required confidence of the AI to trigger the notification, e.g. 40 means that the AI must be 40% sure that the object detected was a person before SynoAI sends a notification
107
-
* MinSizeX [optional] (Default: ```NULL```): The minimum pixels that the object must be horizontally to trigger a change (will override the default set on the top level MinSizeX)
108
-
* MinSizeY [optional] (Default: ```NULL```): The minimum pixels that the object must be vertically to trigger a change (will override the default set on the top level MinSizeY)
108
+
* MinSizeX [optional] (Default: ```NULL```): Will override the default set on the top level ```MinSizeX```
109
+
* MinSizeY [optional] (Default: ```NULL```): Will override the default set on the top level ```MinSizeY```
109
110
* Wait [optional]: An integer for the number of milliseconds to wait before requesting a snapshot once triggered, e.g. 2500 will wait for 2500ms (2.5 seconds) before requesting a snapshot from Surveillance Station
111
+
* Delay [optional] (Default: ```NULL```): Will override the value set on the top level ```Delay```
112
+
* DelayAfterSuccess [optional] (Default: ```0```): Will override the value set on the top level ```DelayAfterSuccess```
110
113
* MaxSnapshots [optional] (Default: ```NULL```): Upon movement, the maximum number of snapshots sequentially retrieved from SSS until finding an object of interest (i.e. 4 snapshots). If not specified, will use the value from the main config.
111
114
* Rotate [optional] (Default: ```0```): The degrees to rotate the image after it's captured from SurveillanceStation. The rotation will be applied before it's passed to the AI
112
115
* Exclusions [optional]: An array of exclusion zones to ignore found objects within. If the entirity of an object is within the exclusion zone, then it won't be reported by the notifiers.
Copy file name to clipboardExpand all lines: SynoAI/Config.cs
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,16 @@ public static class Config
115
115
/// Development use only. The internal path to call the AI. Potentially a better way to do this would be to support multiple AIs and have separate configs baked into each AI.
116
116
/// </summary>
117
117
publicstaticstringAIPath{get;privateset;}
118
-
118
+
119
+
/// <summary>
120
+
/// The period of time in milliseconds (ms) that must occur between the last motion detection of camera and the next time it'll be processed.
121
+
/// </summary>
122
+
publicstaticintDelay{get;privateset;}
123
+
/// <summary>
124
+
/// The period of time in milliseconds (ms) that must occur between the last successful motion detection of camera and the next time it'll be processed.
/// The default minimum width that an object must be to be considered valid for reporting. Can be overridden on a camera by camera basis to account for different camera resolutions.
0 commit comments