|
One of the first questions everyone involved with machine vision optics asks is ' what lens do I need'.
To begin to understand the concepts think of what a lens does. It focuses the light entering it so that the beams of light intersect behind the lens at a specific point. This is known as the 'focal point'.
Remember this is OK for a single point of light. However for most everyday applications we want to image more than a single point of light. We want to look at widgets and labels etc. For these the light coming into the lens doesn't impact on a single point. It hits in a number of places on the same plane. To cope with this we need to use a 'compound lens'...This is the type of lens most commonly used in machine vision.
They know the size of what they want to inspect, they know how far away they need to place the camera, so they've already answered the first few questions. Another key one is what camera are they using and more importantly what's the size of the array? Is it 1/4", 1/2" etc?
The most basic formula to calculate the focal length of a lens is as follows:
Focal Length =
working Distance * Size of Image
size of object + size of image
However in reality we need to consider the size of the CCD array we are imaging to.
So the formula now becomes
Focal Length =
working Distance * length of CCD array
size of object + length of CCD array
If you camera has a 1/4" or a 1" CCD, then this dimension is fixed.
There are some other complications but these are the three fundamentals....The key things to remember are that your camera, the size of the object and the working distance are enough to get you started.
|