mirror of
https://github.com/LdDl/go-darknet.git
synced 2025-12-24 12:37:55 +08:00
clean
This commit is contained in:
@@ -25,12 +25,6 @@ type DetectionResult struct {
|
||||
OverallTimeTaken time.Duration
|
||||
}
|
||||
|
||||
// func (dr *DetectionResult) Close() error {
|
||||
// C.free_detections(dr.Detections, len(dr.Detections))
|
||||
// dr.Detections = nil
|
||||
// return nil
|
||||
// }
|
||||
|
||||
func makeDetection(img *DarknetImage, det *C.detection, threshold float32, classes int, classNames []string) *Detection {
|
||||
if det == nil {
|
||||
return &Detection{}
|
||||
|
||||
Reference in New Issue
Block a user