Precision lens manufacturer for machine vision, medical, and industrial imaging applications.

Clear Glass Bottle Crack Inspection: Optics and Lighting That Beat Side-Wall Glare

Home - Application Notes - Clear Glass Bottle Crack Inspection: Optics and Lighting That Beat Side-Wall Glare
Reading Time: 8 min ( Word Count: 2,096 )

A clear glass bottle is a mirror with a defect inside it. The bright side-wall reflection is not the crack; it is a specular path that reaches the camera from the same direction as the defect scatter. Raising exposure or adding light power makes both signals stronger. The fix is geometric: move the illumination outside the specular cone, keep the camera out of the mirror angle, and place a dark background behind the bottle so a crack has somewhere dark to appear. On a moving line, pair that geometry with a line-scan camera and a lens whose image circle, working distance, and distortion budget match the bottle. This article gives the optical layout, the resolution math, and the qualification record.

Key Takeaways

  • A side-wall highlight is a specular reflection; a crack is scatter. Separate them by angle, not by exposure.
  • Dark-field grazing light, a matte black background, and a camera outside the mirror angle are the base recipe.
  • Use line scan with an encoder-locked line rate for moving bottles; use an area camera with a short strobe or a 360-degree prism lens for indexed or rotating bottles.
  • Set resolution from the smallest crack and the line speed before choosing a lens; a larger light cannot recover a lens that is undersampled.
  • Qualify with a defect set, not one good bottle, and record the light angle, lens ID, and line rate with the acceptance images.

Why the Side-Wall Reflection Hides a Crack

Glass is transparent in the bulk, but its surface is optically smooth. A bright source produces a specular highlight wherever the surface normal bisects the angle between the light and the camera. A crack is a different optical event: it scatters light in many directions, including toward the camera. When the camera sits inside the specular cone, the highlight fills the same pixels as the crack scatter and can saturate the sensor. The defect is not hidden behind the reflection; it is competing with it at a much higher intensity.

Changing exposure rarely solves the problem: lowering it darkens the crack as much as the glare, and raising light power brightens both. Move the light until its mirror direction misses the lens, then use the remaining scatter as the signal. A matte black background gives the crack a dark field, which is the principle behind dark-field inspection.

Three Optical Paths You Must Separate

A bottle image contains three paths: surface reflection, bulk transmission, and defect scatter. Each needs a different geometry.

Path What it carries How to use or suppress it
Surface reflection Bottle shape, mold marks, glare Keep the camera outside the specular angle; use a dark background; a polarizer can reduce glare but may also reduce defect scatter.
Bulk transmission Color, thickness, inclusions, gross breaks Use a diffuse backlight or a light tunnel; this is a silhouette view, not a surface-crack view.
Defect scatter Checks, chips, cracks, stones Use low-angle grazing light outside the specular cone; let the defect scatter into the lens against a dark field.

The common mistake is to light the bottle for the best-looking image. A bright, evenly lit bottle hides cracks from a machine; the inspection image should look dark, with defects brighter than the background.

Lighting Geometry That Works on Clear Glass

Dark-field illumination is the base technique for surface cracks. Place narrow LED bars or fiber guides at a low angle to the side wall, roughly 30 to 60 degrees, and keep their mirror direction away from the lens. A crack acts as a small scatter site and flashes as the bottle rotates or moves. A smooth side wall stays dark. Edmund Optics’ note on dark-field ring lights explains the same principle for machine vision: low-angle light enhances surface features while keeping direct reflection out of the camera.

A diffuse backlight is useful for a second pass: it reveals inclusions, gross breaks, and thickness changes as a silhouette. It does not replace the dark-field pass for fine surface cracks. Crossed polarizers can suppress some surface glare, but they also reduce the light available from the defect; test them on real bottles before committing. Avoid overhead fluorescent tubes, windows, and bare point lights. They create moving highlights that look like defects and make thresholding unstable.

For a moving line, a bar light aligned with the scan line is usually more uniform than a ring light. Mount it so the light does not reflect from the conveyor into the camera, keep the background matte black, and qualify the line both dry and wet because a water film changes the glare pattern.

Line-scan lenses staged for a glass container inspection build
Line-scan lenses staged for a glass container inspection build. The lens, light, and camera geometry must be qualified together.

Line Scan, Area Scan, or a 360-Degree Prism Lens

For a bottle moving continuously, a line-scan camera is the natural choice. It builds the image one line at a time, so the exposure is short and the resolution across the bottle is set by the lens and the sensor line length. The camera must be encoder-locked to the conveyor, or the image will stretch and shrink with speed changes. A line-scan lens with a low distortion budget and an image circle that covers the sensor line is the starting point; the image circle math is the same as any line-scan build, and it is covered in our line-scan lens selection guide. For the broader five-input method, see our machine vision lens selection guide.

For an indexing table or a rotating bottle, an area camera with a short strobe can work. The bottle stops or moves slowly enough that motion blur stays inside one pixel, and the whole side wall is captured in one frame. This is simpler to integrate but slower. A third option is a 360-degree prism lens: one exposure captures the full side wall as an annular image, which is unwrapped in software. This can replace several cameras around a round part, but the resolution is spread around the ring, so the pixel count on the defect is lower than a dedicated view. Our 360-degree panoramic lens family guide covers the pericentric, catadioptric, and fisheye options.

Option Best for Trade-off
Line scan Continuous motion, high line speed, full-surface coverage Needs encoder, line light, and a lens that covers the line; more integration work.
Area scan Indexed or slow-moving bottles, simple stations Motion blur and lower throughput; may need a strobe.
360-degree prism Round parts, full side wall in one exposure, space-limited cells Resolution is spread around the annulus; unwrapping and calibration add work.

For most new glass lines, start with line scan if the bottle moves continuously and the defect is small. Use a 360-degree lens when the cell has no room for multiple views and the defect survives the annular resolution; use an area camera when the line indexes and the budget is tight.

Resolution and Line-Rate Math

Start with the smallest crack you must catch. A common starting point is three to five pixels across the defect; a high-contrast crack may be detectable at two, but the false-call rate rises. If the crack is 0.1 mm wide and you want four pixels across it, the object pixel size should be about 0.025 mm. With a 20 mm field of view and a 4096-pixel line, the object pixel size is 20 / 4096 = 0.0049 mm, which is far finer than needed; you can use a shorter line or a wider field and put the pixels where they matter. The point is to calculate, not to buy the highest pixel count.

Line rate follows the motion. If the conveyor runs at 0.5 m/s and the object pixel size is 0.025 mm, the line rate is 0.5 / 0.000025 = 20,000 lines per second. At 1 m/s it doubles to 40,000. The exposure must fit inside the line period, so a 20 kHz line rate allows up to 50 microseconds; a 40 kHz rate allows 25 microseconds. If the light cannot deliver enough energy in that window, use a brighter bar, a larger aperture, or TDI, but do not stretch the exposure beyond the line period. These numbers are an example, not a specification for your bottle; the calculation is the specification.

Check the lens at the working magnification, not at infinity. Ask for the MTF or contrast at the working magnification and image height you use. If the lens is diffraction-limited at the aperture you need, a larger sensor will not help.

A Qualification Protocol for a Glass Line

Build a defect set before you accept the station: checks, chips, stones, and cracks at different orientations; clear, green, and amber bottles; empty and filled; dry and wet. Photograph each defect under production settings and record the lens ID, light angle, aperture, exposure, line rate, and conveyor speed. The goal is a repeatable image of the full set across the shift, not one good crack.

Run the set at the start, middle, and end of a shift, and after a light or lens change. Compare the defect contrast and the background uniformity. If the light angle drifts, the glare pattern moves and the threshold fails. Mount the light and camera on a rigid bracket, mark the adjustment points, and keep a reference bottle in the cell. The GW Tech Guide’s defect and AQL tables are a useful starting point for classifying what the line must catch, but the optical acceptance limits come from your own defect set and the customer’s quality agreement.

What to Put in the Lens and Lighting RFQ

Send the bottle diameter and height, the material and color, the line speed or index time, the smallest defect and its type, the required field of view and working distance, the camera model and pixel pitch, the mount, and the environment. State whether the bottle is wet, whether it carries a label or sleeve, and whether the inspection happens before or after filling. Ask the lens maker for the image circle, distortion, MTF at the working magnification, and a sample image on your bottle if possible. Ask the light supplier for the beam angle, the working distance, and the uniformity over the field.

If the line uses a line-scan camera, include the line length and pixel pitch so the image circle can be checked before the quote. A lens that covers the field but cannot resolve the defect passes the drawing review and fails on the line.

FAQ

Can a polarizer remove the side-wall reflection?

Sometimes it reduces it, but a polarizer also reduces the light scattered by the crack. Test it with the production light and a real defect set. If the glare is from the surface and the crack scatter is depolarized, crossed polarizers can help; if both are polarized, the contrast gain is small.

Do I need a telecentric lens for crack detection?

Telecentric lenses help when perspective or magnification changes with depth would confuse a measurement. For crack scatter on a round bottle, a low-distortion line-scan or area lens is often enough. If you also measure wall thickness or profile, a telecentric or a dedicated metrology setup may be justified.

Can I use an area camera on a moving line?

Only with a short strobe and enough light to freeze the motion. Otherwise the crack smears into a streak and the threshold misses it. A line-scan camera is usually the better fit for continuous motion.

Is a 360-degree lens better than four cameras?

It can be, for a round bottle at high speed and a space-limited cell. The trade-off is resolution around the annulus and the unwrapping work. If the defect is small, four dedicated views may still win.

Conclusion

  • Separate the specular reflection from the defect scatter by angle; do not fight it with exposure.
  • Use dark-field grazing light, a matte black background, and a camera outside the mirror angle.
  • Choose line scan, area, or a 360-degree lens from the motion and the defect size, not from the camera catalog.
  • Calculate object pixel size and line rate before the quote, and qualify with a defect set across the shift.

If you are building a glass container station and need a lens that covers your sensor line with a known distortion and working-distance budget, start with our line-scan lenses for 4K, 8K, and 16K lines, then send the bottle, camera, and defect data to our team for a geometry review before the first bracket is cut.

HANGZHOU FACTORY · ISO 9001
Line-scan lenses for glass container inspection
Match the lens to your line length, pixel pitch, and defect size before you cut the bracket. Send the bottle and camera data for a geometry review.
4K / 8K / 16K
LOW DISTORTION
ISO 9001

View line-scan lenses

Related reading: Line Scan Lens Selection: Image Circle Math for 4K, 8K and 16K Sensors, Line Scan Camera vs Area Scan: How to Choose for Your Inspection

Baker Zhao

Baker Zhao

Founder, Lensmind Optics

Baker Zhao is the founder of Lensmind Optics, with 26 years of experience in the optical industry — including Vice President of Sales at Sunny Optical (Zhongshan) and earlier roles at Foxconn, LG and Sintai Optical. He leads Lensmind with a mission to help customers find reliable, application-specific optical solutions from development to volume production.

2 thoughts on “Clear Glass Bottle Crack Inspection: Optics and Lighting That Beat Side-Wall Glare”

Leave a Comment