Detect objects in images

Automatically identify and locate objects in images using YOLOX object detection models.

Images · Notebook · Updated

Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.

How it works

You add a computed column that runs YOLOX on each image. Detection happens automatically when you insert new images.

What it covers

  • Detect objects using YOLOX models (runs locally, no API needed)
  • Get bounding boxes and class labels
  • Filter detections by confidence threshold

What it uses

Install
terminal
pip install pixeltable pixeltable-yolox
Pixeltable calls
yolox.yolox()pxt.create_table()@pxt.udfinsert()add_computed_column()

A look at the code

img-detect-objects.ipynb
# Run YOLOX object detection
# model_id options: yolox_nano, yolox_tiny, yolox_s, yolox_m, yolox_l, yolox_x
images.add_computed_column(
detections=yolox(images.image, model_id='yolox_m', threshold=0.5)
)

One cell of the notebook, copied as it is. Open it in Colab for the rest.

Browse all 103