Deciding on the right lens for a machine vision application calls for a review of the required specs, some math, and a consideration of how the lens will integrate with the camera setup. Here are some of the key factors that must be considered when implementing machine vision technology:
Picking a Machine Vision Lens
When choosing the lens used in a machine vision application, one must consider the sensor that will be used. Sensor size and pixel size are of extreme importance in the selection process. The lens must be able to properly illuminate the complete sensor area to avoid shading and vignetting.
Ideal lenses produce images that perfectly match the object captured, including all details and brightness variations. Standard lenses may be about a megapixel in fixed focal lengths of 4.5-100mm. Macro lenses are optimized for close-up focus. Telecentric lenses are used in specialized metrology applications. They are used to eliminate dimensional and geometric variations.
Calculating Focal Length
When selecting the correct lens for an application, designers calculate the needed working distance using 3 factors: focal length, the length of the inspected object, and sensor size. The required working distance may also be calculated using object size and opening angle of the lens.
This object distance refers to the distance between an object and the first principal plane of the lens groups in the optical system. This distance can only be calculated by specifying the position and distance of the two principal planes and the real lens length. Visit vison-doctor.com to calculate working distance.
Choosing the Right Machine Vision Camera
Recent advancements in machine vision technology now let cameras transfer high-megapixel images at extremely fast frame rates. Selecting the best interface requires a review of several considerations.
Choose a Sensor Type (CMOS or CCD)
The lines between CCD and CMOS sensors are blurring. Traditionally, CCDs have higher image quality, better light sensitivity, greater noise performance, and an ideal global shutter. CMOS sensors are known for their high speed, on-chip system integration, and low cost of manufacturing. But CMOS sensors have shown significant improvements in quality.
Color Camera or Monochrome Camera
Many vision systems make use of color cameras because users are more comfortable with color images. Some designers assume monochrome cameras cost less, but that’s not always true. It’s also not always necessary to use a color camera to differentiate between only a few colors. Processing time, resolution, pass/fail accuracy, power consumption, and cost must all be considered.
Camera Output Format (GigE, Camera Link, CoaXPress, USB3, HD-SDI)
It’s not just a matter of choosing the “fastest” interface available. Compatibility with existing systems and integration with other available technologies must be considered. Some interfaces allow for “hot-swapping,” where others may require a full system shutdown. Engineers must consider cable lengths and signal degradation as well as power requirements.
The output format affects the frame rates that are going to be achievable by the system. It’s crucial to calculate the frame rate required by the application when choosing any of the other camera factors.
To learn more about the different factors to consider when choosing a machine vision lens, watch our pre-recorded webinar Selecting the Right Optics for Vision Applications.