Defines SignNet module, i.e., SignNet configuration and loading.
Data Structures | |
struct | dwSignNetParams |
Macros | |
#define | DW_SIGNNET_MAX_CLASSES 796 |
#define | DW_SIGNNET_MAX_DNN_OUTPUT 1000 |
#define | DW_SIGNNET_MAX_MODELS 64 |
Typedefs | |
typedef const char * | dwSignNetClassName |
Type for SignNet model class. More... | |
typedef struct dwSignNetObject * | dwSignNetHandle_t |
Handle to a SignNet object. More... | |
typedef const char * | dwSignNetModelName |
SignNet model name type. More... | |
Enumerations | |
enum | dwSignNetBatchSize { DW_SIGNNET_BATCH_SIZE_1 = 0, DW_SIGNNET_BATCH_SIZE_16 = 1, DW_SIGNNET_BATCH_SIZE_32 = 2 } |
SignNet network batch size options. More... | |
enum | dwSignNetModel { DW_SIGNNET_MODEL_US_V1 = 0, DW_SIGNNET_MODEL_US_V2 = 1, DW_SIGNNET_MODEL_US_V4 = 2, DW_SIGNNET_MODEL_EU_V1 = 3, DW_SIGNNET_MODEL_EU_V2 = 4, DW_SIGNNET_MODEL_EU_V3 = 5, DW_SIGNNET_MODEL_EU_V4 = 6, DW_SIGNNET_MODEL_JP_V1 = 7, DW_SIGNNET_MODEL_COUNT, DW_SIGNNET_MODEL_CUSTOM = -1 } |
SignNet network models to be loaded by SignNet module. More... | |
Functions | |
DW_API_PUBLIC dwStatus | dwSignNet_getAvailableClasses (const dwSignClass **signClasses, uint32_t *numSignClasses, dwSignNetHandle_t obj) |
Returns the sign classes that SignNet can detect. More... | |
DW_API_PUBLIC dwStatus | dwSignNet_getAvailableClassesNew (dwSignNetClassName *signClasses, uint32_t *numSignClasses, dwSignNetHandle_t obj) |
Returns the sign classes that SignNet can detect. More... | |
DW_API_PUBLIC dwStatus | dwSignNet_getAvailableModels (dwSignNetModelName *availableModels, uint32_t *numAvailableModels) |
Returns the list of models the SignNet module has. More... | |
DW_API_PUBLIC dwStatus | dwSignNet_getClassLabel (const char **classLabel, uint32_t classIdx, dwSignNetHandle_t obj) |
Returns the class label for a given class index for UI output. More... | |
DW_API_PUBLIC dwStatus | dwSignNet_getDNNMetaData (dwDNNMetaData *metaData, dwSignNetHandle_t obj) |
Returns the DNN metadata. More... | |
DW_API_PUBLIC dwStatus | dwSignNet_getInputBlobsize (dwBlobSize *inputBlobsize, dwSignNetHandle_t obj) |
Returns input blob size that SignNet expects. More... | |
DW_API_PUBLIC dwStatus | dwSignNet_getModelNameLabel (const char **modelNameLabel, dwSignNetHandle_t obj) |
Returns the SignNet model text label (name of a model) for a hangle. More... | |
DW_API_PUBLIC dwStatus | dwSignNet_getNumberOutputs (uint32_t *numSignOutputs, dwSignNetHandle_t obj) |
Returns the number of raw signnet outputs its DNN produces. More... | |
DW_API_PUBLIC dwStatus | dwSignNet_getTrafficSignalClass (dwTrafficSignalClass *trafficSignalClass, uint32_t classIdx, dwSignNetHandle_t obj) |
Returns the dwTrafficSignalClass sturcutre for a given class index for UI output. More... | |
DW_API_PUBLIC dwStatus | dwSignNet_getTypeLabel (const char **classLabel, uint32_t classIdx, dwSignNetHandle_t obj) |
Returns the class label for a given class index for UI output. More... | |
DW_API_PUBLIC dwStatus | dwSignNet_initDefaultParams (dwSignNetParams *params, dwContextHandle_t ctx) |
Initializes SignNet parameters with default values. More... | |
DW_API_PUBLIC dwStatus | dwSignNet_initialize (dwSignNetHandle_t *signNetHandle, const dwSignNetParams *signNetParams, dwContextHandle_t ctx) |
Initializes SignNet module. More... | |
DW_API_PUBLIC dwStatus | dwSignNet_release (dwSignNetHandle_t obj) |
Releases the SignNet module. More... | |
DW_API_PUBLIC dwStatus | dwSignNet_reset (dwSignNetHandle_t obj) |
Resets SignNet. More... | |
struct dwSignNetParams |
Data Fields | ||
---|---|---|
dwSignNetBatchSize | batchSize | SignNet network batch size. Default is DW_SIGNNET_BATCH_SIZE_1. |
const void * | networkCustomData | Custom network data. Must be set if custom model is selected and available. |
dwSignNetModel | networkModel | SignNet network model. Default is DW_SIGNNET_MODEL_FRONT_US_V2. |
dwPrecision | networkPrecision | SignNet network precision. Default is DW_PRECISION_FP32. |
typedef const char* dwSignNetClassName |
typedef struct dwSignNetObject* dwSignNetHandle_t |
typedef const char* dwSignNetModelName |
enum dwSignNetBatchSize |
SignNet network batch size options.
enum dwSignNetModel |
SignNet network models to be loaded by SignNet module.
Enumerator | |
---|---|
DW_SIGNNET_MODEL_US_V1 | SignNet model for US signs, version 1. |
DW_SIGNNET_MODEL_US_V2 | SignNet model for US signs, version 2. |
DW_SIGNNET_MODEL_US_V4 | SignNet model for US signs, version 4 (HWISP) |
DW_SIGNNET_MODEL_EU_V1 | SignNet model for EU signs version 1. |
DW_SIGNNET_MODEL_EU_V2 | SignNet model for EU signs version 2. |
DW_SIGNNET_MODEL_EU_V3 | SignNet model for EU signs version 3. |
DW_SIGNNET_MODEL_EU_V4 | SignNet model for EU signs version 4 (HWISP) |
DW_SIGNNET_MODEL_JP_V1 | SignNet model for Japan signs version 1. |
DW_SIGNNET_MODEL_COUNT | |
DW_SIGNNET_MODEL_CUSTOM | Loads custom SignNet model if available. Network name must be provided in networkCustomData field in dwSignNetParams |
DW_API_PUBLIC dwStatus dwSignNet_getAvailableClasses | ( | const dwSignClass ** | signClasses, |
uint32_t * | numSignClasses, | ||
dwSignNetHandle_t | obj | ||
) |
Returns the sign classes that SignNet can detect.
[out] | signClasses | A pointer to list of object classes that SignNet can detect. |
[out] | numSignClasses | Number of object classes. |
[in] | obj | Specifies the SignNet handle. |
DW_API_PUBLIC dwStatus dwSignNet_getAvailableClassesNew | ( | dwSignNetClassName * | signClasses, |
uint32_t * | numSignClasses, | ||
dwSignNetHandle_t | obj | ||
) |
Returns the sign classes that SignNet can detect.
[out] | signClasses | A pointer to list of class name that SignNet can detect. |
[out] | numSignClasses | Number of object classes. |
[in] | obj | Specifies the SignNet handle. |
DW_API_PUBLIC dwStatus dwSignNet_getAvailableModels | ( | dwSignNetModelName * | availableModels, |
uint32_t * | numAvailableModels | ||
) |
Returns the list of models the SignNet module has.
[out] | availableModels | A pointer to a list of names of models that SignNet model has. |
[out] | numAvailableModels | Number of models. |
DW_API_PUBLIC dwStatus dwSignNet_getClassLabel | ( | const char ** | classLabel, |
uint32_t | classIdx, | ||
dwSignNetHandle_t | obj | ||
) |
Returns the class label for a given class index for UI output.
[out] | classLabel | Pointer to class label. |
[in] | classIdx | Class index within the model being used. |
[in] | obj | The handle to SignNet. |
DW_API_PUBLIC dwStatus dwSignNet_getDNNMetaData | ( | dwDNNMetaData * | metaData, |
dwSignNetHandle_t | obj | ||
) |
Returns the DNN metadata.
[out] | metaData | Pointer to metaData struct. |
[in] | obj | The handle to SignNet. |
DW_API_PUBLIC dwStatus dwSignNet_getInputBlobsize | ( | dwBlobSize * | inputBlobsize, |
dwSignNetHandle_t | obj | ||
) |
Returns input blob size that SignNet expects.
[out] | inputBlobsize | Input blob size. |
[in] | obj | Specifies the SignNet handle. |
DW_API_PUBLIC dwStatus dwSignNet_getModelNameLabel | ( | const char ** | modelNameLabel, |
dwSignNetHandle_t | obj | ||
) |
Returns the SignNet model text label (name of a model) for a hangle.
[out] | modelNameLabel | Pointer to model name label. |
[in] | obj | The handle to SignNet. |
DW_API_PUBLIC dwStatus dwSignNet_getNumberOutputs | ( | uint32_t * | numSignOutputs, |
dwSignNetHandle_t | obj | ||
) |
Returns the number of raw signnet outputs its DNN produces.
[out] | numSignOutputs | Number of object classes. |
[in] | obj | Specifies the SignNet handle. |
DW_API_PUBLIC dwStatus dwSignNet_getTrafficSignalClass | ( | dwTrafficSignalClass * | trafficSignalClass, |
uint32_t | classIdx, | ||
dwSignNetHandle_t | obj | ||
) |
Returns the dwTrafficSignalClass sturcutre for a given class index for UI output.
[out] | trafficSignalClass | Pointer to dwTrafficSignalClass structure to populate. |
[in] | classIdx | Class index within the model being used. |
[in] | obj | The handle to SignNet. |
DW_API_PUBLIC dwStatus dwSignNet_getTypeLabel | ( | const char ** | classLabel, |
uint32_t | classIdx, | ||
dwSignNetHandle_t | obj | ||
) |
Returns the class label for a given class index for UI output.
[out] | classLabel | Pointer to class label. |
[in] | classIdx | Class index within the model being used. |
[in] | obj | The handle to SignNet. |
dwSignNet_getClassLabel()
DW_API_PUBLIC dwStatus dwSignNet_initDefaultParams | ( | dwSignNetParams * | params, |
dwContextHandle_t | ctx | ||
) |
Initializes SignNet parameters with default values.
[out] | params | SignNet default parameters. |
[in] | ctx | The handle to the context. |
DW_API_PUBLIC dwStatus dwSignNet_initialize | ( | dwSignNetHandle_t * | signNetHandle, |
const dwSignNetParams * | signNetParams, | ||
dwContextHandle_t | ctx | ||
) |
Initializes SignNet module.
[out] | signNetHandle | A pointer to SignNet handle to be initialized. |
[in] | signNetParams | SignNet parameters |
[in] | ctx | The handle to the context. |
dwContext_selectGPUDevice
. DW_API_PUBLIC dwStatus dwSignNet_release | ( | dwSignNetHandle_t | obj | ) |
Releases the SignNet module.
[in] | obj | The handle to SignNet. |
DW_API_PUBLIC dwStatus dwSignNet_reset | ( | dwSignNetHandle_t | obj | ) |
Resets SignNet.
[in] | obj | Handle to SignNet. |