4 #include <opencv4/opencv2/core/types.hpp>
5 #include "CelanturDetection.h"
6 #include "CommonParameters.h"
47 License(std::filesystem::path license_path);
145 [[deprecated(
"Using this method does not allow for model-specific settings that are needed for OpenVINO and TensorRT plugins\n \
146 use celantur::InferenceEnginePluginSettings get_inference_settings(std::filesystem::path model_path instead\n \
147 To get better access to the new features for all inference plugins")]]
159 [[deprecated(
"Using this method does not allow for model-specific settings that are needed for OpenVINO and TensorRT plugins\n \
160 use celantur::InferenceEnginePluginSettings get_inference_settings(std::filesystem::path model_path instead\n \
161 To get better access to the new features for all inference plugins")]]
This class represents a loaded into memory license file;.
Definition: CelanturSDKInterface.h:44
License & operator=(const License &other)
Definition: CelanturSDKInterface.cpp:49
~License()
Definition: CelanturSDKInterface.cpp:69
void * _pimpl
Definition: CelanturSDKInterface.h:54
License(std::filesystem::path license_path)
Definition: CelanturSDKInterface.cpp:25
This class is used to compile the model for the inference engine plugin;.
Definition: CelanturSDKInterface.h:64
~ModelCompiler()
Definition: CelanturSDKInterface.cpp:264
ModelCompiler(std::filesystem::path license, ModelCompilerParams params)
Definition: CelanturSDKInterface.cpp:222
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:294
ModelCompiler & operator=(const ModelCompiler &other)
Definition: CelanturSDKInterface.cpp:242
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:273
This the main class of SDK is used to process images and obtain the results.
Definition: CelanturSDKInterface.h:106
Processor & operator=(const Processor &other)
Definition: CelanturSDKInterface.cpp:139
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:115
cv::Mat get_result()
get anonymised image that was processed by process() method
Definition: CelanturSDKInterface.cpp:105
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:99
void process(cv::Mat mat)
Enqueue the given image (mat) for processing; This function is non-blocking and returns immediately;.
Definition: CelanturSDKInterface.cpp:110
celantur::InferenceEnginePluginSettings get_inference_settings()
Get the inference engine plugin settings;.
Definition: CelanturSDKInterface.cpp:184
~Processor()
Definition: CelanturSDKInterface.cpp:162
void load_inference_model(celantur::InferenceEnginePluginSettings settings, AdditionalProcessorParams params=AdditionalProcessorParams())
Load the preloaded inference model with the given settings;.
Definition: CelanturSDKInterface.cpp:215
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:107
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:101
Definition: CelanturSDKInterface.h:13
Definition: CelanturDetection.h:6
This struct contains the parameters for the Processor class.
Definition: CelanturSDKInterface.h:24
int context_width
Definition: CelanturSDKInterface.h:25
int context_height
Definition: CelanturSDKInterface.h:26
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 parameters for the image processor. This structure contains various settings for co...
Definition: CommonParameters.h:134