Skip to content

Commit

Permalink
Update examples/javascript-object-detection/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Joshua Lochner <[email protected]>
  • Loading branch information
perborgen and xenova authored Sep 10, 2023
1 parent c348a1d commit 19ed8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/javascript-object-detection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function runModel(imageEl) {

function renderBox(data, imageEl) {
const { box, label} = data;
const {xmax, xmin, ymax, ymin } = getScaledCoordinates(box, imageEl);
const { xmax, xmin, ymax, ymin } = getScaledCoordinates(box, imageEl);
const color = generateRandomColor();

// Calculate the width and height of the bounding box
Expand Down

0 comments on commit 19ed8fd

Please sign in to comment.