Cpp-Processing
Public Member Functions | List of all members
CelanturSDK::Anonymiser Class Reference

Applies blur to the given image based on the detection and processing config. More...

#include <CelanturSDKInterface.h>

Public Member Functions

 Anonymiser (std::filesystem::path license_path, celantur::PerTypeProcessingConfig config)
 
 Anonymiser (const Anonymiser &other)
 
Anonymiseroperator= (const Anonymiser &other)
 
 Anonymiser (Anonymiser &&other) noexcept
 
Anonymiseroperator= (Anonymiser &&other) noexcept
 
 ~Anonymiser ()=default
 
void anonymise (cv::Mat &mat, const celantur::CelanturDetection &det)
 anonymise the image detection using default configuration provided in constructor More...
 
void anonymise (cv::Mat &mat, const std::vector< celantur::CelanturDetection > &dets)
 Simple wrapper over single detection anonymiser to anonymise multiple image detections using default configuration provided in constructor. More...
 
void anonymise (cv::Mat &mat, const celantur::CelanturDetection &det, const celantur::PerTypeProcessingConfig &config)
 anonymise the image detection using provided custom configuration More...
 

Detailed Description

Applies blur to the given image based on the detection and processing config.

This class applies blur to the given image based on the detection and processing config. It is used internally by the Processor class if blurring is enabled, but it can also be used externally if needed (for example for custom post-processing or when used together with tracking)

Constructor & Destructor Documentation

◆ Anonymiser() [1/3]

Anonymiser::Anonymiser ( std::filesystem::path  license_path,
celantur::PerTypeProcessingConfig  config 
)

◆ Anonymiser() [2/3]

Anonymiser::Anonymiser ( const Anonymiser other)

◆ Anonymiser() [3/3]

Anonymiser::Anonymiser ( Anonymiser &&  other)
noexcept

◆ ~Anonymiser()

CelanturSDK::Anonymiser::~Anonymiser ( )
default

Member Function Documentation

◆ anonymise() [1/3]

void Anonymiser::anonymise ( cv::Mat &  mat,
const celantur::CelanturDetection det 
)

anonymise the image detection using default configuration provided in constructor

Parameters
matImage to anonymise
detDetection to anonymise

◆ anonymise() [2/3]

void Anonymiser::anonymise ( cv::Mat &  mat,
const celantur::CelanturDetection det,
const celantur::PerTypeProcessingConfig config 
)

anonymise the image detection using provided custom configuration

Parameters
matImage to anonymise
detDetection to anonymise
configCustom anonymisation configuration

◆ anonymise() [3/3]

void Anonymiser::anonymise ( cv::Mat &  mat,
const std::vector< celantur::CelanturDetection > &  dets 
)

Simple wrapper over single detection anonymiser to anonymise multiple image detections using default configuration provided in constructor.

Parameters
matImage to anonymise
detsVector of detections to anonymise

References anonymise().

◆ operator=() [1/2]

Anonymiser & Anonymiser::operator= ( Anonymiser &&  other)
noexcept

◆ operator=() [2/2]

Anonymiser & Anonymiser::operator= ( const Anonymiser other)