Multiple object detection using COCO-SSD a pre trained model in TensorFlow.js
This porject lives on Glitch at https://tfjswebcam.glitch.me
Feel free to fork this and use it as a quick way to start coding with TensorFlow.js directly or following some other tutorial that needs TensorFlow.js to run.
We simply have a script tag in our HTML to grab the a version of TensorFlow.js
To user the altest version of TensorFlow.js update the script line as the the following:
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs/dist/tf.min.js" type="text/javascript"></script>
However, if you want to pull in a particular version of TensorFlow.js you can do so like this:
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]/dist/tf.min.js" type="text/javascript"></script>
Nothing to see here. Just styles to make the demo look prettier. You can use or ignore these as you please.
All the code for using TensorFlow.js and the starting the webcom is here.