4 #include <opencv4/opencv2/core.hpp>
7 #include "CompilationParams.h"
8 #include "CelanturExceptions.h"
305 cv::Rect_<float>
roi{0.0f, 0.0f, 1.0f, 1.0f};
368 std::variant<ImageMetadata, FrameMetadata>
metadata;
const PerTypeProcessingConfig FACE_LICENSE_PLATE_PROCESSING_CONFIG
Default per-type processing configuration.
Definition: CommonParameters.h:134
std::istream & operator>>(std::istream &os, celantur::BlurType &blur_type)
Definition: CommonParameters.cpp:23
std::ostream & operator<<(std::ostream &os, const celantur::BlurType &blur_type)
Definition: CommonParameters.cpp:5
const PerTypeProcessingConfig DEFAULT_PER_TYPE_PROCESSING_CONFIG
Definition: CommonParameters.h:186
const PerTypeProcessingConfig PERSON_VEHICLE_PROCESSING_CONFIG
Definition: CommonParameters.h:187
Rotation
Enum to represent image rotation states. is used in celantur::FrameMetadata to describe the rotation ...
Definition: CommonParameters.h:336
const PerTypeProcessingConfig DETECT_ONLY_CONFIG
Definition: CommonParameters.h:234
@ Rotated90CounterClockwise
DetectionType
Enum to describe the detection type in celantur::DetectionProcessingConfig.
Definition: CommonParameters.h:35
BlurType
Enum to describe the blur in celantur::DetectionProcessingConfig.
Definition: CommonParameters.h:47
std::map< CelanturClassId, DetectionProcessingConfig > PerTypeProcessingConfig
Configuration map for processing different detection types. This map associates each CelanturClassId ...
Definition: CommonParameters.h:129
CelanturClassId
Class ids enum that is used in celantur::CelanturDetection and celantur::DetectionProcessingConfig to...
Definition: CommonParameters.h:59
Definition: CelanturDetection.h:6
Configuration that describes processing of a particular class This structure contains the type of blu...
Definition: CommonParameters.h:73
bool beautify_blur
If true, applies additional beautification to the blur effect, making it visually more appealing....
Definition: CommonParameters.h:114
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:96
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:106
BlurType blur_type
celantur::BlurType of blur to be applied to the detection.
Definition: CommonParameters.h:78
DetectionType detection_type
celantur::DetectionType of blur to be applied to the detection.
Definition: CommonParameters.h:120
float gradient_start
Responsible for the starting point of the gradient blur. Larger values mean that the blur starts furh...
Definition: CommonParameters.h:85
Container for an image and its associated metadata. for now, just a placeholder.
Definition: CommonParameters.h:366
std::variant< ImageMetadata, FrameMetadata > metadata
Definition: CommonParameters.h:368
cv::Mat mat
Definition: CommonParameters.h:367
Structure to hold model threshold values for different object classes. This structure contains thresh...
Definition: CompilationParams.h:93
Structure to hold parameters for the image processor. This structure contains various settings for co...
Definition: CommonParameters.h:287
bool swapRB
Swap Red and Blue channels. Useful when input data is in BGR format (when its loaded with OpenCV for ...
Definition: CommonParameters.h:303
int queue_size
Specifies the maximum size of the queue.
Definition: CommonParameters.h:322
float ol_y
Overlap of tiles in vertical direction as a fraction of image height.
Definition: CommonParameters.h:301
int n_tiles_x
Number of tiles in horizontal direction.
Definition: CommonParameters.h:295
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:305
std::filesystem::path inference_plugin
Definition: CommonParameters.h:293
ModelThresholds thresholds
The thresholds for the model.
Definition: CommonParameters.h:307
float ol_x
Overlap of tiles in horizontal direction as a fraction of image width.
Definition: CommonParameters.h:299
float nms_threshold
The NMS threshold (Non-Maximum Suppression threshold) is used during the process to eliminate redunda...
Definition: CommonParameters.h:312
PerTypeProcessingConfig per_type_processing_config
Fine-tuning the processing of detections based on their class.
Definition: CommonParameters.h:326
int n_tiles_y
Number of tiles in vertical direction.
Definition: CommonParameters.h:297