Versions in this module Expand all Collapse all v1 v1.3.1 Dec 7, 2020 Changes in this version + func Dispose() int + func GetDeviceCount() int + func GetDeviceName(gpu int, name string) int + func Init(cfg, weights string, gpu int) + type BBOX struct + Confidence float32 + FramesCounter uint + ObjId uint + Rect image.Rectangle + TrackId uint + X3d float32 + Y3d float32 + Z3d float32 + func Detect(name string) (result int, bboxs []BBOX) + func DetectImageMat(data []byte) (result int, bboxs []BBOX) + func DetectMat(mat gocv.Mat) (result int, bboxs []BBOX) v1.3.0 Oct 16, 2020 Changes in this version + type BoundingBox struct + EndPoint image.Point + StartPoint image.Point + type DarknetImage struct + Height int + Width int + func Float32ToDarknetImage(flatten []float32, width, height int) (*DarknetImage, error) + func Image2Float32(img image.Image) (*DarknetImage, error) + func (img *DarknetImage) Close() error + type Detection struct + ClassIDs []int + ClassNames []string + Probabilities []float32 + type DetectionResult struct + Detections []*Detection + NetworkOnlyTimeTaken time.Duration + OverallTimeTaken time.Duration + type YOLONetwork struct + ClassNames []string + Classes int + GPUDeviceIndex int + NetworkConfigurationFile string + Threshold float32 + WeightsFile string + func (n *YOLONetwork) Close() error + func (n *YOLONetwork) Detect(img *DarknetImage) (*DetectionResult, error) + func (n *YOLONetwork) Init() error