Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -58,7 +58,7 @@ async function detect(img) {
|
|
58 |
|
59 |
// Render a bounding box and label on the image
|
60 |
function renderBox([xmin, ymin, xmax, ymax, score, id]) {
|
61 |
-
console.log([xmin, ymin, xmax, ymax, score,
|
62 |
// Generate a random color for the box
|
63 |
const color = '#' + Math.floor(Math.random() * 0xFFFFFF).toString(16).padStart(6, 0);
|
64 |
|
|
|
58 |
|
59 |
// Render a bounding box and label on the image
|
60 |
function renderBox([xmin, ymin, xmax, ymax, score, id]) {
|
61 |
+
console.log([xmin, ymin, xmax, ymax, score, id])
|
62 |
// Generate a random color for the box
|
63 |
const color = '#' + Math.floor(Math.random() * 0xFFFFFF).toString(16).padStart(6, 0);
|
64 |
|