forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetect_rectangles_request.gen.go
170 lines (144 loc) · 7.12 KB
/
detect_rectangles_request.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
// Code generated by DarwinKit. DO NOT EDIT.
package vision
import (
"unsafe"
"github.com/progrium/macdriver/objc"
)
// The class instance for the [DetectRectanglesRequest] class.
var DetectRectanglesRequestClass = _DetectRectanglesRequestClass{objc.GetClass("VNDetectRectanglesRequest")}
type _DetectRectanglesRequestClass struct {
objc.Class
}
// An interface definition for the [DetectRectanglesRequest] class.
type IDetectRectanglesRequest interface {
IImageBasedRequest
MinimumConfidence() Confidence
SetMinimumConfidence(value Confidence)
MaximumAspectRatio() AspectRatio
SetMaximumAspectRatio(value AspectRatio)
MinimumAspectRatio() AspectRatio
SetMinimumAspectRatio(value AspectRatio)
MinimumSize() float64
SetMinimumSize(value float64)
QuadratureTolerance() Degrees
SetQuadratureTolerance(value Degrees)
MaximumObservations() uint
SetMaximumObservations(value uint)
}
// An image analysis request that finds projected rectangular regions in an image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest?language=objc
type DetectRectanglesRequest struct {
ImageBasedRequest
}
func DetectRectanglesRequestFrom(ptr unsafe.Pointer) DetectRectanglesRequest {
return DetectRectanglesRequest{
ImageBasedRequest: ImageBasedRequestFrom(ptr),
}
}
func (dc _DetectRectanglesRequestClass) Alloc() DetectRectanglesRequest {
rv := objc.Call[DetectRectanglesRequest](dc, objc.Sel("alloc"))
return rv
}
func (dc _DetectRectanglesRequestClass) New() DetectRectanglesRequest {
rv := objc.Call[DetectRectanglesRequest](dc, objc.Sel("new"))
rv.Autorelease()
return rv
}
func NewDetectRectanglesRequest() DetectRectanglesRequest {
return DetectRectanglesRequestClass.New()
}
func (d_ DetectRectanglesRequest) Init() DetectRectanglesRequest {
rv := objc.Call[DetectRectanglesRequest](d_, objc.Sel("init"))
return rv
}
func (d_ DetectRectanglesRequest) InitWithCompletionHandler(completionHandler RequestCompletionHandler) DetectRectanglesRequest {
rv := objc.Call[DetectRectanglesRequest](d_, objc.Sel("initWithCompletionHandler:"), completionHandler)
return rv
}
// Creates a new Vision request with an optional completion handler. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnrequest/2875416-initwithcompletionhandler?language=objc
func NewDetectRectanglesRequestWithCompletionHandler(completionHandler RequestCompletionHandler) DetectRectanglesRequest {
instance := DetectRectanglesRequestClass.Alloc().InitWithCompletionHandler(completionHandler)
instance.Autorelease()
return instance
}
// A value specifying the minimum acceptable confidence level. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875375-minimumconfidence?language=objc
func (d_ DetectRectanglesRequest) MinimumConfidence() Confidence {
rv := objc.Call[Confidence](d_, objc.Sel("minimumConfidence"))
return rv
}
// A value specifying the minimum acceptable confidence level. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875375-minimumconfidence?language=objc
func (d_ DetectRectanglesRequest) SetMinimumConfidence(value Confidence) {
objc.Call[objc.Void](d_, objc.Sel("setMinimumConfidence:"), value)
}
// A float specifying the maximum aspect ratio of the rectangle to detect, defined as the shorter dimension over the longer dimension. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875376-maximumaspectratio?language=objc
func (d_ DetectRectanglesRequest) MaximumAspectRatio() AspectRatio {
rv := objc.Call[AspectRatio](d_, objc.Sel("maximumAspectRatio"))
return rv
}
// A float specifying the maximum aspect ratio of the rectangle to detect, defined as the shorter dimension over the longer dimension. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875376-maximumaspectratio?language=objc
func (d_ DetectRectanglesRequest) SetMaximumAspectRatio(value AspectRatio) {
objc.Call[objc.Void](d_, objc.Sel("setMaximumAspectRatio:"), value)
}
// A float specifying the minimum aspect ratio of the rectangle to detect, defined as the shorter dimension over the longer dimension. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875378-minimumaspectratio?language=objc
func (d_ DetectRectanglesRequest) MinimumAspectRatio() AspectRatio {
rv := objc.Call[AspectRatio](d_, objc.Sel("minimumAspectRatio"))
return rv
}
// A float specifying the minimum aspect ratio of the rectangle to detect, defined as the shorter dimension over the longer dimension. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875378-minimumaspectratio?language=objc
func (d_ DetectRectanglesRequest) SetMinimumAspectRatio(value AspectRatio) {
objc.Call[objc.Void](d_, objc.Sel("setMinimumAspectRatio:"), value)
}
// The minimum size of a rectangle to detect, as a proportion of the smallest dimension. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875374-minimumsize?language=objc
func (d_ DetectRectanglesRequest) MinimumSize() float64 {
rv := objc.Call[float64](d_, objc.Sel("minimumSize"))
return rv
}
// The minimum size of a rectangle to detect, as a proportion of the smallest dimension. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875374-minimumsize?language=objc
func (d_ DetectRectanglesRequest) SetMinimumSize(value float64) {
objc.Call[objc.Void](d_, objc.Sel("setMinimumSize:"), value)
}
// A float specifying the number of degrees a rectangle corner angle can deviate from 90°. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875379-quadraturetolerance?language=objc
func (d_ DetectRectanglesRequest) QuadratureTolerance() Degrees {
rv := objc.Call[Degrees](d_, objc.Sel("quadratureTolerance"))
return rv
}
// A float specifying the number of degrees a rectangle corner angle can deviate from 90°. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875379-quadraturetolerance?language=objc
func (d_ DetectRectanglesRequest) SetQuadratureTolerance(value Degrees) {
objc.Call[objc.Void](d_, objc.Sel("setQuadratureTolerance:"), value)
}
// An integer specifying the maximum number of rectangles Vision returns. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875373-maximumobservations?language=objc
func (d_ DetectRectanglesRequest) MaximumObservations() uint {
rv := objc.Call[uint](d_, objc.Sel("maximumObservations"))
return rv
}
// An integer specifying the maximum number of rectangles Vision returns. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectrectanglesrequest/2875373-maximumobservations?language=objc
func (d_ DetectRectanglesRequest) SetMaximumObservations(value uint) {
objc.Call[objc.Void](d_, objc.Sel("setMaximumObservations:"), value)
}