addaScan home
Assessment
Machine vision basics // Chapter 5 of 6

What can machine vision detect, and what can it not see?

By Frank GuoTechnical review: Frank GuoPublished Updated 5 min read

// In short

Machine vision can detect anything that changes the light reaching the camera from a visible surface: presence and position, print and codes, shape and size, colour, and surface marks that lighting makes stand out. It cannot see inside opaque products, behind other parts, or properties that leave no visible trace, such as leak-tightness, bond strength, cap torque or weight. Those need X-ray, a leak test, a mechanical test or a checkweigher, often alongside a camera.

// Key takeaways

  • A camera sees the surfaces it faces, from the views you give it.
  • A defect is visible only if the lighting gives it contrast against the good surface.
  • Looking right is not the same as being sealed, strong or full by weight.
  • What your products allow is proved on your own good and defective samples before a quotation.

What can a camera see?

A camera records the light coming from the surfaces facing it. Anything that changes that light can be detected: whether an item is there, where it sits, what is printed on it, what a code says, its outline and size, its colour and marks on its surface.

It sees one side per view. A round bottle with a label all the way round, or a part with several faces that matter, needs more cameras, mirrors or a way of turning the product. Clear containers are the useful exception: with a light behind them, the camera sees through the wall to the liquid line, which is how fill level is checked on PET and glass.

Why does contrast decide what is detectable?

A defect is detectable only if it sends the camera a different amount or colour of light than the good surface around it. That difference is contrast. A black smudge on a white label is easy. A shallow scratch on a shiny can may be invisible under one light and bright under another.

Shiny surfaces behave like mirrors: light leaves at the same angle as it arrived (HyperPhysics, law of reflection). So the angle of the light, not the camera, often decides whether a surface looks bright or dark, and whether a scratch stands out. Size matters as well: the defect must cover several pixels at the chosen field of view, or it disappears into the image.

How does lighting change what is visible?

Lighting is chosen for the defect, on your samples:

  • Backlight turns outlines, holes and fill levels into sharp silhouettes.
  • Low-angle (dark-field) light makes scratches, dents and embossed text glow on a dark surface.
  • A dome evens out glare on shiny, curved packs so print and codes can be read.
  • Coaxial light suits flat, glossy faces.

The colour of the light matters too. HIKROBOT’s lighting catalogue notes that the fluorescence of ultraviolet light can be used to detect UV glue and invisible codes (HIKROBOT Light Source Catalog 2025 Q3, p. 80). A shroud keeps daylight out so the station’s light is the only one that counts. The machine vision lighting guide covers each technique and its limits.

What can a camera not see, and what is used instead?

Some quality questions have no visible answer. The table sets out the common ones; the last column is the method that answers them, often on the same line as a camera.

What a camera can see, what it cannot see, and what to use instead
QuestionA camera can seeA camera cannot seeUse instead or as well
FillThe liquid line in clear or translucent containers, against a backlightThe level in cans, opaque or fully sleeved containersX-ray or high-frequency fill inspection; a checkweigher for quantity
SealA foil present before capping; a heat seal that looks complete, creased or contaminatedWhether the pack is leak-tightA leak test
Inside the productMarks and contamination on the visible surfaceVoids, cracks or foreign bodies inside, or behind opaque materialX-ray inspection or metal detection
Strength and fitA label in position; a cap seated straightHow well a label is bonded; cap torqueMechanical tests and torque checks
QuantityItems visible in a pack, counted from aboveWeight or net content; items hidden under othersA checkweigher; a check before the items are covered
PressureA container already visibly deformedA lid that has not pulled down, or a bottle that has lost pressureDedicated vacuum or pressure detection

addaScan builds camera stations. Where a question needs X-ray, leak testing or weighing, we say so early; that equipment comes from its specialist suppliers. Camera, X-ray or high-frequency fill inspection compares the fill methods.

How do you inspect something the pack will hide?

Inspect it before it is hidden. The foil seal is checked before the cap goes on, the insert before the lid closes, the items in a tray before it is wrapped, and the empty container before it is filled. That is one reason a line may have more than one station; chapter 4 covers placement.

Whether a fault is visible on your product is not decided from a datasheet. A sample test images your good and defective samples, including borderline ones, under candidate cameras, lenses and lights, and records what can and cannot be seen. The sample preparation guide lists what to send.

Test visibility before choosing an algorithm

The smallest defect is not always the hardest defect. A large transparent fold can create less contrast than a tiny dark particle. Contrast comes from how light interacts with the material: backlighting reveals a silhouette, low-angle light reveals changes in surface slope, and diffuse light can reduce glare. If the defect and acceptable product produce indistinguishable images in the selected view, a more complex algorithm cannot recover information that was never captured.

Test visibility before choosing an algorithmExpose the relevant surfaceChoose light geometryCompare good and defective imagesAdd a view or another method if needed
Schematic: Test visibility before choosing an algorithm.
Test visibility before choosing an algorithm
Requirement or conditionMeaning or riskPractical check
Inside an opaque packageNot visible to an ordinary external cameraUse the appropriate non-optical inspection method
Shiny surface scratchMay be visible only at a suitable light angleCompare several geometries on reference defects
Height-dependent dimensionPerspective may change apparent sizeControl height or evaluate telecentric/3D optics
Seal integrityAppearance can show some contamination or wrinklesRetain validated strength or leak testing

Worked example — hypothetical: A hypothetical pouch has a visible wrinkle across its seal region. The vision system can identify that appearance when the region is exposed and the image is suitable. A second pouch can look smooth while carrying a leak path below the optical detection limit. The correct requirement is therefore visible-seal-defect inspection, with integrity tested by the separately chosen method.

ASTM F88/F88M-23 scope 1.1 concerns seal strength in flexible barrier materials; ASTM F2096 concerns gross leaks detected by internal pressurisation. Neither public scope makes a visual pass proof of package integrity. (HIKROBOT Light Source Catalog, 2025 Q3, glossary) (ASTM F88/F88M-23: seal strength of flexible barrier materials) (ASTM F2096-11(2019): gross leaks by internal pressurisation (bubble test))

Keep the original image together with the active recipe and the reference judgement when investigating a disagreement. Change one controlled setting at a time and re-run the relevant challenge samples. Once a correction works, verify the neighbouring requirements too: improving contrast for one feature can hide another. Record the revised configuration and the evidence for release so maintenance does not have to reconstruct the decision from memory.

Frequently asked questions

Can machine vision see through packaging?

Only through clear or translucent material, with suitable lighting. It cannot see through opaque film, board, cans or full labels. Inspect the contents before the pack is closed, or use X-ray inspection for closed packs.

Can a camera detect a leaking seal?

It can see visible seal faults: a missing foil, or a heat seal that is creased or has product in it. A seal that looks right can still leak through a fine channel, so proving a pack is leak-tight needs a leak test.

Can a camera check that a cap is tight?

No. It sees whether a cap is present, straight and at the right height. A cap can sit straight and still be under-tightened; torque is checked another way.

Read next · Chapter 6How is a vision inspection station tested and accepted?Sample test, FAT with challenge samples, SAT, false rejects and escapes as agreed figures, and the records to keep.

Sources

  1. HyperPhysics (Georgia State University): reflection and the law of reflection (physics reference, checked 2026-10-03)
  2. HIKROBOT Light Source Catalog, 2025 Q3 (PDF), p. 80: ultraviolet light (vendor catalogue, checked 2026-10-03; UV fluorescence for UV glue and invisible codes)
  3. HIKROBOT Light Source Catalog, 2025 Q3, glossary (vendor lighting geometry; archived source checked 2026-10-27)
  4. ASTM F88/F88M-23: seal strength of flexible barrier materials (public scope 1.1 and significance 4.1; not full paid procedure; read 2026-10-27)
  5. ASTM F2096-11(2019): gross leaks by internal pressurisation (bubble test) (public scope; no universal leak limit inferred; read 2026-10-27)
// Next step

Have a line in mind?

Describe the product and the fault you need to catch. We test on your samples and reply with a feasibility note and a budget.