drawbbox

package
v0.0.0-...-7055065 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetColor

func GetColor(c, x, max int) float64

R, G, B -- c: 2, 1, 0

Types

type BBox

type BBox struct {
	Left, Top, Right, Bottom float64
	BoxR, BoxG, BoxB         float64
	TxtR, TxtG, TxtB         float64
	Label                    string
}

type LabelAdder

type LabelAdder struct {
	// contains filtered or unexported fields
}

func NewLabelAdder

func NewLabelAdder() *LabelAdder

func (*LabelAdder) AddOnImage

func (a *LabelAdder) AddOnImage(img image.Image, boxes []*BBox, nowTs int64) image.Image

func (*LabelAdder) AddOnJpgBytes

func (a *LabelAdder) AddOnJpgBytes(jpgBytes []byte, boxes []*BBox, nowTs int64) ([]byte, error)

Jump to

Keyboard shortcuts

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