mirror of
https://github.com/LdDl/go-darknet.git
synced 2025-11-03 02:03:25 +08:00
upd
This commit is contained in:
@@ -21,7 +21,10 @@ if using `go build`.
|
|||||||
```shell
|
```shell
|
||||||
$GOPATH/bin/example
|
$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`.
|
Please ensure that `libdarknet.so` is in your `$LD_LIBRARY_PATH`.
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|||||||
@@ -58,8 +58,9 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
log.Println("Network-only time taken:", dr.NetworkOnlyTimeTaken)
|
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 _, d := range dr.Detections {
|
||||||
|
|
||||||
for i := range d.ClassIDs {
|
for i := range d.ClassIDs {
|
||||||
bBox := d.BoundingBox
|
bBox := d.BoundingBox
|
||||||
fmt.Printf("%s (%d): %.4f%% | start point: (%d,%d) | end point: (%d, %d)\n",
|
fmt.Printf("%s (%d): %.4f%% | start point: (%d,%d) | end point: (%d, %d)\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user