Identify and locate objects in images for applications like security systems, autonomous driving, and retail analytics
Basic usage
Send an image to a model to detect objects and get bounding boxes
import Bytez from 'bytez.js';// insert your keyconst sdk = new Bytez('BYTEZ_KEY');// choose your modelconst model = sdk.model('facebook/detr-resnet-50');// provide the model with inputconst input = { "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Cat_November_2010-1a.jpg/1200px-Cat_November_2010-1a.jpg"};// send to the modelconst { error, output } = await model.run(input);// observe the outputconsole.log({ error, output });
from bytez import Bytez# insert your keysdk = Bytez("BYTEZ_KEY")# choose your modelmodel = sdk.model("facebook/detr-resnet-50")# provide the model with inputinput = { "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Cat_November_2010-1a.jpg/1200px-Cat_November_2010-1a.jpg"}# send to the modelresult = model.run(input)# observe the outputprint({"error": result.error, "output": result.output})