Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayzwer authored Mar 26, 2024
1 parent c96806c commit 539e191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Utils.DrawBoundingBox(image, predictions, 2, 16);
## YOLOv9 object detection (https://github.com/WongKinYiu/yolov9)
```
Yolov9 yolov9 = new("path/to/.onnx", false);
Dictionary<string, Color> color_mapper = [];
yolov9.SetupLabels(color_mapper);
Color[] colors = [];
yolov9.SetupColors(colors);
Image image = Image.FromFile("path/to/img");
List<YoloPrediction> predictions = yolov9.Preidct((Bitmap)image, .5f, .5f);
Utils.DrawBoundingBox(image, predictions, 2, 16);
Expand Down

0 comments on commit 539e191

Please sign in to comment.