Skip to content

Instantly share code, notes, and snippets.

@bourdakos1
Created December 8, 2018 01:09
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 bourdakos1/1a294c8455c1eb786918eefa233150fe to your computer and use it in GitHub Desktop.
Save bourdakos1/1a294c8455c1eb786918eefa233150fe to your computer and use it in GitHub Desktop.
const x = prediction.bbox[0];
const y = prediction.bbox[1];
const width = prediction.bbox[2];
const height = prediction.bbox[3];
const canvas = document.getElementById("canvas");
const ctx = canvas.getContext("2d");
ctx.strokeRect(x, y, width, height);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment