Checking the existence of an element on an object is a common task of machine vision. In this paper we will show an innovative application of a pericentric lens to check packaging labels. We show some of the challenges related to the imaging of cylindrical objects, a possible calibration method and the virtual unwrapping of cylindrical surfaces.
One image of multiple sides
In some cases we have to have an image of the whole surface of an object:
- you are looking for some detail, but you do not know on which side of the product it is
- a full image is needed to retrieve a complete documentation later
This illustration shows the inspection of a pharmaceutical tube with a pericentric lens made by Opto Engineering. Here it was necessary to view the whole surface, because the manufacturer had to inspect the existence and the content of 2 different labels.

image source: Opto Engineering https://www.opto-e.com/wp/?p=3594

image source: Ulrich & Steger https://link.springer.com/article/10.1007/s00138-019-01032-w/figures/1
A. Cylindrical container
B. Camera with a hypercentric lens is mounted above the bottle . The bottle is placed between the entrance pupil and the front of the lens.
C. Image of the bottle taken with a hypercentric lens.
D. Image of the bottle taken with a conventional perspective lens (for comparison)
About pericentric lenses
The pericentric lens is also called a hypercentric lens. The image taken by a pericentric lens shows the inverse of the normal perspectivity. This means that the object being further from the camera is larger on the image then the one which is closer to it.

Image source: O. Holovachov https://www.holovachov.com/p135953776/h4E83F5EA#h4e83f5ea
On the raw image this distortion is distracting, but as the distortion can be described by exact functions, it can be computed and converted back to a “normal” view. This process is called rectification and as a result we get an image just as if the surface had been unwrapped.

Pericentric, hypercentric and telecentric machine vision optics with engineering support are available at SANXO. https://sanxo.eu/optics/
Choosing lens diameter
Due to the geometry of the hypercentric lenses, the diameter of the lens has to be significantly larger than the size of the object. First, because the field of view is narrow. Second, the angle of the sight line should be as large as possible. The narrower the angle is, the more severe the distortion is on the image. Although the image can be rectified, at lower angles the accuracy of the aligned image will be worse.

image source: Opto Engineering https://www.opto-e.com/wp/?p=3594
Large selection of machine vision lense are available at SANXO here: https://sanxo.eu/optics/
Getting the image, light sources
As we are inspecting the vertical surface, we need to have sufficient depth of field to get a sharp image from the bottom till the top of the object. A small aperture is ideal for that purpose, but then exposure time increases, which slows down the inline inspection of the manufacturer. The answer for this challenge is a carefully selected ring light source.

For pericentric, hypercentric imaging SANXO can support suitable led light solutions: https://sanxo.eu/light-sources/
Calibration
One way of the calibration is using a planar calibration card with certain easily identifiable points and taking images of it. The card is precisely positioned under the lens at a predetermined angle. The acquired tilted image will be distorted and it can be compared by the algorithm to the image which was taken at a perpendicular position. At a perpendicular view there is no distortion at all. Repeating this process can further enhance the accuracy. If you look carefully at this calibration card, you will see that some white circles have little black points in the centre. Those are the reference points, and the algorithm checks their relative position on the tilted image and the reference image.

image source: Ulrich & Steger https://link.springer.com/article/10.1007/s00138-019-01032-w/figures/6
Rectifying images
As we have seen, the circular distortion can be reversed by the machine vision software. The raw image can be converted into a neat rectangular version. The arches need to be transformed to straight lines and the diverging lines to parallel ones. This is now ready for optical character recognition (OCR) or other quality assessment purposes.
Raw image

image source: Ulrich & Stege https://link.springer.com/article/10.1007/s00138-019-01032-w/figures/15
Rectified image

image source: Ulrich & Stege https://link.springer.com/article/10.1007/s00138-019-01032-w/figures/15
Industrial application of pericentric lenses
If you wish to implement an inline quality assessment system at your factory or need advice on machine vision, please, contact SANXO.
References
- Markus Ulrich, Carsten Steger: A camera model for cameras with hypercentric lenses and some example applications https://rdcu.be/cmEjV
- Opto Engineering: 360° label inspection on pharmaceutical bottles https://www.opto-e.com/wp/?p=3594
- Oleksandr Holovachov https://www.holovachov.com/
- Wikipedia https://en.wikipedia.org/wiki/Lens



