Documentation ¶
Index ¶
- Variables
- type DefaultMonitor
- type Detector
- type DetectorOption
- func WithCanny(lowThreshold int, highThreshold int) DetectorOption
- func WithGaussianBlur(kernelSize int) DetectorOption
- func WithHoughLines(rho int, theta float32, threshold int, minLineLength int, maxLineGap int) DetectorOption
- func WithMonitor(monitor Monitor) DetectorOption
- func WithPointOnRoad(pt image.Point) DetectorOption
- func WithRegionOfInterest(imgWidth int, imgHeight int, horizon int) DetectorOption
- func WithWhiteFilter(lowThreshold int, highThreshold int) DetectorOption
- func WithYellowFilter(lower gocv.Mat, upper gocv.Mat) DetectorOption
- type FakeMonitor
- type Monitor
- type RoadPart
Constants ¶
This section is empty.
Variables ¶
View Source
var EllipseNotFound = events.Ellipse{Confidence: 0.}
Functions ¶
This section is empty.
Types ¶
type DefaultMonitor ¶
type DefaultMonitor struct {
// contains filtered or unexported fields
}
func (*DefaultMonitor) Increment ¶
func (d *DefaultMonitor) Increment()
func (*DefaultMonitor) Start ¶
func (d *DefaultMonitor) Start()
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
func NewDetector ¶
func NewDetector(options ...DetectorOption) *Detector
type DetectorOption ¶
type DetectorOption func(*Detector)
func WithCanny ¶
func WithCanny(lowThreshold int, highThreshold int) DetectorOption
func WithGaussianBlur ¶
func WithGaussianBlur(kernelSize int) DetectorOption
func WithHoughLines ¶
func WithMonitor ¶
func WithMonitor(monitor Monitor) DetectorOption
func WithPointOnRoad ¶
func WithPointOnRoad(pt image.Point) DetectorOption
func WithRegionOfInterest ¶
func WithRegionOfInterest(imgWidth int, imgHeight int, horizon int) DetectorOption
func WithWhiteFilter ¶
func WithWhiteFilter(lowThreshold int, highThreshold int) DetectorOption
func WithYellowFilter ¶
func WithYellowFilter(lower gocv.Mat, upper gocv.Mat) DetectorOption
type FakeMonitor ¶
type FakeMonitor struct{}
func (*FakeMonitor) Increment ¶
func (f *FakeMonitor) Increment()
func (*FakeMonitor) Start ¶
func (f *FakeMonitor) Start()
Click to show internal directories.
Click to hide internal directories.