Fill Level and Cap Inspection on Bottling Lines with Cameras
Business

Fill Level and Cap Inspection on Bottling Lines with Cameras

Put the camera after the capper where bottles sit still, never treat a level as net quantity, confirm every reject, and measure acceptance at full speed per format and shift.

Short answer

Fill level inspection and cap inspection can run at full line speed on clear or translucent bottles with a camera station placed after the capper. The camera catches underfills and overfills, missing, cocked or high caps and broken tamper bands; it does not measure net quantity, torque or micro-leaks. Opaque containers and cans need X-ray or a checkweigher. Faulty bottles are tracked by encoder, rejected and confirmed by a sensor, and acceptance is measured as escape rate and false reject rate at full speed.

Can fill level and cap inspection be done with a camera on a bottling line?

Yes: on clear or translucent containers, fill level inspection and cap inspection can run at full line speed with a camera station after the capper, and faulty bottles can be rejected automatically. Water, beverage, oil, dairy, detergent, cosmetics and chemical plants share the same complaints: underfills, missing, cocked or high caps, broken tamper bands. At hundreds of bottles per minute, nobody catches these by eye.

Buying "a cap inspection system" is not the whole decision: first settle where a camera cannot see, why a level is not a net quantity, and how acceptance will be measured.

What can a camera check on a filling line, and what can it not?

A camera measures visible geometry: the height of the liquid surface, the presence, height, tilt and colour of the cap, and the state of the tamper band; it does not measure net quantity, closure torque or micro-leaks.

  • What it checks: Underfill and overfill against a band, missing caps, cocked or high caps, broken tamper bands, wrong cap colour, sometimes foam height.
  • Net quantity: A level is not a volume or a weight; if bottle volume, glass thickness or temperature changes, the same level means a different quantity.
  • Torque and leaks: A loose cap at the right height usually looks like a tight one; micro-leaks need a leak test.
  • Opaque containers and labels: A camera cannot see the level through opaque plastic, a metal can, or a label covering the fill zone.

Which method fits which container: camera, X-ray or checkweigher?

If the container and product let light through, a camera measures the level well; if not, X-ray or high-frequency measurement takes over, and for net quantity a checkweigher is the reference, which is why many lines combine them. Keyence's fill level inspection page lists vision, X-ray, check weighing or a combination, and says the choice depends on product type, packaging material and required accuracy. Heuft's note on its X-ray fill level bridge describes catching underfills and overfills in opaque packaging, metal containers and contents where high-frequency measurement falls short.

Container and productLevel by cameraBetter or complementary methodCap by camera
Clear PET or glass, still liquid (water, oil)Good; the level line is sharp on a backlightSample weighing for net quantityGood
Carbonated drink, PET or glassHard because of foam; image timing mattersX-ray or high-frequency measurementGood
Amber or green glassOften possible with the right lightX-rayGood
Opaque HDPE (milk, detergent, chemicals)Not visibleX-ray or checkweigherGood
Metal canNot visibleX-ray or checkweigherLid surface and edge only
Wide-mouth jar, viscous productUnreliable, the surface is not flatCheckweigherGood
Label or sleeve covering the levelNot visibleCamera before labelling, X-ray or checkweigherGood if the cap is uncovered

A checkweigher is closest to net quantity; simple capacitive sensors answer at one threshold but cannot see the cap.

Where does the camera go, and how are lighting and exposure chosen?

The camera sits after the capper, on a straight conveyor section where bottles do not wobble, with its own trigger sensor; clear liquids are measured on a backlight, while cap colour and detail need front or side lighting.

Edmund Optics' application note on backlight illumination shows that a backlight produces a high-contrast silhouette, can be used to look at liquid levels in transparent glass, and does not reveal printed text on a label. So the backlight gives the level and cap silhouette (height, tilt); cap colour and the tamper band need other lighting, and the whole band needs several cameras or mirrors.

  • Foam: Agree with quality when the image is taken and which foam boundary counts; Keyence also notes that foam can confuse an inspection system.
  • Condensation: On cold-filled bottles, outside droplets break up the level line.
  • Coloured glass: Red or near-infrared light often passes amber and green glass better; test on your own bottles.
  • Wobble and labels: Mount the camera where guide rails hold the bottle steady; if the label covers the level, check the level before the labeller.

Exposure follows from line speed: at 300 bottles per minute with an 80 mm pitch the conveyor moves about 400 mm per second, so keeping blur under 0.2 mm means an exposure of 0.5 ms or less. That calls for a strong, often strobed light, and a photoelectric trigger rather than a software timer, as covered in our article on the engineering realities of vision QC. Classic image processing (edges measured in millimetres) usually suffices for level and cap height; learned models help where appearance varies, such as band breaks or foam.

How is the tolerance band set, and how does it relate to net quantity rules?

Quality sets the band from the bottle's level-to-volume relationship and the legal rules on prepackaged net quantity; the camera helps you meet those rules but does not replace statistical net content control.

In Türkiye this is governed by the regulation on the net quantity of prepackaged products by weight or volume, which covers prepackages from 5 g or 5 ml to 10 kg or 10 litres and was prepared in line with EU Directive 76/211/EEC. Its Annex I sets three rules: the average actual quantity may not be below the nominal quantity; the share of packages short by more than the tolerable negative error must be small enough to pass the Annex II tests; and no package short by more than twice that error may carry the "℮" mark or be placed on the market. Its table sets the tolerable error at 15 ml for 500 to 1,000 ml, for example, and volume is checked at 20 °C.

OIML's Recommendation R 87:2016 says its sampling plans are for legal metrology officials, not for the packer's own quantity control. A lot taken from the line consists of prepackages not rejected by a checking system, sampled after the packer's final check, so your inline reject shapes what an inspector measures.

In practice the lower limit catches bottles that depart from the filler's normal behaviour, and sample weighing shows the average stays above nominal. This is informational; confirm how the rules apply with the regulation and the competent authority.

How do the reject mechanism and the filler connect to the camera?

The camera writes its verdict into a PLC shift register that tracks each bottle by conveyor encoder; the rejector fires when that bottle arrives, and a separate sensor confirms it actually left the line.

  • Timing: Tracked by encoder, not a fixed delay, because speed changes at stops and starts.
  • Reject confirmation: If a flagged bottle passes the reject point, the line stops; a full bin is monitored too.
  • Undecidable bottles: An unusable image (fallen bottle, glare) means a reject on its own counter; if it climbs, the station is the problem.
  • Consecutive rejects: A run of rejects stops the line, so a cap feed fault is caught before hundreds of bottles are dumped.
  • Per-valve and per-head statistics: On a rotary filler, logging each level against its valve shows a slow drift before rejects start; cocked caps are traced to capping heads the same way.
  • Screen and MES: Reject images go to the operator, shift summaries to MES.

What samples and access are needed before the project starts?

The key input is real bottles for every format: correctly filled, deliberately underfilled and overfilled, and with faulty caps; a classic level measurement does not need thousands of labelled images.

  • Bottles of each type with weighed contents, to map level to millilitres.
  • Faulty samples: underfilled, missing cap, cocked and high caps, broken band.
  • Quality's tolerance definition and net quantity procedure, and a named person who signs acceptance.
  • Line speed, bottle pitch, number of valves and capping heads; access to the PLC, rejector and encoder.
  • Current reject and complaint data.

For changeover, each bottle type's measurement zone and band live in a recipe that follows the format selected on the filler.

How should the pilot and acceptance test be run?

Acceptance rests on two numbers measured at full line speed, per format and per shift: the escape rate for faulty bottles and the false reject rate for good ones.

The escape rate is how many of 100 truly faulty bottles pass uncaught; the share caught is recall. The false reject rate is how many of 100 good bottles are thrown out. Escapes are measured with a challenge test: numbered faulty bottles are fed in at random and you count how many reach the reject bin.

MeasureHow it is measuredBroken down by
Underfill escape rateChallenge test with underfilled bottles of known contentFormat, shift, valve
Cap fault escape rateMissing, cocked, high and broken-band samplesFault type, capping head
False reject rateReject bin audit divided by total outputFormat, shift
Reject confirmation and decision timeEvery reject signal matched to a bottle in the binAt full line speed

Report per fault type, format and shift, not as one average, and set targets from today's measured baseline and your own error costs, not a vendor brochure. No escapes seen does not mean a zero escape rate; sample sizes are worked out in our article on acceptance tests for a vision pilot.

Hypothetical example: false reject arithmetic on a half-litre water line

The following example is hypothetical; the numbers only illustrate the method. A water plant fills 0.5 litre PET bottles on a 40-valve rotary filler at 300 bottles per minute; 420 net minutes per shift gives 300 × 420 = 126,000 bottles. In this neck, 1 mm of level is about 0.4 ml. Rather than waiting for the regulation's 15 ml limit, quality sets the band from 6 mm below target (about 2.4 ml) to 8 mm above.

In week one the false reject rate is 0.08%: 126,000 × 0.0008 ≈ 101 good bottles dumped per shift. A bin audit shows they are correctly filled bottles wobbling after the starwheel. Moving the camera to the guided section brings the rate to 0.015%: 126,000 × 0.00015 ≈ 19 bottles per shift. In the challenge test, all 60 underfilled bottles fed over three shifts are caught; that does not prove a zero escape rate, only that it is below roughly 5% with 95% confidence (with zero escapes the upper bound is about 3 divided by the sample count). Meanwhile valve 17's average drops 1.5 mm in two days and it goes to maintenance.

What drives the cost, and what should a quote itemise?

Cost is driven by container and product type, line speed, number of formats, number of checks and depth of integration, so expect a quote broken down by scope rather than a single figure.

  • Bigger: Foaming products, coloured glass, many formats, 360° band views, high speed, a new rejector, per-valve tracking, washdown protection.
  • Smaller: Clear product and bottles, few formats, a working rejector, an accessible PLC, an agreed tolerance.
  • Itemised in the quote: Hardware (cameras, lenses, lights, sensors, enclosure, any rejector), software and recipes, samples and labelling, PLC and MES integration, commissioning and challenge test, training, monitoring and support.

Why do bottling line vision inspection projects fail?

Failures usually come from camera placement, the reject chain and the tolerance, not the algorithm:

  • Mounting the camera where bottles wobble, then blaming the algorithm.
  • Timing the reject with a fixed delay and fitting no reject-confirmation sensor.
  • Setting the band without quality, so it is widened by hand after every complaint.
  • Running acceptance at low speed on one format, and not tying recipes to the filler's format selection.
  • Treating the camera as net quantity control and dropping sample weighing.

Hatson Tech builds fill level and cap inspection, with cameras, lighting, PLC integration and acceptance testing, as part of our computer vision quality control service. If you would like to review your line and bottle types together, the first meeting and discovery study are free; the quote follows discovery, itemised by scope.

Key takeaways

  • A camera sees the level, cap presence, height and tilt, and the tamper band; it does not measure net quantity, torque or micro-leaks.
  • For opaque HDPE, metal cans and labels that cover the level, consider X-ray or a checkweigher instead of a camera.
  • Mount the camera after the capper where guide rails hold the bottle steady, and calculate exposure from line speed.
  • Track rejects by encoder, add a reject-confirmation sensor, and log levels per filling valve to see drift before rejects start.
  • Write the level band with quality and with the net quantity regulation in view; sample weighing still proves the average.
  • Measure escapes with a challenge test and false rejects with a reject bin audit, at full speed, per format and per shift.

Frequently asked questions

Can we use the cameras we already have for bottle fill level inspection?

Sometimes. What decides it is less the camera than the lighting and position: clear liquids need a backlight, an exposure short enough for line speed and a photoelectric trigger. If an existing camera gives a sharp, repeatable level line under those conditions, it can be reused; trying it with real bottles during discovery is the quickest way to find out.

Does camera inspection replace the operator?

It takes over looking at every bottle, but the operator's job changes rather than disappears: auditing the reject bin, responding to alarms, selecting the right recipe at changeover and feeding challenge bottles at the start of a shift. Sample weighing for net quantity also continues.

Is a camera system enough evidence for a net quantity inspection?

Not on its own. The regulation looks at whether the average quantity is at least the nominal quantity and at the share of short packages, which is shown by sampling based on weight or volume measurement. Camera records support that control. Confirm your own situation with the competent authority.

What drives the project timeline?

The number of formats, difficult conditions such as foaming products or coloured glass, whether a reject device already exists, PLC access and how much line time can be given to commissioning. Because acceptance must cover several shifts and formats, the schedule should be planned together with production.

Can a camera measure cap torque?

No. A camera measures cap height and tilt, and a loose cap sitting at the right height usually looks the same as a tight one. Torque needs its own measurement; the camera's data on cocked and high caps helps when adjusting capping heads.

Do the images raise KVKK or GDPR questions?

Usually not, because the camera is aimed at the bottle and the field of view is tight, so people rarely appear. If workers do come into frame, treat the images as personal data, narrow the field of view and set a retention period.

All articles