How to Count Products on a Conveyor Belt: Sensors, Vision and Inline Counting

Written by Sciotex Engineering
In this article

There are two main ways to count products on a conveyor. Photo-eye or beam sensors count each time a product breaks a light beam, which works when products travel one at a time with gaps between them. Vision counting uses a camera above the belt to detect and track every item in its field of view, so it can count products that touch, overlap or arrive in mixed types, and send live counts to the line’s PLC or HMI.

This article is part of our complete guide to automated counting, which covers every way of counting parts in production. Here we focus on inline counting: counting products where they already are, on a moving belt.

Conveyor counting methods compared

MethodHow it countsWorks well whenStruggles when
Photo-eye (beam) sensorCounts each break in a light beamProducts are singulated with clear gapsProducts touch, overlap, tumble or arrive side by side
Light curtainCounts interruptions across a grid of beamsProducts fall or pass through a defined zoneProducts are tiny or arrive in clusters
Vision countingA camera detects and tracks each item in the imageProducts touch, overlap, vary in size or arrive mixedThe camera cannot see the item, for example parts buried in a pile
CheckweigherWeighs packages on the beltChecking that a filled package is within weight limitsYou need the number of pieces, not the weight

Beam sensors are inexpensive and reliable for evenly spaced products. Once products bunch up, two items passing together read as one, and the count drifts. Vision counting replaces the single beam with an image of the whole belt width, so the software sees each item even when they are touching.

How vision counting on a conveyor works

Vision counting on a conveyor belt belt direction Count: 1 → PLC / HMI
Items enter the camera’s field of view (dashed box), are detected and tracked across frames (green), and are counted once as they leave (purple). Items not yet in view are shown in grey. The running count goes to the line’s PLC or HMI.
  1. Image the belt: a camera above the conveyor captures a continuous series of frames across the full belt width, under controlled lighting.
  2. Detect each item: image analysis finds every product in the frame, including items that touch or partly overlap.
  3. Track it across frames: each item is followed as it moves, so it is counted once even though it appears in many frames.
  4. Count, by type if needed: single product types are counted directly; mixed products can be counted by type when they look different.
  5. Send the result: the running count goes to a PLC or HMI to trigger packing, diverting or batch changes.

Worked example: why tracking matters

On a belt moving at 0.5 m/s with a camera covering 0.4 m of belt length, each item is in view for 0.4 ÷ 0.5 = 0.8 seconds. At 20 frames per second, the camera sees every item in about 16 frames. Without tracking, each item could be counted 16 times. Tracking links those detections into one object, so each item is counted exactly once.

The ConveyorCount conveyor counting system is built around this approach. The image analysis behind it ranges from rule-based to machine learning or AI, depending on what the products look like and how much they vary.

Inline counting or batch counting?

Counting on the conveyor is not always the best choice. If parts are loose and small, it is often faster and more accurate to count them in a batch counter before or after the line.

Inline (on the conveyor)Batch (drop zone counter)
Where parts areAlready moving on a lineLoose, in bulk, poured into a hopper
Typical productsPackaged goods, assemblies, larger parts, mixed itemsSmall parts, fasteners, pellets, seeds
SpeedSet by the lineUp to 2,000 parts per second
OutputRunning count to PLC or HMIExact batches into bags, boxes or kits
Example systemConveyorCountPerfectCount

For batch counting of small parts, see how to automate bulk and batch counting.

What affects counting accuracy on a conveyor

  • Spacing: products that are piled on top of each other cannot all be seen. Touching and overlapping are fine for vision; stacking usually needs the flow spread out first.
  • Contrast: the product should stand out from the belt. A belt color chosen for contrast, or the right lighting, makes detection more reliable.
  • Lighting: enclosed, even lighting removes the effect of changing plant light and glare from shiny products.
  • Belt speed and frame rate: the camera must capture each item several times as it passes so tracking stays reliable.
  • Product variation: the more products vary in shape, color or orientation, the more capable the image analysis needs to be.

Connecting conveyor counts to the line

  • Trigger a packer, case packer or bagger when a batch count is reached.
  • Divert or reject items that should not be counted, such as wrong products in a mixed stream.
  • Display live counts and rates on an HMI so operators can see the line at a glance.
  • Log counts by batch, shift or order for production records and traceability.

Common mistakes

  • Using a beam sensor where products bunch up, then trying to fix the count with software timing tricks.
  • Mounting a camera without controlling lighting, so counts change with the time of day.
  • Ignoring how products arrive at the counting point. A small change to guides or spacing can make counting far more reliable.
  • Counting piled products. If items can hide under each other, spread them out or count them before they pile up.

Need to count products on a moving line?

Sciotex designs and builds conveyor and vision counting systems that send live counts to your PLC or HMI, designed, programmed, built and supported in the US since 1997.

Explore our counting machines

Frequently asked questions

How do you count products on a conveyor belt?

Use a photo-eye sensor if products are evenly spaced, or a vision counting system with a camera above the belt if products touch, overlap or arrive mixed. Vision systems track each item so it is counted once.

Why does my conveyor counter miscount?

Beam sensors count each break in the beam, so two products passing together read as one and gaps inside a product can read as two. Vision counting avoids this by detecting each item in the image.

Can a conveyor counter count mixed products?

Yes. A vision counting system can count different products separately when they look different, and send the counts for each type to the line controls.

Can vision counting handle products that touch?

Yes. Image analysis separates items that touch or partly overlap. Products piled on top of each other may need to be spread out first so each one is visible.

Should I count on the conveyor or in a batch counter?

Count on the conveyor when products are already moving on a line. For loose small parts packed in exact quantities, a drop zone batch counter is usually faster and more accurate.

Related articles

Written by

Sciotex Engineering

The Sciotex engineering team has designed and built vision, automation and test systems since 1997.

Have an inspection problem to solve?

Talk it through with a Sciotex engineer.

In this article
Have a counting problem to solve?

Talk it through with a Sciotex engineer.

Next step

See your parts counted