forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetect_text_rectangles_request.gen.go
85 lines (69 loc) · 3.09 KB
/
detect_text_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
// Code generated by DarwinKit. DO NOT EDIT.
package vision
import (
"unsafe"
"github.com/progrium/macdriver/objc"
)
// The class instance for the [DetectTextRectanglesRequest] class.
var DetectTextRectanglesRequestClass = _DetectTextRectanglesRequestClass{objc.GetClass("VNDetectTextRectanglesRequest")}
type _DetectTextRectanglesRequestClass struct {
objc.Class
}
// An interface definition for the [DetectTextRectanglesRequest] class.
type IDetectTextRectanglesRequest interface {
IImageBasedRequest
ReportCharacterBoxes() bool
SetReportCharacterBoxes(value bool)
}
// An image analysis request that finds regions of visible text in an image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttextrectanglesrequest?language=objc
type DetectTextRectanglesRequest struct {
ImageBasedRequest
}
func DetectTextRectanglesRequestFrom(ptr unsafe.Pointer) DetectTextRectanglesRequest {
return DetectTextRectanglesRequest{
ImageBasedRequest: ImageBasedRequestFrom(ptr),
}
}
func (dc _DetectTextRectanglesRequestClass) Alloc() DetectTextRectanglesRequest {
rv := objc.Call[DetectTextRectanglesRequest](dc, objc.Sel("alloc"))
return rv
}
func (dc _DetectTextRectanglesRequestClass) New() DetectTextRectanglesRequest {
rv := objc.Call[DetectTextRectanglesRequest](dc, objc.Sel("new"))
rv.Autorelease()
return rv
}
func NewDetectTextRectanglesRequest() DetectTextRectanglesRequest {
return DetectTextRectanglesRequestClass.New()
}
func (d_ DetectTextRectanglesRequest) Init() DetectTextRectanglesRequest {
rv := objc.Call[DetectTextRectanglesRequest](d_, objc.Sel("init"))
return rv
}
func (d_ DetectTextRectanglesRequest) InitWithCompletionHandler(completionHandler RequestCompletionHandler) DetectTextRectanglesRequest {
rv := objc.Call[DetectTextRectanglesRequest](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 NewDetectTextRectanglesRequestWithCompletionHandler(completionHandler RequestCompletionHandler) DetectTextRectanglesRequest {
instance := DetectTextRectanglesRequestClass.Alloc().InitWithCompletionHandler(completionHandler)
instance.Autorelease()
return instance
}
// A Boolean value that indicates whether the request detects character bounding boxes. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttextrectanglesrequest/2875410-reportcharacterboxes?language=objc
func (d_ DetectTextRectanglesRequest) ReportCharacterBoxes() bool {
rv := objc.Call[bool](d_, objc.Sel("reportCharacterBoxes"))
return rv
}
// A Boolean value that indicates whether the request detects character bounding boxes. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttextrectanglesrequest/2875410-reportcharacterboxes?language=objc
func (d_ DetectTextRectanglesRequest) SetReportCharacterBoxes(value bool) {
objc.Call[objc.Void](d_, objc.Sel("setReportCharacterBoxes:"), value)
}