forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathface_feature.gen.go
194 lines (166 loc) · 6.4 KB
/
face_feature.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
// AUTO-GENERATED CODE, DO NOT MODIFY
package coreimage
import (
"unsafe"
"github.com/progrium/macdriver/macos/coregraphics"
"github.com/progrium/macdriver/objc"
)
// The class instance for the [FaceFeature] class.
var FaceFeatureClass = _FaceFeatureClass{objc.GetClass("CIFaceFeature")}
type _FaceFeatureClass struct {
objc.Class
}
// An interface definition for the [FaceFeature] class.
type IFaceFeature interface {
IFeature
FaceAngle() float64
RightEyeClosed() bool
TrackingID() int
HasTrackingFrameCount() bool
HasLeftEyePosition() bool
HasMouthPosition() bool
RightEyePosition() coregraphics.Point
HasSmile() bool
HasFaceAngle() bool
HasTrackingID() bool
TrackingFrameCount() int
LeftEyeClosed() bool
LeftEyePosition() coregraphics.Point
HasRightEyePosition() bool
MouthPosition() coregraphics.Point
}
// Information about a face detected in a still or video image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature?language=objc
type FaceFeature struct {
Feature
}
func FaceFeatureFrom(ptr unsafe.Pointer) FaceFeature {
return FaceFeature{
Feature: FeatureFrom(ptr),
}
}
func (fc _FaceFeatureClass) Alloc() FaceFeature {
rv := objc.Call[FaceFeature](fc, objc.Sel("alloc"))
return rv
}
func FaceFeature_Alloc() FaceFeature {
return FaceFeatureClass.Alloc()
}
func (fc _FaceFeatureClass) New() FaceFeature {
rv := objc.Call[FaceFeature](fc, objc.Sel("new"))
rv.Autorelease()
return rv
}
func NewFaceFeature() FaceFeature {
return FaceFeatureClass.New()
}
func (f_ FaceFeature) Init() FaceFeature {
rv := objc.Call[FaceFeature](f_, objc.Sel("init"))
return rv
}
// The rotation of the face. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437689-faceangle?language=objc
func (f_ FaceFeature) FaceAngle() float64 {
rv := objc.Call[float64](f_, objc.Sel("faceAngle"))
return rv
}
// A Boolean value that indicates whether a closed right eye is detected in the face. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437615-righteyeclosed?language=objc
func (f_ FaceFeature) RightEyeClosed() bool {
rv := objc.Call[bool](f_, objc.Sel("rightEyeClosed"))
return rv
}
// The tracking identifier of the face object. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437709-trackingid?language=objc
func (f_ FaceFeature) TrackingID() int {
rv := objc.Call[int](f_, objc.Sel("trackingID"))
return rv
}
// A Boolean value that indicates the face object has a tracking frame count. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437731-hastrackingframecount?language=objc
func (f_ FaceFeature) HasTrackingFrameCount() bool {
rv := objc.Call[bool](f_, objc.Sel("hasTrackingFrameCount"))
return rv
}
// A Boolean value that indicates whether the detector found the face’s left eye. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437900-haslefteyeposition?language=objc
func (f_ FaceFeature) HasLeftEyePosition() bool {
rv := objc.Call[bool](f_, objc.Sel("hasLeftEyePosition"))
return rv
}
// A Boolean value that indicates whether the detector found the face’s mouth. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437976-hasmouthposition?language=objc
func (f_ FaceFeature) HasMouthPosition() bool {
rv := objc.Call[bool](f_, objc.Sel("hasMouthPosition"))
return rv
}
// The coordinates of the right eye, in image coordinates [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1438213-righteyeposition?language=objc
func (f_ FaceFeature) RightEyePosition() coregraphics.Point {
rv := objc.Call[coregraphics.Point](f_, objc.Sel("rightEyePosition"))
return rv
}
// A Boolean value that indicates whether a smile is detected in the face. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437882-hassmile?language=objc
func (f_ FaceFeature) HasSmile() bool {
rv := objc.Call[bool](f_, objc.Sel("hasSmile"))
return rv
}
// A Boolean value that indicates whether information about face rotation is available. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1438165-hasfaceangle?language=objc
func (f_ FaceFeature) HasFaceAngle() bool {
rv := objc.Call[bool](f_, objc.Sel("hasFaceAngle"))
return rv
}
// A Boolean value that indicates whether the face object has a tracking ID. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437683-hastrackingid?language=objc
func (f_ FaceFeature) HasTrackingID() bool {
rv := objc.Call[bool](f_, objc.Sel("hasTrackingID"))
return rv
}
// The tracking frame count of the face. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437953-trackingframecount?language=objc
func (f_ FaceFeature) TrackingFrameCount() int {
rv := objc.Call[int](f_, objc.Sel("trackingFrameCount"))
return rv
}
// A Boolean value that indicates whether a closed left eye is detected in the face. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437630-lefteyeclosed?language=objc
func (f_ FaceFeature) LeftEyeClosed() bool {
rv := objc.Call[bool](f_, objc.Sel("leftEyeClosed"))
return rv
}
// The coordinates of the left eye, in image coordinates. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1437923-lefteyeposition?language=objc
func (f_ FaceFeature) LeftEyePosition() coregraphics.Point {
rv := objc.Call[coregraphics.Point](f_, objc.Sel("leftEyePosition"))
return rv
}
// A Boolean value that indicates whether the detector found the face’s right eye. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1438076-hasrighteyeposition?language=objc
func (f_ FaceFeature) HasRightEyePosition() bool {
rv := objc.Call[bool](f_, objc.Sel("hasRightEyePosition"))
return rv
}
// The coordinates of the mouth, in image coordinates [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifacefeature/1438020-mouthposition?language=objc
func (f_ FaceFeature) MouthPosition() coregraphics.Point {
rv := objc.Call[coregraphics.Point](f_, objc.Sel("mouthPosition"))
return rv
}