NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
pva_algos_object_detector.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA CORPORATION and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
9  */
10 
11 #ifndef PVA_ALGOS_OBJECT_DETECTOR
12 #define PVA_ALGOS_OBJECT_DETECTOR
13 
14 #include <pva_algos_common.h>
15 
16 struct ObjectDetectorContext;
17 
23 typedef enum pvaAlgosObjectClass
24 {
28 
29 typedef struct
30 {
32  uint32_t imageWidth;
34  uint32_t imageHeight;
36  uint32_t linePitch;
38  uint32_t maxBbox;
40  uint32_t num_classes;
44  float conf_thresh;
46  float iou_thresh;
48 
55 typedef struct
56 {
58  uint8_t *image;
60  float *bboxesScores;
62  uint32_t *numBbox;
64 
75 typedef struct ObjectDetectorContext *pvaAlgosObjectDetectorContext_t;
88 
103  pvaAlgosObjectDetectorConfig_t *ObjectDetectorParams);
104 
122  pvaAlgosObjectDetectorIOBuffer_t *ObjectDetectorBuffers,
123  cupvaStream_t *instanceStream, int execTimeout);
124 
136 
138 #endif //PVA_ALGOS_OBJECT_DETECTOR
cupvaStream_t
void * cupvaStream_t
Dummy definition for non PVA supported platforms.
Definition: PVA.h:29
pvaAlgosObjectDetectorConfig_t::num_classes
uint32_t num_classes
Input number of classes.
Definition: pva_algos_object_detector.h:40
pvaAlgosObjectDetectorConfig_t
Definition: pva_algos_object_detector.h:29
pvaAlgosObjectDetectorConfig_t::maxBbox
uint32_t maxBbox
Maximum no of bounding box that can be detected.
Definition: pva_algos_object_detector.h:38
pvaAlgosObjectDetectorConfig_t::imageWidth
uint32_t imageWidth
Input image width.
Definition: pva_algos_object_detector.h:32
pvaAlgosObjectDetectorContext_t
struct ObjectDetectorContext * pvaAlgosObjectDetectorContext_t
Structure that stores internal objects needed for Object Detector.
Definition: pva_algos_object_detector.h:75
pvaAlgosObjectDetectorIOBuffer_t::numBbox
uint32_t * numBbox
Out: Number of detections.
Definition: pva_algos_object_detector.h:62
pvaAlgosObjectDetectorIOBuffer_t
Structure that holds I/O Buffers that change based on the frame inputs.
Definition: pva_algos_object_detector.h:55
pvaAlgosObjectDetectorIOBuffer_t::image
uint8_t * image
In: Input image pointer.
Definition: pva_algos_object_detector.h:58
pvaAlgosObjectDetectorProcess
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.
PERSON
@ PERSON
Definition: pva_algos_object_detector.h:25
pvaAlgosObjectDetectorInit
pvaAlgosError_t pvaAlgosObjectDetectorInit(pvaAlgosObjectDetectorContext_t *ObjectDetectorContext, pvaAlgosObjectDetectorConfig_t *ObjectDetectorParams)
Initializes the necessary values for the internal objects in pvaAlgosObjectDetectorContext_t object.
pvaAlgosObjectDetectorConfig_t::class_names
pvaAlgosObjectClass * class_names
Name of classes.
Definition: pva_algos_object_detector.h:42
pva_algos_common.h
pvaAlgosObjectDetectorConfig_t::linePitch
uint32_t linePitch
Input image line pitch.
Definition: pva_algos_object_detector.h:36
pvaAlgosObjectClass
pvaAlgosObjectClass
Structure that holds configuration parameters for a Object detector.
Definition: pva_algos_object_detector.h:23
pvaAlgosObjectDetectorConfig_t::conf_thresh
float conf_thresh
Confidence Threshold.
Definition: pva_algos_object_detector.h:44
pvaAlgosObjectDetectorConfig_t::iou_thresh
float iou_thresh
IOU Threshold.
Definition: pva_algos_object_detector.h:46
pvaAlgosObjectDetectorConfig_t::imageHeight
uint32_t imageHeight
Input image height.
Definition: pva_algos_object_detector.h:34
pvaAlgosError_t
pvaAlgosError_t
Possible error codes returned by PVA Algos.
Definition: pva_algos_common.h:25
OBJECT_CLASS_MAX
@ OBJECT_CLASS_MAX
Definition: pva_algos_object_detector.h:26
pvaAlgosObjectDetectorIOBuffer_t::bboxesScores
float * bboxesScores
Out: output bounding boxes for detected Objects x,y,w,h,confidence score,class.
Definition: pva_algos_object_detector.h:60
pvaAlgosObjectDetectorDeInit
pvaAlgosError_t pvaAlgosObjectDetectorDeInit(pvaAlgosObjectDetectorContext_t *ObjectDetectorContext)
Frees the internal objects and the ObjectDetectorContext object.
pvaAlgosObjectDetectorGetContext
pvaAlgosError_t pvaAlgosObjectDetectorGetContext(pvaAlgosObjectDetectorContext_t *ObjectDetectorContext)
Initializes ObjectDetectorContext object and sends it back to the caller.