23rd May 2025

Deciding on the best lens to your machine imaginative and prescient digicam is essential for the success of any imaging software. Whether or not you are concerned in industrial automation, high quality management, robotics, or any area that depends on exact picture seize, the lens you select straight impacts the usefulness of your photos.

However with an amazing quantity of choices out there, how do you select the best lens to your machine imaginative and prescient system? This information goals to simplify the method by breaking down the important thing elements you must think about. We’ll discover all the things from lens mount varieties and sensor compatibility to focal lengths and environmental concerns.

Learn on to find how the best lens can improve picture high quality, scale back errors, and in the end enhance the effectivity of your machine imaginative and prescient purposes.

Why Lens Choice Issues in Machine Imaginative and prescient

In machine imaginative and prescient purposes, each pixel counts. The lens serves as the attention of the digicam, figuring out how the sensor perceives the world. An poorly chosen lens can result in points like:

  • Blurry or distorted photos
  • Inadequate area of view
  • Inaccurate measurements as a result of optical aberrations

Understanding Lens Mount Varieties

First, it’s important that the lens bodily matches your digicam. This compatibility is decided by the lens mount sort. Understanding the several types of mounts and their implications is essential to a profitable setup.

Widespread Lens Mount Varieties in Machine Imaginative and prescient

There are 4 widespread sorts of mounts that you’ll encounter in a machine imaginative and prescient setting:

  • C-Mount: Probably the most extensively used mount in machine imaginative and prescient. It has a flange focal distance of 17.526 mm and a thread dimension of 1″ diameter with 32 threads per inch. C-mount lenses are appropriate with a variety of cameras and are appropriate for sensors as much as 1″ in dimension.
  • CS-Mount: Just like C-mount however with a flange focal distance of 12.526 mm, which is 5 mm shorter. CS-mount lenses are usually used with cameras which have smaller sensors (half of” or smaller).
  • F-Mount: Developed by Nikon, F-mount lenses are used for bigger format sensors. They’ve a bayonet-style mount and are appropriate for purposes requiring high-resolution imaging.
  • M12 Mount (S-Mount): Also referred to as board lenses, M12 mounts are small and light-weight, making them best for compact cameras and purposes the place area is proscribed.

Utilizing a lens with the fallacious mount sort means it will not bodily connect to the digicam, or it might not place the lens on the appropriate distance from the sensor, leading to unfocused photos.

As well as, even with adapters, mismatched mounts can introduce points like mild leaks or misalignment, affecting picture high quality.

To decide on the best mount, we suggest:

  1. Verify Digital camera Specs: All the time begin by reviewing your digicam’s technical datasheet to find out the mount sort it helps.
  2. Take into account Adapter Use Fastidiously: Whereas adapters can present flexibility, they could introduce undesirable variables into your system. Use them solely when needed.
  3. Standardization: If potential, standardize on a mount sort throughout your methods to simplify lens choice and stock administration.

Matching Lens to Digital camera Sensor Dimension

The dimensions of your digicam’s sensor is a important consider lens choice. Sensor dimension impacts the lens’s skill to correctly mission a picture onto the sensor with out inflicting vignetting or distortion.

In machine imaginative and prescient, typical sensor sizes embody 1/3″, half of”, 2/3″, 1″, and bigger codecs like APS-C or full-frame sensors.

Sensor sizes are sometimes denoted in inches, however this measurement would not correspond on to bodily dimensions.

Digital camera sensors produce a picture circle. This can be a round space of the projected picture that the lens produces. It should be giant sufficient to cowl the sensor totally.

If the picture circle is smaller than the sensor, you may expertise vignetting, the place the corners of the picture seem darkish or black as a result of they’re outdoors the picture circle.

Vignetting Instance. Picture from photographylife.com

All the time select a lens designed for a similar or bigger sensor dimension than your digicam’s sensor.

Utilizing a lens rated for a bigger sensor than yours can enhance picture high quality by using the lens’s “candy spot,” the place optical efficiency is greatest.

Listed here are is a real-world instance situation contemplating a digicam with a half of” sensor:

  • Digital camera with half of” Sensor: Requires a lens that helps no less than a half of” sensor format.
  • Utilizing a 1/3″ Lens: Will end in vignetting as a result of the lens’s picture circle will not cowl all the half of” sensor.

Contemplating Working Distance and Discipline of View

When deciding on a lens to your machine imaginative and prescient digicam, two interrelated elements are essential: the working distance (the gap between the digicam and the goal object) and the area of view (the world of the scene captured by the digicam). Understanding how these components work together will aid you select a lens that meets your software’s particular wants.

Imaging
Picture from Edmund Optics

Working Distance

The bodily distance from the entrance of the lens to the item you are imaging.

Why It Issues: Your out there area could restrict how shut or far the digicam will be positioned from the item. This distance influences the lens’s focal size alternative.

Discipline of View (FOV)

The extent of the observable space captured by the digicam, usually measured horizontally.

Why It Issues: Determines how a lot of the scene or object matches into the picture. A wider area of view captures extra of the scene, whereas a narrower area focuses on a smaller space in higher element.

How Working Distance and Discipline of View Work together

The lens’s focal size bridges the hole between working distance and area of view.

Shorter focal lengths present a wider area of view. They are perfect for capturing bigger scenes or when the digicam is near the item.

Longer focal lengths supply a narrower area of view with elevated magnification. They’re appropriate for specializing in distant objects or particular particulars with out transferring the digicam nearer.

There are just a few sensible concerns of which to bear in mind:

  • House Constraints: Assess your setting to find out how shut the digicam will be to the item.
  • Object Dimension: Bigger objects could require a wider area of view to seize them totally.
  • Element Necessities: If you must see high-quality particulars, an extended focal size is perhaps needed.
  • Software Wants: For surveillance or monitoring giant areas, a lens with a shorter focal size is useful. For inspection duties requiring element, an extended focal size is preferable.

Aperture and Depth of Discipline Issues

The aperture of a lens, indicated by the f-number (e.g., f/1.8, f/2.8), is essential in controlling each the quantity of sunshine getting into the digicam and the depth of area—the vary throughout the scene that seems acceptably sharp.

  • Bigger Apertures (Smaller f-number):
    • Extra Gentle: Permit extra mild into the digicam, useful for low-light situations.
    • Shallow Depth of Discipline: Solely a small portion of the scene is in sharp focus, which will be helpful for isolating particular options however could also be problematic if a number of depths want readability.
    • Software Tip: Superb when you must spotlight a selected space or when the background particulars usually are not important.
  • Smaller Apertures (Bigger f-number):
    • Much less Gentle: Scale back the quantity of sunshine getting into the digicam, probably requiring further lighting.
    • Higher Depth of Discipline: Extra of the scene, from foreground to background, is in focus.
    • Software Tip: Important for purposes the place objects at various distances should be clearly captured, resembling inspection of things with completely different heights.

Sensible Implications in Machine Imaginative and prescient

  • Constant Focus Throughout Depths: A higher depth of area ensures that objects transferring in the direction of or away from the digicam stay in focus, which is significant in meeting strains or robotic purposes.
  • Lighting Issues: Smaller apertures could necessitate brighter illumination or longer publicity occasions to compensate for lowered mild, impacting system design and energy consumption.
  • Picture Sharpness: Whereas smaller apertures improve depth of area, they’ll introduce diffraction, barely decreasing picture sharpness. Balancing aperture dimension is essential to sustaining optimum picture high quality.

Adjustable Aperture Lenses

  • Guide Iris Lenses: Mean you can regulate the aperture to go well with completely different lighting situations and depth of area necessities, providing flexibility in numerous environments.
  • Mounted Aperture Lenses: Have a set aperture dimension, offering constant efficiency however much less adaptability. Appropriate for managed environments with steady lighting.

Balancing Aperture with Software Wants

  • Low-Gentle Environments: Go for lenses with bigger most apertures to seize adequate element with out extreme noise.
  • Excessive-Precision Duties: Use smaller apertures to make sure all important elements of the picture are in focus, which is essential for correct measurements and defect detection.

By rigorously contemplating aperture settings, you’ll be able to optimize each the publicity and focus of your photos, enhancing the reliability and effectiveness of your machine imaginative and prescient system.

To simplify the method of choosing the best lens based mostly on working distance and area of view, think about using the web instruments:

  • Edmund Optics Imaging Lens Wizard
    We like this one from Edmund Optics. It means that you can choose the precise digicam you plan to make use of (so it auto populates the sensor data) and when you enter the working distance and horizontal FOV it provides you appropriate lens opti
  • Basler Lens Selector
    Assists find appropriate lenses to your digicam mannequin and software necessities, particular to Basler cameras.

Particular Lens Varieties for Particular Functions

Relying in your wants, specialised lenses may supply important benefits. The commonest sorts of specialised lenses are:

  • Telecentric Lenses: Preserve constant magnification, eliminating perspective errors. Superb for exact measurement duties.
  • Macro Lenses: Designed for close-up imaging, good for capturing small particulars.
  • Zoom Lenses: Supply variable focal lengths, offering flexibility in purposes the place the working distance or area of view modifications.
  • Mounted Focal Size Lenses: Present superior optical high quality over zoom lenses in mounted setups.

In brief, as soon as you realize the digicam sensor dimension, mount sort, working distance (distance to focus on), and desired horizontal area of view you might be geared up with the minimal quantity of knowledge to pick a lens. Let’s stroll by means of just a few eventualities:

State of affairs 1: Counting Cans on an Meeting Line

Use Case: We’re tasked with counting the variety of cans of various SKUs produced on an meeting line. The objective is to observe all the width of the conveyor belt to make sure correct counting and monitoring.

Lens from Edmund Optics

Necessities:

  • Working Distance: The digicam can solely be mounted roughly 1,524 mm (5 ft) away from the conveyor belt.
  • Conveyor Belt Width: The belt is 1,219 mm (Four ft) large, and we have to seize its total width.
  • Discipline of View: Should embody the total width of the conveyor belt.
  • Lighting Situations: Manufacturing unit flooring with constant lighting.

Digital camera Specs:

  • Digital camera: Basler ace2 a2A1920-160ucBAS
  • Sensor Dimension: half of.3″
  • Mount Kind: C-Mount

Lens Choice Course of:

Utilizing the Edmund Optics Imaging Lens Wizard, we enter the next parameters:

  • Sensor Dimension: half of.3″
  • Working Distance: 1,524 mm
  • Desired Discipline of View: 1,219 mm (to seize the total width of the conveyor belt)

The device suggests {that a} lens with a focal size of roughly Eight mm would meet these necessities.

Chosen Lens:

Causes for Choice:

  • Compatibility: The lens helps as much as a half of” sensor format, which is barely bigger than our digicam’s half of.3″ sensor. This ensures full sensor protection with out vignetting.
  • Discipline of View: With an angular area of view of 44.70°, the lens can seize all the width of the conveyor belt from our mounting distance.
  • Aperture: The massive most aperture of f/1.8 permits ample mild into the digicam, useful for indoor manufacturing unit situations and offering flexibility in publicity settings.
  • Mount Kind: C-Mount compatibility ensures the lens matches the digicam with out the necessity for adapters.
  • Compact Design: The Extremely Compact (UC) collection is right for space-limited industrial environments.

Extra Issues:

  • Depth of Discipline: The adjustable aperture from f/1.Eight to f/11 permits management over depth of area, making certain all cans on the conveyor belt are in focus.
  • Picture High quality: The lens gives good optical efficiency appropriate for the digicam’s decision, aiding in correct counting.
  • Sturdiness: Designed for industrial use, the lens can face up to typical manufacturing unit situations.

Conclusion:

By deciding on the Eight mm UC Sequence Mounted Focal Size Lens, we successfully meet our software’s necessities. The lens permits us to seize all the width of the conveyor belt from the out there mounting place, making certain correct monitoring and counting of cans on the meeting line.

State of affairs 2: Monitoring Vans in a Delivery Yard

Use Case: We have to monitor vehicles getting into and exiting a transport yard. The objective is to learn and determine the characters printed on the edges of the vehicles utilizing OCR (Optical Character Recognition). Because the software is outdoor and operates in numerous lighting situations, together with low mild, the lens should carry out properly beneath these circumstances.

Lens from Edmund Optics

Necessities:

  • Excessive Decision: To seize detailed photos that permit for cropping and correct OCR of the characters.
  • Low-Gentle Efficiency: The lens should have an acceptable aperture to carry out adequately in low-light situations.
  • Working Distance: The digicam shall be mounted roughly 9,000 mm (9 meters) away from the vehicles.
  • Discipline of View: Targeted on the facet of the vehicles the place the characters are printed.

Digital camera Specs:

  • Digital camera: Lucid TRI120S (12 MP)
  • Sensor Dimension: 1.1″
  • Mount Kind: C-Mount

Lens Choice Course of:

Utilizing the Edmund Optics Imaging Lens Wizard, we enter the next parameters:

  • Sensor Dimension: 1.1″
  • Working Distance: 9,000 mm
  • Desired Discipline of View: Enough to seize the characters on the facet of the truck.

The device suggests {that a} lens with a focal size of round 50 mm would meet these necessities.

Chosen Lens:

Causes for Choice:

  • Compatibility: Helps as much as a 4/3″ sensor format, exceeding our digicam’s 1.1″ sensor dimension, making certain full sensor protection with out vignetting.
  • Discipline of View: The 50 mm focal size gives an angular area of view of 15.90°, appropriate for capturing detailed photos of the truck sides from 9 meters away.
  • Optical Efficiency: Excessive-quality optics important for high-resolution imaging and correct OCR.
  • Adjustable Aperture: The f/4 – f/18 vary permits for flexibility in controlling depth of area and publicity, which is useful in various outside lighting situations.
  • Mount Kind: C-Mount compatibility ensures the lens matches the digicam with out the necessity for adapters.

Extra Issues:

  • Low-Gentle Efficiency: Whereas the utmost aperture is f/4, which is average, chances are you’ll want to boost lighting situations or regulate digicam settings (e.g., improve ISO sensitivity) throughout low-light intervals.
  • Environmental Safety: Given the outside setting, it is advisable to make use of a weatherproof enclosure to guard the digicam and lens from mud, moisture, and temperature variations.
  • Focus Adjustment: Make sure the lens is exactly targeted on the 9,000 mm working distance to seize sharp photos needed for OCR.

By deciding on the 50 mm DG Sequence Mounted Focal Size Lens, we will successfully seize high-resolution photos of the vehicles, making certain that the characters are clear and appropriate for OCR processing, even beneath difficult lighting situations.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.