Skip to content

Instantly share code, notes, and snippets.

@ramons03
Forked from bourdakos1/detect-objects.js
Created December 16, 2018 23:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramons03/f0e06502b61e14471a01ba7222335114 to your computer and use it in GitHub Desktop.
Save ramons03/f0e06502b61e14471a01ba7222335114 to your computer and use it in GitHub Desktop.
import * as cocoSsd from "@tensorflow-models/coco-ssd";
const image = document.getElementById("image")
cocoSsd.load()
.then(model => model.detect(image))
.then(predictions => console.log(predictions))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment