DLAlgoType
This enumeration defines the deep learning algorithm type.
Definition dl_definition.h:95
@ FastLocating
<DefectSegmentation
Definition dl_definition.h:101
@ Unknown
Definition dl_definition.h:96
@ TextRecognition
<EdgeDetection
Definition dl_definition.h:103
@ UnsupSegmentation
<TextDetection
Definition dl_definition.h:105
@ Classification
<Unknown
Definition dl_definition.h:97
@ DefectSegmentation
<InstanceSegmentation
Definition dl_definition.h:100
@ TextDetection
<TextRecognition
Definition dl_definition.h:104
@ ObjectDetection
<Classification
Definition dl_definition.h:98
@ InstanceSegmentation
<ObjectDetection
Definition dl_definition.h:99
@ EdgeDetection
<FastLocating
Definition dl_definition.h:102
UnsupLabel
This enum defines unsupervised segmentation label.
Definition dl_definition.h:111
@ OK
Definition dl_definition.h:112
@ UNKNOWN
<There are some defects in the current image.
Definition dl_definition.h:114
@ NG
<There are no defects in the current image.
Definition dl_definition.h:113
FloatPrecisionType
This enumeration defines the floating-point format.
Definition dl_definition.h:87
@ FP32
Single-precision floating-point format.
Definition dl_definition.h:89
@ FP16
Half-precision floating-point format.
Definition dl_definition.h:88
BackendType
This enumeration defines the backend type.
Definition dl_definition.h:78
@ CPU
CPU mode. Used when a GPU is not available.
Definition dl_definition.h:81
@ GpuDefault
GPU default mode.
Definition dl_definition.h:79
@ GpuOptimization
GPU optimization mode. In this mode, it takes 1-5 minutes to optimize the model.
Definition dl_definition.h:80
StatusCode
This enumeration defines the codes of status.
Definition dl_definition.h:43
@ E_INVALID_MODEL_PACK
Error: invalid model package.
Definition dl_definition.h:48
@ E_INIT_FAILED
Error: engine initialization failed.
Definition dl_definition.h:46
@ E_UNKNOWN
Unknown status.
Definition dl_definition.h:45
@ E_MODEL_REGISTEXCEEDLIMIT
Error: model loading failed as the number of models loaded has reached the upper limit.
Definition dl_definition.h:65
@ E_INVALID_ENGINE
Error: engine creation failed.
Definition dl_definition.h:69
@ E_INVALID_BACKEND_TYPE
Error: invalid backend type.
Definition dl_definition.h:70
@ E_UNSUPPORTED_BACKEND
Error: unsupported inference backend.
Definition dl_definition.h:53
@ E_LOAD_FAILED
Error: model loading failed.
Definition dl_definition.h:55
@ E_CONVERT_FAILED
Error: model conversion failed.
Definition dl_definition.h:51
@ E_SET_GPUID_ERROR
Error: incorrect GPU ID setting.
Definition dl_definition.h:68
@ I_LOADING
Status: model is being loaded.
Definition dl_definition.h:54
@ E_PARAM_ERROR
Error: incorrect parameter settings.
Definition dl_definition.h:72
@ E_INVALID_MODEL_PATH
Error: invalid model package path.
Definition dl_definition.h:47
@ E_CONVERT_WITHOUT_INIT
Error: model uninitialized before conversion.
Definition dl_definition.h:52
@ E_LOAD_WITHOUT_CONVERT
Error: model unconverted before loading.
Definition dl_definition.h:56
@ E_MODULE_TYPE_ERROR
Error: the function of an incorrect model type was called.
Definition dl_definition.h:67
@ E_LOAD_WITHOUT_INIT
Error: uninitialized before loading.
Definition dl_definition.h:57
@ E_OUT_OF_DEVICE_MEMORY
Error: out of video memory.
Definition dl_definition.h:60
@ E_UNZIP_ERROR
Error: unable to unzip the model package.
Definition dl_definition.h:63
@ E_MODULE_INDEX_ERROR
Error: module index out of range.
Definition dl_definition.h:66
@ E_INVALID_MODEL_VERSION
Error: invalid model package version.
Definition dl_definition.h:49
@ E_OUT_OF_HOST_MEMORY
Error: out of memory.
Definition dl_definition.h:59
@ SUCCESS
Success status.
Definition dl_definition.h:44
@ E_INVALID_IMAGE_PATH
Error: invalid image path.
Definition dl_definition.h:62
@ E_INVALID_ALGO_TYPE
Error: invalid deep learning algorithm type.
Definition dl_definition.h:71
@ E_INFER_FAILED
Error: inference failed.
Definition dl_definition.h:61
@ E_INFER_WITHOUT_LOAD
Error: model unloaded before inference.
Definition dl_definition.h:58
@ I_CONVERTING
Status: model is being converted.
Definition dl_definition.h:50
@ E_INVALID_IMAGE_NULLPTR
Error: invalid image pointer.
Definition dl_definition.h:64
This struct defines Engine.
Definition dl_definition.h:133
int id
The ID of the engine.
Definition dl_definition.h:135
int type
The type of algorithm corresponding to the engine.
Definition dl_definition.h:134
This struct defines Image.
Definition dl_definition.h:121
int depth
The depth of the image.
Definition dl_definition.h:125
unsigned char * data
The pointer of the image data.
Definition dl_definition.h:126
int channel
The number of channels in the image.
Definition dl_definition.h:124
int width
The width of the image.
Definition dl_definition.h:122
int height
The height of the image.
Definition dl_definition.h:123