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 product | Level by camera | Better or complementary method | Cap by camera |
|---|---|---|---|
| Clear PET or glass, still liquid (water, oil) | Good; the level line is sharp on a backlight | Sample weighing for net quantity | Good |
| Carbonated drink, PET or glass | Hard because of foam; image timing matters | X-ray or high-frequency measurement | Good |
| Amber or green glass | Often possible with the right light | X-ray | Good |
| Opaque HDPE (milk, detergent, chemicals) | Not visible | X-ray or checkweigher | Good |
| Metal can | Not visible | X-ray or checkweigher | Lid surface and edge only |
| Wide-mouth jar, viscous product | Unreliable, the surface is not flat | Checkweigher | Good |
| Label or sleeve covering the level | Not visible | Camera before labelling, X-ray or checkweigher | Good 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.
| Measure | How it is measured | Broken down by |
|---|---|---|
| Underfill escape rate | Challenge test with underfilled bottles of known content | Format, shift, valve |
| Cap fault escape rate | Missing, cocked, high and broken-band samples | Fault type, capping head |
| False reject rate | Reject bin audit divided by total output | Format, shift |
| Reject confirmation and decision time | Every reject signal matched to a bottle in the bin | At 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.