Identify and locate objects in images for applications like security systems, autonomous driving, and retail analytics.

Quickstart

Detect Objects in an Image

Send an image to a model to detect objects and get bounding boxes.

import Bytez from "bytez.js";

const client = new Bytez("YOUR_BYTEZ_KEY_HERE");
const model = client.model("facebook/detr-resnet-50");

const imgUrl = "https://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Cat_November_2010-1a.jpg/1200px-Cat_November_2010-1a.jpg";

const { error, output } = await model.run(imgUrl);

if (error) {
  console.error("Error:", error);
} else {
  output.forEach((boxObject) => {
    const { score, label, box } = boxObject;
    console.log({ label, score, box });
  });
}

Demo