4 #include <opencv4/opencv2/core.hpp>
7 #include "CompilationParams.h"
8 #include "CelanturExceptions.h"
152 cv::Rect_<float>
roi{0.0f, 0.0f, 1.0f, 1.0f};
215 std::variant<ImageMetadata, FrameMetadata>
metadata;
const PerTypeProcessingConfig DEFAULT_PER_TYPE_PROCESSING_CONFIG({ {CelanturClassId::LicensePlate, DetectionProcessingConfig{ BlurType::BBox_Rectangle, 0.3f, 0.0f, 1.0f, true }}, {CelanturClassId::Person, {BlurType::None}}, {CelanturClassId::Face, { BlurType::BBox_Oval, 0.3f, 0.0f, 0.2f, true }}, {CelanturClassId::Vehicle, {BlurType::None}}, })
Default per-type processing configuration.
std::ostream & operator<<(std::ostream &os, const celantur::BlurType &blur_type)
Definition: CommonParameters.cpp:6
std::istream & operator>>(std::istream &os, celantur::BlurType &blur_type)
Definition: CommonParameters.cpp:24
Rotation
Enum to represent image rotation states. is used in celantur::FrameMetadata to describe the rotation ...
Definition: CommonParameters.h:183
@ Rotated90CounterClockwise
BlurType
Enum to describe the blur in celantur::DetectionProcessingConfig.
Definition: CommonParameters.h:27
std::map< CelanturClassId, DetectionProcessingConfig > PerTypeProcessingConfig
Configuration map for processing different detection types. This map associates each CelanturClassId ...
Definition: CommonParameters.h:101
CelanturClassId
Class ids enum that is used in celantur::CelanturDetection and celantur::DetectionProcessingConfig to...
Definition: CommonParameters.h:39
Definition: CelanturDetection.h:6
Configuration that describes processing of a particular class This structure contains the type of blu...
Definition: CommonParameters.h:52
bool beautify_blur
If true, applies additional beautification to the blur effect, making it visually more appealing....
Definition: CommonParameters.h:92
float gradient_stop
Responsible for the point where the blur is absolute. Value of 0.0 guarantees that the blur will be a...
Definition: CommonParameters.h:74
float kernel_size
Responsible for strength of the blur applied. Values between 0.0 and 1.0 are considered relative to t...
Definition: CommonParameters.h:84
BlurType blur_type
celantur::BlurType of blur to be applied to the detection.
Definition: CommonParameters.h:57
float gradient_start
Responsible for the starting point of the gradient blur. Larger values mean that the blur starts furh...
Definition: CommonParameters.h:64
Container for an image and its associated metadata. for now, just a placeholder.
Definition: CommonParameters.h:213
std::variant< ImageMetadata, FrameMetadata > metadata
Definition: CommonParameters.h:215
cv::Mat mat
Definition: CommonParameters.h:214
Structure to hold model threshold values for different object classes. This structure contains thresh...
Definition: CompilationParams.h:86
Structure to hold parameters for the image processor. This structure contains various settings for co...
Definition: CommonParameters.h:134
bool swapRB
Swap Red and Blue channels. Useful when input data is in BGR format (when its loaded with OpenCV for ...
Definition: CommonParameters.h:150
int queue_size
Specifies the maximum size of the queue.
Definition: CommonParameters.h:169
float ol_y
Overlap of tiles in vertical direction as a fraction of tile height.
Definition: CommonParameters.h:148
int n_tiles_x
Number of tiles in horizontal direction.
Definition: CommonParameters.h:142
cv::Rect_< float > roi
Region of interest. Measured from 0 to 1 The region of interest is a rectangle that defines the area ...
Definition: CommonParameters.h:152
std::filesystem::path inference_plugin
Definition: CommonParameters.h:140
ModelThresholds thresholds
The thresholds for the model.
Definition: CommonParameters.h:154
float ol_x
Overlap of tiles in horizontal direction as a fraction of tile width.
Definition: CommonParameters.h:146
float nms_threshold
The NMS threshold (Non-Maximum Suppression threshold) is used during the process to eliminate redunda...
Definition: CommonParameters.h:159
PerTypeProcessingConfig per_type_processing_config
Fine-tuning the processing of detections based on their class.
Definition: CommonParameters.h:173
int n_tiles_y
Number of tiles in vertical direction.
Definition: CommonParameters.h:144