DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

LightSourceNet.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) 2020 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_LIGHTSOURCENET_H_
49 #define DW_LIGHTSOURCENET_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 dwLightSourceNetObject* dwLightSourceNetHandle_t;
63 
65 typedef enum {
74 
75 typedef struct dwLightSourceNetParams
76 {
82  const void* networkCustomData;
84 
86 #define DW_LIGHTSOURCENET_DNN_OUTPUT_WIDTH 240U
87 #define DW_LIGHTSOURCENET_DNN_OUTPUT_HEIGHT 152U
88 
96 
105 dwStatus dwLightSourceNet_initialize(dwLightSourceNetHandle_t* lspNetHandle,
106  const dwLightSourceNetParams* lspNetParams,
107  dwContextHandle_t ctx);
108 
115 dwStatus dwLightSourceNet_reset(dwLightSourceNetHandle_t obj);
116 
124 dwStatus dwLightSourceNet_release(dwLightSourceNetHandle_t obj);
125 
133 dwStatus dwLightSourceNet_getInputBlobsize(dwBlobSize* inputBlobsize, dwLightSourceNetHandle_t obj);
134 
144 dwStatus dwLightSourceNet_getOutputBlobSize(dwBlobSize* outputBlobsize, dwLightSourceNetHandle_t obj);
145 
153 dwStatus dwLightSourceNet_getDNNMetaData(dwDNNMetaData* metaData, dwLightSourceNetHandle_t obj);
154 
155 #ifdef __cplusplus
156 }
157 #endif
158 
159 #endif // DW_LIGHTSOURCENET_H_
LightSourceNet model that performs detection on front camera.
DW_API_PUBLIC dwStatus dwLightSourceNet_reset(dwLightSourceNetHandle_t obj)
Resets LightSourceNet.
DW_API_PUBLIC dwStatus dwLightSourceNet_release(dwLightSourceNetHandle_t obj)
Releases the LightSourceNet module.
struct dwLightSourceNetObject * dwLightSourceNetHandle_t
Handle to a LightSourceNet object.
dwPrecision
Definition: Types.h:140
NVIDIA DriveWorks API: Core Methods
dwLightSourceNetModel
LightSourceNet network models to be loaded by LightSourceNet module.
NVIDIA DriveWorks API: DNN Methods
dwLightSourceNetModel networkModel
LightSourceNet network model. Default is DW_LIGHTSOURCENET_MODEL_FRONT_LATEST.
dwStatus
Status definition.
Definition: Status.h:178
DW_API_PUBLIC dwStatus dwLightSourceNet_getDNNMetaData(dwDNNMetaData *metaData, dwLightSourceNetHandle_t obj)
Returns the DNN metadata.
Holds blob dimensions.
Definition: Types.h:560
dwPrecision networkPrecision
LightSourceNet network precision. Default is DW_PRECISION_FP32.
const void * networkCustomData
Custom network data. Must be set if custom model is selected and available.
DW_API_PUBLIC dwStatus dwLightSourceNet_getInputBlobsize(dwBlobSize *inputBlobsize, dwLightSourceNetHandle_t obj)
Returns input blob size that LightSourceNet expects.
DW_API_PUBLIC dwStatus dwLightSourceNet_getOutputBlobSize(dwBlobSize *outputBlobsize, dwLightSourceNetHandle_t obj)
Returns output blob size of first (only) LightSourceNet output.
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:80
Specifies TensorRT model header.
Definition: DNN.h:69
DW_API_PUBLIC dwStatus dwLightSourceNet_initialize(dwLightSourceNetHandle_t *lspNetHandle, const dwLightSourceNetParams *lspNetParams, dwContextHandle_t ctx)
Initializes LightSourceNet module.
Loads custom LightSourceNet model if available.
#define DW_API_PUBLIC
Definition: Exports.h:56
DW_API_PUBLIC dwStatus dwLightSourceNet_initDefaultParams(dwLightSourceNetParams *params)
Initializes LightSourceNet parameters with default values.