NVIDIA DeepStream SDK API Reference

6.4 Release
dsexample_lib.h
Go to the documentation of this file.
1 
23 #ifndef __DSEXAMPLE_LIB__
24 #define __DSEXAMPLE_LIB__
25 
26 #define MAX_LABEL_SIZE 128
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 typedef struct DsExampleCtx DsExampleCtx;
32 
33 // Init parameters structure as input, required for instantiating dsexample_lib
34 typedef struct
35 {
36  // Width at which frame/object will be scaled
38  // height at which frame/object will be scaled
40  // Flag to indicate whether operating on crops of full frame
41  int fullFrame;
43 
44 // Detected/Labelled object structure, stores bounding box info along with label
45 typedef struct
46 {
47  float left;
48  float top;
49  float width;
50  float height;
51  char label[MAX_LABEL_SIZE];
53 
54 // Output data returned after processing
55 typedef struct
56 {
58  DsExampleObject object[4];
60 
61 // Initialize library context
63 
64 // Dequeue processed output
65 DsExampleOutput *DsExampleProcess (DsExampleCtx *ctx, unsigned char *data);
66 
67 // Deinitialize library context
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif
DsExampleCtxInit
DsExampleCtx * DsExampleCtxInit(DsExampleInitParams *init_params)
DsExampleCtx
struct DsExampleCtx DsExampleCtx
Definition: dsexample_lib.h:31
DsExampleInitParams::fullFrame
int fullFrame
Definition: dsexample_lib.h:41
DsExampleProcess
DsExampleOutput * DsExampleProcess(DsExampleCtx *ctx, unsigned char *data)
DsExampleObject::left
float left
Definition: dsexample_lib.h:47
DsExampleObject::top
float top
Definition: dsexample_lib.h:48
DsExampleObject
Definition: dsexample_lib.h:45
DsExampleInitParams::processingHeight
int processingHeight
Definition: dsexample_lib.h:39
DsExampleOutput
Definition: dsexample_lib.h:55
DsExampleOutput::numObjects
int numObjects
Definition: dsexample_lib.h:57
MAX_LABEL_SIZE
#define MAX_LABEL_SIZE
Copyright (c) 2017-2020, NVIDIA CORPORATION.
Definition: dsexample_lib.h:26
DsExampleInitParams
Definition: dsexample_lib.h:34
DsExampleObject::height
float height
Definition: dsexample_lib.h:50
DsExampleCtxDeinit
void DsExampleCtxDeinit(DsExampleCtx *ctx)
DsExampleObject::width
float width
Definition: dsexample_lib.h:49
DsExampleInitParams::processingWidth
int processingWidth
Definition: dsexample_lib.h:37