forked from progrium/darwinkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetector.gen.go
87 lines (71 loc) · 2.72 KB
/
detector.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
// Code generated by DarwinKit. DO NOT EDIT.
package coreimage
import (
"unsafe"
"github.com/progrium/darwinkit/objc"
)
// The class instance for the [Detector] class.
var DetectorClass = _DetectorClass{objc.GetClass("CIDetector")}
type _DetectorClass struct {
objc.Class
}
// An interface definition for the [Detector] class.
type IDetector interface {
objc.IObject
FeaturesInImage(image IImage) []Feature
FeaturesInImageOptions(image IImage, options map[string]objc.IObject) []Feature
}
// An image processor that identifies notable features (such as faces and barcodes) in a still image or video. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidetector?language=objc
type Detector struct {
objc.Object
}
func DetectorFrom(ptr unsafe.Pointer) Detector {
return Detector{
Object: objc.ObjectFrom(ptr),
}
}
func (dc _DetectorClass) Alloc() Detector {
rv := objc.Call[Detector](dc, objc.Sel("alloc"))
return rv
}
func (dc _DetectorClass) New() Detector {
rv := objc.Call[Detector](dc, objc.Sel("new"))
rv.Autorelease()
return rv
}
func NewDetector() Detector {
return DetectorClass.New()
}
func (d_ Detector) Init() Detector {
rv := objc.Call[Detector](d_, objc.Sel("init"))
return rv
}
// Creates and returns a configured detector. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidetector/1437884-detectoroftype?language=objc
func (dc _DetectorClass) DetectorOfTypeContextOptions(type_ string, context IContext, options map[string]objc.IObject) Detector {
rv := objc.Call[Detector](dc, objc.Sel("detectorOfType:context:options:"), type_, context, options)
return rv
}
// Creates and returns a configured detector. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidetector/1437884-detectoroftype?language=objc
func Detector_DetectorOfTypeContextOptions(type_ string, context IContext, options map[string]objc.IObject) Detector {
return DetectorClass.DetectorOfTypeContextOptions(type_, context, options)
}
// Searches for features in an image. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidetector/1438049-featuresinimage?language=objc
func (d_ Detector) FeaturesInImage(image IImage) []Feature {
rv := objc.Call[[]Feature](d_, objc.Sel("featuresInImage:"), image)
return rv
}
// Searches for features in an image based on the specified image orientation. [Full Topic]
//
// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidetector/1438189-featuresinimage?language=objc
func (d_ Detector) FeaturesInImageOptions(image IImage, options map[string]objc.IObject) []Feature {
rv := objc.Call[[]Feature](d_, objc.Sel("featuresInImage:options:"), image, options)
return rv
}