NVIDIA DeepStream SDK API Reference

8.0 Release
nvdsinfer::InferPreprocessor Class Reference

Detailed Description

Provides pre-processing functionality like mean subtraction and normalization.

Definition at line 69 of file sources/libs/nvdsinfer/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)
 
 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() [1/2]

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

◆ ~InferPreprocessor() [1/2]

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

◆ InferPreprocessor() [2/2]

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

◆ ~InferPreprocessor() [2/2]

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

Member Function Documentation

◆ allocateResource() [1/2]

NvDsInferStatus nvdsinfer::InferPreprocessor::allocateResource ( )

◆ allocateResource() [2/2]

NvDsInferStatus nvdsinfer::InferPreprocessor::allocateResource ( )

◆ setInputOrder() [1/2]

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

◆ setInputOrder() [2/2]

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

◆ setLoggingFunc() [1/2]

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

◆ setLoggingFunc() [2/2]

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

◆ setMeanFile() [1/2]

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

◆ setMeanFile() [2/2]

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

◆ setScaleOffsets() [1/2]

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

◆ setScaleOffsets() [2/2]

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

◆ syncStream() [1/2]

NvDsInferStatus nvdsinfer::InferPreprocessor::syncStream ( )

◆ syncStream() [2/2]

NvDsInferStatus nvdsinfer::InferPreprocessor::syncStream ( )

◆ transform() [1/2]

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

◆ transform() [2/2]

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

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