이재호

Merge branch 'model' into 'master'

Model

update seconde model. training with scraped web picture

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