Mech-DLK SDK (C++) 3.0.0
Mech-DLK SDK (C++) Reference Documentation
 
Loading...
Searching...
No Matches
type.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <vector>
5#include <string>
6
7#include "macro.h"
8
9namespace mmind {
10
11namespace base {
20}
21
22namespace dl {
30
50
51enum class QuickAIMode : int32_t { Registration = 0, Inference };
52
53enum class PrecisionType : int32_t { FP16, FP32 };
54
55enum class InferDeviceType {
57 CPU = 1,
58 GPUDefault = 1 << 1,
59 GPUOptimization = 1 << 2,
61};
62
72
73enum class InferImageType {
74 Depth = 0x0,
75 Intensity = 0x1,
76};
77
79{
80 int batchSize{1};
82
83 bool operator==(const ModelEfficiencyParam& o) const noexcept
84 {
85 return batchSize == o.batchSize && precisionType == o.precisionType;
86 }
87
88 bool operator!=(const ModelEfficiencyParam& o) const noexcept { return !(*this == o); }
89};
90
91} // namespace dl
92} // namespace mmind
ModelStatus
Definition type.h:63
QuickAIMode
Definition type.h:51
DLAlgoType
Definition type.h:31
@ RegisterCharacterDetection
Definition type.h:48
PrecisionType
Definition type.h:53
BackendType
Definition type.h:23
InferImageType
Definition type.h:73
InferDeviceType
Definition type.h:55
@ CPU
CPU mode. It is used when a GPU is not available.
Definition type.h:57
@ GPUDefault
GPU default mode.
Definition type.h:58
Definition MBbox.h:7
bool operator==(const ModelEfficiencyParam &o) const noexcept
Definition type.h:83
PrecisionType precisionType
Definition type.h:81
bool operator!=(const ModelEfficiencyParam &o) const noexcept
Definition type.h:88