DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

OpenRoadNet.h
Go to the documentation of this file.
1 // This code contains NVIDIA Confidential Information and is disclosed
3 // under the Mutual Non-Disclosure Agreement.
4 //
5 // Notice
6 // ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
7 // NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
8 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
9 // MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
10 //
11 // NVIDIA Corporation assumes no responsibility for the consequences of use of such
12 // information or for any infringement of patents or other rights of third parties that may
13 // result from its use. No license is granted by implication or otherwise under any patent
14 // or patent rights of NVIDIA Corporation. No third party distribution is allowed unless
15 // expressly authorized by NVIDIA. Details are subject to change without notice.
16 // This code supersedes and replaces all information previously supplied.
17 // NVIDIA Corporation products are not authorized for use as critical
18 // components in life support devices or systems without express written approval of
19 // NVIDIA Corporation.
20 //
21 // Copyright (c) 2017-2019 NVIDIA Corporation. All rights reserved.
22 //
23 // NVIDIA Corporation and its licensors retain all intellectual property and proprietary
24 // rights in and to this software and related documentation and any modifications thereto.
25 // Any use, reproduction, disclosure or distribution of this software and related
26 // documentation without an express license agreement from NVIDIA Corporation is
27 // strictly prohibited.
28 //
30 
48 #ifndef DW_OPENROADNET_H_
49 #define DW_OPENROADNET_H_
50 
51 #include <dw/core/Context.h>
52 #include <dw/dnn/DNN.h>
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 
59 
62 typedef struct dwOpenRoadNetObject* dwOpenRoadNetHandle_t;
63 
65 typedef enum {
73 
75 typedef enum {
85 
87 typedef enum dwOpenRoadNetBatchSize {
93 
94 typedef struct dwOpenRoadNetParams
95 {
102  const void* networkCustomData;
104 
114 
128 dwStatus dwOpenRoadNet_initialize(dwOpenRoadNetHandle_t* openRoadNetHandle,
129  dwContextHandle_t ctx,
130  const dwOpenRoadNetParams* openRoadNetParams);
131 
140 dwStatus dwOpenRoadNet_reset(dwOpenRoadNetHandle_t obj);
141 
151 dwStatus dwOpenRoadNet_release(dwOpenRoadNetHandle_t obj);
152 
163 dwStatus dwOpenRoadNet_getInputBlobsize(dwBlobSize* inputBlobsize, dwOpenRoadNetHandle_t obj);
164 
176 dwStatus dwOpenRoadNet_getClassLabel(const char** classLabel, uint32_t classIdx, dwOpenRoadNetHandle_t obj);
177 
188 dwStatus dwOpenRoadNet_getDNNMetaData(dwDNNMetaData* metaData, dwOpenRoadNetHandle_t obj);
189 
190 #ifdef __cplusplus
191 }
192 #endif
193 
194 #endif // DW_OPENROADNET_H_
OpenRoadNet network is loaded with batch size = 2 if available.
Definition: OpenRoadNet.h:89
struct dwOpenRoadNetObject * dwOpenRoadNetHandle_t
Handle to a OpenRoadNet object.
Definition: OpenRoadNet.h:62
OpenRoadNet network is loaded with batch size = 6 if available.
Definition: OpenRoadNet.h:91
dwOpenRoadNetModel
OpenRoadNet network models to be loaded by OpenRoadNet module.
Definition: OpenRoadNet.h:75
dwOpenRoadNetModel networkModel
OpenRoadNet network model. Default is DW_OPENROADNET_MODEL_FRONT.
Definition: OpenRoadNet.h:98
dwPrecision
Definition: Types.h:140
DW_API_PUBLIC dwStatus dwOpenRoadNet_getDNNMetaData(dwDNNMetaData *metaData, dwOpenRoadNetHandle_t obj)
Returns the DNN metadata.
boundary with vehicle
Definition: OpenRoadNet.h:68
NVIDIA DriveWorks API: Core Methods
undefined boundary
Definition: OpenRoadNet.h:70
DW_API_PUBLIC dwStatus dwOpenRoadNet_getInputBlobsize(dwBlobSize *inputBlobsize, dwOpenRoadNetHandle_t obj)
Returns input blob size that OpenRoadNet expects.
DW_API_PUBLIC dwStatus dwOpenRoadNet_initialize(dwOpenRoadNetHandle_t *openRoadNetHandle, dwContextHandle_t ctx, const dwOpenRoadNetParams *openRoadNetParams)
Initializes OpenRoadNet module.
NVIDIA DriveWorks API: DNN Methods
OpenRoadNet model that performs best on side camera.
Definition: OpenRoadNet.h:79
dwStatus
Status definition.
Definition: Status.h:178
dwFreespaceBoundaryType
Category of free space boundary.
Definition: OpenRoadNet.h:65
OpenRoadNet network is loaded with batch size = 4 if available.
Definition: OpenRoadNet.h:90
Holds blob dimensions.
Definition: Types.h:560
boundary with curb
Definition: OpenRoadNet.h:67
OpenRoadNet network is loaded with batch size = 1 if available.
Definition: OpenRoadNet.h:88
DW_API_PUBLIC dwStatus dwOpenRoadNet_getClassLabel(const char **classLabel, uint32_t classIdx, dwOpenRoadNetHandle_t obj)
Returns the class label for a given class index.
DW_API_PUBLIC dwStatus dwOpenRoadNet_initDefaultParams(dwOpenRoadNetParams *params, dwContextHandle_t ctx)
Initializes OpenRoadNet parameters with default values.
dwOpenRoadNetBatchSize batchSize
Definition: OpenRoadNet.h:96
DW_API_PUBLIC dwStatus dwOpenRoadNet_release(dwOpenRoadNetHandle_t obj)
Releases the OpenRoadNet module.
dwPrecision networkPrecision
OpenRoadNet network precision. Default is DW_PRECISION_FP32.
Definition: OpenRoadNet.h:100
Loads custom OpenRoadNet model if available.
Definition: OpenRoadNet.h:83
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:80
Specifies TensorRT model header.
Definition: DNN.h:69
OpenRoadNet model that performs best on front camera.
Definition: OpenRoadNet.h:77
DW_API_PUBLIC dwStatus dwOpenRoadNet_reset(dwOpenRoadNetHandle_t obj)
Resets OpenRoadNet.
boundary with person
Definition: OpenRoadNet.h:69
#define DW_API_PUBLIC
Definition: Exports.h:56
dwOpenRoadNetBatchSize
OpenRoadNet network batch size options.
Definition: OpenRoadNet.h:87
const void * networkCustomData
Custom network data. Must be set if custom model is selected and available.
Definition: OpenRoadNet.h:102
boundary with other objects
Definition: OpenRoadNet.h:66