remove prob from label again
This commit is contained in:
parent
d53eafaecf
commit
9ec28f7488
@ -288,7 +288,7 @@
|
|||||||
|
|
||||||
// Draw bounding boxes
|
// Draw bounding boxes
|
||||||
boxes.forEach(([x1, y1, x2, y2, object_type, prob]) => {
|
boxes.forEach(([x1, y1, x2, y2, object_type, prob]) => {
|
||||||
const label = `${object_type} ${prob.toFixed(2)}`;
|
const label = `${object_type}`;
|
||||||
ctx.strokeRect(x1, y1, x2 - x1, y2 - y1);
|
ctx.strokeRect(x1, y1, x2 - x1, y2 - y1);
|
||||||
ctx.fillStyle = "#00ff00";
|
ctx.fillStyle = "#00ff00";
|
||||||
const width = ctx.measureText(label).width;
|
const width = ctx.measureText(label).width;
|
||||||
|
Loading…
Reference in New Issue
Block a user