forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathface_observation.gen.go
137 lines (114 loc) · 5.36 KB
/
face_observation.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
// Code generated by DarwinKit. DO NOT EDIT.
package vision
import (
"unsafe"
"github.com/progrium/macdriver/macos/coregraphics"
"github.com/progrium/macdriver/macos/foundation"
"github.com/progrium/macdriver/objc"
)
// The class instance for the [FaceObservation] class.
var FaceObservationClass = _FaceObservationClass{objc.GetClass("VNFaceObservation")}
type _FaceObservationClass struct {
objc.Class
}
// An interface definition for the [FaceObservation] class.
type IFaceObservation interface {
IDetectedObjectObservation
Roll() foundation.Number
Pitch() foundation.Number
Yaw() foundation.Number
Landmarks() FaceLandmarks2D
FaceCaptureQuality() foundation.Number
}
// Face or facial-feature information that an image analysis request detects. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservation?language=objc
type FaceObservation struct {
DetectedObjectObservation
}
func FaceObservationFrom(ptr unsafe.Pointer) FaceObservation {
return FaceObservation{
DetectedObjectObservation: DetectedObjectObservationFrom(ptr),
}
}
func (fc _FaceObservationClass) FaceObservationWithRequestRevisionBoundingBoxRollYawPitch(requestRevision uint, boundingBox coregraphics.Rect, roll foundation.INumber, yaw foundation.INumber, pitch foundation.INumber) FaceObservation {
rv := objc.Call[FaceObservation](fc, objc.Sel("faceObservationWithRequestRevision:boundingBox:roll:yaw:pitch:"), requestRevision, boundingBox, objc.Ptr(roll), objc.Ptr(yaw), objc.Ptr(pitch))
return rv
}
// Creates an observation that contains the roll, yaw, and pitch of the face. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservation/3763078-faceobservationwithrequestrevisi?language=objc
func FaceObservation_FaceObservationWithRequestRevisionBoundingBoxRollYawPitch(requestRevision uint, boundingBox coregraphics.Rect, roll foundation.INumber, yaw foundation.INumber, pitch foundation.INumber) FaceObservation {
return FaceObservationClass.FaceObservationWithRequestRevisionBoundingBoxRollYawPitch(requestRevision, boundingBox, roll, yaw, pitch)
}
func (fc _FaceObservationClass) Alloc() FaceObservation {
rv := objc.Call[FaceObservation](fc, objc.Sel("alloc"))
return rv
}
func (fc _FaceObservationClass) New() FaceObservation {
rv := objc.Call[FaceObservation](fc, objc.Sel("new"))
rv.Autorelease()
return rv
}
func NewFaceObservation() FaceObservation {
return FaceObservationClass.New()
}
func (f_ FaceObservation) Init() FaceObservation {
rv := objc.Call[FaceObservation](f_, objc.Sel("init"))
return rv
}
func (fc _FaceObservationClass) ObservationWithBoundingBox(boundingBox coregraphics.Rect) FaceObservation {
rv := objc.Call[FaceObservation](fc, objc.Sel("observationWithBoundingBox:"), boundingBox)
return rv
}
// Creates an observation with a bounding box. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectedobjectobservation/2879297-observationwithboundingbox?language=objc
func FaceObservation_ObservationWithBoundingBox(boundingBox coregraphics.Rect) FaceObservation {
return FaceObservationClass.ObservationWithBoundingBox(boundingBox)
}
func (fc _FaceObservationClass) ObservationWithRequestRevisionBoundingBox(requestRevision uint, boundingBox coregraphics.Rect) FaceObservation {
rv := objc.Call[FaceObservation](fc, objc.Sel("observationWithRequestRevision:boundingBox:"), requestRevision, boundingBox)
return rv
}
// Creates an observation with a revision number and bounding box. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectedobjectobservation/2967105-observationwithrequestrevision?language=objc
func FaceObservation_ObservationWithRequestRevisionBoundingBox(requestRevision uint, boundingBox coregraphics.Rect) FaceObservation {
return FaceObservationClass.ObservationWithRequestRevisionBoundingBox(requestRevision, boundingBox)
}
// The roll angle of a face in radians. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservation/2980939-roll?language=objc
func (f_ FaceObservation) Roll() foundation.Number {
rv := objc.Call[foundation.Number](f_, objc.Sel("roll"))
return rv
}
// The pitch angle of a face in radians. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservation/3750998-pitch?language=objc
func (f_ FaceObservation) Pitch() foundation.Number {
rv := objc.Call[foundation.Number](f_, objc.Sel("pitch"))
return rv
}
// The yaw angle of a face in radians. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservation/2980940-yaw?language=objc
func (f_ FaceObservation) Yaw() foundation.Number {
rv := objc.Call[foundation.Number](f_, objc.Sel("yaw"))
return rv
}
// The facial features of the detected face. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservation/2867250-landmarks?language=objc
func (f_ FaceObservation) Landmarks() FaceLandmarks2D {
rv := objc.Call[FaceLandmarks2D](f_, objc.Sel("landmarks"))
return rv
}
// A value that indicates the quality of the face capture. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservation/3152627-facecapturequality?language=objc
func (f_ FaceObservation) FaceCaptureQuality() foundation.Number {
rv := objc.Call[foundation.Number](f_, objc.Sel("faceCaptureQuality"))
return rv
}