Update index.js
Browse files
index.js
CHANGED
|
@@ -48,9 +48,7 @@ async function detect(img) {
|
|
| 48 |
});
|
| 49 |
//console.log(output);
|
| 50 |
status.textContent = '';
|
| 51 |
-
|
| 52 |
-
console.log(x);
|
| 53 |
-
x;
|
| 54 |
}
|
| 55 |
|
| 56 |
// Render a bounding box and label on the image
|
|
@@ -79,4 +77,5 @@ function renderBox({ box, label }) {
|
|
| 79 |
|
| 80 |
boxElement.appendChild(labelElement);
|
| 81 |
imageContainer.appendChild(boxElement);
|
|
|
|
| 82 |
}
|
|
|
|
| 48 |
});
|
| 49 |
//console.log(output);
|
| 50 |
status.textContent = '';
|
| 51 |
+
output.forEach(renderBox);
|
|
|
|
|
|
|
| 52 |
}
|
| 53 |
|
| 54 |
// Render a bounding box and label on the image
|
|
|
|
| 77 |
|
| 78 |
boxElement.appendChild(labelElement);
|
| 79 |
imageContainer.appendChild(boxElement);
|
| 80 |
+
console.log(box, label);
|
| 81 |
}
|