This sample application is created using ml5js library.
ml5.js is machine learning for the web in your web browser. It is built on the well-known-one-and-only TensorFlow.js.
git@github.com:yong-asial/ml5-feature-extractor.git
cd ml5-feature-extractor
npm installcd ml5-feature-extractor
npm run dev- The program (DOM) is fully loaded.
- It will load the core model (MobileNet).
- Now the program is ready to either load the existing custom model or train a new classification.
- Click on
loadbutton. It will then load the custom model located in themodeldirectory. It is the custom model detecting whether you are wearing mask or not. - Click on
Start Detecting!button - You can try facing to your camera by wearing mask or not and observe theResultlabel.
- Input the class name in the input box
Class 1andClass 2. - Show something to the camera (for example, not wearning mask) and click
Class 1button. - Do the samething but this time show something different to camera (for example, wearing mask) and click
Class 2button - Try to differentiate your pose or angle (or anything). Try to add image more than 20 times or so.
- Click
Trainand observe the loss. Once the training is completed, you can click onStart Detecting!button