A lens is used to converge the light beams to an image plane on the image sensor for an clear and sharp frame. To understand how to quickly sort out the best lens, refer to this focal length calculator page.
About the Lenses
Parallel incident light transmitted into a convex lens converges to a point on the optical axis. This point is the focal point of the lens. The distance between the principle point in the optical system and the focal point is referred to as the focal length. For a single thin lens, the focal length is equal to the distance between the center of the lens and the focal point.
Figure 1 Focal Length
Image Size and Lens Optical Format
A lens produces images in the form of a circle, called the image circle, also know as optical format. In a CCTV camera, the imaging element has a rectangular sensor area (the image size) that detects the image produced within the image circle. The ratio of the length of the horizontal to vertical sides of a video image is called the aspect ratio, which is normally 4:3 (H:V) for a standard CCTV camera.
Figure 2 Sensor Size
The lens optical format should match with target image sensor like the left most photo in the Figure3. If lens optical format and image size doesn’t match, it also works. But when the lens optical format is larger than image sensor, the lens FOV will be reduced; and when the lens optical format is smaller than image size there will be dark areas around the corners and some portion of the sensor area is not useful.
Figure 3 Image Circle
Minimum Object Distance
Minimum object distance (M.O.D.) indicates how close the lens can be placed to the object for shooting. It is measured from the vertex of the front glass of the lens. Sometimes, you can still focus the lens to very close object by manually focusing the lens. But you have to trade off between the close object and far away object, because only one can be well focused, the other end will be blurry. So the MOD parameter is specified for focusing on both close and far away object.
Back Focal Length
Distance between vertex of the rear element lens and image sensor. Sometimes the lens comes with very short focal length, so you should use proper lens holder to match the back focal length of the lenses. For example the fisheye lens LS-40180 can’t use any other lens holders except the mating lens holder designed specific for this lens.
It is specific for zoom lenses rather than fix focus lens. Zoom ratio is the ratio of the focal length at the telephoto end to that at the wide end. A zoom lens can change the size of an object appearing on the monitor to the extent specified by the zoom ratio.
Field of View
The FOV is also called angle of view which is the shooting range that can be viewed by the lens given a specified image size. It is usually expressed in degrees. Normally the angle of view is measured assuming a lens is focused at infinity. The angle of view can be calculated if the focal length and image size are known.
Figure 4 Lens case study
Given there is a QR code scanner application, we have a 1/4″ image sensor, and the camera is 15mm away from the QR code, the QR code size is 16mm x 16mm. How we will study how to calculate the lens FOV and select a proper lens for QR code scanner application.
If we want to use full image plane to capture the QR code, from the Figure 1 we can calculate the vertical FOV as 2 x arctan(H/2d). Where H is the height of the QR code and equals to 16mm. So the vertical FOV θ = 2 x arctan(16/2/15) = 56 degree.
Provide the image sensor aspect ratio is 4:3, we can calculate the horizontal FOV = 75 degree, and diagonal FOV = 94 degree. From the Figure 1 we can also calculate the focal length by the equation : f/d = h/H equals to f = d x (h/H). Now we can get f = 15 x (2.4/16) = 2.25mm.
Note that all the calculation is based on pinhole camera model, the real lens focus calculation is more complex the focal length will be different. The formula here just gives you a basic idea about the lens. You can choose the proper lens according to the FOV listed on the below table. And sometimes we might not need the QR code cover the entire image plane for the margin of scanning area, in this case we can choose larger FOV lens than we calculated above.
Some Available Lenses from ArduCAM
|Model NO.||Effective Focal Length||Optical Format||FOV(DxHxV) on 1/2.5'' Sensor||FOV(DxHxV) on 1/4'' Sensor|
1/4'' Optical Format
|Model NO.||Effective Focal Length||Optical Format||HFOV(Degree)||VFOV(Degree)||DFOV(Degree)|
1/3'' Optical Format
|Model NO.||Effective Focal Length||Optical Format||FOV(HxVxD) on 1/3'' Optical Size||FOV(HxVxD) on 1/4'' Optical Size|
1/2.7'' Optical Format
|Model NO.||Effective Focal Length||Optical Format||FOV(HxVxD) on 1/2.7'' Optical Size||FOV(HxVxD) on 1/4'' Optical Size|
1/2.5” Optical Format
|Model NO.||Effective Focal Length||Optical Format||FOV(HxVxD) on 1/2.5'' Optical Size||FOV(HxVxD) on 1/4'' Optical Size|
1/2.3” Optical Format
|Model NO.||Effective Focal Length||Optical Format||FOV(HxVxD) on 1/2.3'' Optical Size||FOV(HxVxD) on 1/4'' Optical Size|