frame

package
v0.0.0-...-4b72d78 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

type Box struct {
	Label        string
	Confidence   int
	Coords       image.Rectangle
	JPEGBytes    []byte
	RejectReason string
}

func (*Box) GetHeight

func (b *Box) GetHeight() int

func (*Box) GetWidth

func (b *Box) GetWidth() int

func (*Box) IsPortrait

func (b *Box) IsPortrait() bool

func (*Box) LabelConfidence

func (b *Box) LabelConfidence() string

func (*Box) LabelPretty

func (b *Box) LabelPretty() string

type FrameDetectResult

type FrameDetectResult struct {
	Boxes     []*Box
	JPEGBytes []byte
}

func (*FrameDetectResult) HitBoxes

func (f *FrameDetectResult) HitBoxes() []*Box

func (*FrameDetectResult) ParseAlerts

func (f *FrameDetectResult) ParseAlerts(alertLabels []string)

func (*FrameDetectResult) RejectLowConfidence

func (f *FrameDetectResult) RejectLowConfidence(minConfidence int)

func (*FrameDetectResult) RejectOrientation

func (f *FrameDetectResult) RejectOrientation(requirePortrait bool)

func (*FrameDetectResult) RejectOutsideROI

func (f *FrameDetectResult) RejectOutsideROI(roi *image.Rectangle)

func (*FrameDetectResult) RejectSize

func (f *FrameDetectResult) RejectSize(minWidth int, minHeight int, maxWidth int, maxHeight int)

func (*FrameDetectResult) RejectedBoxes

func (f *FrameDetectResult) RejectedBoxes() []*Box

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL