DriveWorks SDK Reference
3.0.4260 Release
For Test and Development only

LightSourceNet Interface

Detailed Description

Defines LightSourceNet module, i.e., LightSourceNet configuration and loading.

Note
SW Release Applicability: These APIs are available in NVIDIA DRIVE Software releases.

Data Structures

struct  dwLightSourceNetParams
 

Typedefs

typedef struct dwLightSourceNetObject * dwLightSourceNetHandle_t
 Handle to a LightSourceNet object. More...
 

Enumerations

enum  dwLightSourceNetModel {
  DW_LIGHTSOURCENET_3CLASS_V0 = 0,
  DW_LIGHTSOURCENET_3CLASS_HWISP_V0 = 1,
  DW_LIGHTSOURCENET_NUM_MODELS,
  DW_LIGHTSOURCENET_MODEL_CUSTOM = -1
}
 LightSourceNet network models to be loaded by LightSourceNet module. More...
 

Functions

DW_API_PUBLIC dwStatus dwLightSourceNet_getDNNMetaData (dwDNNMetaData *metaData, dwLightSourceNetHandle_t obj)
 Returns the DNN metadata. More...
 
DW_API_PUBLIC dwStatus dwLightSourceNet_getInputBlobsize (dwBlobSize *inputBlobsize, dwLightSourceNetHandle_t obj)
 Returns input blob size that LightSourceNet expects. More...
 
DW_API_PUBLIC dwStatus dwLightSourceNet_getOutputBlobSize (dwBlobSize *outputBlobsize, dwLightSourceNetHandle_t obj)
 Returns output blob size of first (only) LightSourceNet output. More...
 
DW_API_PUBLIC dwStatus dwLightSourceNet_initDefaultParams (dwLightSourceNetParams *params)
 Initializes LightSourceNet parameters with default values. More...
 
DW_API_PUBLIC dwStatus dwLightSourceNet_initialize (dwLightSourceNetHandle_t *lspNetHandle, const dwLightSourceNetParams *lspNetParams, dwContextHandle_t ctx)
 Initializes LightSourceNet module. More...
 
DW_API_PUBLIC dwStatus dwLightSourceNet_release (dwLightSourceNetHandle_t obj)
 Releases the LightSourceNet module. More...
 
DW_API_PUBLIC dwStatus dwLightSourceNet_reset (dwLightSourceNetHandle_t obj)
 Resets LightSourceNet. More...
 

Data Structure Documentation

◆ dwLightSourceNetParams

struct dwLightSourceNetParams
Data Fields
const void * networkCustomData Custom network data. Must be set if custom model is selected and available.
dwLightSourceNetModel networkModel LightSourceNet network model. Default is DW_LIGHTSOURCENET_MODEL_FRONT_LATEST.
dwPrecision networkPrecision LightSourceNet network precision. Default is DW_PRECISION_FP32.

Typedef Documentation

◆ dwLightSourceNetHandle_t

typedef struct dwLightSourceNetObject* dwLightSourceNetHandle_t

Handle to a LightSourceNet object.

Definition at line 62 of file LightSourceNet.h.

Enumeration Type Documentation

◆ dwLightSourceNetModel

LightSourceNet network models to be loaded by LightSourceNet module.

Enumerator
DW_LIGHTSOURCENET_3CLASS_V0 

LightSourceNet model that performs detection on front camera.

DW_LIGHTSOURCENET_3CLASS_HWISP_V0 
DW_LIGHTSOURCENET_NUM_MODELS 
DW_LIGHTSOURCENET_MODEL_CUSTOM 

Loads custom LightSourceNet model if available.

Network name must be provided in networkCustomData field in dwLightSourceNetParams

Definition at line 65 of file LightSourceNet.h.

Function Documentation

◆ dwLightSourceNet_getDNNMetaData()

DW_API_PUBLIC dwStatus dwLightSourceNet_getDNNMetaData ( dwDNNMetaData metaData,
dwLightSourceNetHandle_t  obj 
)

Returns the DNN metadata.

Parameters
[out]metaDataPointer to metaData struct.
[in]objThe handle to LightSourceNet.
Returns
DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST, DW_INVALID_ARGUMENT

◆ dwLightSourceNet_getInputBlobsize()

DW_API_PUBLIC dwStatus dwLightSourceNet_getInputBlobsize ( dwBlobSize inputBlobsize,
dwLightSourceNetHandle_t  obj 
)

Returns input blob size that LightSourceNet expects.

Parameters
[out]inputBlobsizeInput blob size.
[in]objSpecifies the LightSourceNet handle.
Returns
DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST, DW_INVALID_ARGUMENT

◆ dwLightSourceNet_getOutputBlobSize()

DW_API_PUBLIC dwStatus dwLightSourceNet_getOutputBlobSize ( dwBlobSize outputBlobsize,
dwLightSourceNetHandle_t  obj 
)

Returns output blob size of first (only) LightSourceNet output.

Parameters
[out]outputBlobsizeOutput blob size.
[in]objSpecifies the ClearSightNet handle.
Returns
DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST, DW_INVALID_ARGUMENT

◆ dwLightSourceNet_initDefaultParams()

DW_API_PUBLIC dwStatus dwLightSourceNet_initDefaultParams ( dwLightSourceNetParams params)

Initializes LightSourceNet parameters with default values.

Parameters
[out]paramsLightSourceNet default parameters.
Returns
DW_SUCCESS, DW_INVALID_ARGUMENT

◆ dwLightSourceNet_initialize()

DW_API_PUBLIC dwStatus dwLightSourceNet_initialize ( dwLightSourceNetHandle_t lspNetHandle,
const dwLightSourceNetParams lspNetParams,
dwContextHandle_t  ctx 
)

Initializes LightSourceNet module.

Parameters
[out]lspNetHandleA pointer to LightSourceNet handle to be initialized.
[in]lspNetParamsLightSourceNet parameters
[in]ctxThe handle to the context.
Returns
DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST, DW_INVALID_ARGUMENT

◆ dwLightSourceNet_release()

DW_API_PUBLIC dwStatus dwLightSourceNet_release ( dwLightSourceNetHandle_t  obj)

Releases the LightSourceNet module.

Parameters
[in]objThe handle to LightSourceNet.
Returns
DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST
Note
This method renders the handle unusable.

◆ dwLightSourceNet_reset()

DW_API_PUBLIC dwStatus dwLightSourceNet_reset ( dwLightSourceNetHandle_t  obj)

Resets LightSourceNet.

Parameters
[in]objHandle to LightSourceNet.
Returns
DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST