Inspection camera studying a fine notch and tiny hole in a precision metal part.

What you need

Use a measured part, a target with fine features and a camera mounted at the intended working distance.

Pixels across a 1 mm feature. 200 mm field: 9.6 pixels; 300 mm field: 6.4 pixels; 400 mm field: 4.8 pixels.
Pixels across a 1 mm feature. Original Academy diagram using illustrative values; not a measured hardware result.
Read the diagram as a data table
Values used in the illustration
Condition or componentpixels
200 mm field9.6
300 mm field6.4
400 mm field4.8

The calculation

s = W / N
p_feature = w / s

W is horizontal field of view in mm, N is horizontal pixels, s is mm/pixel and w is feature width in mm.

Worked example

Illustrative numbers. Replace them with your measured inputs.

A 200 mm field over 1,920 pixels gives 0.1042 mm/pixel. A 1 mm feature spans 9.6 pixels. Expanding the field to 400 mm leaves only 4.8 pixels on that feature, even though the camera resolution has not changed.

Try it step by step

  1. Define the smallest feature and the localization tolerance separately; seeing a part is easier than measuring its edge precisely.
  2. Calculate approximate scale for the desired field of view and check that the whole part remains visible under expected offsets.
  3. Capture real images at the selected distance, exposure and focus, then examine the feature at original resolution.
  4. Measure repeated localization error on a separate target set, including positions near the image edges.

How to check the result

Accept the imaging setup on measured detection and position error, not a pixel-count rule alone. Keep example target distances and lighting in the record.

Common mistake to avoid

Pixel scale is not measurement accuracy. Lens blur, distortion, noise and calibration uncertainty can dominate a seemingly generous resolution.

Reference reading

Primary references for the underlying models, APIs or application context. The worked numbers and plots above are educational calculations, not results reported by these sources.

Read our methods, limitations and safety notes.