Skip to content

Commit

Permalink
fixed error in yolo example
Browse files Browse the repository at this point in the history
  • Loading branch information
cansik committed Mar 31, 2020
1 parent 98b901d commit 0713df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/YoloWecamExample/YoloWecamExample.pde
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void draw() {
strokeWeight(2f);

for (ObjectDetectionResult detection : detections) {
stroke((int)(360.0 / yolo.getClassNames().size() * detection.getClassId()), 80, 100);
stroke((int)(360.0 / yolo.getLabels().size() * detection.getClassId()), 80, 100);
rect(detection.getX(), detection.getY(), detection.getWidth(), detection.getHeight());
}

Expand Down

0 comments on commit 0713df2

Please sign in to comment.