Counting glass bottles at the hot end with cameras over the lehr

In a glass-container plant, the hot end is the hardest place to collect data. Bottles leave the forming machines glowing hot and move through the annealing lehr on a wide metal belt. Heat and dust shorten the life of ordinary sensors, and counting by hand is not practical. This post describes how MVE (Monitait Vision Engine) counts and watches the bottles with cameras at a glass-bottle plant, and what the plant learned from the numbers.

The problem

The plant runs several forming lines, each feeding its own lehr. To know how well each line performs, the team needs to know how many bottles actually enter the lehr and how many are rejected further down. Without a reliable count at the hot end, losses between forming and packing are hard to see, and it is hard to compare one line with another.

What we installed

IP cameras look down on the lehr belts from above, away from the heat of the glass itself. The plant has 30 IP cameras on 6 lines, all connected to one edge server that runs MVE. Inspection and counting run on site; no images leave the plant.

What the system looks for

Seen from above, every upright bottle shows a round mouth. A trained detector finds each bottle mouth in the frame and the bottles are counted as they move along the belt. The same view shows when a bottle has fallen over or broken, because it no longer looks like a round mouth in a row.

A top view of the lehr belt as it is labelled in AI Trainer: each bottle mouth is marked, and the model learns to find and count them.

The models were trained on images from the plant's own cameras, labelled in AI Trainer. The same approach is used for bottles seen from the side on conveyors, where each bottle is detected and numbered as it passes.

Bottles on a conveyor, each detected and numbered with a confidence score.
Bottles passing through a camera arch on a conveyor, where each one is counted.

What the numbers showed

Between May 2024 and August 2025, the system counted 347.8 million glass containers on three lehrs. With counts that the team trusts, the lines could be compared directly. The reject rates of the three lehrs over that period were:

  • Lehr A: 2.19%
  • Lehr B: 3.36%
  • Lehr C: 10.25%

One lehr rejected about 4.7 times as much as its neighbour. A difference that size was not visible from daily reports, but with continuous counts it was clear, and it pointed the team to where to look first.

How the plant uses it

The counts are stored as a time series for each line, so the team can look at any shift, day or month, and see when a line slows down or stops. Long periods of data can be analysed afterwards: the plant's lehr data covering 15 months has been analysed from the database to look for patterns behind the differences between lines.

What we learned

  • Count where the product is, not where it is convenient. A camera above the lehr belt avoids the heat and dust that shorten sensor life, and it sees every bottle.
  • Comparable numbers matter more than perfect ones. The biggest result was not a single count but the comparison between lehrs, which showed one line losing far more than the others.
  • One server can carry a whole plant. Thirty cameras on six lines run on a single edge server.

Is this relevant to your plant?

The same setup fits other hot or dusty lines where sensors do not last: glass forming, metal and ceramics. Send us a few images or a short phone video of your belt, with the line speed, and we will tell you whether cameras can count and check your product reliably.

Finding defects without a trained model compares vision-language models with anomaly detection on 659 factory images. It is useful reading if your line has few labelled defect images to start with. For the MVE product lines and field figures, see monitait.com.