Mech-DLK SDK (C#) 3.0.0
Mech-DLK SDK (C#) Reference Documentation
 
Loading...
Searching...
No Matches
Mmind::Dl Namespace Reference

Classes

struct  MBbox
 Bounding box structure. More...
 
struct  MBlobValue
 Blob measurement values computed from a contour. More...
 
struct  MContour
 Contour structure. More...
 
class  MMindImage
 Image class for MechMind DL SDK. More...
 
class  MMindInferEngine
 Main inference engine class for MechMind DL SDK. More...
 
class  MMindResult
 Inference result structure. More...
 
struct  ModelEfficiencyParam
 Model efficiency parameters. More...
 
struct  MPoint
 Point with integer coordinates. More...
 
struct  MPointF
 Point with float coordinates. More...
 
struct  MRotatedBbox
 Rotated bounding box structure. More...
 

Enumerations

enum class  StatusCode : UInt32 {
  Ok = 0 , Error = 0x00008000 , Warning = 0x80000000 , NullParam = Error | 0x01 ,
  InvalidValue = Error | 0x02 , InvalidParam = Error | 0x03 , IOError = Error | 0x04 , DeserializeError = Error | 0x05 ,
  ModelNotConverted = Error | 0x06 , ModelLoading = Error | 0x07 , ModelLoadFailed = Error | 0x08 , ModelReload = Error | 0x09 ,
  ModelFileNotExist = Error | 0x0A , ModelConvertFailed = Error | 0x0B , ModelNotLoaded = Error | 0x0C , EngineNotInited = Error | 0x0D ,
  EngineEmptyInput = Error | 0x0E , ModuleInvalidInput = Error | 0x0F , EngineInvalidInput = Error | 0x10 , NodeInvalidInput = Error | 0x11 ,
  UnsupportedValueType = Error | 0x12 , LoadPluginFailed = Error | 0x13 , ModuleGraphNotInited = Error | 0x14 , UnsupportedBackendType = Error | 0x15 ,
  InvalidFilePath = Error | 0x16 , ModelPackMd5Error = Error | 0x17 , ModelPackInitError = Error | 0x18 , ModelPackUnzipFailed = Error | 0x19 ,
  UnsupportedModelPack = Error | 0x1A , AuthorityTypeError = Error | 0x1B , AlgorithmAuthorityError = Error | 0x1C , ExceedsEngineLimit = Error | 0x1D ,
  ModuleEmptyInput = Warning | 0x01 , NodeEmptyInput = Warning | 0x02
}
 Status codes for MechMind DL SDK operations. More...
 
enum class  BackendType : int {
  Unknown = 0 , OnnxRT , TensorRT , OpenVINO ,
  OnnxRTC
}
 Backend types for inference. More...
 
enum class  DLAlgoType : int {
  Unknown = 0 , Classification , ObjectDetection , InstanceSegmentation ,
  InstanceSegmentationV2 , DefectSegmentation , FastLocating , TextRecognition ,
  TextDetection , UnsupSegmentation , LargeSegModel , FGBGSegmentation ,
  PickAnything
}
 DL algorithm types. More...
 
enum class  PrecisionType : int { FP16 , FP32 }
 Float precision types. More...
 
enum class  InferDeviceType { Unknown = 0 , CPU = 1 , GPUDefault = 1 << 1 , GPUOptimization = 1 << 2 }
 Infer device types. More...
 
enum class  ModelStatus : unsigned int {
  Idle , Converting , ConvertFailed , Converted ,
  Loading , LoadFailed , Loaded
}
 Model status. More...
 
enum class  InferImageType { Depth = 0x0 , Intensity = 0x1 }
 Image types for inference. More...
 

Enumeration Type Documentation

◆ BackendType

enum class Mmind::Dl::BackendType : int
strong

Backend types for inference.

Enumerator
Unknown 
OnnxRT 
TensorRT 
OpenVINO 
OnnxRTC 

Definition at line 65 of file Enums.h.

◆ DLAlgoType

enum class Mmind::Dl::DLAlgoType : int
strong

DL algorithm types.

Enumerator
Unknown 
Classification 
ObjectDetection 
InstanceSegmentation 
InstanceSegmentationV2 
DefectSegmentation 
FastLocating 
TextRecognition 
TextDetection 
UnsupSegmentation 
LargeSegModel 
FGBGSegmentation 
PickAnything 

Definition at line 77 of file Enums.h.

◆ InferDeviceType

enum class Mmind::Dl::InferDeviceType
strong

Infer device types.

Enumerator
Unknown 
CPU 
GPUDefault 
GPUOptimization 

Definition at line 106 of file Enums.h.

107 {
108 Unknown = 0,
109 CPU = 1,
110 GPUDefault = 1 << 1,
111 GPUOptimization = 1 << 2,
112 };

◆ InferImageType

enum class Mmind::Dl::InferImageType
strong

Image types for inference.

Enumerator
Depth 
Intensity 

Definition at line 131 of file Enums.h.

132 {
133 Depth = 0x0,
134 Intensity = 0x1,
135 };

◆ ModelStatus

enum class Mmind::Dl::ModelStatus : unsigned int
strong

Model status.

Enumerator
Idle 
Converting 
ConvertFailed 
Converted 
Loading 
LoadFailed 
Loaded 

Definition at line 117 of file Enums.h.

◆ PrecisionType

enum class Mmind::Dl::PrecisionType : int
strong

Float precision types.

Enumerator
FP16 
FP32 

Definition at line 97 of file Enums.h.

◆ StatusCode

enum class Mmind::Dl::StatusCode : UInt32
strong

Status codes for MechMind DL SDK operations.

Enumerator
Ok 
Error 
Warning 
NullParam 
InvalidValue 
InvalidParam 
IOError 
DeserializeError 
ModelNotConverted 
ModelLoading 
ModelLoadFailed 
ModelReload 
ModelFileNotExist 
ModelConvertFailed 
ModelNotLoaded 
EngineNotInited 
EngineEmptyInput 
ModuleInvalidInput 
EngineInvalidInput 
NodeInvalidInput 
UnsupportedValueType 
LoadPluginFailed 
ModuleGraphNotInited 
UnsupportedBackendType 
InvalidFilePath 
ModelPackMd5Error 
ModelPackInitError 
ModelPackUnzipFailed 
UnsupportedModelPack 
AuthorityTypeError 
AlgorithmAuthorityError 
ExceedsEngineLimit 
ModuleEmptyInput 
NodeEmptyInput 

Definition at line 11 of file Enums.h.

12 {
13 Ok = 0,
14
15 Error = 0x00008000,
16 Warning = 0x80000000,
17
18 NullParam = Error | 0x01,
19 InvalidValue = Error | 0x02,
20 InvalidParam = Error | 0x03,
21 IOError = Error | 0x04,
22
23 // config
24 DeserializeError = Error | 0x05,
25 ModelNotConverted = Error | 0x06,
26 ModelLoading = Error | 0x07,
27 ModelLoadFailed = Error | 0x08,
28 ModelReload = Error | 0x09,
29 ModelFileNotExist = Error | 0x0A,
31 ModelNotLoaded = Error | 0x0C,
32
33 // data
34 EngineNotInited = Error | 0x0D,
35 EngineEmptyInput = Error | 0x0E,
38 NodeInvalidInput = Error | 0x11,
40
41 // infer
42 LoadPluginFailed = Error | 0x13,
45
46 // model pack
47 InvalidFilePath = Error | 0x16,
48 ModelPackMd5Error = Error | 0x17,
52
53 // authorities
57
59 NodeEmptyInput = Warning | 0x02,
60 };