DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

ParkNet.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) 2019-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 
45 #ifndef DW_PARKNET_H_
46 #define DW_PARKNET_H_
47 
48 #include <dw/core/Context.h>
49 #include <dw/dnn/DNN.h>
50 
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 
56 
59 typedef struct dwParkNetObject* dwParkNetHandle_t;
60 
62 typedef enum {
63  DW_PARKNET_MODEL_DEFAULT = 0, // Parking space + entry line prediction using HWISP.
69 
70 typedef struct dwParkNetParams
71 {
77  const void* networkCustomData;
79 
88  dwBlobSize* blobSize,
89  dwParkNetHandle_t obj);
90 
99  dwBlobSize* blobSize,
100  dwParkNetHandle_t obj);
101 
111 
122 dwStatus dwParkNet_initialize(dwParkNetHandle_t* ParkNetHandle,
123  const dwParkNetParams* ParkNetParams,
124  dwContextHandle_t ctx);
125 
132 dwStatus dwParkNet_reset(dwParkNetHandle_t obj);
133 
141 dwStatus dwParkNet_release(dwParkNetHandle_t obj);
142 
150 dwStatus dwParkNet_getDNNMetaData(dwDNNMetaData* metaData, dwParkNetHandle_t obj);
151 
152 #ifdef __cplusplus
153 }
154 #endif
155 
156 #endif // DW_PARKNET_H_
struct dwParkNetObject * dwParkNetHandle_t
Handle to a ParkNet object.
Definition: ParkNet.h:59
DW_API_PUBLIC dwStatus dwParkNet_getOutputBlobSize(dwBlobSize *blobSize, dwParkNetHandle_t obj)
Gets the size of the output blob.
dwPrecision
Definition: Types.h:140
NVIDIA DriveWorks API: Core Methods
dwParkNetModel
ParkNet network models to be loaded by ParkNet module.
Definition: ParkNet.h:62
const void * networkCustomData
Custom network data. Must be set if custom model is selected and available.
Definition: ParkNet.h:77
dwPrecision networkPrecision
ParkNet network precision. Default is DW_PRECISION_FP32.
Definition: ParkNet.h:75
NVIDIA DriveWorks API: DNN Methods
dwStatus
Status definition.
Definition: Status.h:178
DW_API_PUBLIC dwStatus dwParkNet_initDefaultParams(dwParkNetParams *params, dwContextHandle_t ctx)
Initializes ParkNet parameters with default values.
Holds blob dimensions.
Definition: Types.h:560
DW_API_PUBLIC dwStatus dwParkNet_release(dwParkNetHandle_t obj)
Releases the ParkNet module.
Loads custom ParkNet model if available.
Definition: ParkNet.h:67
DW_API_PUBLIC dwStatus dwParkNet_initialize(dwParkNetHandle_t *ParkNetHandle, const dwParkNetParams *ParkNetParams, dwContextHandle_t ctx)
Initializes ParkNet module.
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:80
Specifies TensorRT model header.
Definition: DNN.h:69
DW_API_PUBLIC dwStatus dwParkNet_getInputBlobSize(dwBlobSize *blobSize, dwParkNetHandle_t obj)
Gets the size of the input blob.
DW_API_PUBLIC dwStatus dwParkNet_reset(dwParkNetHandle_t obj)
Resets ParkNet.
dwParkNetModel networkModel
ParkNet network model. Default is DW_PARKNET_MODEL_DEFAULT.
Definition: ParkNet.h:73
DW_API_PUBLIC dwStatus dwParkNet_getDNNMetaData(dwDNNMetaData *metaData, dwParkNetHandle_t obj)
Returns the DNN metadata.
#define DW_API_PUBLIC
Definition: Exports.h:56