Machine Vision Lens for Metal Can Body and Aerosol Container Inspection: How to Check Diameter, Top and Bottom Edge Position, Dents, Deformation and Assembly Geometry
Metal can body and aerosol container inspection is a common machine vision application in packaging, beverage, food, personal-care, chemical and industrial container manufacturing. Unlike can-end inspection, which concentrates on rim geometry, lid centering or pull-tab orientation, can-body inspection focuses on the complete cylindrical package: outside diameter, body width, top and bottom edge position, axial alignment, visible dents, local deformation and the geometric relationship between assembled container sections. Selecting the correct machine vision lens for metal can body inspection is therefore important because a complete container can be relatively tall while the smallest rejectable dent, edge displacement or diameter variation may occupy only a small portion of the image.
Buyers searching for aerosol can inspection camera lens, machine vision lens for metal container inspection, can diameter measurement camera, aerosol container defect inspection, can body dent detection machine vision, container deformation inspection camera, or industrial camera lens for can manufacturing are usually trying to balance complete-body coverage against the amount of detail available on the smallest production tolerance. A full aerosol container can look sharp and correctly shaped to an operator while a small local dent, body-width variation or top-edge offset still receives too few original sensor pixels for reliable automated inspection.
The Kyptec Automation® Machine Vision Lens collection includes conventional 5 MP, 10 MP and 25 MP Machine Vision Lens families across several focal lengths and industrial camera formats. The current portfolio includes 8 mm, 12 mm, 16 mm, 25 mm, 35 mm and 50 mm conventional lens options, giving canning-machine OEMs and packaging-system integrators flexibility for full-container imaging, medium-field dimensional inspection and tighter high-detail defect detection.
Start With the Smallest Can-Body Error That Must Trigger Rejection
The first optical-design question should not be simply, “How tall is the can?” The more important question is, “What is the smallest visible geometric error that must be detected?”
A severely crushed aerosol container creates a large image difference and is comparatively easy to recognize. A 1 mm local dent, slight body-width reduction, top-edge shift or subtle angular deformation is more demanding.
The Machine Vision Lens should therefore be selected around the smallest actual production tolerance rather than overall container dimensions alone. Once that minimum defect or positional error is known, the required pixels per millimetre can be calculated from the final FOV.
Can-Body Diameter Is a Two-Edge Measurement in a Side View
From a suitable side view, the visible projected diameter or body width can be measured from the separation between the left and right container boundaries.
After calibration, that pixel distance can be converted into a physical dimension.
The machine vision lens for can diameter measurement should therefore provide stable edge definition on both sides of the body. If one side is poorly resolved or strongly affected by the viewing geometry, the measured diameter can become inconsistent even when the opposite edge looks sharp.
Calculate Pixels per Millimetre From the Actual Container FOV
A useful starting relationship is:
Pixels per millimetre = camera pixels across the measurement direction ÷ physical field of view in millimetres
If 4,000 horizontal sensor pixels cover a 200 mm physical field, simplified sampling is approximately 20 pixels/mm. A 0.5 mm body-width change corresponds to approximately 10 pixels before practical effects such as calibration, motion and edge localization are considered.
If the field expands to 400 mm, the same camera provides approximately 10 pixels/mm, reducing the 0.5 mm variation to about five pixels.
This is why unnecessary background around the container reduces the optical margin available for dimensional inspection.
Measure Diameter at More Than One Height When Body Shape Matters
A cylindrical can can have approximately correct diameter at one height while containing deformation elsewhere.
A stronger inspection can measure projected width at several vertical positions along the body.
This makes it possible to detect local narrowing, bulging or changes in side-wall geometry that would be missed by one central diameter measurement.
The Machine Vision Lens should maintain adequate edge quality throughout the full vertical region being inspected.
Top and Bottom Edge Position Should Use the Same Container Coordinate System
Aerosol and metal containers typically contain visually distinct upper and lower boundaries.
The system can locate those edges and determine their vertical positions relative to the body or another stable reference.
If the entire container shifts within the image, fixed camera coordinates can produce false positional changes.
A stronger method first establishes the container's own coordinate system and then evaluates the relationship between the top edge, bottom edge and body.
Overall Can Height and Edge Position Are Different Measurements
Overall height is the distance between defined upper and lower boundaries.
Top-edge position describes where the upper assembly lies relative to another container feature, while bottom-edge position describes the lower relationship.
A can can have approximately correct total height while one assembly region is displaced and another compensates in the opposite direction.
Machine vision should therefore separate these measurements when assembly geometry is important.
Axial Straightness Can Be Checked From the Side Boundaries
A correctly presented cylindrical container should normally have a predictable longitudinal axis.
The system can fit lines or center points along the visible body and evaluate whether the container appears straight within the permitted tolerance.
A gradual bend can shift the centerline progressively from top to bottom even when the average diameter remains acceptable.
A machine vision lens for aerosol can straightness inspection should therefore provide enough vertical coverage to establish a useful geometric baseline.
A 16 MM 10 MP Lens Can Support Broader Full-Container Views
For compatible 2/3" industrial camera systems, the Kyptec Automation® KL-1226 16 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens provides a 16 mm focal-length option within the current 10 MP Machine Vision Lens family. Kyptec Automation® positions this product family for industrial automation, inspection and measurement applications.
This focal-length class can be evaluated where the complete metal can or aerosol container plus normal positional margin must remain visible from the available working distance. Final suitability should be calculated from sensor size, product dimensions and minimum defect size.
A 25 MM 10 MP Lens Can Provide More Controlled Can-Body Framing
Where the complete required inspection region fits within a tighter field, the Kyptec Automation® KL-1228 25 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens provides a 25 mm focal-length, 10 MP option for compatible 2/3" cameras.
A tighter legitimate FOV can allocate more sensor pixels to the container edges and local body geometry, which is useful where projected diameter, edge position or small dent detection is more important than broad surrounding coverage.
Dents Should Be Defined by Width and Depth in the Visible Profile
A visible dent can affect a large area of the body or create only a short local deviation.
For side-profile inspection, useful geometric characteristics include the length of the affected region and how far the boundary moves inward from the expected body contour.
The Machine Vision Lens should therefore be selected according to the smallest dent geometry that must cause rejection.
A large crushed section should not be used as the only validation sample.
Local Dents Can Exist While Average Diameter Remains Correct
A container can have one local inward deformation while the average width over a large body section remains close to nominal.
An average diameter value can therefore hide local defects.
A stronger inspection evaluates the edge profile along multiple vertical locations and compares local deviations with the expected can-body shape.
Bulging and Inward Deformation Should Be Evaluated Separately
A local bulge moves the visible body boundary outward, while an inward dent moves it toward the container center.
Both can represent unacceptable deformation, but their geometric signatures differ.
The system can compare local edge positions with an expected reference envelope to identify either condition.
The Machine Vision Lens must preserve enough edge information for these local deviations to remain measurable.
Can-Body Taper Can Be Measured From Width Change With Height
Some containers intentionally change diameter along their height, while others are expected to remain substantially cylindrical.
Where taper is part of the inspection requirement, the vision system can compare body width at several vertical positions.
The expected profile should be defined for the actual container design rather than assuming perfectly parallel side edges for every aerosol can or metal package.
Top-to-Bottom Center Offset Can Reveal Assembly Misalignment
If the upper portion and lower portion of a container are not centered relative to the same body axis, their geometric centers can differ.
The inspection system can establish the body centerline and compare top and bottom reference positions with that axis.
This can reveal visible assembly shift even when the complete package still falls inside the expected overall width.
Assembly Geometry Should Be Evaluated Relative to the Main Body
An assembled aerosol container can include distinct upper body transitions, base geometry or other visible sections.
Rather than inspecting each region against fixed image coordinates, the stronger approach measures each feature relative to the main container body.
This distinguishes true assembly misalignment from ordinary movement of the complete can through the machine.
Product Tilt Can Mimic Assembly Misalignment
If the entire can leans inside the field, the top can appear laterally shifted relative to the bottom even though the physical container is correctly assembled.
The inspection system should therefore distinguish overall product tilt from local assembly geometry.
A sufficiently broad Machine Vision Lens FOV can provide the full longitudinal context needed to establish the container axis before local measurements are made.
Dents in the Center of the Visible Body Are Different From Edge Deformation
Some visible surface dents may create internal shading or contour changes without strongly affecting the external silhouette from the selected view.
A body-edge dent and a central surface dent therefore present different image information.
From the Machine Vision Lens perspective, both still require enough spatial resolution for the smallest visible feature, but the final inspection view should be qualified using the actual defect types found in production.
Cylindrical Containers Need Controlled Viewing Geometry
Because the can body is curved, only the central region is viewed close to frontal orientation. Regions closer to the visible side edges are viewed increasingly obliquely.
This means the apparent geometry of a defect can vary depending on its position around the circumference.
A single side view can inspect the visible surface and silhouette but cannot reveal a defect physically hidden on the rear side of the can.
If full circumferential inspection is required, the machine architecture must provide additional views or controlled product rotation.
High Resolution Helps When Full-Body Coverage and Small Defects Must Coexist
A tall aerosol can can require a substantial vertical FOV while the minimum visible dent or assembly offset remains comparatively small.
If reducing the physical field is not practical, increasing total camera and optical resolution can provide more image samples across the same container.
For compatible larger-format systems, the Kyptec Automation® KL-1240 25 MM Machine Vision Lens With 25 MegaPixel & 1.1" Format Lens provides a 25 mm focal-length option within Kyptec Automation®'s 25 MP Machine Vision Lens family.
This type of configuration can be evaluated where complete body coverage and comparatively small dimensional or visible-defect tolerances need to coexist.
More Megapixels Matter Only When They Increase Pixels on the Can
Moving to a higher-resolution lens-camera combination is useful only if the additional pixels remain concentrated on the actual product.
If the FOV is expanded proportionally, the expected improvement can disappear.
The stronger approach is to establish the minimum legitimate physical field first and then use higher resolution to increase pixels per millimetre on the can body.
Long Containers Require Attention to Edge-to-Edge Optical Performance
A tall aerosol can may occupy a large fraction of the image height.
The top and bottom can therefore extend toward the outer portions of the sensor.
If the inspection uses both regions for height or alignment measurements, optical performance should be qualified at those locations rather than only at image center.
Borderline assembly errors should be tested at the actual top and bottom positions.
Multiple Containers in One Image Reduce Detail per Can
A machine may attempt to inspect several cans simultaneously.
This expands the physical field and divides the available sensor area among multiple products.
If the smallest dent or body-width tolerance remains unchanged, each can still needs enough native pixels for that feature.
Multi-container inspection should therefore be designed from the total field rather than extrapolated from a single-can test.
Different Can Diameters Need Independent Resolution Checks
A production line can handle several can or aerosol formats.
The largest container often defines the required field, while a smaller can occupies fewer pixels within that same field.
If the smaller product has a similar absolute dent or diameter tolerance, it can become the more demanding optical case.
Each container size should therefore be evaluated independently before one Machine Vision Lens configuration is standardized.
A 35 MM 10 MP Lens Can Support Additional Working Distance
Machine frames, conveyor guards and handling hardware can limit how close the camera can be placed.
For compatible 2/3" systems, the Kyptec Automation® KL-1230 35 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens provides a longer focal-length option within the current 10 MP Machine Vision Lens family.
This focal-length class can be evaluated where greater camera stand-off is mechanically useful while the resulting FOV still covers the required metal container region.
A 50 MM 25 MP Lens Can Support Localized High-Detail Body Inspection
Some machines may use a dedicated camera for a smaller critical region rather than inspecting every defect from one full-body view.
For compatible larger-format systems, the Kyptec Automation® KL-1244 50 MM Machine Vision Lens With 25 MegaPixel & 1.1" Format Lens provides a longer focal-length option within Kyptec Automation®'s 25 MP Machine Vision Lens family.
This type of configuration can be evaluated where a localized edge, body transition or assembly region should occupy a larger proportion of the sensor from an appropriate working distance.
Local Inspection Must Retain the Reference Geometry Needed for Measurement
Tighter framing increases pixels per millimetre, but excessive cropping can remove the body references required to interpret a feature.
For example, a close view of a top edge may provide excellent local detail but insufficient information to determine whether that edge is centered relative to the main can body.
The inspection FOV should therefore retain the minimum reference geometry required for the measurement.
Container Height Variation Should Be Distinguished From Vertical Position Variation
A taller container and a correctly sized container sitting higher in the image can initially look similar if fixed image coordinates are used.
The system should therefore locate both upper and lower reference boundaries and calculate actual relative height.
This allows true dimensional variation to be distinguished from translation of the whole product.
Width Variation Should Be Checked at the Same Defined Heights
If body width is monitored at several locations, those measurement heights should be established relative to the container itself.
Otherwise, vertical product movement could cause the system to measure different physical body sections from one can to the next.
A product-centered coordinate system improves repeatability.
Reflective Metal Surfaces Require Production-Level Qualification
Metal cans and aerosol containers can create strong reflections that change with product geometry and viewing angle.
The purpose of this blog is Machine Vision Lens selection rather than lighting design, but optical qualification should always use real production containers and the final camera position.
A lens with sufficient resolution cannot recover a geometric feature that is visually hidden by the selected viewing conditions.
Digital Zoom Cannot Recover Small Dent Detail
Software enlargement can make a body defect look larger on a screen, but it cannot add original spatial information.
If a 0.5 mm deformation occupies only a few original sensor pixels, digital zoom simply enlarges those samples.
The required inspection capability must therefore come from appropriate FOV, camera resolution, sensor format, focal length and Machine Vision Lens selection.
Calibration Cannot Replace Adequate Optical Resolution
Calibration can convert image pixels into physical measurements and correct known geometric relationships, but it cannot reconstruct detail that was not resolved optically.
If a body edge is poorly sampled, calculated diameter or dent depth will remain uncertain regardless of the calibration model.
Native image quality must be sufficient before calibration can provide reliable dimensional results.
Final Qualification Should Use Borderline Can-Body Defects
A severely crushed aerosol can or dramatically undersized body is useful for initial testing but does not demonstrate production-level capability.
Final qualification should include containers close to upper and lower diameter limits, minimum rejectable dents, slight centerline deformation, top and bottom edge offsets, and assembly-position errors close to actual acceptance thresholds.
These samples should also be tested across normal conveyor-position and height variation.
Why Kyptec Automation® Is a Practical Choice for Metal Can Body and Aerosol Container Inspection
Kyptec Automation® provides a broad Machine Vision Lens portfolio with conventional 5 MP, 10 MP and 25 MP Machine Vision Lens families across multiple focal lengths and industrial camera formats. This breadth gives canning-machine OEMs, aerosol-line manufacturers and system integrators flexibility to choose wider lenses for full-body inspection, medium focal lengths for controlled dimensional framing, and higher-resolution or longer-focal-length options for localized geometry.
For compatible 2/3" systems, Kyptec Automation® KL-1226 16 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens can be evaluated for broader container coverage, while Kyptec Automation® KL-1228 25 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens provides tighter framing where additional sensor utilization is needed.
Where greater stand-off is useful, Kyptec Automation® KL-1230 35 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens provides another compatible focal-length option. For higher-resolution larger-format inspection, Kyptec Automation® KL-1240 25 MM Machine Vision Lens With 25 MegaPixel & 1.1" Format Lens and Kyptec Automation® KL-1244 50 MM Machine Vision Lens With 25 MegaPixel & 1.1" Format Lens provide additional options for broad high-detail and localized inspection respectively.
This portfolio makes Kyptec Automation® useful for OEMs that need to match a Machine Vision Lens to actual container height, diameter, smallest visible dent, assembly tolerance, camera sensor format and machine working distance rather than selecting optics only from nominal focal length.
Frequently Asked Questions About Machine Vision Lenses for Metal Can Body and Aerosol Container Inspection
1. What is the best Machine Vision Lens for aerosol can body inspection?
The correct Machine Vision Lens depends on container height, diameter, smallest visible dent, dimensional tolerance, camera sensor format and available working distance. A complete tall-container view generally requires a broader FOV, while localized dent or assembly inspection can use tighter framing. Kyptec Automation® provides multiple focal lengths and resolution classes that allow the optical system to be matched to the actual metal-container inspection geometry.
2. Can machine vision measure metal can diameter?
Yes. In a suitable side view, the system can locate the two visible body boundaries and convert their pixel separation into physical width after calibration. Reliable measurement requires sufficient edge definition on both sides and a stable product-to-camera geometry.
3. How much resolution is needed to measure aerosol can diameter accurately?
Start with the smallest diameter variation that must be detected. Calculate pixels per millimetre from the final physical FOV and determine how many native sensor pixels represent that tolerance. The complete container can look sharp while a small diameter difference remains under-sampled, so production tolerance should drive resolution selection.
4. Can machine vision detect dents in aerosol cans?
Yes, when the dent creates a visible contour or surface change that is large enough to be represented by the optical system. Local dents around the silhouette can be evaluated from deviation of the body edge, while visible surface dents inside the body region require sufficient local image detail in the chosen viewing geometry.
5. Can machine vision detect bulged or deformed can bodies?
Yes. The system can measure body width at multiple vertical positions and compare the observed profile with an expected geometric envelope. Local bulging, narrowing or gradual deformation can therefore be identified even when one average diameter measurement remains near nominal.
6. Is a 16 mm Machine Vision Lens suitable for complete aerosol container inspection?
It can be when the resulting FOV covers the entire required can body from the available working distance. For compatible 2/3" cameras, Kyptec Automation® KL-1226 16 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens provides a current 10 MP Machine Vision Lens option for industrial inspection systems.
7. When should a 25 mm Machine Vision Lens be considered for can-body inspection?
A 25 mm focal length can be useful when the required body region fits within a tighter FOV and more sensor pixels per millimetre are desirable. Kyptec Automation® KL-1228 25 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens provides a 10 MP option for compatible 2/3" systems.
8. Can one camera check diameter, overall height and body deformation?
Yes, provided the complete required container geometry fits inside the image while the smallest dimensional or defect tolerance still receives enough native spatial sampling. The Machine Vision Lens should be selected according to the most demanding requirement rather than the easiest full-body measurement.
9. Can machine vision check whether the top and bottom of a can are aligned?
Yes. The vision system can establish the main body axis and compare the centers or edge positions of upper and lower visible assembly regions with that axis. This can reveal lateral or angular assembly misalignment that would not necessarily change overall can width.
10. How can machine vision distinguish a tilted can from a deformed can?
The system can estimate the overall longitudinal axis of the complete container and separate global product tilt from localized deviation of the body profile. A sufficiently broad FOV is useful because it provides the geometric context required to determine whether the complete can is leaning or only one region is deformed.
11. When should a 25 MP Machine Vision Lens be considered for metal can inspection?
A 25 MP configuration can be useful when the complete container must remain visible while comparatively small dents, edge-position errors or dimensional tolerances need substantial image sampling. For compatible larger-format systems, Kyptec Automation® KL-1240 25 MM Machine Vision Lens With 25 MegaPixel & 1.1" Format Lens provides a current high-resolution option.
12. Can a 35 mm Machine Vision Lens be used when more working distance is required?
It can when the resulting field of view still covers the required container region. For compatible 2/3" systems, Kyptec Automation® KL-1230 35 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens provides a longer focal-length 10 MP option.
13. Can a 50 mm Machine Vision Lens be used for localized aerosol can inspection?
Yes, where only a smaller body transition, edge or assembly region needs high-detail inspection and sufficient working distance is available. Kyptec Automation® KL-1244 50 MM Machine Vision Lens With 25 MegaPixel & 1.1" Format Lens provides a longer-focal-length high-resolution option for compatible larger-format systems.
14. Can several aerosol cans be inspected with one camera?
Yes, provided the total multi-container FOV still gives each can enough pixels for its smallest required defect or dimensional tolerance. Adding more products widens the physical field and reduces the sensor area available to each can, so resolution should be calculated from the complete production view.
15. Does the cylindrical shape of a metal can affect defect inspection?
Yes. A cylindrical surface presents different viewing angles across its visible width, and defects near the side boundaries may appear differently from those near the center. A single side view also cannot inspect a defect hidden on the rear surface. The final machine architecture should therefore reflect the required circumferential coverage.
16. Can different aerosol can sizes use the same Machine Vision Lens?
They can if the largest can fits inside the required FOV and the smallest can still receives sufficient pixels for its tightest dimensional or defect requirement. Each format should be checked independently because the container that determines maximum FOV is not always the one that determines minimum resolution.
17. What information should I provide before buying a Machine Vision Lens for metal can or aerosol container inspection?
Provide maximum and minimum container height and diameter, smallest dent or deformation to detect, dimensional tolerance, top and bottom edge-position tolerance, assembly-alignment requirement, number of cans in one image, camera sensor format and resolution, expected product movement and available working distance. These parameters allow a Kyptec Automation® Machine Vision Lens to be evaluated according to actual FOV, pixels per millimetre and the smallest production requirement.
Design Can-Body Inspection Around the Smallest Geometric Deviation, Not Only Overall Container Size
Reliable metal can body and aerosol container inspection requires separating several different geometric problems. Overall diameter is an edge-to-edge measurement, top and bottom edge position requires a container-centered reference, straightness requires a long vertical baseline, local dents need fine spatial sampling, and assembly geometry requires multiple visible component references. A can can therefore appear dimensionally correct at a broad scale while containing a localized deformation or assembly offset that remains under-resolved.
The strongest optical design begins with container height and diameter, minimum dimensional variation, smallest rejectable dent, permissible body-axis deviation, assembly-position tolerance and available camera stand-off. The minimum legitimate FOV is then established, pixels per millimetre are calculated, and focal length, sensor format and resolution are chosen so the product uses the available sensor efficiently. Final qualification should include containers close to actual dimensional limits, minimum visible dents, slight deformation, top and bottom edge-position errors and realistic product tilt or movement.
Kyptec Automation® provides a comprehensive Machine Vision Lens portfolio covering conventional 5 MP, 10 MP and 25 MP resolution families across multiple focal lengths and camera formats. Verified current examples include Kyptec Automation® KL-1226 16 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens for broader compatible inspection fields, Kyptec Automation® KL-1228 25 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens for more controlled framing, Kyptec Automation® KL-1230 35 MM Machine Vision Lens With 10 MegaPixel & 2/3" Format Lens where additional stand-off may be useful, Kyptec Automation® KL-1240 25 MM Machine Vision Lens With 25 MegaPixel & 1.1" Format Lens for compatible high-resolution inspection, and Kyptec Automation® KL-1244 50 MM Machine Vision Lens With 25 MegaPixel & 1.1" Format Lens for localized high-detail imaging.
By matching the appropriate Kyptec Automation® Machine Vision Lens to can-body diameter, container height, minimum visible deformation, assembly geometry, camera sensor format and machine working distance, canning and aerosol-line OEMs can establish a stronger optical foundation for automated diameter measurement, top and bottom edge-position inspection, dent detection, deformation analysis and container assembly verification.

Share:
Machine Vision Lens for Angled Inspection: How Camera Tilt and Perspective Affect Measurement, Position Detection and Defect Inspection
Machine Vision Lens for Angled Inspection: How Camera Tilt and Perspective Affect Measurement, Position Detection and Defect Inspection