This commit is contained in:
Dimitrii
2019-12-03 08:23:40 +03:00
parent 3ce62c7a6f
commit 7337b22df9
2 changed files with 6 additions and 2 deletions

View File

@@ -21,7 +21,10 @@ if using `go build`.
```shell
$GOPATH/bin/example
```
or
```go
go run main.go -configFile=yolov3-320.cfg -dataConfigFile=coco.data -imageFile=sample.jpg -weightsFile=yolov3.weights
```
Please ensure that `libdarknet.so` is in your `$LD_LIBRARY_PATH`.
## Notes

View File

@@ -58,8 +58,9 @@ func main() {
}
log.Println("Network-only time taken:", dr.NetworkOnlyTimeTaken)
log.Println("Overall time taken:", dr.OverallTimeTaken)
log.Println("Overall time taken:", dr.OverallTimeTaken, len(dr.Detections))
for _, d := range dr.Detections {
for i := range d.ClassIDs {
bBox := d.BoundingBox
fmt.Printf("%s (%d): %.4f%% | start point: (%d,%d) | end point: (%d, %d)\n",