pyobjc-framework-Vision 12.2__cp315-cp315-macosx_10_15_universal2.whl

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.
Binary file
Vision/__init__.py ADDED
@@ -0,0 +1,89 @@
1
+ """
2
+ Python mapping for the Vision framework.
3
+
4
+ This module does not contain docstrings for the wrapped code, check Apple's
5
+ documentation for details on how to use these functions and classes.
6
+ """
7
+
8
+
9
+ def _setup():
10
+ import sys
11
+
12
+ import Foundation
13
+ import Quartz
14
+ import CoreML
15
+ import objc
16
+ from . import _metadata, _Vision
17
+
18
+ dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
19
+ name="Vision",
20
+ frameworkIdentifier="com.apple.VN",
21
+ frameworkPath=objc.pathForFramework(
22
+ "/System/Library/Frameworks/Vision.framework"
23
+ ),
24
+ globals_dict=globals(),
25
+ inline_list=None,
26
+ parents=(
27
+ _Vision,
28
+ Quartz,
29
+ CoreML,
30
+ Foundation,
31
+ ),
32
+ metadict=_metadata.__dict__,
33
+ )
34
+
35
+ globals()["__dir__"] = dir_func
36
+ globals()["__getattr__"] = getattr_func
37
+
38
+ for cls, sel in (
39
+ ("VNVideoProcessorFrameRateCadence", b"init"),
40
+ ("VNVideoProcessorTimeIntervalCadence", b"init"),
41
+ ("VNVideoProcessor", b"init"),
42
+ (
43
+ "VNGeneratePersonSegmentationRequest",
44
+ b"initWithFrameAnalysisSpacing:completionHandler:",
45
+ ),
46
+ ("VNDetectedPoint", b"init"),
47
+ ("VNDetectedPoint", b"new"),
48
+ ("VNDetectedPoint", b"initWithX:y:"),
49
+ ("VNDetectedPoint", b"initWithLocation:"),
50
+ ("VNFaceLandmarkRegion", b"init"),
51
+ ("VNFaceLandmarkRegion", b"new"),
52
+ ("VNFaceLandmarks", b"init"),
53
+ ("VNCoreMLModel", b"init"),
54
+ ("VNCoreMLRequest", b"init"),
55
+ ("VNCoreMLRequest", b"initWithCompletionHandler:"),
56
+ ("VNTrackingRequest", b"init"),
57
+ ("VNTrackingRequest", b"initWithCompletionHandler:"),
58
+ ("VNHumanBodyRecognizedPoint3D", b"init"),
59
+ ("VNHumanBodyRecognizedPoint3D", b"new"),
60
+ ("VNImageRequestHandler", b"init"),
61
+ ("VNPoint3D", b"init"),
62
+ ("VNContour", b"init"),
63
+ ("VNContour", b"new"),
64
+ ("VNRecognizedPointsObservation", b"init"),
65
+ ("VNRecognizedPointsObservation", b"new"),
66
+ ("VNRecognizedPoints3DObservation", b"init"),
67
+ ("VNRecognizedPoints3DObservation", b"new"),
68
+ ("VNTrackObjectRequest", b"init"),
69
+ ("VNTrackObjectRequest", b"initWithCompletionHandler:"),
70
+ ("VNTargetedImageRequest", b"init"),
71
+ ("VNTargetedImageRequest", b"initWithCompletionHandler:"),
72
+ (
73
+ "VNDetectTrajectoriesRequest",
74
+ b"initWithFrameAnalysisSpacing:completionHandler:",
75
+ ),
76
+ ("VNTrackRectangleRequest", b"init"),
77
+ ("VNTrackRectangleRequest", b"initWithCompletionHandler:"),
78
+ ("VNStatefulRequest", b"init"),
79
+ ("VNStatefulRequest", b"initWithCompletionHandler:"),
80
+ ("VNStatefulRequest", b"new"),
81
+ ("VNRecognizedPoint3D", b"init"),
82
+ ("VNRecognizedPoint3D", b"new"),
83
+ ):
84
+ objc.registerUnavailableMethod(cls, sel)
85
+
86
+ del sys.modules["Vision._metadata"]
87
+
88
+
89
+ globals().pop("_setup")()