This page is being translated by your browser

Translation can break parts of Roboflow. If something stops working, turn translation off and reload the page.

Detection · Manufacturing & QC

Part counting: Datasets & Models

Automatically count discrete parts in an image using object detection, so you can verify quantities on trays, bins, and assembly stations without manual tallying.

Part counting example
1M+
developers
16k
organizations
50B
inferences

Part counting

This detection workflow locates each discrete part in a frame and returns bounding boxes along with a total count, so you can verify quantities without manual tallying. Trained on a part counting dataset, it accepts still images or video frames from cameras placed over conveyors, trays, kitting stations, or bins.

Try it out

Powered by general detection model

Run on custom image

Drop an image here or click to upload

Detecting classes:

Why automate part counting

Manual part counting is slow, error-prone, and pulls skilled operators away from higher-value work, and miscounts in a manufacturing or QC context lead to short shipments, failed audits, and rework. A detection-based approach counts hundreds of parts per frame in a fraction of a second and produces a consistent, auditable result every time. It also scales to high-throughput lines where humans simply cannot keep pace, and it flags discrepancies against expected counts in real time. That means fewer kitting errors, tighter inventory accuracy, and reliable proof of quantity at each stage of production.

Key benefits

Teams get repeatable, high-speed counts that reduce human error and free labor for inspection tasks that actually require judgment. The workflow runs on your existing overhead or inline cameras and integrates with PLCs, MES, or inventory systems through simple API calls. Because it is detection-based, it scales from a single station to an entire plant and adapts to new part types by adding examples to the training set.

How to use it

  1. Upload an image: Drop any photo into the widget above to try part counting for free, right on this page.
  2. Preview instant results: The model detects screw, bolt, nut, washer, bearing, gear within seconds and returns an annotated image with structured predictions, so you can immediately see how well it works. Adjust the detection classes and re-run until the results fit your scenario.
  3. Like what you see?: With a free Roboflow account, you can deploy this workflow with the Serverless Cloud API, customize it in your workspace, or train RF-DETR on your own images for production accuracy.
  4. Get started for free: No code or training data required to begin: upload, review the results, and make it part of your stack in a single click.
Recommended model

Recommended model for part counting

RF-DETR is state of the art for real-time object detection, instance segmentation, and keypoint detection, with higher accuracy and lower latency than comparable models, and it's Apache 2.0 licensed. When you're ready to build a production model for part counting, fine-tune it on your own labeled images, then deploy to a Serverless Cloud API endpoint.

Train your own model
Roboflow Agent

Not sure where to start?

Describe your Part Counting project to Roboflow Agent.

Agent