This commit is contained in:
Dimitrii
2021-01-28 14:20:38 +03:00
parent 165e59aaf3
commit 29e4d0d8bb

View File

@@ -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{}