Ice plant loading gates with overhead crane containers and a dedicated counting camera above each station

Case studyVideo analytics and edge AI

Counting every ice block leaving the plant

An Indian ice manufacturer was miscounting ice blocks as four trucks loaded at once. Brainy Neurals built an AI object counting system for its loading gates. The system watches all four conveyor cameras from one machine inside the plant. Counts land on the owner’s phone every hour, and no video leaves the site.

Loading gates counted at once
4
Frames analyzed per second, per camera
25
Video streams sent to the cloud
0

Technically reviewed by Mitesh Patel, NVIDIA Certified AI Architect.

Published August 2026Last updated August 202612 min read

02

At a glance

Quick Answers

Q1 · Problem

What problem did this solve?

Ice blocks loaded onto trucks at four gates were miscounted whenever the owner stepped away. One person cannot watch four conveyors at once, and the tallies drifted with every distraction.

Q2 · The build

What did Brainy Neurals build?

Brainy Neurals built an AI object counting system for an Indian ice manufacturer. A custom-trained detector watches four conveyor cameras from one on-site machine and counts every block.

Q3 · Outcome

What changed after it went live?

Counting now runs unattended at all four loading gates. The owner reads hourly and daily per-gate reports on a mobile app, with no video streamed to the cloud.

Q4 · Fit

Who else could use this?

AI object counting fits any operation that moves identical items past a fixed point all day. Warehouse docks, bottling lines, brick yards, and parcel belts all qualify.

Industry
Manufacturing
Sub-vertical
Ice production
Client
Indian ice manufacturer
Engagement
AI counting system
Timeline
Not disclosed
Capabilities
Computer vision, edge AI
Delivery
Project-based delivery
Video to cloud
None

03

Why did the count keep going wrong?

An Indian ice manufacturer loads trucks at four gates at once, each gate fed by its own conveyor. Every block that leaves is revenue, and the tally was whatever the nearest person remembered. When the owner stood on the dock, the numbers held together well enough. When the owner traveled, they drifted, and nobody could say by how much. The plant already had cameras at every gate, installed for security rather than video analytics. They watched everything and counted nothing.

The drift was nobody’s fault in particular, and no surprise either. Manual counts drift, and they drift hardest where nobody watches the person counting.

04

What do plants usually try first?

Four routes, all reasonable.

ApproachWhat it gets rightWhere it stopsWho it still suits
A counter at each gateNo new technologyFour gates, shifts, and disputesOne gate, short loading hours
Beam or weight sensorsCheap, counts every crossingCounts hands and debris tooSingle-file items, clean flow
Cloud video countingNo on-site hardwareBandwidth and a monthly billFew cameras, strong uplink
On-site AI, our routeCounts only blocks, all gatesTraining footage, hardware up frontParallel gates, high volume

The trade is an old one. A 2016 edge computing survey named response time and bandwidth cost as reasons to process video on site[2].

Illustration comparing manual tally, beam sensor, cloud video, and on-site AI counting routes MANUAL TALLYBEAM SENSORCLOUD VIDEOON-SITE AI EVERY SHIFTCOUNTS ANYTHINGMONTHLY BILL EVERY GATE
Three familiar routes each stop at a wall the fourth one clears.

Where it stops

Tried one of these and hit the wall?

Tell us where the count stopped

05

How we designed the counting system

Brainy Neurals built the whole counting path to run inside the plant, on one machine the client bought once. That machine carries a graphics processing unit, a GPU, sized for real-time object detection on four streams. Each gate’s camera feeds it, and a custom-trained object detection model finds every block. A tracker follows each one, and a fixed line turns each exit into one tick.

Video never leaves the plant, and the numbers are the only thing that does.

Architecture diagram of an on-site AI object counting system where only counts sync to the cloud Four gate cameras feed one GPU workstation inside a dashed plant boundary. On that machine a block detector, a tracker, a counting line and a site count store run in sequence. One thin arrow labeled counts only crosses the boundary to a cloud service and then a mobile app. A short stub from the cameras labeled no video out stops at the boundary. THE PLANT NO VIDEO OUT 1 FOUR GATECAMERAS FOUR STREAMS 2 GPU WORKSTATION 3 BLOCKDETECTOR 4 TRACKER 5 COUNTINGLINE 6 SITE COUNTSTORE COUNTS ONLY 7 CLOUDSERVICE 8 MOBILEAPP
Detection, tracking, and counting all run inside the plant, and only the counts cross the wire.

The first decision was what should be allowed to cross the wire beyond the plant. We rejected streaming four cameras to cloud machines, because the bill grows with every camera added. And a count that depends on an uplink stops when the uplink does. So only counts leave the building, a few bytes an hour instead of four video streams.

The second decision put all of the intelligence at the gate, with the cloud only storing and serving. A phone can ask for a report, but it can’t slow a gate down.

06

The technology stack we used

Every layer here earns its keep on one machine and one bill. The same layout appears in our edge AI builds on smaller boards, with the hardware swapped.

On-premise edge AI workstation and live counting dashboard for the loading gates
One machine inside the plant runs every stream, and only the counts leave the building.

On-site capture and inference

Cameras

The gate cameras already there

Why it wonNo new mounts
Ruled outA camera fit-out

Compute

One GPU workstation, bought once

Why it wonFour streams, real time
Ruled outCloud compute per frame

Detection model

Custom-trained block detector

Why it wonOne class, ice
Ruled outGeneral off-the-shelf models

Counting and reporting logic

Tracking and counting

One identity, count on cross

Why it wonNo double counts
Ruled outCounting raw detections

Stream scheduling

Shared inference, fixed rotation

Why it won25 frames, every gate
Ruled outOne machine per gate

Local buffering

Counts stored on site first

Why it wonLink drops lose nothing
Ruled outFire-and-forget uploads

Cloud and mobile delivery

Cloud backend

A small hosted count service

Why it wonStores totals, serves rollups
Ruled outStreaming video off site

Mobile app

One codebase, both platforms

Why it wonReadable anywhere
Ruled outTwo native apps

07

How does one block get counted?

One block, gate to tally, in the order the system sees it, with nothing waiting on a network.

  1. 01The camera at each gate feeds live frames to the plant machine, all four streams at 25 frames per second.
  2. 02The detector finds every ice block in the frame and draws a tight box around each one.
  3. 03The tracker links those boxes from frame to frame, so every block keeps one identity as it moves.
  4. 04The gate’s tally rises by exactly one when a tracked block crosses its fixed counting line.
  5. 05The count is stamped with its gate and hour, then stored on the plant machine first.
  6. 06The totals sync to a small cloud service, and the mobile app updates every gate’s numbers.
Six-step flow of one ice block from camera frame to counted total on a mobile report Two lanes. In the plant lane, frames in, detect blocks, track identity, count on cross, and stamp and store run left to right. Past a dashed line labeled plant edge, sync and display sits alone in the cloud and phone lane as the only stage outside. THE PLANT CLOUD AND PHONE PLANT EDGE 1 FRAMESIN 2 DETECTBLOCKS 3 TRACKIDENTITY 4 COUNT ONCROSS PLUS ONE 5 STAMP ANDSTORE 6 SYNC ANDDISPLAY
Each block is counted once, at the line, and only step six leaves the site.

Six steps, and only the last one leaves the plant. Everything before it happens on the machine beside the gates, whether the internet is up or not.

Want this walked through for your gates? Book 30 minutes with Mitesh Patel.

No pitch. If it is not a fit, you will know in five minutes.

Book 30 minutes

08

Three problems that nearly beat us

The first counts came in high, because ice blocks travel nose to tail. Two touching blocks read as one, then two, then one again, and every flicker minted a phantom block. The phantoms went straight onto the invoices.

Then the dock door began making weather of its own. Cold air met warm air, the lenses fogged, and midday glare off wet ice washed whole frames out. The detector began missing blocks it had found without trouble an hour earlier.

And four streams fought over one machine. Scheduled naively, one gate’s frames queued behind another’s, and a queued frame is a skipped frame.

Tracking benchmarks count identity switches and ghost trajectories among the standard errors, which are polite names for phantom blocks[3]. These are the weeks when a plant brings in specialist engineers instead of losing a season.

09

How we solved each one

Each of these fixes reads short on the page, and none of them was short to find.

Illustration of tracked ice blocks crossing a counting line, each counted exactly once +1 PER CROSS #1 #2 #3 #4 COUNTED 128 TRACKED COUNT LINE COUNTED
One identity per block and one tick per crossing replaced counting raw detections.

Phantom blocks

We stopped counting detections and started counting crossings instead. The tracker gives every block one identity, and the tally moves only when that identity crosses the line. Once. And the phantoms vanished from the invoices for good.

The dock door

We collected footage from the worst hours, fog, glare, and night loads, and retrained on those frames. We also moved each counting line clear of the mist.

Four streams, one machine

We batch the four streams through the model on a fixed rotation. Every gate gets its slice of every cycle, so all four hold 25 frames per second. No gate starves.

Conveyor belts, incidentally, are older than the light bulb.

Finding these three ate most of the build, so a proof of concept now runs this gauntlet first.

10

What changed once it went live?

WhatBeforeAfter
Who keeps the countWhoever stood closestThe system, at every gate
When the owner travelsThe tallies driftedNothing changes
Video sent to the cloudQuoted as the fixNone
Cost that grows per cameraCloud streaming and bandwidthNeither
The loading reportEnd-of-day memoryHourly and daily, per gate

We do not publish model accuracy figures here, on this page or any other. What we will publish is what runs on the counts: every hourly and daily report, at every gate.

Owner's mobile app showing live ice block counts per gate with an alert
The owner reads every gate’s tally from anywhere, the hour it happens.

Day to day, the owner opens the app from anywhere and reads what left each gate that hour. Because the machine was bought once, the cost of counting stopped scaling with the camera count. And a dispute now ends with a report, not a recount at the gate. The recount, with a loaded truck idling beside it, is the ritual this build retired.

Tell us what to count

What do your cameras need to count?







    11

    What runs at the plant today

    The AI object counting system runs in production at the plant, on the same machine the first pilot used. All four gates report every hour and every day, and the owner reads them from anywhere. Nothing about the loading day itself changed for the crews on the belts. The belts keep running, the trucks keep filling, and the count keeps happening above everyone’s head. For manufacturing operations, that is usually exactly the right amount of AI to ship. The best systems get watched, not operated.

    Workers unloading ice blocks from metal containers and loading a truck under the gate camera
    The crew loads exactly as it always did, and the camera overhead does the counting.

    12

    What would we change next time?

    1. 01

      Film the worst hour first

      We trained on clean daylight footage and met the fog later, at the door. The ugliest frames a site produces are the ones to start with.

    2. 02

      Count crossings, not detections

      A tally that moves on every detection is a random number generator with confidence. We knew the rule going in and still spent a week relearning it.

    3. 03

      Load all four gates early

      The one-gate build ran beautifully for a week and taught us nothing. Four parallel streams is a different machine, so test the full load from day one.

    4. 04

      Decide what crosses the wire early

      Counts, not video, was the cheapest decision anyone made on this project. But it shaped the hardware, the backend, and the monthly bill, so make it before anything else.

    13

    Where else does camera counting fit?

    AI object counting keeps a running tally of items passing a camera by detecting and tracking every one of them. It belongs wherever identical products pass a fixed point faster than anyone can count.

    Illustration of a fixed camera counting parcels as they cross a line on a belt, counts leaving while video stays on site COUNT LINE COUNTS OUT VIDEO STAYS
    The same counting pattern on a parcel belt, with counts leaving and video staying.
    IndustryThe equivalent problemWhat changes in the build
    LogisticsWarehouse dock cameras counting pallets and parcels outWider classes, one line per door
    RetailBack-room cases counted onto the shop floorSmaller items, counts in both directions
    AgricultureProduce crates from the packhouse onto trucksOutdoor light, seasonal retraining
    Construction materialsCement bags and bricks loaded onto flatbedsDust-tolerant training, rugged mounts
    Beverage bottlingCases leaving the line faster than sightHigher frame rates, tighter timing
    Food processingFrozen cartons from freezer to dispatchFrost-proof retraining, cold-rated housings

    Porting takes fresh footage of the new item, a retrained detector, and hand tallies beside it until they agree.

    14

    What buyers ask us first

    01Can AI count objects from existing CCTV cameras?

    Usually, yes. Counting needs a clear view of the items and steady framing more than it needs new cameras. We test your current footage first, and we only ask for new mounts where a view fails.

    02How does AI object counting work?

    A detection model finds each item in every frame the camera produces. A tracker then links those detections across frames into one identity per item. The count then rises exactly once when that identity crosses a set line.

    03How accurate is AI object counting?

    Accuracy depends on the item, the camera view, and the training footage, so no honest vendor quotes one number. A serious counting system is validated against hand tallies before go-live, on your gates and in your light.

    04How long does an AI counting system take to build?

    A proof of concept on your own cameras usually takes a few weeks. Production follows once the counts hold against manual checks across shifts, weather, and a full loading day.

    05How much does an AI object counting system cost?

    The cost depends on the camera count, the item itself, and what hardware already exists on site. Brainy Neurals scopes it from a short call and sample footage, then quotes a fixed price. An AI readiness assessment tells you first whether your cameras and site can carry it.

    06Is edge AI cheaper than cloud AI for video?

    For always-on video, usually. Edge hardware is bought once per site, while cloud inference sends a bill for every hour of video streamed. A few cameras running short hours can still favor the cloud. Four gates running all day do not.

    07What else can the same cameras count?

    Anything that moves past the lens as a distinct object can be counted this way. The same pipeline counts pallets, crates, bags, cases, and vehicles from the same camera mounts. Each new item needs its own footage and a validation run against hand tallies.

    Sources cited on this page

    1. [1]DeHoratius N, Raman A. Inventory Record Inaccuracy: An Empirical Analysis. Management Science. 2008;54(4):627-641. DOI 10.1287/mnsc.1070.0789.
    2. [2]Shi W, Cao J, Zhang Q, Li Y, Xu L. Edge Computing: Vision and Challenges. IEEE Internet of Things Journal. 2016;3(5):637-646. DOI 10.1109/JIOT.2016.2579198.
    3. [3]Milan A, Leal-Taixe L, Reid I, Roth S, Schindler K. MOT16: A Benchmark for Multi-Object Tracking. arXiv. 2016. arXiv:1603.00831.

    If identical products leave your site faster than anyone can count them, tell us what to count.

    16

    Other builds cut from this pattern

    Three more Brainy Neurals builds, each of them shipped into a working environment rather than left as a demo.

    Cite this case study

    Mori, Prasiddh. Counting every ice block leaving the plant. Brainy Neurals, August 2026. https://brainyneurals.com/case-studies/ai-object-counting-ice-blocks/