Documentation ¶ Index ¶ type DetectResult type Yolo func New(version string, cpuThreadNum int, paramPath, binPath, labels string) *Yolo func (y *Yolo) Close() func (y *Yolo) Detect(x1, y1, x2, y2 int) []DetectResult func (y *Yolo) SetImage(img *image.NRGBA) 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) Source Files ¶ View all Source files yolo.go Click to show internal directories. Click to hide internal directories.