Base post-processor class.
Definition at line 162 of file infer_iprocess.h.
Public Types | |
using | PostprocessDone = std::function< void(NvDsInferStatus, SharedBatchArray)> |
Public Member Functions | |
BasePostprocessor (InferPostprocessType type, int uid) | |
Constructor, save process type and ID. More... | |
~BasePostprocessor () override=default | |
Destructor default. More... | |
NvDsInferStatus | postCudaProcess (SharedBatchArray inBuf, SharedCuStream mainStream, PostprocessDone done) override |
Acquire an output buffer array and call CUDA post processing steps. More... | |
NvDsInferStatus | postHostProcess (SharedBatchArray inBuf, SharedCuStream mainStream, PostprocessDone done) override |
Acquire an output buffer array and call host side processing steps. More... | |
virtual NvDsInferStatus | allocateResource (const std::vector< int > &devIds)=0 |
Allocate resource like output buffer pool. More... | |
|
inherited |
Definition at line 62 of file infer_iprocess.h.
|
inline |
Constructor, save process type and ID.
Definition at line 167 of file infer_iprocess.h.
|
overridedefault |
Destructor default.
|
pure virtual |
Allocate resource like output buffer pool.
[in] | devIds | List of device IDs. |
Implemented in nvdsinferserver::SegmentPostprocessor, nvdsinferserver::ClassifyPostprocessor, nvdsinferserver::DetectPostprocessor, and nvdsinferserver::Postprocessor.
|
inline |
Definition at line 180 of file infer_iprocess.h.
|
inlineoverridevirtual |
Acquire an output buffer array and call CUDA post processing steps.
[in] | inBuf | Pointer to the input batch array. |
[in] | mainStream | The main CUDA stream to synchronize with. |
[in] | done | Callback function to be executed. |
Implements nvdsinferserver::IPostprocessor.
Definition at line 190 of file infer_iprocess.h.
|
inlineoverridevirtual |
Acquire an output buffer array and call host side processing steps.
[in] | inBuf | Pointer to the input batch array. |
[in] | mainStream | The main CUDA stream to synchronize with. |
[in] | done | Callback function to be executed. |
Implements nvdsinferserver::IPostprocessor.
Definition at line 204 of file infer_iprocess.h.
|
inline |
Definition at line 178 of file infer_iprocess.h.
|
inline |
Definition at line 179 of file infer_iprocess.h.