Lenses & opticsExplainer

Camera field of view at a given mounting height: how to size it

Camera field of view at a mounting height: formula, reverse solve for the height a workspace needs, and a 400 × 300 mm example with pixel and tilt checks.

LumaSpec Vision9 min read Share on LinkedIn

On this page 9 sections
  1. 01The coverage rule at a fixed height
  2. 02Solve it backwards for the height you need
  3. 03Worked example: a 400 × 300 mm pick view at 0.58 m
  4. 04Pixel size decides detection, not coverage alone
  5. 05Height is measured to the entrance pupil — and tilt reshapes the footprint
  6. 06Depth of field and exposure set the height tolerance
  7. 07Checks before you cut the bracket
  8. 08From numbers to parts
  9. 09Questions

When a camera hangs over a conveyor or rides a robot wrist to a taught snapshot position, the mounting height is usually fixed before the lens is chosen: gantry clearance, robot reach and part presentation all get a vote. Two numbers then decide the whole view — that height, and the lens's angle of view. One short formula ties them together, so you can compute the covered area before anyone machines a bracket, or run it backwards to find the height a known workspace needs. This page gives the formula both ways, a worked example that sizes a 400 × 300 mm pick view, the pixel-size check that decides whether a feature is detectable, and the tilt and depth-of-field corrections that move the answer.

The coverage rule at a fixed height

A camera looking straight down from height H onto a flat work plane covers a rectangle. Each field edge reaches H · tan(θ/2) out from the vertical, where θ is the lens's angle of view along that edge, so:

W = 2 · H · tan(θH / 2) V = 2 · H · tan(θV / 2) θH = 2 · arctan(sW / 2f) → W ≈ sW · H / f

W and V are the covered width and height on the plane, sW the sensor's active width, f the focal length, and H runs from the plane up to the lens's entrance pupil. The right-hand shortcut is the machine-vision form: at these distances the tangents cancel and the footprint is just sensor width times height over focal length. It ignores the sensor-to-pupil gap, an error of about f/H — 1.4% for an 8 mm lens at 0.58 m, 5% at 160 mm.

How sensor width, working distance and field of view set the focal length Rays from the edges of the sensor pass through the lens and spread to the edges of the field of view. The ratio of sensor width to field of view is the magnification m.CameraField of view (FOV)Working distance (WD)≈ fsensor width slensm = s / FOVf = WD × m / (1 + m)
How sensor width, working distance and field of view set the focal length. Rays from the edges of the sensor pass through the lens and spread to the edges of the field of view. The ratio of sensor width to field of view is the magnification m.

The forward problem — coverage from a sensor and focal length already chosen — is worked through in Lens field of view: why sensor size and focal length set it. Here the height is the given, which is why no spec table is needed for the detection area: height and angle of view alone set it.

Solve it backwards for the height you need

Divide instead of multiply, per axis, and keep the larger height:

H ≥ W_req / (2 · tan(θH / 2)) H ≥ V_req / (2 · tan(θV / 2)) f = sW · H / W_req

Before either, size the required field 20% larger than the workspace — 10% margin per side. The slack absorbs calibration residuals, distortion at the frame edges and presentation jitter, and it costs resolution linearly: every 10% of extra field thins the pixels by 10%. Then browse machine vision lenses by focal length and image circle. The same margin logic for calibration targets is set out in Calibration target field of view and lens coverage margins.

Lens focal length, field of view and working distance
Units
Solve for
Focal length
– mm
Field of view
– mm
Working distance
– mm
Magnification
– x
Angle of view
– °
Pixel on the part
– mm

Thin-lens model: m = sensor width / field of view, f = WD × m / (1 + m). Accurate to a few percent above about 150 mm; check the lens's minimum object distance.

Find lenses with this focal length Open the full calculator

Worked example: a 400 × 300 mm pick view at 0.58 m

The task: one downward-looking camera must cover a 400 × 300 mm presentation area well enough to localise parts for a pick. The rig: a 12 MP USB3 area scan camera with a 1/1.7" sensor, a 4000 × 3000 resolution and a 30 fps readout, carrying an 8 mm FA lens specified for 2/3" sensors with an 8-11 mm image circle:

Area scan cameras12 MP USB3 area scan camera, IMX226, 1/1.7" rolling shutter, 30 fps, 4000 × 3000 resolution (LS-CMR-0166)LS-CMR-0166
Sensor format
1/1.7"
Interface
USB3
$560.00View part
Machine vision lensesFA lens, 8 mm, 2/3", C-mount, FOV 57.6° (LS-FFL-1582)LS-FFL-1582
Sensor format
2/3"
Mount
C-mount
$309.00View part

The arithmetic, axis by axis:

  • Sensor active area: a 1/1.7" format works out to about 6.7 × 5.0 mm, so one pixel spans 6.7 mm / 4000 ≈ 1.7 µm.
  • Angles: θH = 2 · arctan(6.7 / 16) = 45.4°; θV = 2 · arctan(5.0 / 16) = 34.7°.
  • Required field with 10% per side: 480 × 360 mm.
  • Height: H ≥ 480 / (2 × 0.419) = 573 mm and H ≥ 360 / (2 × 0.3125) = 576 mm. The vertical axis governs — specify 580 mm.
  • Check at that height: W = 2 × 580 × 0.419 = 486 mm; V = 2 × 580 × 0.3125 = 362.5 mm. Both clear the requirement, leaving 43 mm spare beyond each workspace edge in width and 31 mm in height.
  • Cross-check with the shortcut: W = 6.7 × 580 / 8 = 486 mm; shortcut error f/H = 8 / 580 ≈ 1.4%.
  • Pixel size on the part: 486 mm / 4000 px = 0.12 mm/px.

Decision: mount at the 580 mm just computed and expect a 486 × 362 mm view at 0.12 mm per pixel. If the same height must inspect fine details instead, the 35 mm option narrows the view to 2 × 580 × (6.7 / 70) = 111 mm by 83 mm at 0.028 mm/px — about 4 times the resolution over a quarter of the area. The lens for that second case:

Machine vision lenses35 mm, 2/3", 6 MP, C-mount machine vision lens (LS-FFL-0679)LS-FFL-0679
Type
Machine vision fixed
Sensor format
2/3"
Mount
C-mount
Resolution
6-10 MP
$219.00View partBuild a system with it

Pixel size decides detection, not coverage alone

Coverage answers whether the camera sees the part; pixel size answers whether it sees the feature. Ground sample distance is field width divided by horizontal pixels. Plan on a feature spanning at least 3 pixels to detect it and 5 or more to measure it. At 0.12 mm/px the worked view detects features down to about 0.36 mm and measures from 0.6 mm, so a 2 mm feature sits comfortably inside the window. For close-range macro set-ups the same quantity falls out of magnification rather than height — see Calculate object space pixel size from magnification. And when one snapshot position cannot cover the table at all, the overlap arithmetic for a second position is in Multiple wrist camera snapshot positions to cover a large table.

Height is measured to the entrance pupil — and tilt reshapes the footprint

H runs from the work plane to the lens's entrance pupil, not to the C-mount flange. On compact FA lenses the two sit 20-30 mm apart; on long-barrelled designs the difference passes 100 mm. A height taken from the flange therefore predicts more coverage than the lens delivers.

Tilt breaks the single-height picture. With the optical axis leaned α off vertical, the footprint along the tilt direction runs from H · tan(α − θ/2) at the near edge to H · tan(α + θ/2) at the far edge. Tilt the worked example by 30°: near edge 580 × tan(7.3°) = 74 mm, far edge at the same H × tan(52.7°) = 761 mm. The view stretches to about 687 mm and the far side renders about 1.6× coarser, because its ray travels further. Calibration flattens the keystone afterwards; Camera angle of view from calibration reads the real angles back out of images. Robot-mounted snapshot positions add one further trap: neighbouring positions whose fields must overlap. Fixing overlapping camera fields of view in robot vision walks one such repair end to end.

Depth of field and exposure set the height tolerance

Coverage places the plane at 0.58 m; depth of field decides what part-height variation the view survives. With blur held to one 1.7 µm pixel (circle of confusion c), the hyperfocal distance is f²/(N·c) and the focus limits follow:

Hhyp ≈ f² / (N · c) near = Hhyp · d / (Hhyp + d − f) far = Hhyp · d / (Hhyp − d + f)

Set to F2.8 and focused at that distance, the example view holds focus from about 556 to 606 mm, roughly ±24 mm. At F8 the same view holds 517-660 mm, +80/−63 mm — enough for a tall part or a loose fixture. The bill arrives in light: F8 passes (8/2.8)² ≈ 8× less, so exposure stretches about eightfold unless the lamp brightens to match. The depth of field calculator repeats the arithmetic for any f-number. Motion sets its own exposure cap: a part crossing at 300 mm/s must be caught within 0.12 mm / 300 mm/s = 0.4 ms to keep blur inside one pixel.

Checks before you cut the bracket

  • Compute both axes and keep the governing height; in the example the vertical axis decided the mount, not the horizontal.
  • Measure to the entrance pupil, not the flange, and to the top of the tallest part, not the belt.
  • Confirm the image circle clears the sensor diagonal: the 1/1.7" format needs about 8.4 mm, so any 2/3"-class circle carries margin.
  • Keep the horizontal angle near or below 60° for calibration-friendly distortion; the example's 45.4° is comfortable.
  • Check the focus window against part-height variation plus repeatability at the snapshot position; stop down until it fits, then re-budget exposure and light.
  • For moving parts, cap exposure at pixel size divided by part speed.
  • Lay a grid target in the plane and re-measure after mounting; the taught position, not the drawing, is the truth.

From numbers to parts

Once height and field are fixed, the camera finder filters area scan cameras by resolution, sensor format and interface, and the lens finder does the same by focal length and image circle; the lens configurator step pairs the two directly. The worked set-up is the 12 MP, 1/1.7" USB3 camera with the 8 mm FA lens, and the detail-inspection option is the 35 mm, 6 MP C-mount lens. For the lens-choice method beyond geometry — distortion, F-number, depth of field — see How to choose a machine vision lens focal length, and the lens guides topic page collects the rest. Support comes free with every order if you want your numbers checked against a drawing.

Questions

How much margin do I add on top of the calculated field of view?

Give the field 20% more than the workspace needs, 10% per side. The slack covers calibration residuals, lens distortion at the frame edges and part presentation jitter — not robot repeatability, which at a taught snapshot position is far tighter than any of those. Padding further just thins the pixels: every extra 10% of field costs about 10% of resolution.

Is mounting height measured from the part or from the lens mount?

Measure to the top of the tallest part you present, not to the belt, and up to the lens's entrance pupil rather than the C-mount face. On compact FA lenses the pupil sits near the front of the barrel, so a flange measurement underestimates height by the barrel depth: roughly 20-30 mm on compact designs, past 100 mm on long ones.

What pixel size do I need to reliably detect a 2 mm feature?

Give a feature at least 3 pixels across to detect it and 5 or more to measure it. At the worked view's 0.12 mm per pixel, 3 pixels is 0.36 mm, so a 2 mm feature spans about 17 pixels — over 3 times the 5-pixel measuring bar. If the smallest feature you must see lands under 3 pixels, lengthen the focal length and accept a smaller field, or mount lower if the workspace allows.

Can I just fit a wider-angle lens instead of raising the camera?

Up to about 60 degrees horizontal, yes — the tangent still grows gently and calibration handles the distortion. Past 60-70 degrees the tangent accelerates, edge distortion grows faster than most calibrations remove cleanly, and measured positions drift near the corners. Height is usually the cheaper variable: in the worked example, going from 480 mm to the final height buys the 10%-per-side margin with no optical risk.

How do I check the real coverage once the camera is mounted?

Lay a ruler or grid target in the work plane, capture at the taught position and read the visible extent per side. A full calibration returns the same answer plus the distortion map, and lets you measure the actual angles from the images. Re-check after any lens swap, refocus or bracket rework: a small focus shift changes magnification slightly, and the frame edges show it first.