4 #include <opencv4/opencv2/core/types.hpp>
5 #include "CelanturDetection.h"
6 #include "CommonParameters.h"
47 License(std::filesystem::path license_path);
65 std::filesystem::path license_path,
86 void anonymise(cv::Mat &mat,
const std::vector<celantur::CelanturDetection>& dets);
127 std::filesystem::path license_path,
128 float min_iou_threshold = 0.3f,
129 float high_score_threshold = 0.7f
150 void update(
const std::vector<celantur::CelanturDetection>& detections);
276 [[deprecated(
"Using this method does not allow for model-specific settings that are needed for OpenVINO and TensorRT plugins\n \
277 use celantur::InferenceEnginePluginSettings get_inference_settings(std::filesystem::path model_path instead\n \
278 To get better access to the new features for all inference plugins")]]
290 [[deprecated(
"Using this method does not allow for model-specific settings that are needed for OpenVINO and TensorRT plugins\n \
291 use celantur::InferenceEnginePluginSettings get_inference_settings(std::filesystem::path model_path instead\n \
292 To get better access to the new features for all inference plugins")]]
Applies blur to the given image based on the detection and processing config.
Definition: CelanturSDKInterface.h:62
Anonymiser(std::filesystem::path license_path, celantur::PerTypeProcessingConfig config)
Definition: CelanturSDKInterface.cpp:107
Anonymiser & operator=(const Anonymiser &other)
Definition: CelanturSDKInterface.cpp:124
void anonymise(cv::Mat &mat, const celantur::CelanturDetection &det)
anonymise the image detection using default configuration provided in constructor
Definition: CelanturSDKInterface.cpp:151
This class represents a loaded into memory license file;.
Definition: CelanturSDKInterface.h:44
License & operator=(const License &other)
Definition: CelanturSDKInterface.cpp:56
~License()
Definition: CelanturSDKInterface.cpp:76
void * _pimpl
Definition: CelanturSDKInterface.h:54
License(std::filesystem::path license_path)
Definition: CelanturSDKInterface.cpp:32
This class is used to compile the model for the inference engine plugin;.
Definition: CelanturSDKInterface.h:195
~ModelCompiler()
Definition: CelanturSDKInterface.cpp:409
ModelCompiler(std::filesystem::path license, ModelCompilerParams params)
Definition: CelanturSDKInterface.cpp:367
void compile_model(celantur::InferenceEnginePluginCompileSettings settings, std::filesystem::path output_path)
Compile the preloaded model with the given settings and save it to the given output path;.
Definition: CelanturSDKInterface.cpp:440
ModelCompiler & operator=(const ModelCompiler &other)
Definition: CelanturSDKInterface.cpp:387
celantur::InferenceEnginePluginCompileSettings preload_model(std::filesystem::path model_path)
Preload the model from the given path and return the settings that are needed to compile the model;.
Definition: CelanturSDKInterface.cpp:418
This the main class of SDK is used to process images and obtain the results.
Definition: CelanturSDKInterface.h:237
Processor & operator=(const Processor &other)
Definition: CelanturSDKInterface.cpp:284
Processor(celantur::ProcessorParams params, std::filesystem::path license_path)
Construct the processor object with the given Processor parameters and a path to the license file;.
Definition: CelanturSDKInterface.cpp:260
cv::Mat get_result()
get anonymised image that was processed by process() method
Definition: CelanturSDKInterface.cpp:250
std::vector< celantur::CelanturDetection > get_detections()
get the detections that were found in the last image that was processed; Note that this is necessary ...
Definition: CelanturSDKInterface.cpp:244
void process(cv::Mat mat)
Enqueue the given image (mat) for processing; This function is non-blocking and returns immediately;.
Definition: CelanturSDKInterface.cpp:255
celantur::InferenceEnginePluginSettings get_inference_settings()
Get the inference engine plugin settings;.
Definition: CelanturSDKInterface.cpp:329
~Processor()
Definition: CelanturSDKInterface.cpp:307
void load_inference_model(celantur::InferenceEnginePluginSettings settings, AdditionalProcessorParams params=AdditionalProcessorParams())
Load the preloaded inference model with the given settings;.
Definition: CelanturSDKInterface.cpp:360
Manages object persistence and state across sequential video frames. The Tracker takes raw detections...
Definition: CelanturSDKInterface.h:109
~Tracker()
Definition: CelanturSDKInterface.cpp:199
Tracker(std::filesystem::path license_path, float min_iou_threshold=0.3f, float high_score_threshold=0.7f)
Constructs a new Tracker instance.
Definition: CelanturSDKInterface.cpp:165
void update(const std::vector< celantur::CelanturDetection > &detections)
Processes a new frame of detections.
Definition: CelanturSDKInterface.cpp:204
std::vector< celantur::CelanturDetection > get_lost_detections() const
Retrieves detections associated with tracks currently in the 'Lost' state.
Definition: CelanturSDKInterface.cpp:209
Tracker(const Tracker &other)=delete
Tracker & operator=(const Tracker &other)=delete
void init_logging()
Initializes the internal logging system for the Tracker module.
Definition: CelanturSDKInterface.cpp:238
void reset()
Resets the tracker state.
Definition: CelanturSDKInterface.cpp:233
std::map< std::string, std::any > InferenceEnginePluginCompileSettings
The settings for compiling the model for the inference engine. The settings are passed as a map of ke...
Definition: CompilationParams.h:114
std::map< std::string, std::any > InferenceEnginePluginSettings
The settings for the inference engine used during runtime. The settings are passed as a map of key-va...
Definition: CompilationParams.h:108
std::map< CelanturClassId, DetectionProcessingConfig > PerTypeProcessingConfig
Configuration map for processing different detection types. This map associates each CelanturClassId ...
Definition: CommonParameters.h:129
Definition: CelanturSDKInterface.h:12
Definition: CelanturDetection.h:6
This struct contains the parameters for the Processor class.
Definition: CelanturSDKInterface.h:23
int context_width
Definition: CelanturSDKInterface.h:24
int context_height
Definition: CelanturSDKInterface.h:25
This struct contains the parameters for the ModelCompiler class.
Definition: CelanturSDKInterface.h:33
std::filesystem::path inference_plugin
Definition: CelanturSDKInterface.h:34
Structure to hold information about a detection made by the Celantur SDK.
Definition: CelanturDetection.h:18
Structure to hold parameters for the image processor. This structure contains various settings for co...
Definition: CommonParameters.h:287