yolo

package
v0.0.0-...-54dc0dc Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetectResult

type DetectResult struct {
	X       int     `json:"X"`
	Y       int     `json:"Y"`
	Width   int     `json:"宽"`
	Height  int     `json:"高"`
	Label   string  `json:"标签"`
	Score   float64 `json:"精度"`
	CenterX int     `json:"-"` //中心坐标X
	CenterY int     `json:"-"` //中心坐标Y
}

type Yolo

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

func New

func New(version string, cpuThreadNum int, paramPath, binPath, labels string) *Yolo

func (*Yolo) Close

func (y *Yolo) Close()

func (*Yolo) Detect

func (y *Yolo) Detect(x1, y1, x2, y2 int) []DetectResult

func (*Yolo) SetImage

func (y *Yolo) SetImage(img *image.NRGBA)

Jump to

Keyboard shortcuts

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