Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 1.13 KB

README.md

File metadata and controls

35 lines (20 loc) · 1.13 KB

TensorFlow.js Webcom Multi Object detection.

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.

Your Project

← index.html

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>

← style.css

Nothing to see here. Just styles to make the demo look prettier. You can use or ignore these as you please.

← script.js

All the code for using TensorFlow.js and the starting the webcom is here.