NVIDIA DeepStream SDK API Reference

6.4 Release
nvdsinfer::InferPreprocessor Class Reference

Detailed Description

Provides pre-processing functionality like mean subtraction and normalization.

Definition at line 69 of file nvdsinfer_context_impl.h.

Public Member Functions

 InferPreprocessor (const NvDsInferNetworkInfo &info, NvDsInferFormat format, const NvDsInferBatchDimsLayerInfo &layerInfo, int id=0)
 
virtual ~InferPreprocessor ()=default
 
void setLoggingFunc (const NvDsInferLoggingFunc &func)
 
bool setScaleOffsets (float scale, const std::vector< float > &offsets={})
 
bool setMeanFile (const std::string &file)
 
bool setInputOrder (const NvDsInferTensorOrder order)
 
NvDsInferStatus allocateResource ()
 
NvDsInferStatus syncStream ()
 
NvDsInferStatus transform (NvDsInferContextBatchInput &batchInput, void *devBuf, CudaStream &mainStream, CudaEvent *waitingEvent)
 

Constructor & Destructor Documentation

◆ InferPreprocessor()

nvdsinfer::InferPreprocessor::InferPreprocessor ( const NvDsInferNetworkInfo info,
NvDsInferFormat  format,
const NvDsInferBatchDimsLayerInfo &  layerInfo,
int  id = 0 
)

◆ ~InferPreprocessor()

virtual nvdsinfer::InferPreprocessor::~InferPreprocessor ( )
virtualdefault

Member Function Documentation

◆ allocateResource()

NvDsInferStatus nvdsinfer::InferPreprocessor::allocateResource ( )

◆ setInputOrder()

bool nvdsinfer::InferPreprocessor::setInputOrder ( const NvDsInferTensorOrder  order)

◆ setLoggingFunc()

void nvdsinfer::InferPreprocessor::setLoggingFunc ( const NvDsInferLoggingFunc func)
inline

Definition at line 76 of file nvdsinfer_context_impl.h.

◆ setMeanFile()

bool nvdsinfer::InferPreprocessor::setMeanFile ( const std::string &  file)

◆ setScaleOffsets()

bool nvdsinfer::InferPreprocessor::setScaleOffsets ( float  scale,
const std::vector< float > &  offsets = {} 
)

◆ syncStream()

NvDsInferStatus nvdsinfer::InferPreprocessor::syncStream ( )

◆ transform()

NvDsInferStatus nvdsinfer::InferPreprocessor::transform ( NvDsInferContextBatchInput batchInput,
void *  devBuf,
CudaStream mainStream,
CudaEvent waitingEvent 
)

The documentation for this class was generated from the following file: