Exemple #1
0
 /// <summary>
 /// Adds <see cref="SurveillanceSource"/> with the provided <see cref="PersonRecognitionConfiguration"/>.
 /// </summary>
 /// <param name="source">The source used for recognition.</param>
 /// <param name="config">The config for the <paramref name="source"/>.</param>
 /// <exception cref="ArgumentNullException">
 ///     <paramref name="source"/> is null.<br/>
 ///     -or-<br/>
 ///     <paramref name="config"/> is null.
 /// </exception>
 /// <exception cref="ObjectDisposedException">
 ///     The <see cref="PersonRecognizer"/> has already been disposed of.<br/>
 ///     -or-<br/>
 ///     <paramref name="config"/> has already been disposed of.
 /// </exception>
 /// <exception cref="ArgumentException">
 /// <see cref="PersonRecognitionConfiguration.FaceRecognitionModelPath"/> of <paramref name="config"/> does not exists.
 /// </exception>
 /// <exception cref="UnauthorizedAccessException">
 /// No permission to access to the <see cref="PersonRecognitionConfiguration.FaceRecognitionModelPath"/>.
 /// </exception>
 /// <exception cref="NotSupportedException">The model file is not supported format or file.</exception>
 /// <see cref="SurveillanceSource.Push(MediaVisionSource)"/>
 /// <since_tizen> 4 </since_tizen>
 public void AddSource(SurveillanceSource source, PersonRecognitionConfiguration config)
 {
     if (config == null)
     {
         throw new ArgumentNullException(nameof(config));
     }
     InvokeAddSource(source, config);
 }
Exemple #2
0
 /// <summary>
 /// Removes the source from <see cref="SurveillanceEngine"/>.
 /// </summary>
 /// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
 /// <exception cref="ObjectDisposedException">The <see cref="SurveillanceEngine"/> has already been disposed of.</exception>
 /// <exception cref="ArgumentException"><paramref name="source"/> has not been added.</exception>
 /// <since_tizen> 4 </since_tizen>
 public void RemoveSource(SurveillanceSource source)
 {
     if (source == null)
     {
         throw new ArgumentNullException(nameof(source));
     }
     UnsubscribeEventTrigger(Handle, source.StreamId).Validate("Failed to unsubscribe event trigger");
 }
Exemple #3
0
 internal void InvokeAddSource(SurveillanceSource source, SurveillanceEngineConfiguration config)
 {
     if (source == null)
     {
         throw new ArgumentNullException(nameof(source));
     }
     SubscribeEventTrigger(Handle, source.StreamId, EngineConfiguration.GetHandle(config),
                           OnEventDetected).Validate("Failed to subscribe trigger");
 }
Exemple #4
0
 /// <summary>
 /// Adds <see cref="SurveillanceSource"/> with the provided <see cref="PersonAppearanceDetectionConfiguration"/>.
 /// </summary>
 /// <param name="source">The source used for recognition.</param>
 /// <param name="config">The config for the <paramref name="source"/>. This value can be null.</param>
 /// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
 /// <exception cref="ObjectDisposedException">
 ///     The <see cref="PersonAppearanceDetector"/> has already been disposed of.<br/>
 ///     -or-<br/>
 ///     <paramref name="config"/> has already been disposed of.
 /// </exception>
 /// <see cref="SurveillanceSource.Push(MediaVisionSource)"/>
 /// <since_tizen> 4 </since_tizen>
 public void AddSource(SurveillanceSource source, PersonAppearanceDetectionConfiguration config)
 {
     InvokeAddSource(source, config);
 }
Exemple #5
0
 /// <summary>
 /// Adds <see cref="SurveillanceSource"/>.
 /// </summary>
 /// <param name="source">The source used for recognition.</param>
 /// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
 /// <exception cref="ObjectDisposedException">The <see cref="PersonAppearanceDetector"/> has already been disposed of.</exception>
 /// <see cref="SurveillanceSource.Push(MediaVisionSource)"/>
 /// <since_tizen> 4 </since_tizen>
 public void AddSource(SurveillanceSource source)
 {
     AddSource(source, null);
 }
Exemple #6
0
 /// <summary>
 /// Adds <see cref="SurveillanceSource"/> with the provided <see cref="MovementDetectionConfiguration"/>.
 /// </summary>
 /// <param name="source">The source used for recognition.</param>
 /// <param name="config">The config for the <paramref name="source"/>. This value can be null.</param>
 /// <exception cref="ArgumentNullException"><paramref name="source"/> is null.</exception>
 /// <exception cref="ObjectDisposedException">
 ///     The <see cref="MovementDetector"/> has already been disposed of.<br/>
 ///     -or-<br/>
 ///     <paramref name="config"/> has already been disposed of.
 /// </exception>
 /// <see cref="SurveillanceSource.Push(MediaVisionSource)"/>
 /// <since_tizen> 4 </since_tizen>
 public void AddSource(SurveillanceSource source, MovementDetectionConfiguration config)
 {
     InvokeAddSource(source, config);
 }