Worked example · Field of view

12mm machine-vision lens for a 300mm field

Inspect a 300mm-wide conveyor lane with a 12mm lens. Use a nominal 7.2 × 5.4 mm active area and 2048 × 1536 output.

See the worked calculation

Inputs

Results

Runs on your device

Horizontal angle
33.4 °
Vertical angle
25.36 °
Diagonal angle
41.11 °
35mm equivalent
57.69 mm
Diagonal crop factor
4.81 ×
Working distance
512 mm
Field width
300 mm
Field height
225 mm
Horizontal sampling
0.1465 mm/px
Vertical sampling
0.1465 mm/px
Image magnification
0.024 ×
Field of view
Horizontal angle 33.4 degrees and field width 300 mmLENSTARGET PLANE33.4°512 mm working distance
The cone illustrates horizontal coverage. Angular field is measured at infinity and the target plane uses the finite-focus estimate.

Worked calculation

  1. At 300 mm field width, image magnification is 7.2 ÷ 300 = 0.024×.
  2. The thin-lens working distance is 12 × (1 + 300 ÷ 7.2) = 512 mm. Vertical coverage is 300 × 5.4 ÷ 7.2 = 225 mm.
  3. 300 ÷ 2048 gives about 0.1465 mm/px before distortion, blur and calibration effects.

How the calculation works

Angle and crop factor

angle = 2 × atan(sensor side ÷ (2 × f)), crop = 43.27 mm ÷ sensor diagonal

Angles assume a rectilinear lens at infinity. Multiply the focal length by diagonal crop for 35mm equivalence.

Working distance and sampling

WD = f × (1 + field width ÷ sensor width), mm/px = field size ÷ pixels

The thin-lens distance is measured from the principal plane. Check the lens drawing before setting the physical mount distance.

Questions and answers

Can I place the mount exactly 512 mm above the conveyor?

The model measures from a principal plane inside the lens. Check the mechanical reference in the lens drawing and confirm with a target.

Is a 0.15 mm defect reliably detectable in this setup?

It covers about one pixel. Reliable inspection can require multiple pixels plus adequate contrast, lighting and lens resolution.