forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetect_trajectories_request.gen.go
157 lines (132 loc) · 7.09 KB
/
detect_trajectories_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
// Code generated by DarwinKit. DO NOT EDIT.
package vision
import (
"unsafe"
"github.com/progrium/macdriver/macos/coremedia"
"github.com/progrium/macdriver/objc"
)
// The class instance for the [DetectTrajectoriesRequest] class.
var DetectTrajectoriesRequestClass = _DetectTrajectoriesRequestClass{objc.GetClass("VNDetectTrajectoriesRequest")}
type _DetectTrajectoriesRequestClass struct {
objc.Class
}
// An interface definition for the [DetectTrajectoriesRequest] class.
type IDetectTrajectoriesRequest interface {
IStatefulRequest
ObjectMinimumNormalizedRadius() float64
SetObjectMinimumNormalizedRadius(value float64)
TargetFrameTime() coremedia.Time
SetTargetFrameTime(value coremedia.Time)
ObjectMaximumNormalizedRadius() float64
SetObjectMaximumNormalizedRadius(value float64)
TrajectoryLength() int
}
// A request that detects the trajectories of shapes moving along a parabolic path. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest?language=objc
type DetectTrajectoriesRequest struct {
StatefulRequest
}
func DetectTrajectoriesRequestFrom(ptr unsafe.Pointer) DetectTrajectoriesRequest {
return DetectTrajectoriesRequest{
StatefulRequest: StatefulRequestFrom(ptr),
}
}
func (d_ DetectTrajectoriesRequest) InitWithFrameAnalysisSpacingTrajectoryLengthCompletionHandler(frameAnalysisSpacing coremedia.Time, trajectoryLength int, completionHandler RequestCompletionHandler) DetectTrajectoriesRequest {
rv := objc.Call[DetectTrajectoriesRequest](d_, objc.Sel("initWithFrameAnalysisSpacing:trajectoryLength:completionHandler:"), frameAnalysisSpacing, trajectoryLength, completionHandler)
return rv
}
// Creates a new request to detect trajectories. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3600612-initwithframeanalysisspacing?language=objc
func NewDetectTrajectoriesRequestWithFrameAnalysisSpacingTrajectoryLengthCompletionHandler(frameAnalysisSpacing coremedia.Time, trajectoryLength int, completionHandler RequestCompletionHandler) DetectTrajectoriesRequest {
instance := DetectTrajectoriesRequestClass.Alloc().InitWithFrameAnalysisSpacingTrajectoryLengthCompletionHandler(frameAnalysisSpacing, trajectoryLength, completionHandler)
instance.Autorelease()
return instance
}
func (dc _DetectTrajectoriesRequestClass) Alloc() DetectTrajectoriesRequest {
rv := objc.Call[DetectTrajectoriesRequest](dc, objc.Sel("alloc"))
return rv
}
func (dc _DetectTrajectoriesRequestClass) New() DetectTrajectoriesRequest {
rv := objc.Call[DetectTrajectoriesRequest](dc, objc.Sel("new"))
rv.Autorelease()
return rv
}
func NewDetectTrajectoriesRequest() DetectTrajectoriesRequest {
return DetectTrajectoriesRequestClass.New()
}
func (d_ DetectTrajectoriesRequest) Init() DetectTrajectoriesRequest {
rv := objc.Call[DetectTrajectoriesRequest](d_, objc.Sel("init"))
return rv
}
func (d_ DetectTrajectoriesRequest) InitWithFrameAnalysisSpacingCompletionHandler(frameAnalysisSpacing coremedia.Time, completionHandler RequestCompletionHandler) DetectTrajectoriesRequest {
rv := objc.Call[DetectTrajectoriesRequest](d_, objc.Sel("initWithFrameAnalysisSpacing:completionHandler:"), frameAnalysisSpacing, completionHandler)
return rv
}
// Initializes a video-based request. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vnstatefulrequest/3564828-initwithframeanalysisspacing?language=objc
func NewDetectTrajectoriesRequestWithFrameAnalysisSpacingCompletionHandler(frameAnalysisSpacing coremedia.Time, completionHandler RequestCompletionHandler) DetectTrajectoriesRequest {
instance := DetectTrajectoriesRequestClass.Alloc().InitWithFrameAnalysisSpacingCompletionHandler(frameAnalysisSpacing, completionHandler)
instance.Autorelease()
return instance
}
func (d_ DetectTrajectoriesRequest) InitWithCompletionHandler(completionHandler RequestCompletionHandler) DetectTrajectoriesRequest {
rv := objc.Call[DetectTrajectoriesRequest](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 NewDetectTrajectoriesRequestWithCompletionHandler(completionHandler RequestCompletionHandler) DetectTrajectoriesRequest {
instance := DetectTrajectoriesRequestClass.Alloc().InitWithCompletionHandler(completionHandler)
instance.Autorelease()
return instance
}
// The minimum radius of the bounding circle of the object to track. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675671-objectminimumnormalizedradius?language=objc
func (d_ DetectTrajectoriesRequest) ObjectMinimumNormalizedRadius() float64 {
rv := objc.Call[float64](d_, objc.Sel("objectMinimumNormalizedRadius"))
return rv
}
// The minimum radius of the bounding circle of the object to track. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675671-objectminimumnormalizedradius?language=objc
func (d_ DetectTrajectoriesRequest) SetObjectMinimumNormalizedRadius(value float64) {
objc.Call[objc.Void](d_, objc.Sel("setObjectMinimumNormalizedRadius:"), value)
}
// The requested target frame time for processing trajectory detection. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3750981-targetframetime?language=objc
func (d_ DetectTrajectoriesRequest) TargetFrameTime() coremedia.Time {
rv := objc.Call[coremedia.Time](d_, objc.Sel("targetFrameTime"))
return rv
}
// The requested target frame time for processing trajectory detection. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3750981-targetframetime?language=objc
func (d_ DetectTrajectoriesRequest) SetTargetFrameTime(value coremedia.Time) {
objc.Call[objc.Void](d_, objc.Sel("setTargetFrameTime:"), value)
}
// The maximum radius of the bounding circle of the object to track. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675670-objectmaximumnormalizedradius?language=objc
func (d_ DetectTrajectoriesRequest) ObjectMaximumNormalizedRadius() float64 {
rv := objc.Call[float64](d_, objc.Sel("objectMaximumNormalizedRadius"))
return rv
}
// The maximum radius of the bounding circle of the object to track. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675670-objectmaximumnormalizedradius?language=objc
func (d_ DetectTrajectoriesRequest) SetObjectMaximumNormalizedRadius(value float64) {
objc.Call[objc.Void](d_, objc.Sel("setObjectMaximumNormalizedRadius:"), value)
}
// The number of points to detect before calculating a trajectory. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675673-trajectorylength?language=objc
func (d_ DetectTrajectoriesRequest) TrajectoryLength() int {
rv := objc.Call[int](d_, objc.Sel("trajectoryLength"))
return rv
}