AI Object Counter

Count objects automatically: a YOLOX detector finds people, vehicles, animals and everyday items, draws numbered boxes and totals them by type.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Add a photo

    Choose a clear photo of the scene.

  2. 2
    Load the model

    Agree to download about 3.7 MB once.

  3. 3
    Pick the type

    Choose an object type or every type.

  4. 4
    Set the threshold

    Move the slider until the boxes match what you see.

  5. 5
    Limit the area

    Optionally draw boxes to count inside them only.

  6. 6
    Export

    Download the labelled image and the CSV.

About this tool

Counting things in photos is a surprisingly common job: people at an event, cars in a car park, chairs set out in a hall, bottles on a shelf, birds on a wire. Doing it by eye is slow and error-prone. Object detection models find and label objects in a fraction of a second. This counter runs YOLOX-Nano, a compact detector released by Megvii under the Apache-2.0 licence, entirely in your browser and gives you numbered boxes, totals per type and a CSV file.

What it can count

The model recognises the 80 object types of the COCO dataset, including person, bicycle, car, motorcycle, bus, truck, boat, traffic light, bird, cat, dog, horse, sheep, cow, backpack, umbrella, handbag, suitcase, bottle, wine glass, cup, chair, couch, potted plant, bed, dining table, TV, laptop, phone, book, clock and vase. Choose one type, or every type at once.

Confidence threshold

Every detection has a confidence score. The threshold slider sets the minimum: lower values find more objects, including uncertain ones, while higher values show only clear detections. Around 30 to 40 percent is a good start. Watch how the count changes as you move the slider; a stable count over a range of thresholds is a good sign.

Counting areas

Draw one or more boxes to count only objects whose centre falls inside them, for example one shelf, one lane of a road or one section of seating.

Labelled image and CSV

The exported picture shows each box with a number, and optionally the type and confidence, so others can check the count. The CSV lists every detection with its pixel position and size, followed by totals per type.

How it runs

The photo is scaled to 416 pixels, padded to a square and passed through the 3.7 MB model with ONNX Runtime in your browser. The raw output is decoded into boxes and overlapping duplicates are removed with non-maximum suppression. It takes about a second on a laptop.

Accuracy and good practice

Small detectors miss very small, heavily overlapping or partly hidden objects, and crowds are hard. For important counts, check the labelled image, adjust the threshold and split very large photos into sections using count areas, which effectively gives the model more pixels per object. Count the same scene from more than one photo when you can.

Limits

The counter does not identify individuals and cannot recognise types outside the COCO list. It is a helpful estimate, not an audited count for safety or legal purposes.

Worked example

A 4000 x 3000 photo of a car park: with type "car" and threshold 35 percent the counter finds 47 cars; drawing a box around the front two rows gives 18, and the CSV lists each car's position for the report.

Quick facts

Frequently asked questions

Which objects can it count?

The 80 COCO types, such as people, cars, buses, bicycles, animals, bottles, cups, chairs and laptops.

Why is my count too low?

Small or overlapping objects are missed. Lower the threshold, or use count areas on parts of the photo.

Why does it count things that are not there?

The threshold is too low. Raise it until false boxes disappear.

Can I count only part of the picture?

Yes. Draw boxes in the Mark view; only objects centred inside them are counted.

Does it recognise who people are?

No. It only finds the category "person" and has no face recognition.

Is the photo uploaded?

No. Detection runs in your browser.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages