~/talk

TensorFlow.js: Make a smart webcam in JS with a pre-trained ML model

Talkat Google I/O 2021 · 2021-05-18..05-20· [javascript, machine-learning]
slides:none on file

Step‑by‑step live coding builds a working smart webcam using TensorFlow.js and the pre‑trained COCO‑SSD model that detects about 80 object classes in real time, calls model.detect on the video stream, draws bounding boxes and labels, and counts items per frame while using requestAnimationFrame for smooth updates. The workshop remixes a Glitch codelab, shows a pet‑cam demo that triggers alerts, and discusses WebGL/WebAssembly acceleration and on‑device privacy so the demo actually runs live in the browser.

AI-written summary · about

  1. 0:00Start
  2. 5:41What is TensorFlow.js?
  3. 11:31Pre-trained models
  4. 18:13Populate HTML Skeleton
  5. 21:48Adding Style
  6. 22:00Copy code to style.css
  7. 24:09Creating a JavaScript skeleton
  8. 33:11Using a TensorFlow.js machine learning model
  9. 33:25Copy code in to script.js
  10. 47:51Congratulations! What's next?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.