Last active
July 25, 2019 11:44
-
-
Save bourdakos1/81c417ae7231caef548aeba8a963b0e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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