remove prob from label

This commit is contained in:
anetla 2024-01-18 23:39:23 +01:00
parent e619bd31ad
commit 7cbad19bc3
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@
ctx.lineWidth = 5;
ctx.font = "20px serif";
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.fillStyle = "#00ff00";
const width = ctx.measureText(label).width;