Update index.js
Browse files
index.js
CHANGED
@@ -48,14 +48,14 @@ async function detect(img) {
|
|
48 |
|
49 |
status.textContent = 'Analysing...';
|
50 |
// To-Do #2 객체 탐지를 위한 오브젝트에 threshold를 0.5, percentage를 true로 지정하고 그 결과를 output에 저장하십시오
|
|
|
|
|
51 |
const output = await detector({
|
52 |
image: img,
|
53 |
threshold: 0.5,
|
54 |
percentage: true,
|
55 |
});
|
56 |
-
|
57 |
-
// percentage 지정
|
58 |
-
);
|
59 |
status.textContent = '';
|
60 |
output.forEach(renderBox);
|
61 |
}
|
|
|
48 |
|
49 |
status.textContent = 'Analysing...';
|
50 |
// To-Do #2 객체 탐지를 위한 오브젝트에 threshold를 0.5, percentage를 true로 지정하고 그 결과를 output에 저장하십시오
|
51 |
+
// threshold 값을 지정하고 쉼표를 붙이시오
|
52 |
+
// percentage 지정
|
53 |
const output = await detector({
|
54 |
image: img,
|
55 |
threshold: 0.5,
|
56 |
percentage: true,
|
57 |
});
|
58 |
+
|
|
|
|
|
59 |
status.textContent = '';
|
60 |
output.forEach(renderBox);
|
61 |
}
|