forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenumtypes.gen.go
322 lines (280 loc) · 16.7 KB
/
enumtypes.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
// Code generated by DarwinKit. DO NOT EDIT.
package vision
// An animal identifier string. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnanimalidentifier?language=objc
type AnimalIdentifier string
const (
AnimalIdentifierCat AnimalIdentifier = "Cat"
AnimalIdentifierDog AnimalIdentifier = "Dog"
)
// A type alias for expressing rectangle aspect ratios in Vision. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnaspectratio?language=objc
type AspectRatio float64
// The barcode symbologies that the framework detects. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnbarcodesymbology?language=objc
type BarcodeSymbology string
const (
BarcodeSymbologyAztec BarcodeSymbology = "VNBarcodeSymbologyAztec"
BarcodeSymbologyCodabar BarcodeSymbology = "VNBarcodeSymbologyCodabar"
BarcodeSymbologyCode128 BarcodeSymbology = "VNBarcodeSymbologyCode128"
BarcodeSymbologyCode39 BarcodeSymbology = "VNBarcodeSymbologyCode39"
BarcodeSymbologyCode39Checksum BarcodeSymbology = "VNBarcodeSymbologyCode39Checksum"
BarcodeSymbologyCode39FullASCII BarcodeSymbology = "VNBarcodeSymbologyCode39FullASCII"
BarcodeSymbologyCode39FullASCIIChecksum BarcodeSymbology = "VNBarcodeSymbologyCode39FullASCIIChecksum"
BarcodeSymbologyCode93 BarcodeSymbology = "VNBarcodeSymbologyCode93"
BarcodeSymbologyCode93i BarcodeSymbology = "VNBarcodeSymbologyCode93i"
BarcodeSymbologyDataMatrix BarcodeSymbology = "VNBarcodeSymbologyDataMatrix"
BarcodeSymbologyEAN13 BarcodeSymbology = "VNBarcodeSymbologyEAN13"
BarcodeSymbologyEAN8 BarcodeSymbology = "VNBarcodeSymbologyEAN8"
BarcodeSymbologyGS1DataBar BarcodeSymbology = "VNBarcodeSymbologyGS1DataBar"
BarcodeSymbologyGS1DataBarExpanded BarcodeSymbology = "VNBarcodeSymbologyGS1DataBarExpanded"
BarcodeSymbologyGS1DataBarLimited BarcodeSymbology = "VNBarcodeSymbologyGS1DataBarLimited"
BarcodeSymbologyI2of5 BarcodeSymbology = "VNBarcodeSymbologyI2of5"
BarcodeSymbologyI2of5Checksum BarcodeSymbology = "VNBarcodeSymbologyI2of5Checksum"
BarcodeSymbologyITF14 BarcodeSymbology = "VNBarcodeSymbologyITF14"
BarcodeSymbologyMicroPDF417 BarcodeSymbology = "VNBarcodeSymbologyMicroPDF417"
BarcodeSymbologyMicroQR BarcodeSymbology = "VNBarcodeSymbologyMicroQR"
BarcodeSymbologyPDF417 BarcodeSymbology = "VNBarcodeSymbologyPDF417"
BarcodeSymbologyQR BarcodeSymbology = "VNBarcodeSymbologyQR"
BarcodeSymbologyUPCE BarcodeSymbology = "VNBarcodeSymbologyUPCE"
)
// Constants that the define the chirality, or handedness, of a pose. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnchirality?language=objc
type Chirality int
const (
ChiralityLeft Chirality = -1
ChiralityRight Chirality = 1
ChiralityUnknown Chirality = 0
)
// A type alias for the confidence value of an observation. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnconfidence?language=objc
type Confidence float64
// A typealias for expressing tolerance angles in Vision. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndegrees?language=objc
type Degrees float64
// An enumeration of the type of element in feature print data. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnelementtype?language=objc
type ElementType uint
const (
ElementTypeDouble ElementType = 2
ElementTypeFloat ElementType = 1
ElementTypeUnknown ElementType = 0
)
// Constants that identify errors from the framework. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnerrorcode?language=objc
type ErrorCode int
const (
ErrorDataUnavailable ErrorCode = 17
ErrorIOError ErrorCode = 6
ErrorInternalError ErrorCode = 9
ErrorInvalidArgument ErrorCode = 14
ErrorInvalidFormat ErrorCode = 2
ErrorInvalidImage ErrorCode = 13
ErrorInvalidModel ErrorCode = 15
ErrorInvalidOperation ErrorCode = 12
ErrorInvalidOption ErrorCode = 5
ErrorMissingOption ErrorCode = 7
ErrorNotImplemented ErrorCode = 8
ErrorOK ErrorCode = 0
ErrorOperationFailed ErrorCode = 3
ErrorOutOfBoundsError ErrorCode = 4
ErrorOutOfMemory ErrorCode = 10
ErrorRequestCancelled ErrorCode = 1
ErrorTimeStampNotFound ErrorCode = 18
ErrorUnknownError ErrorCode = 11
ErrorUnsupportedRequest ErrorCode = 19
ErrorUnsupportedRevision ErrorCode = 16
)
// The supported optical flow accuracy levels. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vngenerateopticalflowrequestcomputationaccuracy?language=objc
type GenerateOpticalFlowRequestComputationAccuracy uint
const (
GenerateOpticalFlowRequestComputationAccuracyHigh GenerateOpticalFlowRequestComputationAccuracy = 2
GenerateOpticalFlowRequestComputationAccuracyLow GenerateOpticalFlowRequestComputationAccuracy = 0
GenerateOpticalFlowRequestComputationAccuracyMedium GenerateOpticalFlowRequestComputationAccuracy = 1
GenerateOpticalFlowRequestComputationAccuracyVeryHigh GenerateOpticalFlowRequestComputationAccuracy = 3
)
// Constants that define the levels of quality for a person segmentation request. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vngeneratepersonsegmentationrequestqualitylevel?language=objc
type GeneratePersonSegmentationRequestQualityLevel uint
const (
GeneratePersonSegmentationRequestQualityLevelAccurate GeneratePersonSegmentationRequestQualityLevel = 0
GeneratePersonSegmentationRequestQualityLevelBalanced GeneratePersonSegmentationRequestQualityLevel = 1
GeneratePersonSegmentationRequestQualityLevelFast GeneratePersonSegmentationRequestQualityLevel = 2
)
// The supported joint names for the body pose. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservationjointname?language=objc
type HumanBodyPoseObservationJointName RecognizedPointKey
const (
HumanBodyPoseObservationJointNameLeftAnkle HumanBodyPoseObservationJointName = "left_foot_joint"
HumanBodyPoseObservationJointNameLeftEar HumanBodyPoseObservationJointName = "left_ear_joint"
HumanBodyPoseObservationJointNameLeftElbow HumanBodyPoseObservationJointName = "left_forearm_joint"
HumanBodyPoseObservationJointNameLeftEye HumanBodyPoseObservationJointName = "left_eye_joint"
HumanBodyPoseObservationJointNameLeftHip HumanBodyPoseObservationJointName = "left_upLeg_joint"
HumanBodyPoseObservationJointNameLeftKnee HumanBodyPoseObservationJointName = "left_leg_joint"
HumanBodyPoseObservationJointNameLeftShoulder HumanBodyPoseObservationJointName = "left_shoulder_1_joint"
HumanBodyPoseObservationJointNameLeftWrist HumanBodyPoseObservationJointName = "left_hand_joint"
HumanBodyPoseObservationJointNameNeck HumanBodyPoseObservationJointName = "neck_1_joint"
HumanBodyPoseObservationJointNameNose HumanBodyPoseObservationJointName = "head_joint"
HumanBodyPoseObservationJointNameRightAnkle HumanBodyPoseObservationJointName = "right_foot_joint"
HumanBodyPoseObservationJointNameRightEar HumanBodyPoseObservationJointName = "right_ear_joint"
HumanBodyPoseObservationJointNameRightElbow HumanBodyPoseObservationJointName = "right_forearm_joint"
HumanBodyPoseObservationJointNameRightEye HumanBodyPoseObservationJointName = "right_eye_joint"
HumanBodyPoseObservationJointNameRightHip HumanBodyPoseObservationJointName = "right_upLeg_joint"
HumanBodyPoseObservationJointNameRightKnee HumanBodyPoseObservationJointName = "right_leg_joint"
HumanBodyPoseObservationJointNameRightShoulder HumanBodyPoseObservationJointName = "right_shoulder_1_joint"
HumanBodyPoseObservationJointNameRightWrist HumanBodyPoseObservationJointName = "right_hand_joint"
HumanBodyPoseObservationJointNameRoot HumanBodyPoseObservationJointName = "root"
)
// The supported joint group names for the body pose. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservationjointsgroupname?language=objc
type HumanBodyPoseObservationJointsGroupName RecognizedPointGroupKey
const (
HumanBodyPoseObservationJointsGroupNameAll HumanBodyPoseObservationJointsGroupName = "VNIPOAll"
HumanBodyPoseObservationJointsGroupNameFace HumanBodyPoseObservationJointsGroupName = "VNBLKFACE"
HumanBodyPoseObservationJointsGroupNameLeftArm HumanBodyPoseObservationJointsGroupName = "VNBLKLARM"
HumanBodyPoseObservationJointsGroupNameLeftLeg HumanBodyPoseObservationJointsGroupName = "VNBLKLLEG"
HumanBodyPoseObservationJointsGroupNameRightArm HumanBodyPoseObservationJointsGroupName = "VNBLKRARM"
HumanBodyPoseObservationJointsGroupNameRightLeg HumanBodyPoseObservationJointsGroupName = "VNBLKRLEG"
HumanBodyPoseObservationJointsGroupNameTorso HumanBodyPoseObservationJointsGroupName = "VNBLKTORSO"
)
// The supported joint names for the hand pose. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanhandposeobservationjointname?language=objc
type HumanHandPoseObservationJointName RecognizedPointKey
const (
HumanHandPoseObservationJointNameIndexDIP HumanHandPoseObservationJointName = "VNHLKIDIP"
HumanHandPoseObservationJointNameIndexMCP HumanHandPoseObservationJointName = "VNHLKIMCP"
HumanHandPoseObservationJointNameIndexPIP HumanHandPoseObservationJointName = "VNHLKIPIP"
HumanHandPoseObservationJointNameIndexTip HumanHandPoseObservationJointName = "VNHLKITIP"
HumanHandPoseObservationJointNameLittleDIP HumanHandPoseObservationJointName = "VNHLKPDIP"
HumanHandPoseObservationJointNameLittleMCP HumanHandPoseObservationJointName = "VNHLKPMCP"
HumanHandPoseObservationJointNameLittlePIP HumanHandPoseObservationJointName = "VNHLKPPIP"
HumanHandPoseObservationJointNameLittleTip HumanHandPoseObservationJointName = "VNHLKPTIP"
HumanHandPoseObservationJointNameMiddleDIP HumanHandPoseObservationJointName = "VNHLKMDIP"
HumanHandPoseObservationJointNameMiddleMCP HumanHandPoseObservationJointName = "VNHLKMMCP"
HumanHandPoseObservationJointNameMiddlePIP HumanHandPoseObservationJointName = "VNHLKMPIP"
HumanHandPoseObservationJointNameMiddleTip HumanHandPoseObservationJointName = "VNHLKMTIP"
HumanHandPoseObservationJointNameRingDIP HumanHandPoseObservationJointName = "VNHLKRDIP"
HumanHandPoseObservationJointNameRingMCP HumanHandPoseObservationJointName = "VNHLKRMCP"
HumanHandPoseObservationJointNameRingPIP HumanHandPoseObservationJointName = "VNHLKRPIP"
HumanHandPoseObservationJointNameRingTip HumanHandPoseObservationJointName = "VNHLKRTIP"
HumanHandPoseObservationJointNameThumbCMC HumanHandPoseObservationJointName = "VNHLKTCMC"
HumanHandPoseObservationJointNameThumbIP HumanHandPoseObservationJointName = "VNHLKTIP"
HumanHandPoseObservationJointNameThumbMP HumanHandPoseObservationJointName = "VNHLKTMP"
HumanHandPoseObservationJointNameThumbTip HumanHandPoseObservationJointName = "VNHLKTTIP"
HumanHandPoseObservationJointNameWrist HumanHandPoseObservationJointName = "VNHLKWRI"
)
// The supported joint group names for the hand pose. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanhandposeobservationjointsgroupname?language=objc
type HumanHandPoseObservationJointsGroupName RecognizedPointGroupKey
const (
HumanHandPoseObservationJointsGroupNameAll HumanHandPoseObservationJointsGroupName = "VNIPOAll"
HumanHandPoseObservationJointsGroupNameIndexFinger HumanHandPoseObservationJointsGroupName = "VNHLRKI"
HumanHandPoseObservationJointsGroupNameLittleFinger HumanHandPoseObservationJointsGroupName = "VNHLRKP"
HumanHandPoseObservationJointsGroupNameMiddleFinger HumanHandPoseObservationJointsGroupName = "VNHLRKM"
HumanHandPoseObservationJointsGroupNameRingFinger HumanHandPoseObservationJointsGroupName = "VNHLRKR"
HumanHandPoseObservationJointsGroupNameThumb HumanHandPoseObservationJointsGroupName = "VNHLRKT"
)
// Options that define how Vision crops and scales an input-image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnimagecropandscaleoption?language=objc
type ImageCropAndScaleOption uint
const (
ImageCropAndScaleOptionCenterCrop ImageCropAndScaleOption = 0
ImageCropAndScaleOptionScaleFill ImageCropAndScaleOption = 2
ImageCropAndScaleOptionScaleFit ImageCropAndScaleOption = 1
)
// An option key passed into VNImageRequestHandler creations or requests that take an auxiliary image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnimageoption?language=objc
type ImageOption string
const (
ImageOptionCIContext ImageOption = "VNImageOptionCIContext"
ImageOptionCameraIntrinsics ImageOption = "VNImageOptionCameraIntrinsics"
ImageOptionProperties ImageOption = "VNImageOptionProperties"
)
// The data type for all recognized point group keys. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizedpointgroupkey?language=objc
type RecognizedPointGroupKey string
const (
BodyLandmarkRegionKeyFace RecognizedPointGroupKey = "VNBLKFACE"
BodyLandmarkRegionKeyLeftArm RecognizedPointGroupKey = "VNBLKLARM"
BodyLandmarkRegionKeyLeftLeg RecognizedPointGroupKey = "VNBLKLLEG"
BodyLandmarkRegionKeyRightArm RecognizedPointGroupKey = "VNBLKRARM"
BodyLandmarkRegionKeyRightLeg RecognizedPointGroupKey = "VNBLKRLEG"
BodyLandmarkRegionKeyTorso RecognizedPointGroupKey = "VNBLKTORSO"
RecognizedPointGroupKeyAll RecognizedPointGroupKey = "VNIPOAll"
)
// The data type for all recognized point keys. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizedpointkey?language=objc
type RecognizedPointKey string
const (
BodyLandmarkKeyLeftAnkle RecognizedPointKey = "left_foot_joint"
BodyLandmarkKeyLeftEar RecognizedPointKey = "left_ear_joint"
BodyLandmarkKeyLeftElbow RecognizedPointKey = "left_forearm_joint"
BodyLandmarkKeyLeftEye RecognizedPointKey = "left_eye_joint"
BodyLandmarkKeyLeftHip RecognizedPointKey = "left_upLeg_joint"
BodyLandmarkKeyLeftKnee RecognizedPointKey = "left_leg_joint"
BodyLandmarkKeyLeftShoulder RecognizedPointKey = "left_shoulder_1_joint"
BodyLandmarkKeyLeftWrist RecognizedPointKey = "left_hand_joint"
BodyLandmarkKeyNeck RecognizedPointKey = "neck_1_joint"
BodyLandmarkKeyNose RecognizedPointKey = "head_joint"
BodyLandmarkKeyRightAnkle RecognizedPointKey = "right_foot_joint"
BodyLandmarkKeyRightEar RecognizedPointKey = "right_ear_joint"
BodyLandmarkKeyRightElbow RecognizedPointKey = "right_forearm_joint"
BodyLandmarkKeyRightEye RecognizedPointKey = "right_eye_joint"
BodyLandmarkKeyRightHip RecognizedPointKey = "right_upLeg_joint"
BodyLandmarkKeyRightKnee RecognizedPointKey = "right_leg_joint"
BodyLandmarkKeyRightShoulder RecognizedPointKey = "right_shoulder_1_joint"
BodyLandmarkKeyRightWrist RecognizedPointKey = "right_hand_joint"
BodyLandmarkKeyRoot RecognizedPointKey = "root"
)
// An enumeration of face landmarks in a constellation object. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequestfacelandmarksconstellation?language=objc
type RequestFaceLandmarksConstellation uint
const (
RequestFaceLandmarksConstellation65Points RequestFaceLandmarksConstellation = 1
RequestFaceLandmarksConstellation76Points RequestFaceLandmarksConstellation = 2
RequestFaceLandmarksConstellationNotDefined RequestFaceLandmarksConstellation = 0
)
// Constants that identify the performance and accuracy of the text recognition. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequesttextrecognitionlevel?language=objc
type RequestTextRecognitionLevel int
const (
RequestTextRecognitionLevelAccurate RequestTextRecognitionLevel = 0
RequestTextRecognitionLevelFast RequestTextRecognitionLevel = 1
)
// An enumeration of tracking priorities. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequesttrackinglevel?language=objc
type RequestTrackingLevel uint
const (
RequestTrackingLevelAccurate RequestTrackingLevel = 0
RequestTrackingLevelFast RequestTrackingLevel = 1
)
// Options to pass to the video processor when adding requests. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnvideoprocessingoption?language=objc
type VideoProcessingOption string
const (
VideoProcessingOptionFrameCadence VideoProcessingOption = "VNVideoProcessingOptionFrameCadence"
VideoProcessingOptionTimeInterval VideoProcessingOption = "VNVideoProcessingOptionTimeInterval"
)