mirror of
https://github.com/LdDl/go-darknet.git
synced 2025-09-26 19:51:27 +08:00
upd
This commit is contained in:
@@ -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
|
||||
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user