The camera demo shows how to create a custom classifier with 3 classes that can be trained in realtime using a webcamera. Hold down the train button to add samples to the classifier, and then let it predict which of the 3 classes that is closest.
cd into the demos folder:
cd knn-classifier/demosInstall dependencies and prepare the build directory:
yarnTo watch files for changes, and launch a dev server:
yarn watchcd into the knn-classifier/ folder:
cd knn-classifierInstall dependencies:
yarnPublish knn-classifier locally:
yarn publish-localcd into this directory, knn-classifier/demos and install dependencies:
cd demos
yarnLink the package published from the publish step above:
yarn link-localStart the dev demo server:
yarn watch