Digital Barriers
Digital Barriers EdgeVis Decoder SDK
Loading...
Searching...
No Matches
AnalyticsConfig.h
Go to the documentation of this file.
1
2// Copyright (c) 2019 Digital Barriers
4
20
21#pragma once
22
23#include "EdgeVisSDK.h"
24#include "Pimpl.h"
25
27#include "AnalyticsRegion.h"
28
29namespace EdgeVisDecoderSDK
30{
31 class AnalyticsConfigImpl;
32
33 class AnalyticsConfig : public EdgeVisSDKPimpl<AnalyticsConfigImpl>
34 {
35 public:
36 DB_EDGEVIS_SDK AnalyticsConfig();
37 EdgeVisSDKPimplWeakConstructor(AnalyticsConfig);
38
39 DB_EDGEVIS_SDK virtual ~AnalyticsConfig();
40
46 DB_EDGEVIS_SDK int32_t GetInput() const;
47
55 DB_EDGEVIS_SDK bool SetInput(int32_t input);
56
57
63 DB_EDGEVIS_SDK bool GetEnabled() const;
64
70 DB_EDGEVIS_SDK void SetEnabled(bool enable);
71
77 DB_EDGEVIS_SDK double GetSensitivity() const;
78
85 DB_EDGEVIS_SDK void SetSensitivity(double sensitivity);
86
92 DB_EDGEVIS_SDK double GetMinDetectionWidth() const;
93
101 DB_EDGEVIS_SDK void SetMinDetectionWidth(double min_width);
102
108 DB_EDGEVIS_SDK double GetMinDetectionHeight() const;
109
117 DB_EDGEVIS_SDK void SetMinDetectionHeight(double min_height);
118
124 DB_EDGEVIS_SDK double GetMaxDetectionWidth() const;
125
133 DB_EDGEVIS_SDK void SetMaxDetectionWidth(double max_width);
134
140 DB_EDGEVIS_SDK double GetMaxDetectionHeight() const;
141
149 DB_EDGEVIS_SDK void SetMaxDetectionHeight(double max_height);
150
156 DB_EDGEVIS_SDK AnalyticsConfigMode GetMode() const;
157
163 DB_EDGEVIS_SDK void SetMode(const AnalyticsConfigMode mode);
164
170 DB_EDGEVIS_SDK bool GetFilterHeadlights() const;
171
177 DB_EDGEVIS_SDK void SetFilterHeadlights(const bool enable);
178
185 DB_EDGEVIS_SDK bool GetFilterOOF() const;
186
193 DB_EDGEVIS_SDK void SetFilterOOF(const bool enable);
194
201 DB_EDGEVIS_SDK int32_t GetOOFFilterValue() const;
202
210 DB_EDGEVIS_SDK void SetOOFFilterValue(const int32_t value);
211
217 DB_EDGEVIS_SDK bool GetDetectStationary() const;
218
224 DB_EDGEVIS_SDK void SetDetectStationary(const bool stationary);
225
232 DB_EDGEVIS_SDK int32_t GetMinPresence() const;
233
241 DB_EDGEVIS_SDK void SetMinPresence(const int32_t presence);
242
248 DB_EDGEVIS_SDK std::vector<AnalyticsRegion> GetRegions() const;
249
257 DB_EDGEVIS_SDK bool SetRegions(std::vector<AnalyticsRegion> regions);
258 };
259}
DB_EDGEVIS_SDK void SetFilterHeadlights(const bool enable)
Set the headlight filtering enabled state for analytics on this input.
DB_EDGEVIS_SDK void SetMinDetectionWidth(double min_width)
Sets the minimum object width to detect.
DB_EDGEVIS_SDK void SetFilterOOF(const bool enable)
Determine if out-of-focus (OOF) filtering is enabled for analytics on this input.
DB_EDGEVIS_SDK void SetMaxDetectionHeight(double max_height)
Sets the maximum object height to detect.
DB_EDGEVIS_SDK double GetMinDetectionWidth() const
Gets the minimum object width to detect.
DB_EDGEVIS_SDK void SetMinPresence(const int32_t presence)
Set the minimum time in secocds that an object must be detected before triggering an alarm.
DB_EDGEVIS_SDK bool GetFilterHeadlights() const
Determine if headlight filtering is enabled for analytics on this input.
DB_EDGEVIS_SDK void SetEnabled(bool enable)
Sets the enabled state for analytics on this input.
DB_EDGEVIS_SDK void SetOOFFilterValue(const int32_t value)
Set the level of the out-of-focus (OOF) filtering.
DB_EDGEVIS_SDK bool SetRegions(std::vector< AnalyticsRegion > regions)
Set the detection regions defined for this input.
DB_EDGEVIS_SDK bool GetDetectStationary() const
Determine if stationary object (eg.
DB_EDGEVIS_SDK double GetMinDetectionHeight() const
Gets the minimum object height to detect.
DB_EDGEVIS_SDK bool SetInput(int32_t input)
Sets the input that this analytics configuration will apply to.
DB_EDGEVIS_SDK void SetMode(const AnalyticsConfigMode mode)
Set the analytics detection mode to use.
DB_EDGEVIS_SDK std::vector< AnalyticsRegion > GetRegions() const
Get the detection regions defined for this input.
DB_EDGEVIS_SDK int32_t GetOOFFilterValue() const
Determine the current level of the out-of-focus (OOF) filtering.
DB_EDGEVIS_SDK void SetMaxDetectionWidth(double max_width)
Sets the maximum object width to detect.
DB_EDGEVIS_SDK void SetSensitivity(double sensitivity)
Sets the analytics detection sensitivity.
DB_EDGEVIS_SDK bool GetEnabled() const
Gets the enabled state of analytics on this input.
DB_EDGEVIS_SDK int32_t GetInput() const
Gets the input that this analytics configuration applies to.
DB_EDGEVIS_SDK void SetMinDetectionHeight(double min_height)
Sets the minimum object height to detect.
DB_EDGEVIS_SDK double GetSensitivity() const
Gets the analytics detection sensitivity.
DB_EDGEVIS_SDK AnalyticsConfigMode GetMode() const
Determine the analytics detection mode in use.
DB_EDGEVIS_SDK double GetMaxDetectionHeight() const
Gets the maximum object height to detect.
DB_EDGEVIS_SDK int32_t GetMinPresence() const
Determine the minimum time in secocds that an object must be detected before triggering an alarm.
DB_EDGEVIS_SDK bool GetFilterOOF() const
Determine if out-of-focus (OOF) filtering is enabled for analytics on this input.
DB_EDGEVIS_SDK void SetDetectStationary(const bool stationary)
Determine if stationary object (eg.
DB_EDGEVIS_SDK double GetMaxDetectionWidth() const
Gets the maximum object width to detect.
AnalyticsConfigMode
The possible modes for analytics to operate in.
Definition AnalyticsConfigModes.h:21
The EdgeVis Decoder SDK namespace.