|
|
NVIDIA DriveOS Linux NSR SDK API Reference
|
7.0.3.0 Release
|
Go to the documentation of this file.
11 #ifndef PVA_ALGOS_OBJECT_DETECTOR
12 #define PVA_ALGOS_OBJECT_DETECTOR
16 struct ObjectDetectorContext;
138 #endif //PVA_ALGOS_OBJECT_DETECTOR
void * cupvaStream_t
Dummy definition for non PVA supported platforms.
uint32_t num_classes
Input number of classes.
uint32_t maxBbox
Maximum no of bounding box that can be detected.
uint32_t imageWidth
Input image width.
struct ObjectDetectorContext * pvaAlgosObjectDetectorContext_t
Structure that stores internal objects needed for Object Detector.
uint32_t * numBbox
Out: Number of detections.
Structure that holds I/O Buffers that change based on the frame inputs.
uint8_t * image
In: Input image pointer.
pvaAlgosError_t pvaAlgosObjectDetectorProcess(pvaAlgosObjectDetectorContext_t *ObjectDetectorContext, pvaAlgosObjectDetectorIOBuffer_t *ObjectDetectorBuffers, cupvaStream_t *instanceStream, int execTimeout)
Sets the I/O Buffers to the internal objects and runs the Object Detector Algorithm.
pvaAlgosError_t pvaAlgosObjectDetectorInit(pvaAlgosObjectDetectorContext_t *ObjectDetectorContext, pvaAlgosObjectDetectorConfig_t *ObjectDetectorParams)
Initializes the necessary values for the internal objects in pvaAlgosObjectDetectorContext_t object.
pvaAlgosObjectClass * class_names
Name of classes.
uint32_t linePitch
Input image line pitch.
pvaAlgosObjectClass
Structure that holds configuration parameters for a Object detector.
float conf_thresh
Confidence Threshold.
float iou_thresh
IOU Threshold.
uint32_t imageHeight
Input image height.
pvaAlgosError_t
Possible error codes returned by PVA Algos.
float * bboxesScores
Out: output bounding boxes for detected Objects x,y,w,h,confidence score,class.
pvaAlgosError_t pvaAlgosObjectDetectorDeInit(pvaAlgosObjectDetectorContext_t *ObjectDetectorContext)
Frees the internal objects and the ObjectDetectorContext object.
pvaAlgosError_t pvaAlgosObjectDetectorGetContext(pvaAlgosObjectDetectorContext_t *ObjectDetectorContext)
Initializes ObjectDetectorContext object and sends it back to the caller.