Skip to main content

Vision-Doctor

Optics

Error-free depiction of the field of view

Image sharpness

In almost all applications, the image needs to be as sharp as possible to achieve the best inspection results.

Due to fixed mechanical specifications, the working distance between the optics and the component is fixed and focusing only needs to be performed once.

Basic requirement for sharp result images

  • Correct focusing of the optics

  • High optical quality (and low optical aberrations) of the lens to resolve the finest structures with the highest possible contrast and detail.

  • Suitable camera sensor with sufficiently high resolution and dynamic image response

  • Adequate object contrast which can be optimised by clever lighting techniques

This chapter will mainly explain the correct focusing of the lens..

Correct manual focusing and determining the depth of field

In many cases, the user will turn the lens back and forth several times on the focus ring to determine approximately the correct centre position for the image sharpness. The lens may then be stopped down to achieve sufficient depth of field for a consistently sharp image.

But how do you focus precisely on a specific point? The first step is to open the aperture completely, but the image will be much too bright. Correct this by reducing the intensity of the lighting or shortening the camera's exposure time. With this setup, the depth of field is minimal and only a very small area in the z-direction appears sharp to the user.

Now focus precisely on the inspection area you think is most important (or exactly half height between the inspection features you want to capture). Then, usually, stop down again and adjust the brightness of the lighting (or the exposure time).

The depth of field will now be large enough that height variations during part feed will no longer cause blurred images.

Please note, however, that the changed working distance with eccentric standard lenses will change the scale and the measurement results will be larger or smaller!

Depth of field

Entocentric optics: Three identical screws stacked on top of each other appear to be different sizes. Sufficient depth of field.

Change of the field of view

The maximum field of view changes depending on the working distance.

Proper focussing with the help of software

The iMV expert can use simple standard tools to determine the sharpness of the image. A sharp image is characterised by contrast at the edges of the object.

A simple bar pattern of black and white stripes will help. Use an edge detection tool from your image processing toolset to count the edges, or a measuring tool. Now draw the test section exactly perpendicular to the edge of the bar (from left to right) and observe the steepness of the edges in the gradient graph.

The steeper the brightness profile (red curve in the graphs), the fewer pixels there are along the path from light to dark (and vice versa).

Another method is to use an intensity tool that checks the area and returns pixel statistics (min, max, veriance) and a histogram.

Sharp und blurry images

Observe a small image area with a pattern structure. The grey value histogram on a sharp image shows larger minimum and maximum values and a larger standard deviation than on a blurred image. However, the average value of the grey tones does not change.

Attention: The maximum value of such functions depends on the image content and the general image brightness. Please also ensure that there is no overexposure in the area of the test tool that destroys grey tones.

Please use such software methods to check whether all object planes to be captured spatially are correctly focussed and that you have sufficient depth of field, especially for your measurement application.

Tip:

Further information on correct focusing of optics can be found in the download area "Service > Documents" of this website.

Need to buy the perfect lens?

Vision-Doctor.com is a private, independent, non-commercial website project without customer support.

For the best advice and sales of machine vision lenses please click here.

(external link partner website in Europe - All listed lenses can be ordered here)

Optiken Industrielle Bildverarbeitung