@octane-xplat/macos-renderer 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +95 -20
- package/package.json +15 -2
- package/src/appearance.ts +2 -0
- package/src/fonts.ts +2 -0
- package/src/formatted-text.ts +147 -0
- package/src/gestures.ts +196 -0
- package/src/host-globals.d.ts +55 -0
- package/src/html-text.ts +88 -0
- package/src/image.ts +91 -16
- package/src/index.d.ts +9 -0
- package/src/index.ts +5030 -678
- package/src/layer.ts +11 -9
- package/src/list-template.ts +266 -0
- package/src/list-view.ts +445 -0
- package/src/portal-components.macos.tsx +86 -0
- package/src/presentation.ts +48 -15
- package/src/scroll-view.ts +124 -0
- package/src/tab-view.ts +512 -0
- package/src/template-props.ts +402 -0
- package/src/vendor/listview/LICENSE +19 -0
- package/src/vendor/listview/README.md +1 -0
- package/src/vendor/listview/binding-options.ts +189 -0
- package/src/vendor/listview/expressions.ts +285 -0
- package/src/webview.ts +36 -7
- package/types/ARKitCore.d.ts +199 -0
- package/types/AVFAudio.d.ts +2304 -0
- package/types/AVFoundation.d.ts +6974 -0
- package/types/AVKit.d.ts +215 -0
- package/types/AVRouting.d.ts +7 -0
- package/types/Accelerate.d.ts +4776 -0
- package/types/Accessibility.d.ts +69 -0
- package/types/Accounts.d.ts +134 -0
- package/types/AdSupport.d.ts +12 -0
- package/types/AddressBook.d.ts +1012 -0
- package/types/AppKit.d.ts +34247 -0
- package/types/AppTrackingTransparency.d.ts +23 -0
- package/types/AppleScriptKit.d.ts +6 -0
- package/types/ApplicationServices.d.ts +6346 -0
- package/types/AudioToolbox.d.ts +7129 -0
- package/types/AudioVideoBridging.d.ts +613 -0
- package/types/AuthenticationServices.d.ts +982 -0
- package/types/AutomaticAssessmentConfiguration.d.ts +46 -0
- package/types/Automator.d.ts +248 -0
- package/types/BackgroundAssets.d.ts +9 -0
- package/types/BrowserEngineKit.d.ts +166 -0
- package/types/BusinessChat.d.ts +29 -0
- package/types/CFNetwork.d.ts +931 -0
- package/types/CalendarStore.d.ts +354 -0
- package/types/CallKit.d.ts +30 -0
- package/types/Carbon.d.ts +16207 -0
- package/types/ClassKit.d.ts +281 -0
- package/types/CloudKit.d.ts +1565 -0
- package/types/Collaboration.d.ts +123 -0
- package/types/ColorSync.d.ts +562 -0
- package/types/CompositorServices.d.ts +60 -0
- package/types/ComputeGraph.d.ts +16 -0
- package/types/Contacts.d.ts +1558 -0
- package/types/ContactsUI.d.ts +39 -0
- package/types/CoreAudio.d.ts +1376 -0
- package/types/CoreAudioKit.d.ts +122 -0
- package/types/CoreAudioTypes.d.ts +1003 -0
- package/types/CoreBluetooth.d.ts +657 -0
- package/types/CoreData.d.ts +2479 -0
- package/types/CoreFoundation.d.ts +5546 -0
- package/types/CoreGraphics.d.ts +3676 -0
- package/types/CoreHaptics.d.ts +361 -0
- package/types/CoreImage.d.ts +4781 -0
- package/types/CoreLocation.d.ts +564 -0
- package/types/CoreMIDI.d.ts +1538 -0
- package/types/CoreML.d.ts +905 -0
- package/types/CoreMedia.d.ts +2615 -0
- package/types/CoreMediaIO.d.ts +1046 -0
- package/types/CoreMotion.d.ts +316 -0
- package/types/CoreServices.d.ts +24810 -0
- package/types/CoreSpotlight.d.ts +789 -0
- package/types/CoreTelephony.d.ts +31 -0
- package/types/CoreText.d.ts +3973 -0
- package/types/CoreTransferable.d.ts +3 -0
- package/types/CoreVideo.d.ts +1162 -0
- package/types/CoreWLAN.d.ts +556 -0
- package/types/CryptoTokenKit.d.ts +548 -0
- package/types/DVDPlayback.d.ts +931 -0
- package/types/DataDetection.d.ts +66 -0
- package/types/DeviceCheck.d.ts +46 -0
- package/types/DeviceDiscoveryExtension.d.ts +142 -0
- package/types/DirectoryService.d.ts +966 -0
- package/types/DiscRecording.d.ts +2345 -0
- package/types/DiscRecordingUI.d.ts +288 -0
- package/types/DiskArbitration.d.ts +366 -0
- package/types/DriverKit.d.ts +639 -0
- package/types/EventKit.d.ts +640 -0
- package/types/ExceptionHandling.d.ts +56 -0
- package/types/ExecutionPolicy.d.ts +30 -0
- package/types/ExternalAccessory.d.ts +98 -0
- package/types/FSKit.d.ts +237 -0
- package/types/FileProvider.d.ts +495 -0
- package/types/FileProviderUI.d.ts +31 -0
- package/types/FinderSync.d.ts +165 -0
- package/types/FocusEngine.d.ts +133 -0
- package/types/ForceFeedback.d.ts +399 -0
- package/types/Foundation.d.ts +18216 -0
- package/types/GLKit.d.ts +937 -0
- package/types/GLUT.d.ts +1018 -0
- package/types/GSS.d.ts +855 -0
- package/types/GameController.d.ts +1394 -0
- package/types/GameKit.d.ts +1958 -0
- package/types/GameSave.d.ts +54 -0
- package/types/GameplayKit.d.ts +1645 -0
- package/types/HealthKit.d.ts +278 -0
- package/types/Hypervisor.d.ts +2079 -0
- package/types/ICADevices.d.ts +1400 -0
- package/types/IOBluetooth.d.ts +6094 -0
- package/types/IOBluetoothUI.d.ts +250 -0
- package/types/IOKit.d.ts +25804 -0
- package/types/IOSurface.d.ts +435 -0
- package/types/IOUSBHost.d.ts +809 -0
- package/types/ImageCaptureCore.d.ts +1104 -0
- package/types/ImageIO.d.ts +1697 -0
- package/types/InputMethodKit.d.ts +264 -0
- package/types/InstallerPlugins.d.ts +102 -0
- package/types/InstantMessage.d.ts +229 -0
- package/types/Intents.d.ts +1833 -0
- package/types/IntentsUI.d.ts +5 -0
- package/types/JavaRuntimeSupport.d.ts +520 -0
- package/types/JavaScriptCore.d.ts +934 -0
- package/types/Kerberos.d.ts +3754 -0
- package/types/Kernel.d.ts +33698 -0
- package/types/KernelManagement.d.ts +5 -0
- package/types/LatentSemanticMapping.d.ts +152 -0
- package/types/LinkPresentation.d.ts +57 -0
- package/types/LocalAuthentication.d.ts +94 -0
- package/types/MLCompute.d.ts +2343 -0
- package/types/MapKit.d.ts +2125 -0
- package/types/Matter.d.ts +151 -0
- package/types/MediaAccessibility.d.ts +137 -0
- package/types/MediaLibrary.d.ts +394 -0
- package/types/MediaPlayer.d.ts +475 -0
- package/types/MediaToolbox.d.ts +70 -0
- package/types/Metal.d.ts +4542 -0
- package/types/MetalFX.d.ts +107 -0
- package/types/MetalKit.d.ts +524 -0
- package/types/MetalPerformanceShaders.d.ts +9306 -0
- package/types/MetalPerformanceShadersGraph.d.ts +1394 -0
- package/types/MetricKit.d.ts +231 -0
- package/types/ModelIO.d.ts +2908 -0
- package/types/MultipeerConnectivity.d.ts +348 -0
- package/types/NaturalLanguage.d.ts +556 -0
- package/types/NearbyInteraction.d.ts +51 -0
- package/types/NetFS.d.ts +99 -0
- package/types/Network.d.ts +1622 -0
- package/types/NetworkExtension.d.ts +1574 -0
- package/types/NotificationCenter.d.ts +103 -0
- package/types/OSAKit.d.ts +260 -0
- package/types/OSLog.d.ts +208 -0
- package/types/OpenAL.d.ts +314 -0
- package/types/OpenCL.d.ts +2489 -0
- package/types/OpenDirectory.d.ts +1919 -0
- package/types/OpenGL.d.ts +11322 -0
- package/types/PCSC.d.ts +534 -0
- package/types/PDFKit.d.ts +1575 -0
- package/types/PHASE.d.ts +166 -0
- package/types/ParavirtualizedGraphics.d.ts +153 -0
- package/types/PassKit.d.ts +1287 -0
- package/types/PencilKit.d.ts +201 -0
- package/types/Photos.d.ts +1125 -0
- package/types/PhotosUI.d.ts +397 -0
- package/types/PreferencePanes.d.ts +68 -0
- package/types/ProximityReaderStub.d.ts +5 -0
- package/types/PushKit.d.ts +45 -0
- package/types/Quartz.d.ts +1642 -0
- package/types/QuartzCore.d.ts +1398 -0
- package/types/QuickLook.d.ts +212 -0
- package/types/QuickLookThumbnailing.d.ts +131 -0
- package/types/QuickLookUI.d.ts +117 -0
- package/types/REVISION.json +5 -0
- package/types/ReplayKit.d.ts +294 -0
- package/types/Runtime.d.ts +51605 -0
- package/types/SafariServices.d.ts +430 -0
- package/types/SafetyKit.d.ts +7 -0
- package/types/SceneKit.d.ts +4996 -0
- package/types/ScreenCaptureKit.d.ts +16 -0
- package/types/ScreenSaver.d.ts +41 -0
- package/types/ScreenTime.d.ts +41 -0
- package/types/ScriptingBridge.d.ts +96 -0
- package/types/Security.d.ts +14336 -0
- package/types/SecurityFoundation.d.ts +53 -0
- package/types/SecurityInterface.d.ts +297 -0
- package/types/SensorKit.d.ts +7 -0
- package/types/ServiceManagement.d.ts +71 -0
- package/types/SharedWithYou.d.ts +9 -0
- package/types/SharedWithYouCore.d.ts +5 -0
- package/types/ShazamKit.d.ts +12 -0
- package/types/Social.d.ts +306 -0
- package/types/SoundAnalysis.d.ts +177 -0
- package/types/Speech.d.ts +246 -0
- package/types/SpriteKit.d.ts +2766 -0
- package/types/StoreKit.d.ts +509 -0
- package/types/SyncServices.d.ts +551 -0
- package/types/SystemConfiguration.d.ts +1415 -0
- package/types/SystemExtensions.d.ts +89 -0
- package/types/TWAIN.d.ts +380 -0
- package/types/Tcl.d.ts +4013 -0
- package/types/ThreadNetwork.d.ts +77 -0
- package/types/Tk.d.ts +3750 -0
- package/types/UIUtilities.d.ts +31 -0
- package/types/UniformTypeIdentifiers.d.ts +358 -0
- package/types/UserNotifications.d.ts +538 -0
- package/types/UserNotificationsUI.d.ts +38 -0
- package/types/VideoDecodeAcceleration.d.ts +50 -0
- package/types/VideoSubscriberAccount.d.ts +139 -0
- package/types/VideoToolbox.d.ts +907 -0
- package/types/Virtualization.d.ts +302 -0
- package/types/Vision.d.ts +1723 -0
- package/types/WebKit.d.ts +5195 -0
- package/types/WidgetKit.d.ts +9 -0
- package/types/_LocationEssentials.d.ts +159 -0
- package/types/_ScreenCaptureKit_SwiftUI.d.ts +5 -0
- package/types/iTunesLibrary.d.ts +528 -0
- package/types/index.d.ts +9 -0
- package/types/vecLib.d.ts +33586 -0
- package/types/vmnet.d.ts +178 -0
- package/src/appkit.d.ts +0 -472
|
@@ -0,0 +1,1723 @@
|
|
|
1
|
+
/// <reference types="@nativescript/objc-node-api" />
|
|
2
|
+
/// <reference path="./Runtime.d.ts" />
|
|
3
|
+
|
|
4
|
+
declare const VNVisionVersionNumber: number
|
|
5
|
+
|
|
6
|
+
declare const VNRecognizeTextRequestRevision2: number
|
|
7
|
+
|
|
8
|
+
declare const VNRecognizeTextRequestRevision1: number
|
|
9
|
+
|
|
10
|
+
declare const VNHumanBodyPoseObservationJointsGroupNameRightLeg: string
|
|
11
|
+
|
|
12
|
+
declare const VNHumanBodyPoseObservationJointsGroupNameLeftArm: string
|
|
13
|
+
|
|
14
|
+
declare const VNHumanBodyPoseObservationJointsGroupNameTorso: string
|
|
15
|
+
|
|
16
|
+
declare const VNHumanBodyPoseObservationJointNameLeftAnkle: string
|
|
17
|
+
|
|
18
|
+
declare const VNHumanBodyPoseObservationJointNameRoot: string
|
|
19
|
+
|
|
20
|
+
declare const VNHumanBodyPoseObservationJointNameLeftWrist: string
|
|
21
|
+
|
|
22
|
+
declare const VNHumanBodyPoseObservationJointNameLeftElbow: string
|
|
23
|
+
|
|
24
|
+
declare const VNHumanBodyPoseObservationJointNameNeck: string
|
|
25
|
+
|
|
26
|
+
declare const VNHumanBodyPoseObservationJointNameRightEar: string
|
|
27
|
+
|
|
28
|
+
declare const VNHumanBodyPoseObservationJointNameLeftEar: string
|
|
29
|
+
|
|
30
|
+
declare const VNBodyLandmarkRegionKeyLeftArm: string
|
|
31
|
+
|
|
32
|
+
declare const VNBodyLandmarkKeyRightAnkle: string
|
|
33
|
+
|
|
34
|
+
declare const VNBodyLandmarkKeyLeftAnkle: string
|
|
35
|
+
|
|
36
|
+
declare const VNBodyLandmarkKeyLeftHip: string
|
|
37
|
+
|
|
38
|
+
declare const VNBodyLandmarkKeyRightWrist: string
|
|
39
|
+
|
|
40
|
+
declare const VNBodyLandmarkKeyNeck: string
|
|
41
|
+
|
|
42
|
+
declare const VNBodyLandmarkKeyRightShoulder: string
|
|
43
|
+
|
|
44
|
+
declare const VNBodyLandmarkKeyLeftShoulder: string
|
|
45
|
+
|
|
46
|
+
declare const VNBodyLandmarkKeyLeftEar: string
|
|
47
|
+
|
|
48
|
+
declare const VNBodyLandmarkKeyLeftEye: string
|
|
49
|
+
|
|
50
|
+
declare const VNBodyLandmarkKeyNose: string
|
|
51
|
+
|
|
52
|
+
declare const VNDetectHumanHandPoseRequestRevision1: number
|
|
53
|
+
|
|
54
|
+
declare const VNHumanHandPoseObservationJointsGroupNameAll: string
|
|
55
|
+
|
|
56
|
+
declare const VNHumanHandPoseObservationJointsGroupNameIndexFinger: string
|
|
57
|
+
|
|
58
|
+
declare const VNHumanHandPoseObservationJointNameRingDIP: string
|
|
59
|
+
|
|
60
|
+
declare const VNHumanHandPoseObservationJointNameMiddleDIP: string
|
|
61
|
+
|
|
62
|
+
declare const VNHumanHandPoseObservationJointNameMiddleMCP: string
|
|
63
|
+
|
|
64
|
+
declare const VNHumanHandPoseObservationJointNameThumbTip: string
|
|
65
|
+
|
|
66
|
+
declare const VNHumanHandPoseObservationJointNameThumbIP: string
|
|
67
|
+
|
|
68
|
+
declare const VNGenerateOpticalFlowRequestRevision1: number
|
|
69
|
+
|
|
70
|
+
declare const VNDetectTrajectoriesRequestRevision1: number
|
|
71
|
+
|
|
72
|
+
declare const VNRecognizeAnimalsRequestRevision1: number
|
|
73
|
+
|
|
74
|
+
declare const VNTranslationalImageRegistrationRequestRevision1: number
|
|
75
|
+
|
|
76
|
+
declare const VNImageOptionCIContext: string
|
|
77
|
+
|
|
78
|
+
declare const VNCoreMLRequestRevision1: number
|
|
79
|
+
|
|
80
|
+
declare const VNGenerateObjectnessBasedSaliencyImageRequestRevision1: number
|
|
81
|
+
|
|
82
|
+
declare const VNDetectRectanglesRequestRevision1: number
|
|
83
|
+
|
|
84
|
+
declare const VNDetectHorizonRequestRevision1: number
|
|
85
|
+
|
|
86
|
+
declare const VNDetectFaceLandmarksRequestRevision2: number
|
|
87
|
+
|
|
88
|
+
declare const VNDetectFaceRectanglesRequestRevision1: number
|
|
89
|
+
|
|
90
|
+
declare const VNClassifyImageRequestRevision1: number
|
|
91
|
+
|
|
92
|
+
declare const VNRecognizedPoint3DGroupKeyAll: string
|
|
93
|
+
|
|
94
|
+
declare const VNNormalizedIdentityRect: CGRect
|
|
95
|
+
|
|
96
|
+
declare const VNErrorDomain: string
|
|
97
|
+
|
|
98
|
+
declare const VNVideoProcessingOptionTimeInterval: string
|
|
99
|
+
|
|
100
|
+
declare const VNBarcodeSymbologyUPCE: string
|
|
101
|
+
|
|
102
|
+
declare const VNBarcodeSymbologyQR: string
|
|
103
|
+
|
|
104
|
+
declare const VNBarcodeSymbologyPDF417: string
|
|
105
|
+
|
|
106
|
+
declare const VNBarcodeSymbologyI2of5Checksum: string
|
|
107
|
+
|
|
108
|
+
declare const VNBarcodeSymbologyCode93i: string
|
|
109
|
+
|
|
110
|
+
declare const VNBarcodeSymbologyCode93: string
|
|
111
|
+
|
|
112
|
+
declare const VNBarcodeSymbologyAztec: string
|
|
113
|
+
|
|
114
|
+
declare const VNImageOptionProperties: string
|
|
115
|
+
|
|
116
|
+
declare const VNHumanBodyPoseObservationJointNameLeftKnee: string
|
|
117
|
+
|
|
118
|
+
declare const VNHumanHandPoseObservationJointNameLittlePIP: string
|
|
119
|
+
|
|
120
|
+
declare const VNHumanHandPoseObservationJointNameIndexDIP: string
|
|
121
|
+
|
|
122
|
+
declare const VNHumanBodyPoseObservationJointNameRightShoulder: string
|
|
123
|
+
|
|
124
|
+
declare const VNBodyLandmarkKeyRightEye: string
|
|
125
|
+
|
|
126
|
+
declare const VNHumanHandPoseObservationJointsGroupNameRingFinger: string
|
|
127
|
+
|
|
128
|
+
declare const VNDetectFaceLandmarksRequestRevision3: number
|
|
129
|
+
|
|
130
|
+
declare const VNVideoProcessingOptionFrameCadence: string
|
|
131
|
+
|
|
132
|
+
declare const VNTrackObjectRequestRevision2: number
|
|
133
|
+
|
|
134
|
+
declare const VNHumanHandPoseObservationJointNameLittleMCP: string
|
|
135
|
+
|
|
136
|
+
declare const VNBodyLandmarkKeyRightKnee: string
|
|
137
|
+
|
|
138
|
+
declare const VNBarcodeSymbologyEAN8: string
|
|
139
|
+
|
|
140
|
+
declare const VNImageOptionCameraIntrinsics: string
|
|
141
|
+
|
|
142
|
+
declare const VNHumanHandPoseObservationJointsGroupNameThumb: string
|
|
143
|
+
|
|
144
|
+
declare const VNBodyLandmarkKeyLeftKnee: string
|
|
145
|
+
|
|
146
|
+
declare const VNBodyLandmarkKeyRightHip: string
|
|
147
|
+
|
|
148
|
+
declare const VNHumanHandPoseObservationJointsGroupNameMiddleFinger: string
|
|
149
|
+
|
|
150
|
+
declare const VNBarcodeSymbologyCode39FullASCII: string
|
|
151
|
+
|
|
152
|
+
declare const VNDetectContourRequestRevision1: number
|
|
153
|
+
|
|
154
|
+
declare const VNBodyLandmarkKeyLeftWrist: string
|
|
155
|
+
|
|
156
|
+
declare const VNHumanHandPoseObservationJointNameIndexTip: string
|
|
157
|
+
|
|
158
|
+
declare const VNHumanBodyPoseObservationJointNameRightEye: string
|
|
159
|
+
|
|
160
|
+
declare const VNHomographicImageRegistrationRequestRevision1: number
|
|
161
|
+
|
|
162
|
+
declare const VNHumanHandPoseObservationJointNameIndexPIP: string
|
|
163
|
+
|
|
164
|
+
declare const VNRequestRevisionUnspecified: number
|
|
165
|
+
|
|
166
|
+
declare const VNHumanBodyPoseObservationJointNameLeftHip: string
|
|
167
|
+
|
|
168
|
+
declare const VNBarcodeSymbologyCode39: string
|
|
169
|
+
|
|
170
|
+
declare const VNHumanHandPoseObservationJointNameWrist: string
|
|
171
|
+
|
|
172
|
+
declare const VNHumanHandPoseObservationJointNameRingMCP: string
|
|
173
|
+
|
|
174
|
+
declare const VNBodyLandmarkKeyRoot: string
|
|
175
|
+
|
|
176
|
+
declare const VNHumanHandPoseObservationJointNameIndexMCP: string
|
|
177
|
+
|
|
178
|
+
declare const VNHumanHandPoseObservationJointNameThumbMP: string
|
|
179
|
+
|
|
180
|
+
declare const VNHumanBodyPoseObservationJointNameLeftShoulder: string
|
|
181
|
+
|
|
182
|
+
declare const VNHumanBodyPoseObservationJointNameRightKnee: string
|
|
183
|
+
|
|
184
|
+
declare const VNBarcodeSymbologyDataMatrix: string
|
|
185
|
+
|
|
186
|
+
declare const VNHumanBodyPoseObservationJointsGroupNameFace: string
|
|
187
|
+
|
|
188
|
+
declare const VNBodyLandmarkRegionKeyTorso: string
|
|
189
|
+
|
|
190
|
+
declare const VNHumanBodyPoseObservationJointsGroupNameRightArm: string
|
|
191
|
+
|
|
192
|
+
declare const VNBodyLandmarkRegionKeyLeftLeg: string
|
|
193
|
+
|
|
194
|
+
declare const VNHumanBodyPoseObservationJointNameRightAnkle: string
|
|
195
|
+
|
|
196
|
+
declare const VNHumanHandPoseObservationJointsGroupNameLittleFinger: string
|
|
197
|
+
|
|
198
|
+
declare const VNBarcodeSymbologyCode39Checksum: string
|
|
199
|
+
|
|
200
|
+
declare const VNDetectFaceCaptureQualityRequestRevision2: number
|
|
201
|
+
|
|
202
|
+
declare const VNDetectFaceRectanglesRequestRevision2: number
|
|
203
|
+
|
|
204
|
+
declare const VNHumanBodyPoseObservationJointsGroupNameAll: string
|
|
205
|
+
|
|
206
|
+
declare const VNDetectHumanBodyPoseRequestRevision1: number
|
|
207
|
+
|
|
208
|
+
declare const VNHumanHandPoseObservationJointNameMiddleTip: string
|
|
209
|
+
|
|
210
|
+
declare const VNHumanHandPoseObservationJointNameRingPIP: string
|
|
211
|
+
|
|
212
|
+
declare const VNHumanBodyPoseObservationJointNameRightElbow: string
|
|
213
|
+
|
|
214
|
+
declare const VNHumanHandPoseObservationJointNameLittleDIP: string
|
|
215
|
+
|
|
216
|
+
declare const VNHumanHandPoseObservationJointNameMiddlePIP: string
|
|
217
|
+
|
|
218
|
+
declare const VNBarcodeSymbologyEAN13: string
|
|
219
|
+
|
|
220
|
+
declare const VNBarcodeSymbologyCode39FullASCIIChecksum: string
|
|
221
|
+
|
|
222
|
+
declare const VNHumanBodyPoseObservationJointsGroupNameLeftLeg: string
|
|
223
|
+
|
|
224
|
+
declare const VNHumanHandPoseObservationJointNameLittleTip: string
|
|
225
|
+
|
|
226
|
+
declare const VNBodyLandmarkKeyLeftElbow: string
|
|
227
|
+
|
|
228
|
+
declare const VNHumanBodyPoseObservationJointNameNose: string
|
|
229
|
+
|
|
230
|
+
declare const VNGenerateImageFeaturePrintRequestRevision1: number
|
|
231
|
+
|
|
232
|
+
declare const VNTrackRectangleRequestRevision1: number
|
|
233
|
+
|
|
234
|
+
declare const VNHumanHandPoseObservationJointNameRingTip: string
|
|
235
|
+
|
|
236
|
+
declare const VNBodyLandmarkKeyRightElbow: string
|
|
237
|
+
|
|
238
|
+
declare const VNAnimalIdentifierDog: string
|
|
239
|
+
|
|
240
|
+
declare const VNDetectTextRectanglesRequestRevision1: number
|
|
241
|
+
|
|
242
|
+
declare const VNAnimalIdentifierCat: string
|
|
243
|
+
|
|
244
|
+
declare const VNRecognizedPointGroupKeyAll: string
|
|
245
|
+
|
|
246
|
+
declare const VNGenerateAttentionBasedSaliencyImageRequestRevision1: number
|
|
247
|
+
|
|
248
|
+
declare const VNTrackObjectRequestRevision1: number
|
|
249
|
+
|
|
250
|
+
declare const VNBarcodeSymbologyITF14: string
|
|
251
|
+
|
|
252
|
+
declare const VNHumanHandPoseObservationJointNameThumbCMC: string
|
|
253
|
+
|
|
254
|
+
declare const VNHumanBodyPoseObservationJointNameRightHip: string
|
|
255
|
+
|
|
256
|
+
declare const VNBarcodeSymbologyI2of5: string
|
|
257
|
+
|
|
258
|
+
declare const VNDetectFaceCaptureQualityRequestRevision1: number
|
|
259
|
+
|
|
260
|
+
declare const VNHumanBodyPoseObservationJointNameRightWrist: string
|
|
261
|
+
|
|
262
|
+
declare const VNDetectFaceLandmarksRequestRevision1: number
|
|
263
|
+
|
|
264
|
+
declare const VNBodyLandmarkRegionKeyRightLeg: string
|
|
265
|
+
|
|
266
|
+
declare const VNDetectBarcodesRequestRevision1: number
|
|
267
|
+
|
|
268
|
+
declare const VNDetectHumanRectanglesRequestRevision1: number
|
|
269
|
+
|
|
270
|
+
declare const VNBodyLandmarkKeyRightEar: string
|
|
271
|
+
|
|
272
|
+
declare const VNHumanBodyPoseObservationJointNameLeftEye: string
|
|
273
|
+
|
|
274
|
+
declare const VNBodyLandmarkRegionKeyFace: string
|
|
275
|
+
|
|
276
|
+
declare const VNBarcodeSymbologyCode128: string
|
|
277
|
+
|
|
278
|
+
declare const VNBodyLandmarkRegionKeyRightArm: string
|
|
279
|
+
|
|
280
|
+
declare const VNRequestTextRecognitionLevel: {
|
|
281
|
+
Accurate: 0
|
|
282
|
+
Fast: 1
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
declare const VNGenerateOpticalFlowRequestComputationAccuracy: {
|
|
286
|
+
Low: 0
|
|
287
|
+
Medium: 1
|
|
288
|
+
High: 2
|
|
289
|
+
VeryHigh: 3
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
declare const VNRequestTrackingLevel: {
|
|
293
|
+
Accurate: 0
|
|
294
|
+
Fast: 1
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
declare const VNPointsClassification: {
|
|
298
|
+
Disconnected: 0
|
|
299
|
+
OpenPath: 1
|
|
300
|
+
ClosedPath: 2
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
declare const VNElementType: {
|
|
304
|
+
Unknown: 0
|
|
305
|
+
Float: 1
|
|
306
|
+
Double: 2
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
declare const VNChirality: {
|
|
310
|
+
Unknown: 0
|
|
311
|
+
Left: -1
|
|
312
|
+
Right: 1
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
declare const VNGeneratePersonSegmentationRequestQualityLevel: {
|
|
316
|
+
Accurate: 0
|
|
317
|
+
Balanced: 1
|
|
318
|
+
Fast: 2
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
declare const VNTrackOpticalFlowRequestComputationAccuracy: {
|
|
322
|
+
Low: 0
|
|
323
|
+
Medium: 1
|
|
324
|
+
High: 2
|
|
325
|
+
VeryHigh: 3
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
declare const VNRequestFaceLandmarksConstellation: {
|
|
329
|
+
ConstellationNotDefined: 0
|
|
330
|
+
Constellation65Points: 1
|
|
331
|
+
Constellation76Points: 2
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
declare const VNHumanBodyPose3DObservationHeightEstimation: {
|
|
335
|
+
Reference: 0
|
|
336
|
+
Measured: 1
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
declare const VNErrorCode: {
|
|
340
|
+
TuriCoreErrorCode: -1
|
|
341
|
+
OK: 0
|
|
342
|
+
RequestCancelled: 1
|
|
343
|
+
InvalidFormat: 2
|
|
344
|
+
OperationFailed: 3
|
|
345
|
+
OutOfBoundsError: 4
|
|
346
|
+
InvalidOption: 5
|
|
347
|
+
IOError: 6
|
|
348
|
+
MissingOption: 7
|
|
349
|
+
NotImplemented: 8
|
|
350
|
+
InternalError: 9
|
|
351
|
+
OutOfMemory: 10
|
|
352
|
+
UnknownError: 11
|
|
353
|
+
InvalidOperation: 12
|
|
354
|
+
InvalidImage: 13
|
|
355
|
+
InvalidArgument: 14
|
|
356
|
+
InvalidModel: 15
|
|
357
|
+
UnsupportedRevision: 16
|
|
358
|
+
DataUnavailable: 17
|
|
359
|
+
TimeStampNotFound: 18
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
declare const VNImageCropAndScaleOption: {
|
|
363
|
+
CenterCrop: 0
|
|
364
|
+
ScaleFit: 1
|
|
365
|
+
ScaleFill: 2
|
|
366
|
+
ScaleFitRotate90CCW: 257
|
|
367
|
+
ScaleFillRotate90CCW: 258
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
declare const VNBarcodeCompositeType: {
|
|
371
|
+
None: 0
|
|
372
|
+
Linked: 1
|
|
373
|
+
GS1TypeA: 2
|
|
374
|
+
GS1TypeB: 3
|
|
375
|
+
GS1TypeC: 4
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
declare function VNNormalizedRectIsIdentityRect(normalizedRect: CGRect): boolean
|
|
379
|
+
|
|
380
|
+
declare function VNImagePointForNormalizedPoint(
|
|
381
|
+
normalizedPoint: CGPoint,
|
|
382
|
+
imageWidth: number,
|
|
383
|
+
imageHeight: number,
|
|
384
|
+
): CGPoint
|
|
385
|
+
|
|
386
|
+
declare function VNNormalizedPointForImagePoint(
|
|
387
|
+
imagePoint: CGPoint,
|
|
388
|
+
imageWidth: number,
|
|
389
|
+
imageHeight: number,
|
|
390
|
+
): CGPoint
|
|
391
|
+
|
|
392
|
+
declare function VNImageRectForNormalizedRect(
|
|
393
|
+
normalizedRect: CGRect,
|
|
394
|
+
imageWidth: number,
|
|
395
|
+
imageHeight: number,
|
|
396
|
+
): CGRect
|
|
397
|
+
|
|
398
|
+
declare function VNNormalizedRectForImageRect(
|
|
399
|
+
imageRect: CGRect,
|
|
400
|
+
imageWidth: number,
|
|
401
|
+
imageHeight: number,
|
|
402
|
+
): CGRect
|
|
403
|
+
|
|
404
|
+
declare function VNNormalizedFaceBoundingBoxPointForLandmarkPoint(
|
|
405
|
+
faceLandmarkPoint: unknown /* ext vector */,
|
|
406
|
+
faceBoundingBox: CGRect,
|
|
407
|
+
imageWidth: number,
|
|
408
|
+
imageHeight: number,
|
|
409
|
+
): CGPoint
|
|
410
|
+
|
|
411
|
+
declare function VNImagePointForFaceLandmarkPoint(
|
|
412
|
+
faceLandmarkPoint: unknown /* ext vector */,
|
|
413
|
+
faceBoundingBox: CGRect,
|
|
414
|
+
imageWidth: number,
|
|
415
|
+
imageHeight: number,
|
|
416
|
+
): CGPoint
|
|
417
|
+
|
|
418
|
+
declare function VNElementTypeSize(elementType: interop.Enum<typeof VNElementType>): number
|
|
419
|
+
|
|
420
|
+
declare interface VNFaceObservationAccepting extends NSObjectProtocol {
|
|
421
|
+
get inputFaceObservations(): NSArray
|
|
422
|
+
set inputFaceObservations(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
declare class VNFaceObservationAccepting
|
|
426
|
+
extends NativeObject
|
|
427
|
+
implements VNFaceObservationAccepting {}
|
|
428
|
+
|
|
429
|
+
declare interface VNRequestProgressProviding extends NSObjectProtocol {
|
|
430
|
+
progressHandler: (p1: VNRequest, p2: number, p3: NSError) => void
|
|
431
|
+
|
|
432
|
+
readonly indeterminate: boolean
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
declare class VNRequestProgressProviding
|
|
436
|
+
extends NativeObject
|
|
437
|
+
implements VNRequestProgressProviding {}
|
|
438
|
+
|
|
439
|
+
declare interface VNRequestRevisionProviding {
|
|
440
|
+
readonly requestRevision: number
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
declare class VNRequestRevisionProviding
|
|
444
|
+
extends NativeObject
|
|
445
|
+
implements VNRequestRevisionProviding {}
|
|
446
|
+
|
|
447
|
+
declare class VNHumanHandPoseObservation extends VNRecognizedPointsObservation {
|
|
448
|
+
readonly availableJointNames: NSArray
|
|
449
|
+
|
|
450
|
+
readonly availableJointsGroupNames: NSArray
|
|
451
|
+
|
|
452
|
+
recognizedPointForJointNameError(
|
|
453
|
+
jointName: string,
|
|
454
|
+
error: interop.PointerConvertible,
|
|
455
|
+
): VNRecognizedPoint
|
|
456
|
+
|
|
457
|
+
recognizedPointsForJointsGroupNameError(
|
|
458
|
+
jointsGroupName: string,
|
|
459
|
+
error: interop.PointerConvertible,
|
|
460
|
+
): NSDictionary
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
declare class VNVideoProcessorRequestProcessingOptions extends NSObject implements NSCopying {
|
|
464
|
+
cadence: VNVideoProcessorCadence
|
|
465
|
+
|
|
466
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
declare class VNDetectContoursRequest extends VNImageBasedRequest {
|
|
470
|
+
contrastAdjustment: number
|
|
471
|
+
|
|
472
|
+
detectsDarkOnLight: boolean
|
|
473
|
+
|
|
474
|
+
detectDarkOnLight: boolean
|
|
475
|
+
|
|
476
|
+
maximumImageDimension: number
|
|
477
|
+
|
|
478
|
+
readonly results: NSArray
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
declare class VNTrackRectangleRequest extends VNTrackingRequest {
|
|
482
|
+
initWithRectangleObservation(observation: VNRectangleObservation): this
|
|
483
|
+
|
|
484
|
+
initWithRectangleObservationCompletionHandler(
|
|
485
|
+
observation: VNRectangleObservation,
|
|
486
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
487
|
+
): this
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
declare class VNTrackingRequest extends VNImageBasedRequest {
|
|
491
|
+
inputObservation: VNDetectedObjectObservation
|
|
492
|
+
|
|
493
|
+
trackingLevel: interop.Enum<typeof VNRequestTrackingLevel>
|
|
494
|
+
|
|
495
|
+
lastFrame: boolean
|
|
496
|
+
|
|
497
|
+
isLastFrame(): boolean
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
declare class VNTranslationalImageRegistrationRequest extends VNImageRegistrationRequest {
|
|
501
|
+
readonly results: NSArray
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
declare class VNImageRegistrationRequest extends VNTargetedImageRequest {}
|
|
505
|
+
|
|
506
|
+
declare class VNSequenceRequestHandler extends NSObject {
|
|
507
|
+
init(): this
|
|
508
|
+
|
|
509
|
+
performRequestsOnCVPixelBufferError(
|
|
510
|
+
requests: NSArray<interop.Object> | Array<interop.Object>,
|
|
511
|
+
pixelBuffer: interop.Object,
|
|
512
|
+
error: interop.PointerConvertible,
|
|
513
|
+
): boolean
|
|
514
|
+
|
|
515
|
+
performRequestsOnCVPixelBufferOrientationError(
|
|
516
|
+
requests: NSArray<interop.Object> | Array<interop.Object>,
|
|
517
|
+
pixelBuffer: interop.Object,
|
|
518
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
519
|
+
error: interop.PointerConvertible,
|
|
520
|
+
): boolean
|
|
521
|
+
|
|
522
|
+
performRequestsOnCGImageError(
|
|
523
|
+
requests: NSArray<interop.Object> | Array<interop.Object>,
|
|
524
|
+
image: interop.Object,
|
|
525
|
+
error: interop.PointerConvertible,
|
|
526
|
+
): boolean
|
|
527
|
+
|
|
528
|
+
performRequestsOnCGImageOrientationError(
|
|
529
|
+
requests: NSArray<interop.Object> | Array<interop.Object>,
|
|
530
|
+
image: interop.Object,
|
|
531
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
532
|
+
error: interop.PointerConvertible,
|
|
533
|
+
): boolean
|
|
534
|
+
|
|
535
|
+
performRequestsOnCIImageError(
|
|
536
|
+
requests: NSArray<interop.Object> | Array<interop.Object>,
|
|
537
|
+
image: CIImage,
|
|
538
|
+
error: interop.PointerConvertible,
|
|
539
|
+
): boolean
|
|
540
|
+
|
|
541
|
+
performRequestsOnCIImageOrientationError(
|
|
542
|
+
requests: NSArray<interop.Object> | Array<interop.Object>,
|
|
543
|
+
image: CIImage,
|
|
544
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
545
|
+
error: interop.PointerConvertible,
|
|
546
|
+
): boolean
|
|
547
|
+
|
|
548
|
+
performRequestsOnImageURLError(
|
|
549
|
+
requests: NSArray<interop.Object> | Array<interop.Object>,
|
|
550
|
+
imageURL: NSURL,
|
|
551
|
+
error: interop.PointerConvertible,
|
|
552
|
+
): boolean
|
|
553
|
+
|
|
554
|
+
performRequestsOnImageURLOrientationError(
|
|
555
|
+
requests: NSArray<interop.Object> | Array<interop.Object>,
|
|
556
|
+
imageURL: NSURL,
|
|
557
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
558
|
+
error: interop.PointerConvertible,
|
|
559
|
+
): boolean
|
|
560
|
+
|
|
561
|
+
performRequestsOnImageDataError(
|
|
562
|
+
requests: NSArray<interop.Object> | Array<interop.Object>,
|
|
563
|
+
imageData: NSData,
|
|
564
|
+
error: interop.PointerConvertible,
|
|
565
|
+
): boolean
|
|
566
|
+
|
|
567
|
+
performRequestsOnImageDataOrientationError(
|
|
568
|
+
requests: NSArray<interop.Object> | Array<interop.Object>,
|
|
569
|
+
imageData: NSData,
|
|
570
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
571
|
+
error: interop.PointerConvertible,
|
|
572
|
+
): boolean
|
|
573
|
+
|
|
574
|
+
performRequestsOnCMSampleBufferError(
|
|
575
|
+
requests: NSArray<interop.Object> | Array<interop.Object>,
|
|
576
|
+
sampleBuffer: interop.Object,
|
|
577
|
+
error: interop.PointerConvertible,
|
|
578
|
+
): boolean
|
|
579
|
+
|
|
580
|
+
performRequestsOnCMSampleBufferOrientationError(
|
|
581
|
+
requests: NSArray<interop.Object> | Array<interop.Object>,
|
|
582
|
+
sampleBuffer: interop.Object,
|
|
583
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
584
|
+
error: interop.PointerConvertible,
|
|
585
|
+
): boolean
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
declare class VNImageRequestHandler extends NSObject {
|
|
589
|
+
initWithCVPixelBufferOptions(
|
|
590
|
+
pixelBuffer: interop.Object,
|
|
591
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
592
|
+
): this
|
|
593
|
+
|
|
594
|
+
initWithCVPixelBufferOrientationOptions(
|
|
595
|
+
pixelBuffer: interop.Object,
|
|
596
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
597
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
598
|
+
): this
|
|
599
|
+
|
|
600
|
+
initWithCGImageOptions(
|
|
601
|
+
image: interop.Object,
|
|
602
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
603
|
+
): this
|
|
604
|
+
|
|
605
|
+
initWithCGImageOrientationOptions(
|
|
606
|
+
image: interop.Object,
|
|
607
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
608
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
609
|
+
): this
|
|
610
|
+
|
|
611
|
+
initWithCIImageOptions(
|
|
612
|
+
image: CIImage,
|
|
613
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
614
|
+
): this
|
|
615
|
+
|
|
616
|
+
initWithCIImageOrientationOptions(
|
|
617
|
+
image: CIImage,
|
|
618
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
619
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
620
|
+
): this
|
|
621
|
+
|
|
622
|
+
initWithURLOptions(
|
|
623
|
+
imageURL: NSURL,
|
|
624
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
625
|
+
): this
|
|
626
|
+
|
|
627
|
+
initWithURLOrientationOptions(
|
|
628
|
+
imageURL: NSURL,
|
|
629
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
630
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
631
|
+
): this
|
|
632
|
+
|
|
633
|
+
initWithDataOptions(
|
|
634
|
+
imageData: NSData,
|
|
635
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
636
|
+
): this
|
|
637
|
+
|
|
638
|
+
initWithDataOrientationOptions(
|
|
639
|
+
imageData: NSData,
|
|
640
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
641
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
642
|
+
): this
|
|
643
|
+
|
|
644
|
+
initWithCMSampleBufferOptions(
|
|
645
|
+
sampleBuffer: interop.Object,
|
|
646
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
647
|
+
): this
|
|
648
|
+
|
|
649
|
+
initWithCMSampleBufferOrientationOptions(
|
|
650
|
+
sampleBuffer: interop.Object,
|
|
651
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
652
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
653
|
+
): this
|
|
654
|
+
|
|
655
|
+
performRequestsError(
|
|
656
|
+
requests: NSArray<interop.Object> | Array<interop.Object>,
|
|
657
|
+
error: interop.PointerConvertible,
|
|
658
|
+
): boolean
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
declare class VNGenerateObjectnessBasedSaliencyImageRequest extends VNImageBasedRequest {
|
|
662
|
+
readonly results: NSArray
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
declare class VNDetectHorizonRequest extends VNImageBasedRequest {
|
|
666
|
+
readonly results: NSArray
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
declare class VNRecognizedPoints3DObservation extends VNObservation {
|
|
670
|
+
readonly availableKeys: NSArray
|
|
671
|
+
|
|
672
|
+
readonly availableGroupKeys: NSArray
|
|
673
|
+
|
|
674
|
+
recognizedPointForKeyError(
|
|
675
|
+
pointKey: string,
|
|
676
|
+
error: interop.PointerConvertible,
|
|
677
|
+
): VNRecognizedPoint3D
|
|
678
|
+
|
|
679
|
+
recognizedPointsForGroupKeyError(
|
|
680
|
+
groupKey: string,
|
|
681
|
+
error: interop.PointerConvertible,
|
|
682
|
+
): NSDictionary
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
declare class VNRecognizedPointsObservation extends VNObservation {
|
|
686
|
+
readonly availableKeys: NSArray
|
|
687
|
+
|
|
688
|
+
readonly availableGroupKeys: NSArray
|
|
689
|
+
|
|
690
|
+
recognizedPointForKeyError(pointKey: string, error: interop.PointerConvertible): VNRecognizedPoint
|
|
691
|
+
|
|
692
|
+
recognizedPointsForGroupKeyError(
|
|
693
|
+
groupKey: string,
|
|
694
|
+
error: interop.PointerConvertible,
|
|
695
|
+
): NSDictionary
|
|
696
|
+
|
|
697
|
+
keypointsMultiArrayAndReturnError(error: interop.PointerConvertible): MLMultiArray
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
declare class VNFeaturePrintObservation extends VNObservation {
|
|
701
|
+
readonly elementType: interop.Enum<typeof VNElementType>
|
|
702
|
+
|
|
703
|
+
readonly elementCount: number
|
|
704
|
+
|
|
705
|
+
readonly data: NSData
|
|
706
|
+
|
|
707
|
+
computeDistanceToFeaturePrintObservationError(
|
|
708
|
+
outDistance: interop.PointerConvertible,
|
|
709
|
+
featurePrint: VNFeaturePrintObservation,
|
|
710
|
+
error: interop.PointerConvertible,
|
|
711
|
+
): boolean
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
declare class VNSaliencyImageObservation extends VNPixelBufferObservation {
|
|
715
|
+
readonly salientObjects: NSArray
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
declare class VNImageTranslationAlignmentObservation extends VNImageAlignmentObservation {
|
|
719
|
+
readonly alignmentTransform: CGAffineTransform
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
declare class VNHorizonObservation extends VNObservation {
|
|
723
|
+
readonly transform: CGAffineTransform
|
|
724
|
+
|
|
725
|
+
readonly angle: number
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
declare class VNRecognizedText
|
|
729
|
+
extends NSObject
|
|
730
|
+
implements NSCopying, NSSecureCoding, VNRequestRevisionProviding
|
|
731
|
+
{
|
|
732
|
+
readonly string: string
|
|
733
|
+
|
|
734
|
+
readonly confidence: number
|
|
735
|
+
|
|
736
|
+
boundingBoxForRangeError(
|
|
737
|
+
range: _NSRange,
|
|
738
|
+
error: interop.PointerConvertible,
|
|
739
|
+
): VNRectangleObservation
|
|
740
|
+
|
|
741
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
742
|
+
|
|
743
|
+
static readonly supportsSecureCoding: boolean
|
|
744
|
+
|
|
745
|
+
encodeWithCoder(coder: NSCoder): void
|
|
746
|
+
|
|
747
|
+
initWithCoder(coder: NSCoder): this
|
|
748
|
+
|
|
749
|
+
readonly requestRevision: number
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
declare class VNTrajectoryObservation extends VNObservation {
|
|
753
|
+
readonly detectedPoints: NSArray
|
|
754
|
+
|
|
755
|
+
readonly projectedPoints: NSArray
|
|
756
|
+
|
|
757
|
+
readonly equationCoefficients: unknown /* ext vector */
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
declare class VNRectangleObservation extends VNDetectedObjectObservation {
|
|
761
|
+
static rectangleObservationWithRequestRevisionTopLeftBottomLeftBottomRightTopRight<
|
|
762
|
+
This extends abstract new (...args: any) => any,
|
|
763
|
+
>(
|
|
764
|
+
this: This,
|
|
765
|
+
requestRevision: number,
|
|
766
|
+
topLeft: CGPoint,
|
|
767
|
+
bottomLeft: CGPoint,
|
|
768
|
+
bottomRight: CGPoint,
|
|
769
|
+
topRight: CGPoint,
|
|
770
|
+
): InstanceType<This>
|
|
771
|
+
|
|
772
|
+
readonly topLeft: CGPoint
|
|
773
|
+
|
|
774
|
+
readonly topRight: CGPoint
|
|
775
|
+
|
|
776
|
+
readonly bottomLeft: CGPoint
|
|
777
|
+
|
|
778
|
+
readonly bottomRight: CGPoint
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
declare class VNCoreMLFeatureValueObservation extends VNObservation {
|
|
782
|
+
readonly featureValue: MLFeatureValue
|
|
783
|
+
|
|
784
|
+
readonly featureName: string
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
declare class VNRecognizedObjectObservation extends VNDetectedObjectObservation {
|
|
788
|
+
readonly labels: NSArray
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
declare class VNFaceObservation extends VNDetectedObjectObservation {
|
|
792
|
+
static faceObservationWithRequestRevisionBoundingBoxRollYaw<
|
|
793
|
+
This extends abstract new (...args: any) => any,
|
|
794
|
+
>(
|
|
795
|
+
this: This,
|
|
796
|
+
requestRevision: number,
|
|
797
|
+
boundingBox: CGRect,
|
|
798
|
+
roll: NSNumber | null,
|
|
799
|
+
yaw: NSNumber | null,
|
|
800
|
+
): InstanceType<This>
|
|
801
|
+
|
|
802
|
+
readonly landmarks: VNFaceLandmarks2D
|
|
803
|
+
|
|
804
|
+
readonly faceCaptureQuality: NSNumber
|
|
805
|
+
|
|
806
|
+
readonly roll: NSNumber
|
|
807
|
+
|
|
808
|
+
readonly yaw: NSNumber
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
declare class VNDetectedObjectObservation extends VNObservation {
|
|
812
|
+
static observationWithBoundingBox<This extends abstract new (...args: any) => any>(
|
|
813
|
+
this: This,
|
|
814
|
+
boundingBox: CGRect,
|
|
815
|
+
): InstanceType<This>
|
|
816
|
+
|
|
817
|
+
static observationWithRequestRevisionBoundingBox<This extends abstract new (...args: any) => any>(
|
|
818
|
+
this: This,
|
|
819
|
+
requestRevision: number,
|
|
820
|
+
boundingBox: CGRect,
|
|
821
|
+
): InstanceType<This>
|
|
822
|
+
|
|
823
|
+
readonly boundingBox: CGRect
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
declare class VNObservation
|
|
827
|
+
extends NSObject
|
|
828
|
+
implements NSCopying, NSSecureCoding, VNRequestRevisionProviding
|
|
829
|
+
{
|
|
830
|
+
readonly uuid: NSUUID
|
|
831
|
+
|
|
832
|
+
readonly confidence: number
|
|
833
|
+
|
|
834
|
+
readonly timeRange: CMTimeRange
|
|
835
|
+
|
|
836
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
837
|
+
|
|
838
|
+
static readonly supportsSecureCoding: boolean
|
|
839
|
+
|
|
840
|
+
encodeWithCoder(coder: NSCoder): void
|
|
841
|
+
|
|
842
|
+
initWithCoder(coder: NSCoder): this
|
|
843
|
+
|
|
844
|
+
readonly requestRevision: number
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
declare class VNDetectedPoint extends VNPoint {
|
|
848
|
+
readonly confidence: number
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
declare class VNPoint extends NSObject implements NSCopying, NSSecureCoding {
|
|
852
|
+
static readonly zeroPoint: VNPoint
|
|
853
|
+
|
|
854
|
+
static pointByApplyingVectorToPoint(vector: VNVector, point: VNPoint): VNPoint
|
|
855
|
+
|
|
856
|
+
static distanceBetweenPointPoint(point1: VNPoint, point2: VNPoint): number
|
|
857
|
+
|
|
858
|
+
distanceToPoint(point: VNPoint): number
|
|
859
|
+
|
|
860
|
+
initWithXY(x: number, y: number): this
|
|
861
|
+
|
|
862
|
+
initWithLocation(location: CGPoint): this
|
|
863
|
+
|
|
864
|
+
readonly location: CGPoint
|
|
865
|
+
|
|
866
|
+
readonly x: number
|
|
867
|
+
|
|
868
|
+
readonly y: number
|
|
869
|
+
|
|
870
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
871
|
+
|
|
872
|
+
static readonly supportsSecureCoding: boolean
|
|
873
|
+
|
|
874
|
+
encodeWithCoder(coder: NSCoder): void
|
|
875
|
+
|
|
876
|
+
initWithCoder(coder: NSCoder): this
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
declare class VNFaceLandmarkRegion
|
|
880
|
+
extends NSObject
|
|
881
|
+
implements NSCopying, NSSecureCoding, VNRequestRevisionProviding
|
|
882
|
+
{
|
|
883
|
+
readonly pointCount: number
|
|
884
|
+
|
|
885
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
886
|
+
|
|
887
|
+
static readonly supportsSecureCoding: boolean
|
|
888
|
+
|
|
889
|
+
encodeWithCoder(coder: NSCoder): void
|
|
890
|
+
|
|
891
|
+
initWithCoder(coder: NSCoder): this
|
|
892
|
+
|
|
893
|
+
readonly requestRevision: number
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
declare class VNImageAlignmentObservation extends VNObservation {}
|
|
897
|
+
|
|
898
|
+
declare class VNContour extends NSObject implements NSCopying, VNRequestRevisionProviding {
|
|
899
|
+
readonly indexPath: NSIndexPath
|
|
900
|
+
|
|
901
|
+
readonly childContourCount: number
|
|
902
|
+
|
|
903
|
+
readonly childContours: NSArray
|
|
904
|
+
|
|
905
|
+
childContourAtIndexError(childContourIndex: number, error: interop.PointerConvertible): VNContour
|
|
906
|
+
|
|
907
|
+
readonly pointCount: number
|
|
908
|
+
|
|
909
|
+
readonly normalizedPoints: interop.Pointer
|
|
910
|
+
|
|
911
|
+
readonly normalizedPath: interop.Object
|
|
912
|
+
|
|
913
|
+
readonly aspectRatio: number
|
|
914
|
+
|
|
915
|
+
polygonApproximationWithEpsilonError(
|
|
916
|
+
epsilon: number,
|
|
917
|
+
error: interop.PointerConvertible,
|
|
918
|
+
): VNContour
|
|
919
|
+
|
|
920
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
921
|
+
|
|
922
|
+
readonly requestRevision: number
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
declare class VNDetectHumanRectanglesRequest extends VNImageBasedRequest {
|
|
926
|
+
readonly results: NSArray
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
declare class VNDetectRectanglesRequest extends VNImageBasedRequest {
|
|
930
|
+
minimumAspectRatio: number
|
|
931
|
+
|
|
932
|
+
maximumAspectRatio: number
|
|
933
|
+
|
|
934
|
+
quadratureTolerance: number
|
|
935
|
+
|
|
936
|
+
minimumSize: number
|
|
937
|
+
|
|
938
|
+
minimumConfidence: number
|
|
939
|
+
|
|
940
|
+
maximumObservations: number
|
|
941
|
+
|
|
942
|
+
readonly results: NSArray
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
declare class VNDetectFaceLandmarksRequest
|
|
946
|
+
extends VNImageBasedRequest
|
|
947
|
+
implements VNFaceObservationAccepting
|
|
948
|
+
{
|
|
949
|
+
static revisionSupportsConstellation(
|
|
950
|
+
requestRevision: number,
|
|
951
|
+
constellation: interop.Enum<typeof VNRequestFaceLandmarksConstellation>,
|
|
952
|
+
): boolean
|
|
953
|
+
|
|
954
|
+
constellation: interop.Enum<typeof VNRequestFaceLandmarksConstellation>
|
|
955
|
+
|
|
956
|
+
readonly results: NSArray
|
|
957
|
+
|
|
958
|
+
get inputFaceObservations(): NSArray
|
|
959
|
+
set inputFaceObservations(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
960
|
+
|
|
961
|
+
isEqual(object: interop.Object): boolean
|
|
962
|
+
|
|
963
|
+
readonly hash: number
|
|
964
|
+
|
|
965
|
+
readonly superclass: interop.Pointer
|
|
966
|
+
|
|
967
|
+
class(): interop.Pointer
|
|
968
|
+
|
|
969
|
+
self(): this
|
|
970
|
+
|
|
971
|
+
performSelector(aSelector: string): interop.Object
|
|
972
|
+
|
|
973
|
+
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
|
|
974
|
+
|
|
975
|
+
performSelectorWithObjectWithObject(
|
|
976
|
+
aSelector: string,
|
|
977
|
+
object1: interop.Object,
|
|
978
|
+
object2: interop.Object,
|
|
979
|
+
): interop.Object
|
|
980
|
+
|
|
981
|
+
readonly isProxy: boolean
|
|
982
|
+
|
|
983
|
+
isKindOfClass(aClass: interop.PointerConvertible): boolean
|
|
984
|
+
|
|
985
|
+
isMemberOfClass(aClass: interop.PointerConvertible): boolean
|
|
986
|
+
|
|
987
|
+
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
|
|
988
|
+
|
|
989
|
+
respondsToSelector(aSelector: string): boolean
|
|
990
|
+
|
|
991
|
+
retain(): this
|
|
992
|
+
|
|
993
|
+
release(): void
|
|
994
|
+
|
|
995
|
+
autorelease(): this
|
|
996
|
+
|
|
997
|
+
retainCount(): number
|
|
998
|
+
|
|
999
|
+
readonly zone: interop.Pointer
|
|
1000
|
+
|
|
1001
|
+
readonly description: string
|
|
1002
|
+
|
|
1003
|
+
readonly debugDescription: string
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
declare class VNVideoProcessorCadence extends NSObject implements NSCopying {
|
|
1007
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
declare class VNCoreMLModel extends NSObject {
|
|
1011
|
+
static modelForMLModelError<This extends abstract new (...args: any) => any>(
|
|
1012
|
+
this: This,
|
|
1013
|
+
model: MLModel,
|
|
1014
|
+
error: interop.PointerConvertible,
|
|
1015
|
+
): InstanceType<This>
|
|
1016
|
+
|
|
1017
|
+
inputImageFeatureName: string
|
|
1018
|
+
|
|
1019
|
+
featureProvider: MLFeatureProvider
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
declare class VNHumanBodyPoseObservation extends VNRecognizedPointsObservation {
|
|
1023
|
+
readonly availableJointNames: NSArray
|
|
1024
|
+
|
|
1025
|
+
readonly availableJointsGroupNames: NSArray
|
|
1026
|
+
|
|
1027
|
+
recognizedPointForJointNameError(
|
|
1028
|
+
jointName: string,
|
|
1029
|
+
error: interop.PointerConvertible,
|
|
1030
|
+
): VNRecognizedPoint
|
|
1031
|
+
|
|
1032
|
+
recognizedPointsForJointsGroupNameError(
|
|
1033
|
+
jointsGroupName: string,
|
|
1034
|
+
error: interop.PointerConvertible,
|
|
1035
|
+
): NSDictionary
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
declare class VNClassifyImageRequest extends VNImageBasedRequest {
|
|
1039
|
+
static knownClassificationsForRevisionError(
|
|
1040
|
+
requestRevision: number,
|
|
1041
|
+
error: interop.PointerConvertible,
|
|
1042
|
+
): NSArray
|
|
1043
|
+
|
|
1044
|
+
readonly results: NSArray
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
declare class VNDetectTrajectoriesRequest extends VNStatefulRequest {
|
|
1048
|
+
initWithFrameAnalysisSpacingTrajectoryLengthCompletionHandler(
|
|
1049
|
+
frameAnalysisSpacing: CMTime,
|
|
1050
|
+
trajectoryLength: number,
|
|
1051
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1052
|
+
): this
|
|
1053
|
+
|
|
1054
|
+
readonly trajectoryLength: number
|
|
1055
|
+
|
|
1056
|
+
objectMinimumNormalizedRadius: number
|
|
1057
|
+
|
|
1058
|
+
minimumObjectSize: number
|
|
1059
|
+
|
|
1060
|
+
objectMaximumNormalizedRadius: number
|
|
1061
|
+
|
|
1062
|
+
maximumObjectSize: number
|
|
1063
|
+
|
|
1064
|
+
readonly results: NSArray
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
declare class VNImageBasedRequest extends VNRequest {
|
|
1068
|
+
regionOfInterest: CGRect
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
declare class VNVector extends NSObject implements NSCopying, NSSecureCoding {
|
|
1072
|
+
static readonly zeroVector: VNVector
|
|
1073
|
+
|
|
1074
|
+
static unitVectorForVector(vector: VNVector): VNVector
|
|
1075
|
+
|
|
1076
|
+
static vectorByMultiplyingVectorByScalar(vector: VNVector, scalar: number): VNVector
|
|
1077
|
+
|
|
1078
|
+
static vectorByAddingVectorToVector(v1: VNVector, v2: VNVector): VNVector
|
|
1079
|
+
|
|
1080
|
+
static vectorBySubtractingVectorFromVector(v1: VNVector, v2: VNVector): VNVector
|
|
1081
|
+
|
|
1082
|
+
static dotProductOfVectorVector(v1: VNVector, v2: VNVector): number
|
|
1083
|
+
|
|
1084
|
+
initWithXComponentYComponent(x: number, y: number): this
|
|
1085
|
+
|
|
1086
|
+
initWithRTheta(r: number, theta: number): this
|
|
1087
|
+
|
|
1088
|
+
initWithVectorHeadTail(head: VNPoint, tail: VNPoint): this
|
|
1089
|
+
|
|
1090
|
+
readonly x: number
|
|
1091
|
+
|
|
1092
|
+
readonly y: number
|
|
1093
|
+
|
|
1094
|
+
readonly r: number
|
|
1095
|
+
|
|
1096
|
+
readonly theta: number
|
|
1097
|
+
|
|
1098
|
+
readonly length: number
|
|
1099
|
+
|
|
1100
|
+
readonly squaredLength: number
|
|
1101
|
+
|
|
1102
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1103
|
+
|
|
1104
|
+
static readonly supportsSecureCoding: boolean
|
|
1105
|
+
|
|
1106
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1107
|
+
|
|
1108
|
+
initWithCoder(coder: NSCoder): this
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
declare class VNVideoProcessorFrameRateCadence extends VNVideoProcessorCadence {
|
|
1112
|
+
initWithFrameRate(frameRate: number): this
|
|
1113
|
+
|
|
1114
|
+
readonly frameRate: number
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
declare class VNDetectFaceCaptureQualityRequest
|
|
1118
|
+
extends VNImageBasedRequest
|
|
1119
|
+
implements VNFaceObservationAccepting
|
|
1120
|
+
{
|
|
1121
|
+
readonly results: NSArray
|
|
1122
|
+
|
|
1123
|
+
get inputFaceObservations(): NSArray
|
|
1124
|
+
set inputFaceObservations(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1125
|
+
|
|
1126
|
+
isEqual(object: interop.Object): boolean
|
|
1127
|
+
|
|
1128
|
+
readonly hash: number
|
|
1129
|
+
|
|
1130
|
+
readonly superclass: interop.Pointer
|
|
1131
|
+
|
|
1132
|
+
class(): interop.Pointer
|
|
1133
|
+
|
|
1134
|
+
self(): this
|
|
1135
|
+
|
|
1136
|
+
performSelector(aSelector: string): interop.Object
|
|
1137
|
+
|
|
1138
|
+
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
|
|
1139
|
+
|
|
1140
|
+
performSelectorWithObjectWithObject(
|
|
1141
|
+
aSelector: string,
|
|
1142
|
+
object1: interop.Object,
|
|
1143
|
+
object2: interop.Object,
|
|
1144
|
+
): interop.Object
|
|
1145
|
+
|
|
1146
|
+
readonly isProxy: boolean
|
|
1147
|
+
|
|
1148
|
+
isKindOfClass(aClass: interop.PointerConvertible): boolean
|
|
1149
|
+
|
|
1150
|
+
isMemberOfClass(aClass: interop.PointerConvertible): boolean
|
|
1151
|
+
|
|
1152
|
+
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
|
|
1153
|
+
|
|
1154
|
+
respondsToSelector(aSelector: string): boolean
|
|
1155
|
+
|
|
1156
|
+
retain(): this
|
|
1157
|
+
|
|
1158
|
+
release(): void
|
|
1159
|
+
|
|
1160
|
+
autorelease(): this
|
|
1161
|
+
|
|
1162
|
+
retainCount(): number
|
|
1163
|
+
|
|
1164
|
+
readonly zone: interop.Pointer
|
|
1165
|
+
|
|
1166
|
+
readonly description: string
|
|
1167
|
+
|
|
1168
|
+
readonly debugDescription: string
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
declare class VNTargetedImageRequest extends VNImageBasedRequest {
|
|
1172
|
+
initWithTargetedCVPixelBufferOptions(
|
|
1173
|
+
pixelBuffer: interop.Object,
|
|
1174
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1175
|
+
): this
|
|
1176
|
+
|
|
1177
|
+
initWithTargetedCVPixelBufferOptionsCompletionHandler(
|
|
1178
|
+
pixelBuffer: interop.Object,
|
|
1179
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1180
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1181
|
+
): this
|
|
1182
|
+
|
|
1183
|
+
initWithTargetedCVPixelBufferOrientationOptions(
|
|
1184
|
+
pixelBuffer: interop.Object,
|
|
1185
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
1186
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1187
|
+
): this
|
|
1188
|
+
|
|
1189
|
+
initWithTargetedCVPixelBufferOrientationOptionsCompletionHandler(
|
|
1190
|
+
pixelBuffer: interop.Object,
|
|
1191
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
1192
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1193
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1194
|
+
): this
|
|
1195
|
+
|
|
1196
|
+
initWithTargetedCGImageOptions(
|
|
1197
|
+
cgImage: interop.Object,
|
|
1198
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1199
|
+
): this
|
|
1200
|
+
|
|
1201
|
+
initWithTargetedCGImageOptionsCompletionHandler(
|
|
1202
|
+
cgImage: interop.Object,
|
|
1203
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1204
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1205
|
+
): this
|
|
1206
|
+
|
|
1207
|
+
initWithTargetedCGImageOrientationOptions(
|
|
1208
|
+
cgImage: interop.Object,
|
|
1209
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
1210
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1211
|
+
): this
|
|
1212
|
+
|
|
1213
|
+
initWithTargetedCGImageOrientationOptionsCompletionHandler(
|
|
1214
|
+
cgImage: interop.Object,
|
|
1215
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
1216
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1217
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1218
|
+
): this
|
|
1219
|
+
|
|
1220
|
+
initWithTargetedCIImageOptions(
|
|
1221
|
+
ciImage: CIImage,
|
|
1222
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1223
|
+
): this
|
|
1224
|
+
|
|
1225
|
+
initWithTargetedCIImageOptionsCompletionHandler(
|
|
1226
|
+
ciImage: CIImage,
|
|
1227
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1228
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1229
|
+
): this
|
|
1230
|
+
|
|
1231
|
+
initWithTargetedCIImageOrientationOptions(
|
|
1232
|
+
ciImage: CIImage,
|
|
1233
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
1234
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1235
|
+
): this
|
|
1236
|
+
|
|
1237
|
+
initWithTargetedCIImageOrientationOptionsCompletionHandler(
|
|
1238
|
+
ciImage: CIImage,
|
|
1239
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
1240
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1241
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1242
|
+
): this
|
|
1243
|
+
|
|
1244
|
+
initWithTargetedImageURLOptions(
|
|
1245
|
+
imageURL: NSURL,
|
|
1246
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1247
|
+
): this
|
|
1248
|
+
|
|
1249
|
+
initWithTargetedImageURLOptionsCompletionHandler(
|
|
1250
|
+
imageURL: NSURL,
|
|
1251
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1252
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1253
|
+
): this
|
|
1254
|
+
|
|
1255
|
+
initWithTargetedImageURLOrientationOptions(
|
|
1256
|
+
imageURL: NSURL,
|
|
1257
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
1258
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1259
|
+
): this
|
|
1260
|
+
|
|
1261
|
+
initWithTargetedImageURLOrientationOptionsCompletionHandler(
|
|
1262
|
+
imageURL: NSURL,
|
|
1263
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
1264
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1265
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1266
|
+
): this
|
|
1267
|
+
|
|
1268
|
+
initWithTargetedImageDataOptions(
|
|
1269
|
+
imageData: NSData,
|
|
1270
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1271
|
+
): this
|
|
1272
|
+
|
|
1273
|
+
initWithTargetedImageDataOptionsCompletionHandler(
|
|
1274
|
+
imageData: NSData,
|
|
1275
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1276
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1277
|
+
): this
|
|
1278
|
+
|
|
1279
|
+
initWithTargetedImageDataOrientationOptions(
|
|
1280
|
+
imageData: NSData,
|
|
1281
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
1282
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1283
|
+
): this
|
|
1284
|
+
|
|
1285
|
+
initWithTargetedImageDataOrientationOptionsCompletionHandler(
|
|
1286
|
+
imageData: NSData,
|
|
1287
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
1288
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1289
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1290
|
+
): this
|
|
1291
|
+
|
|
1292
|
+
initWithTargetedCMSampleBufferOptions(
|
|
1293
|
+
sampleBuffer: interop.Object,
|
|
1294
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1295
|
+
): this
|
|
1296
|
+
|
|
1297
|
+
initWithTargetedCMSampleBufferOptionsCompletionHandler(
|
|
1298
|
+
sampleBuffer: interop.Object,
|
|
1299
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1300
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1301
|
+
): this
|
|
1302
|
+
|
|
1303
|
+
initWithTargetedCMSampleBufferOrientationOptions(
|
|
1304
|
+
sampleBuffer: interop.Object,
|
|
1305
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
1306
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1307
|
+
): this
|
|
1308
|
+
|
|
1309
|
+
initWithTargetedCMSampleBufferOrientationOptionsCompletionHandler(
|
|
1310
|
+
sampleBuffer: interop.Object,
|
|
1311
|
+
orientation: interop.Enum<typeof CGImagePropertyOrientation>,
|
|
1312
|
+
options: NSDictionary<interop.Object, interop.Object> | Record<interop.Object, interop.Object>,
|
|
1313
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1314
|
+
): this
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
declare class VNContoursObservation extends VNObservation {
|
|
1318
|
+
readonly contourCount: number
|
|
1319
|
+
|
|
1320
|
+
contourAtIndexError(contourIndex: number, error: interop.PointerConvertible): VNContour
|
|
1321
|
+
|
|
1322
|
+
readonly topLevelContourCount: number
|
|
1323
|
+
|
|
1324
|
+
readonly topLevelContours: NSArray
|
|
1325
|
+
|
|
1326
|
+
contourAtIndexPathError(indexPath: NSIndexPath, error: interop.PointerConvertible): VNContour
|
|
1327
|
+
|
|
1328
|
+
readonly normalizedPath: interop.Object
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
declare class VNClassificationObservation extends VNObservation {
|
|
1332
|
+
readonly identifier: string
|
|
1333
|
+
|
|
1334
|
+
readonly hasPrecisionRecallCurve: boolean
|
|
1335
|
+
|
|
1336
|
+
hasMinimumRecallForPrecision(minimumRecall: number, precision: number): boolean
|
|
1337
|
+
|
|
1338
|
+
hasMinimumPrecisionForRecall(minimumPrecision: number, recall: number): boolean
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
declare class VNRecognizeAnimalsRequest extends VNImageBasedRequest {
|
|
1342
|
+
static knownAnimalIdentifiersForRevisionError(
|
|
1343
|
+
requestRevision: number,
|
|
1344
|
+
error: interop.PointerConvertible,
|
|
1345
|
+
): NSArray
|
|
1346
|
+
|
|
1347
|
+
readonly results: NSArray
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
declare class VNRecognizedTextObservation extends VNRectangleObservation {
|
|
1351
|
+
topCandidates(maxCandidateCount: number): NSArray
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
declare class VNTextObservation extends VNRectangleObservation {
|
|
1355
|
+
readonly characterBoxes: NSArray
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
declare class VNCircle extends NSObject implements NSCopying, NSSecureCoding {
|
|
1359
|
+
static readonly zeroCircle: VNCircle
|
|
1360
|
+
|
|
1361
|
+
initWithCenterRadius(center: VNPoint, radius: number): this
|
|
1362
|
+
|
|
1363
|
+
initWithCenterDiameter(center: VNPoint, diameter: number): this
|
|
1364
|
+
|
|
1365
|
+
containsPoint(point: VNPoint): boolean
|
|
1366
|
+
|
|
1367
|
+
containsPointInCircumferentialRingOfWidth(point: VNPoint, ringWidth: number): boolean
|
|
1368
|
+
|
|
1369
|
+
readonly center: VNPoint
|
|
1370
|
+
|
|
1371
|
+
readonly radius: number
|
|
1372
|
+
|
|
1373
|
+
readonly diameter: number
|
|
1374
|
+
|
|
1375
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1376
|
+
|
|
1377
|
+
static readonly supportsSecureCoding: boolean
|
|
1378
|
+
|
|
1379
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1380
|
+
|
|
1381
|
+
initWithCoder(coder: NSCoder): this
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
declare class VNGenerateOpticalFlowRequest extends VNTargetedImageRequest {
|
|
1385
|
+
computationAccuracy: interop.Enum<typeof VNGenerateOpticalFlowRequestComputationAccuracy>
|
|
1386
|
+
|
|
1387
|
+
outputPixelFormat: number
|
|
1388
|
+
|
|
1389
|
+
readonly results: NSArray
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
declare class VNDetectHumanHandPoseRequest extends VNImageBasedRequest {
|
|
1393
|
+
static supportedJointNamesForRevisionError(
|
|
1394
|
+
revision: number,
|
|
1395
|
+
error: interop.PointerConvertible,
|
|
1396
|
+
): NSArray
|
|
1397
|
+
|
|
1398
|
+
static supportedJointsGroupNamesForRevisionError(
|
|
1399
|
+
revision: number,
|
|
1400
|
+
error: interop.PointerConvertible,
|
|
1401
|
+
): NSArray
|
|
1402
|
+
|
|
1403
|
+
maximumHandCount: number
|
|
1404
|
+
|
|
1405
|
+
readonly results: NSArray
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
declare class VNImageHomographicAlignmentObservation extends VNImageAlignmentObservation {
|
|
1409
|
+
readonly warpTransform: simd_float3x3
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
declare class VNRecognizedPoint extends VNDetectedPoint {
|
|
1413
|
+
readonly identifier: string
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
declare class VNHomographicImageRegistrationRequest extends VNImageRegistrationRequest {
|
|
1417
|
+
readonly results: NSArray
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
declare class VNCoreMLRequest extends VNImageBasedRequest {
|
|
1421
|
+
readonly model: VNCoreMLModel
|
|
1422
|
+
|
|
1423
|
+
imageCropAndScaleOption: interop.Enum<typeof VNImageCropAndScaleOption>
|
|
1424
|
+
|
|
1425
|
+
initWithModel(model: VNCoreMLModel): this
|
|
1426
|
+
|
|
1427
|
+
initWithModelCompletionHandler(
|
|
1428
|
+
model: VNCoreMLModel,
|
|
1429
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1430
|
+
): this
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
declare class VNDetectBarcodesRequest extends VNImageBasedRequest {
|
|
1434
|
+
static readonly supportedSymbologies: NSArray
|
|
1435
|
+
|
|
1436
|
+
get symbologies(): NSArray
|
|
1437
|
+
set symbologies(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1438
|
+
|
|
1439
|
+
readonly results: NSArray
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
declare class VNFaceLandmarks
|
|
1443
|
+
extends NSObject
|
|
1444
|
+
implements NSCopying, NSSecureCoding, VNRequestRevisionProviding
|
|
1445
|
+
{
|
|
1446
|
+
readonly confidence: number
|
|
1447
|
+
|
|
1448
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1449
|
+
|
|
1450
|
+
static readonly supportsSecureCoding: boolean
|
|
1451
|
+
|
|
1452
|
+
encodeWithCoder(coder: NSCoder): void
|
|
1453
|
+
|
|
1454
|
+
initWithCoder(coder: NSCoder): this
|
|
1455
|
+
|
|
1456
|
+
readonly requestRevision: number
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
declare class VNFaceLandmarks2D extends VNFaceLandmarks {
|
|
1460
|
+
readonly allPoints: VNFaceLandmarkRegion2D
|
|
1461
|
+
|
|
1462
|
+
readonly faceContour: VNFaceLandmarkRegion2D
|
|
1463
|
+
|
|
1464
|
+
readonly leftEye: VNFaceLandmarkRegion2D
|
|
1465
|
+
|
|
1466
|
+
readonly rightEye: VNFaceLandmarkRegion2D
|
|
1467
|
+
|
|
1468
|
+
readonly leftEyebrow: VNFaceLandmarkRegion2D
|
|
1469
|
+
|
|
1470
|
+
readonly rightEyebrow: VNFaceLandmarkRegion2D
|
|
1471
|
+
|
|
1472
|
+
readonly nose: VNFaceLandmarkRegion2D
|
|
1473
|
+
|
|
1474
|
+
readonly noseCrest: VNFaceLandmarkRegion2D
|
|
1475
|
+
|
|
1476
|
+
readonly medianLine: VNFaceLandmarkRegion2D
|
|
1477
|
+
|
|
1478
|
+
readonly outerLips: VNFaceLandmarkRegion2D
|
|
1479
|
+
|
|
1480
|
+
readonly innerLips: VNFaceLandmarkRegion2D
|
|
1481
|
+
|
|
1482
|
+
readonly leftPupil: VNFaceLandmarkRegion2D
|
|
1483
|
+
|
|
1484
|
+
readonly rightPupil: VNFaceLandmarkRegion2D
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
declare class VNVideoProcessorTimeIntervalCadence extends VNVideoProcessorCadence {
|
|
1488
|
+
initWithTimeInterval(timeInterval: number): this
|
|
1489
|
+
|
|
1490
|
+
readonly timeInterval: number
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
declare class VNDetectFaceRectanglesRequest extends VNImageBasedRequest {
|
|
1494
|
+
readonly results: NSArray
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
declare class VNDetectTextRectanglesRequest extends VNImageBasedRequest {
|
|
1498
|
+
reportCharacterBoxes: boolean
|
|
1499
|
+
|
|
1500
|
+
readonly results: NSArray
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
declare class VNGenerateAttentionBasedSaliencyImageRequest extends VNImageBasedRequest {
|
|
1504
|
+
readonly results: NSArray
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
declare class VNBarcodeObservation extends VNRectangleObservation {
|
|
1508
|
+
readonly symbology: string
|
|
1509
|
+
|
|
1510
|
+
readonly barcodeDescriptor: CIBarcodeDescriptor
|
|
1511
|
+
|
|
1512
|
+
readonly payloadStringValue: string
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
declare class VNPixelBufferObservation extends VNObservation {
|
|
1516
|
+
readonly pixelBuffer: interop.Object
|
|
1517
|
+
|
|
1518
|
+
readonly featureName: string
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
declare class VNFaceLandmarkRegion2D extends VNFaceLandmarkRegion {
|
|
1522
|
+
readonly normalizedPoints: interop.Pointer
|
|
1523
|
+
|
|
1524
|
+
pointsInImageOfSize(imageSize: CGSize): interop.Pointer
|
|
1525
|
+
|
|
1526
|
+
readonly precisionEstimatesPerPoint: NSArray
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
declare class VNGeometryUtils extends NSObject {
|
|
1530
|
+
static boundingCircleForContourError(
|
|
1531
|
+
contour: VNContour,
|
|
1532
|
+
error: interop.PointerConvertible,
|
|
1533
|
+
): VNCircle
|
|
1534
|
+
|
|
1535
|
+
static boundingCircleForPointsError(
|
|
1536
|
+
points: NSArray<interop.Object> | Array<interop.Object>,
|
|
1537
|
+
error: interop.PointerConvertible,
|
|
1538
|
+
): VNCircle
|
|
1539
|
+
|
|
1540
|
+
static boundingCircleForSIMDPointsPointCountError(
|
|
1541
|
+
points: interop.PointerConvertible,
|
|
1542
|
+
pointCount: number,
|
|
1543
|
+
error: interop.PointerConvertible,
|
|
1544
|
+
): VNCircle
|
|
1545
|
+
|
|
1546
|
+
static calculateAreaForContourOrientedAreaError(
|
|
1547
|
+
area: interop.PointerConvertible,
|
|
1548
|
+
contour: VNContour,
|
|
1549
|
+
orientedArea: boolean,
|
|
1550
|
+
error: interop.PointerConvertible,
|
|
1551
|
+
): boolean
|
|
1552
|
+
|
|
1553
|
+
static calculatePerimeterForContourError(
|
|
1554
|
+
perimeter: interop.PointerConvertible,
|
|
1555
|
+
contour: VNContour,
|
|
1556
|
+
error: interop.PointerConvertible,
|
|
1557
|
+
): boolean
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
declare class VNStatefulRequest extends VNImageBasedRequest {
|
|
1561
|
+
initWithFrameAnalysisSpacingCompletionHandler(
|
|
1562
|
+
frameAnalysisSpacing: CMTime,
|
|
1563
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1564
|
+
): this
|
|
1565
|
+
|
|
1566
|
+
readonly minimumLatencyFrameCount: number
|
|
1567
|
+
|
|
1568
|
+
readonly frameAnalysisSpacing: CMTime
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
declare class VNRecognizeTextRequest
|
|
1572
|
+
extends VNImageBasedRequest
|
|
1573
|
+
implements VNRequestProgressProviding
|
|
1574
|
+
{
|
|
1575
|
+
static supportedRecognitionLanguagesForTextRecognitionLevelRevisionError(
|
|
1576
|
+
recognitionLevel: interop.Enum<typeof VNRequestTextRecognitionLevel>,
|
|
1577
|
+
requestRevision: number,
|
|
1578
|
+
error: interop.PointerConvertible,
|
|
1579
|
+
): NSArray
|
|
1580
|
+
|
|
1581
|
+
get recognitionLanguages(): NSArray
|
|
1582
|
+
set recognitionLanguages(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1583
|
+
|
|
1584
|
+
get customWords(): NSArray
|
|
1585
|
+
set customWords(value: NSArray<interop.Object> | Array<interop.Object>)
|
|
1586
|
+
|
|
1587
|
+
recognitionLevel: interop.Enum<typeof VNRequestTextRecognitionLevel>
|
|
1588
|
+
|
|
1589
|
+
usesLanguageCorrection: boolean
|
|
1590
|
+
|
|
1591
|
+
minimumTextHeight: number
|
|
1592
|
+
|
|
1593
|
+
readonly results: NSArray
|
|
1594
|
+
|
|
1595
|
+
progressHandler: (p1: VNRequest, p2: number, p3: NSError) => void
|
|
1596
|
+
|
|
1597
|
+
readonly indeterminate: boolean
|
|
1598
|
+
|
|
1599
|
+
isEqual(object: interop.Object): boolean
|
|
1600
|
+
|
|
1601
|
+
readonly hash: number
|
|
1602
|
+
|
|
1603
|
+
readonly superclass: interop.Pointer
|
|
1604
|
+
|
|
1605
|
+
class(): interop.Pointer
|
|
1606
|
+
|
|
1607
|
+
self(): this
|
|
1608
|
+
|
|
1609
|
+
performSelector(aSelector: string): interop.Object
|
|
1610
|
+
|
|
1611
|
+
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object
|
|
1612
|
+
|
|
1613
|
+
performSelectorWithObjectWithObject(
|
|
1614
|
+
aSelector: string,
|
|
1615
|
+
object1: interop.Object,
|
|
1616
|
+
object2: interop.Object,
|
|
1617
|
+
): interop.Object
|
|
1618
|
+
|
|
1619
|
+
readonly isProxy: boolean
|
|
1620
|
+
|
|
1621
|
+
isKindOfClass(aClass: interop.PointerConvertible): boolean
|
|
1622
|
+
|
|
1623
|
+
isMemberOfClass(aClass: interop.PointerConvertible): boolean
|
|
1624
|
+
|
|
1625
|
+
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean
|
|
1626
|
+
|
|
1627
|
+
respondsToSelector(aSelector: string): boolean
|
|
1628
|
+
|
|
1629
|
+
retain(): this
|
|
1630
|
+
|
|
1631
|
+
release(): void
|
|
1632
|
+
|
|
1633
|
+
autorelease(): this
|
|
1634
|
+
|
|
1635
|
+
retainCount(): number
|
|
1636
|
+
|
|
1637
|
+
readonly zone: interop.Pointer
|
|
1638
|
+
|
|
1639
|
+
readonly description: string
|
|
1640
|
+
|
|
1641
|
+
readonly debugDescription: string
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
declare class VNRequest extends NSObject implements NSCopying {
|
|
1645
|
+
init(): this
|
|
1646
|
+
|
|
1647
|
+
initWithCompletionHandler(completionHandler: (p1: VNRequest, p2: NSError) => void | null): this
|
|
1648
|
+
|
|
1649
|
+
preferBackgroundProcessing: boolean
|
|
1650
|
+
|
|
1651
|
+
usesCPUOnly: boolean
|
|
1652
|
+
|
|
1653
|
+
readonly results: NSArray
|
|
1654
|
+
|
|
1655
|
+
readonly completionHandler: (p1: VNRequest, p2: NSError) => void
|
|
1656
|
+
|
|
1657
|
+
revision: number
|
|
1658
|
+
|
|
1659
|
+
static readonly supportedRevisions: NSIndexSet
|
|
1660
|
+
|
|
1661
|
+
static readonly defaultRevision: number
|
|
1662
|
+
|
|
1663
|
+
static readonly currentRevision: number
|
|
1664
|
+
|
|
1665
|
+
cancel(): void
|
|
1666
|
+
|
|
1667
|
+
copyWithZone(zone: interop.PointerConvertible): interop.Object
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
declare class VNTrackObjectRequest extends VNTrackingRequest {
|
|
1671
|
+
initWithDetectedObjectObservation(observation: VNDetectedObjectObservation): this
|
|
1672
|
+
|
|
1673
|
+
initWithDetectedObjectObservationCompletionHandler(
|
|
1674
|
+
observation: VNDetectedObjectObservation,
|
|
1675
|
+
completionHandler: (p1: VNRequest, p2: NSError) => void | null,
|
|
1676
|
+
): this
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
declare class VNGenerateImageFeaturePrintRequest extends VNImageBasedRequest {
|
|
1680
|
+
imageCropAndScaleOption: interop.Enum<typeof VNImageCropAndScaleOption>
|
|
1681
|
+
|
|
1682
|
+
readonly results: NSArray
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
declare class VNDetectHumanBodyPoseRequest extends VNImageBasedRequest {
|
|
1686
|
+
static supportedJointNamesForRevisionError(
|
|
1687
|
+
revision: number,
|
|
1688
|
+
error: interop.PointerConvertible,
|
|
1689
|
+
): NSArray
|
|
1690
|
+
|
|
1691
|
+
static supportedJointsGroupNamesForRevisionError(
|
|
1692
|
+
revision: number,
|
|
1693
|
+
error: interop.PointerConvertible,
|
|
1694
|
+
): NSArray
|
|
1695
|
+
|
|
1696
|
+
readonly results: NSArray
|
|
1697
|
+
}
|
|
1698
|
+
|
|
1699
|
+
declare class VNVideoProcessor extends NSObject {
|
|
1700
|
+
initWithURL(videoURL: NSURL): this
|
|
1701
|
+
|
|
1702
|
+
addRequestProcessingOptionsError(
|
|
1703
|
+
request: VNRequest,
|
|
1704
|
+
processingOptions: VNVideoProcessorRequestProcessingOptions,
|
|
1705
|
+
error: interop.PointerConvertible,
|
|
1706
|
+
): boolean
|
|
1707
|
+
|
|
1708
|
+
addRequestWithProcessingOptionsError(
|
|
1709
|
+
request: VNRequest,
|
|
1710
|
+
processingOptions:
|
|
1711
|
+
| NSDictionary<interop.Object, interop.Object>
|
|
1712
|
+
| Record<interop.Object, interop.Object>,
|
|
1713
|
+
error: interop.PointerConvertible,
|
|
1714
|
+
): boolean
|
|
1715
|
+
|
|
1716
|
+
removeRequestError(request: VNRequest, error: interop.PointerConvertible): boolean
|
|
1717
|
+
|
|
1718
|
+
analyzeTimeRangeError(timeRange: CMTimeRange, error: interop.PointerConvertible): boolean
|
|
1719
|
+
|
|
1720
|
+
analyzeWithTimeRangeError(timeRange: CMTimeRange, error: interop.PointerConvertible): boolean
|
|
1721
|
+
|
|
1722
|
+
cancel(): void
|
|
1723
|
+
}
|