boazchung commited on
Commit
5b4bf00
1 Parent(s): af6e95b

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +2 -3
index.js CHANGED
@@ -48,9 +48,7 @@ async function detect(img) {
48
  });
49
  //console.log(output);
50
  status.textContent = '';
51
- const x = output.forEach(renderBox);
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
  }