이재호

Merge branch 'model' into 'master'

Model

update seconde model. training with scraped web picture

See merge request !5
...@@ -172,11 +172,8 @@ ...@@ -172,11 +172,8 @@
172 172
173 let model, webcam, labelContainer, maxPredictions; 173 let model, webcam, labelContainer, maxPredictions;
174 174
175 - //predic이전 값을 기억해주는 전역변수. -999로 초기화.
176 - var last_result_predict=-999;
177 -
178 // Load the image model and setup the webcam 175 // Load the image model and setup the webcam
179 - window.onload = async function init() { 176 + async function init() {
180 const modelURL = URL + "model.json"; 177 const modelURL = URL + "model.json";
181 const metadataURL = URL + "metadata.json"; 178 const metadataURL = URL + "metadata.json";
182 179
...@@ -189,7 +186,7 @@ ...@@ -189,7 +186,7 @@
189 186
190 // Convenience function to setup a webcam 187 // Convenience function to setup a webcam
191 const flip = true; // whether to flip the webcam 188 const flip = true; // whether to flip the webcam
192 - webcam = new tmImage.Webcam(550, 550, flip); // width, height, flip 189 + webcam = new tmImage.Webcam(200, 200, flip); // width, height, flip
193 await webcam.setup(); // request access to the webcam 190 await webcam.setup(); // request access to the webcam
194 await webcam.play(); 191 await webcam.play();
195 window.requestAnimationFrame(loop); 192 window.requestAnimationFrame(loop);
......