diff --git a/index.html b/index.html index 9aaaf99..e459658 100644 --- a/index.html +++ b/index.html @@ -373,7 +373,7 @@ canvas.height = img.height; ctx.drawImage(img, 0, 0); ctx.lineWidth = 15; - ctx.font = "30px serif"; // Zwiększono rozmiar czcionki + ctx.font = "bold 50px Arial"; // Zwiększono rozmiar czcionki // Draw bounding boxes boxes.forEach(([x1, y1, x2, y2, object_type, prob]) => { @@ -437,7 +437,7 @@ const width = ctx.measureText(label).width; ctx.fillRect(x1, y1, width + 10, 25); ctx.fillStyle = "#000000"; - ctx.fillText(label, x1 + width + 15, y1 + 28); // Przesunięcie etykiety + ctx.fillText(label, x1, y1 + 10 ); // Przesunięcie etykiety }); // Draw legend