Key takeaways
- An AI counting camera uses a machine learning model to count the units that pass a point on the line, automatically and continuously. This is AI visual counting.
- It replaces manual tallies and end of shift estimates with a running count that feeds OEE, once it has been proved against a referee count.
- Because it needs no sensors or PLC wiring, visual counting works on legacy machines and mixed vendor lines.
- It counts separate units crossing a line well; piles, hands in view and glare break the count. Good systems count objects, not people.
What is AI visual counting?
AI visual counting is the use of computer vision to count products on a production line. A camera watches a fixed zone, a trained model recognizes your product, and every unit that crosses the zone increments the count.
The output is a running, timestamped production count: per line, per shift, per product. Fed into an OEE platform, it becomes the backbone of your Performance calculation and a cross-check on your Quality numbers.
Explainer presented by Iris, Fabrico's AI-generated presenter: how an add-on camera counts output where a machine has no signal. Book a demo.
Plays from YouTube. Google may set cookies when you press play. Privacy policy.
Why counting is the weakest link in most OEE data
OEE stands or falls on an accurate count. In practice, counts are an easy input to get wrong.
Manual tallies drift. Operators count at the end of a run, under time pressure, from clickers, scrap bins, and memory.
Machine counters count cycles, not products. A machine can report ten thousand cycles while double feeds, empty cycles, and rejects mean fewer sellable units actually came off the line.
Photo eye sensors are blind to context. A beam break counts anything that crosses it: a hand, a jam being cleared, two products stuck together registering as one.
When the count is wrong, performance and quality are wrong, and every improvement decision built on them inherits the error.
How AI visual counting works
1. Mount a camera over a counting zone. Usually above a conveyor with a clear view of passing products.
2. Train the model on your products. The system learns to recognize each product and variant, including packaging changes.
3. Count in real time. The model tracks each unit through the zone, which helps avoid double counts. Test it where products touch or overlap.
4. Stream counts to your OEE dashboard. Counts join stop data and quality data, so computer vision based OEE updates during the shift instead of at shift end.
In many systems the model runs on an edge device inside the plant and only the count goes to the cloud; ask each vendor where its model runs and when video leaves the plant. The article on edge AI inference on the factory floor explains that architecture.
What a counting camera counts reliably, and where it fails
A counting camera does one job well: it counts separate units crossing a line it can see clearly. The further a station is from that picture, the further the count drifts, so judge the scene before you judge the vendor.
A peer-reviewed paper at ICCV 2025 found that existing counting methods struggle with stacked objects "in which most objects are hidden by those above them"; the authors needed several views and a 3D model of the stack to count such loads. Light is the other weak spot. A WACV 2021 study from Toyota Motor Europe and TU Munich names changing lighting conditions among the most challenging sources of variation for object recognition, and a line changes its light with every shift, lamp and open door.
"After a test" means only a referee count on that station can say yes.
| What the camera sees at the count point | Count it there? | What goes wrong | What to do instead |
|---|---|---|---|
| Single packs in file with a gap | Yes | Little, in steady light | Count here first |
| Closed cases leaving a case packer | Yes | Two cases pushed together read as one | Count where the conveyor spaces them |
| Strapped bundles moving as one load | As bundles | The sheets or blanks inside are hidden | Count bundles x the bundle size on the order |
| Units touching or overlapping | After a test | Two units merge, or one long unit splits | Count where a guide or speed change spaces them |
| Loose piles in a tote or hopper | No | Most units are hidden under others | Count before the pile forms, or weigh it |
| A manual table, hands across the product | Outfeed only | Hands hide units or pass for one | Count closed packs leaving the table |
| Shiny film or glass, strong lamps, daylight | After a test | Glare washes out edges; counts change with the hour | Shade the zone; test day and night apart |
Two rules follow. Count where units are separate: the outfeed of a manual packing station beats the table itself. And count the unit you ship: if orders are in cases, count closed cases, not packs that may still be repacked.
Visual counting vs other counting methods
| Method | How it counts | Where it struggles |
|---|---|---|
| Manual tally | People count at the end of a run | Drift, gaps, no timestamps |
| PLC cycle count | The machine reports completed cycles | Counts cycles, not good units; needs PLC access |
| Photo eye sensor | A light beam break equals one unit | Double counts, no product recognition, one fixed point |
| AI visual counting | A camera recognizes and tracks each unit | Needs a clear line of sight, steady light and training on each pack; misses units it cannot see |
| Checkweigher | Weighs each pack that crosses its platform and counts passes and rejects | Counts packs, not the units inside a case; needs a gap, as two packs on the platform at once weigh as one |
What a proved count changes in OEE
With a trustworthy count, the performance factor becomes real: actual output against ideal cycle time, continuously. The gap between counted output and the ideal rate is the performance loss: micro-stops and slow cycles together.
Counting also strengthens quality data. Two counts, one before and one after the reject point, give total and good, and their difference is the reject count. Finding the defect itself is inspection, a separate machine vision job, as covered in the visual quality control guide.
Fabrico uses the camera add-on for one job: counting output at stations with no usable machine signal. On machines with a usable signal, that signal times the stops and the operator adds the reason, and Fabrico does no inspection. Camera counting feeds the same OEE dashboard as the machine signals. It is one pillar of a full AI OEE software stack.
How to prove a counting camera against a referee
Never let a new count feed OEE on trust. Run it beside a referee, a second count of the same units at the same point. The plant sets its own pace; the steps stay the same.
Step 1: fix the unit and the point. Write one sentence the line lead signs, such as "one closed case crosses the outfeed line". A camera counting packs against a referee counting cases proves nothing.
Step 2: pick a referee that sees the same units. Three referees are practical, and each has its own blind spot.
- Hand count. Suited to short blocks, because a person can tell two merged packs from one. People tire, so swap counters.
- Checkweigher pass count. The UK government's guidance on the Packaged Goods Regulations 2006 names "packing lines controlled by checkweighers" next to sampling as a way packers control quantity. On such a line every pack is weighed already, so the pass and reject counters are a ready referee, as long as both count packs (see checkweigher rejects and OEE quality).
- Machine counter. The OPC UA companion specification for PackML (OPC 30050) describes the processed count as "the number of products that were made, including all good and defective products". So it referees the total count, not the good count.
Step 3: count in short blocks and keep misses and extras apart. Totals hide errors that cancel. Say the referee counts 1,000 cases and the camera 994: the gap looks like 0.6%. If the blocks show 17 cases missed and 11 counted twice, the camera made 28 mistakes, an error rate of 2.8%. Write down each block's gap without its sign (48 or 52 against a hand count of 50 are both 2 wrong), add the gaps, and judge the camera on that sum. Blocks of 50 to 100 units stop errors cancelling inside one block.
Step 4: count enough units under every condition. The NIST/SEMATECH e-Handbook of Statistical Methods warns that because a test of a proportion is approximate, "N needs to be large for the test to be valid", and for a 1% limit it says "N should be at least 500". So to judge a camera against a 1% error rule, count at least 500 units per condition; fifty units only speak to a 10% rule. Day and night shifts, the hour after a changeover, the run after a wash-down and the shiniest pack are each a condition.
Step 5: write the pass rule before the first block. For example: gross error of 1% or less over 500 units per condition, none above 2%. If one condition fails, fix the view or the light and repeat that condition only.
Step 6: re-prove after anything moves. A knocked camera, a moved guide rail, new film or a new lamp each change the picture the model learned, so repeat a short set of blocks after each change. For a window-by-window example, see how accurate a camera part count is.
What one miscount costs: a worked example
Example line, illustrative numbers, not a customer. At the end of a biscuit line, two packers put flow-wrapped packs by hand into shipper cases of 24, and a camera counts closed cases. The ideal rate is 5 cases a minute over 465 planned minutes. Operators logged 62 minutes of stops: 40 waiting for packs from the flow wrapper and 22 clearing a jammed case erector.
At first the camera looks down on the table, where packers reach across and cases bunch at the corner. A referee test shows it counting 62 cases too many, 3.5% high. Moved to the outfeed belt, it matches the referee.
| One shift | Referee count | Camera over the table |
|---|---|---|
| Planned time | 465 min | 465 min |
| Stops logged | 62 min | 62 min |
| Run time | 403 min | 403 min |
| Possible cases in run time (403 x 5) | 2,015 | 2,015 |
| Cases counted | 1,760 | 1,822 |
| Re-packed cases (crushed corners) | 24 | 24 |
| Good first time | 1,736 | 1,798 |
| Availability | 86.7% | 86.7% |
| Performance | 87.3% | 90.4% |
| Quality | 98.6% | 98.7% |
| OEE | 74.7% | 77.3% |
The arithmetic with the referee count: availability 403 / 465 = 86.7%, performance 1,760 / 2,015 = 87.3% and quality 1,736 / 1,760 = 98.6%. OEE = 86.7% x 87.3% x 98.6% = 74.7%, which checks against good cases x ideal time / planned time: 1,736 / (465 x 5) = 1,736 / 2,325 = 74.7%. In minutes, the true shift splits into 347.2 good, 62 stopped, 51 slow and 4.8 lost to re-packing, which adds back to 465. The camera over the table reports 77.3%, and its 62 phantom cases hide 62 / 5 = 12.4 minutes of slow running every shift.
What the hidden loss costs. A miscount does not create the loss; it hides it, so nobody chases it. Price the 62 cases at margin only while orders wait, when the plant could have sold every extra case. As example inputs, take a case price of EUR 30 and a margin of EUR 5.40 a case, 18% of the price, inside the band the NYU Stern margin table reports for 78 US food processing firms (data as of January 2026): a gross margin of 23.23% and a pre-tax operating margin of 10.63%. While orders wait, 62 x EUR 5.40 = EUR 334.80 a shift goes unseen. Over 42 shifts a month (two shifts on 21 working days), that is 2,604 cases, or EUR 14,061.60. If orders do not wait, no margin is lost; the cost is the catch-up when a plan built on the camera count falls short at dispatch.
Rework at crew time. The 24 re-packed cases ship later, so they count in the total but not as good first time (see good count vs total count), and they are not lost margin. At 2 crew minutes a case they take 48 minutes, or 0.8 hours. Eurostat puts hourly labour costs in euro area industry at EUR 40.3 in 2025, so the re-pack costs 0.8 x EUR 40.30 = EUR 32.24 a shift.
An undercount costs differently. A camera 3.5% low makes the line look slow, and the usual answer is overtime the plant did not need: EUR 80.60 an hour for two packers at that rate, before any premium.
What the proof costs. Hand counting 500 cases under each of four conditions is 2,000 cases: at this shift's real pace of 1,760 cases in 465 minutes, about 528 minutes or 8.8 hours of one person, about EUR 355. That is roughly one shift of the hidden loss, against EUR 14,061.60 a month if the miscount stays. Fabrico prices each loss from the plant's own SKU price and margin, so the proved count is priced with your figures.
What camera do you need?
Start with the view, not the camera model. The camera has to see each unit clearly at the point where you want to count it.
- Placement. Mount it above the line with a clear line of sight to the counting zone. Pick a spot where products pass in a steady flow and hands and tools stay out of view.
- Line speed. Test at your fastest speed with your smallest product. A count that holds at half speed proves little.
- Light. Check the view on every shift. Daylight, shadows and shiny packs can all change the image.
In Fabrico, the camera add-on goes where a station has no usable machine signal, aimed at the point where units pass one at a time. How many camera add-ons each line needs is agreed with the Fabrico team after a review of your process and machines. Prove any camera count against a referee count, as set out above, before OEE runs on it.
Which count source fits which station: a decision matrix
The count source is chosen per station: the machine counter where one exists, and a counting camera where nothing else can see the unit.
| Station | Count source to use | Referee for the proof | Effort to set up | Who usually picks |
|---|---|---|---|---|
| Filler or cartoner with a readable PLC | Machine counter, processed minus defective | Hand count | Low, with controls access | Controls engineer |
| Old machine, no usable PLC, units spaced | Photo eye counter plus a run signal | Hand count | Low: sensor, bracket, small IoT device | Controls engineer or electrician |
| Manual packing table or hand assembly | Counting camera at the outfeed | Hand count in blocks | Medium: mount, clear view, training per pack | Production or CI manager |
| Packs leaving a checkweigher | Checkweigher pass count | Hand count | Low if it exports its counters | Quality |
| Many SKUs, frequent pack changes | Counting camera, trained per pack | Hand count after each change | Medium to high: a fresh proof per pack | CI manager and line lead |
| Loose parts in totes or bags | Weight or order quantity | Scale | Low | Logistics or quality |
| Low volume, changes daily | Tally on a tablet | Supervisor spot checks | Lowest, but it drifts | Shift supervisor |
Start with the controls engineer: readable count tags make the machine counter the cheapest count to prove. A counting camera earns its place at the manual stations the production or CI manager owns.
Questions to ask any counting camera vendor:
- Against which referee was the count proved, on how many units, and under which conditions?
- Were misses and extras counted separately, or only the net total?
- Can the count line sit after the reject point, so the camera gives a good count?
- How do counts reach the OEE software, and are they timestamped against the machine stops?
Where Fabrico fits. Fabrico is cloud OEE and light MES software. Machine signals come from the PLC or a small IoT device, and the Fabrico camera add-on counts output at stations with no usable machine signal, so every count lands on one shift timeline. Where the camera add-on covers a station, the video for the minute of a stop is streamed on request and not stored in Fabrico. See computer vision for OEE for the add-on and OEE software for the wider choice.
Your counting plan for this week and this quarter
- This week: list how every station counts today.
- This week: put the last few shift reports next to the dispatch receipts; the biggest gap is the first suspect.
- This week: at that station, hand count three blocks of 100 units against the current count, misses and extras apart.
- This quarter: run one referee test at a station the scene table rates yes, with the pass rule written first.
- This quarter: report that station on the proved count and price its losses at margin only while orders wait.
- This quarter: add the next station only after a pass. The plant sets the pace; the proof sets the order.
What to check before you buy
- Line speed and lighting. Ask for a proof of concept on your fastest line and your worst lighting, not a demo video.
- Changeovers. How much retraining does a new product or new packaging need? If your team plans to train its own model instead, see what an in-house vision build has to cover.
- Privacy by design. The system should count objects, not people; see the guide to cameras without surveilling people.
- Data location. European plants should confirm where counts and any images are kept. At Fabrico, EU customers are hosted on AWS in Frankfurt, and camera video is streamed on request, not stored.
Want to see how a camera count works? Book a demo to see a station counted by the Fabrico camera add-on on one shift timeline.
Frequently asked questions
What is AI visual counting?
It is automatic counting of products on a production line using a camera and a machine learning model. Each unit that passes a defined zone is recognized and counted in real time.
How accurate is visual counting?
Accuracy depends on camera placement, lighting, and model training, which is why a referee count at your station, with misses and extras kept apart, matters more than any datasheet number. A well set up system counts each unit individually instead of estimating.
Does visual counting work without a PLC?
Yes. The camera needs no connection to machine controls, which makes it a strong fit for OEE monitoring on lines without PLC access.
Can the same camera detect defects?
Not with Fabrico: the camera add-on counts output and does no inspection. Defect detection is a separate machine vision job. A counting camera after the reject point still gives the good count for OEE quality.
Is video of my staff stored?
Not in Fabrico. Where the camera add-on covers a station, the video for the minute of a stop is streamed on request and not stored in Fabrico. Involve your works council early and design zones that watch product flow, not people.
See how Fabrico tracks OEE, stops and counted output on every line in one platform.
Request a demoAbout this article Updated 30 Nov 2026
Written by Delin Sirkov, founder of Fabrico.
Published · Updated
Spotted something wrong or out of date? Tell us and we will fix it.












