System designGuide

Inline dimensional measurement of brass parts with machine vision

Inline dimensional measurement by machine vision to ±0.2 mm: telecentric lens and camera sizing, backlighting brass, and when a laser profiler wins.

LumaSpec Vision12 min read Share on LinkedIn

On this page 10 sections
  1. 01The decision up front
  2. 02The numbers that set the design
  3. 03Worked example: the 35 mm fitting
  4. 04A smaller sensor also makes the grade
  5. 05Lighting: silhouette the brass
  6. 06Vision or laser: where each wins
  7. 07Checks before you order
  8. 08When the usual answer is wrong
  9. 09The 60-second checklist
  10. 10Questions

A machined brass fitting about 35 mm tall needs its dimensions checked to ±0.2 mm inline, inside a 2 s cycle, and the measurement is being added to a machine that already does appearance inspection with image processing. That combination points to one answer: a second 2D camera in the same station, behind a low-magnification telecentric lens, looking at a backlight. ±0.2 mm on a 35 mm part is a 0.6% relative tolerance — comfortable territory for telecentric vision — and 2 s leaves ample time to stop the part, strobe and grab. This guide sizes the camera and lens with the arithmetic shown, picks the lighting a specular metal actually needs, and states plainly where a laser profiler is the better tool.

The decision up front

Use a 2D area-scan camera with a low-magnification telecentric lens and a backlight. One stopped frame measures every outer dimension of the fitting — height, body width, hex across flats — with margin counted in microns, and it drops into the image-processing software the station already runs. A 1" 20 MP sensor behind a 0.166x telecentric puts 14.5 µm of part on each pixel, so one tolerance spans almost 14 pixels and sub-pixel edges land an order of magnitude inside the band.

Choose a laser line profiler when the dimension is a height you cannot silhouette: a step on the end face, warpage across a surface, or a feature the light path cannot reach. Cameras measure edges; profilers measure where the surface is. That difference settles the choice, and 3D vs 2D machine vision: when to choose 3D walks the boundary in detail.

The numbers that set the design

Three numbers fix everything: the tolerance (0.2 mm), the largest part dimension (35 mm) and the pixel pitch of the sensor. The rule that connects them: one tolerance must span at least 10 object-space pixels, and you design in the 10-20 zone. The basis is simple. A sub-pixel edge detector holds a clean backlit edge to about 1/5 of a pixel, a dimension needs two edges, and a gauge you can trust should consume no more than a tenth of the tolerance it polices.

m = sensor width / field of view object-space pixel = pixel pitch / m pixels per tolerance = tolerance / object-space pixel

Work it left to right. Choose the field of view to cover the part plus 10-20% for fixturing and sway, divide the sensor width by it for magnification, then divide the pixel pitch by that magnification. The full derivation is in telecentric lens field of view calculation and how camera field of view changes with working distance. Stop buying resolution once the tolerance spans 10-20 pixels; after that, money belongs in the light, the mount and the calibration. Solve the same arithmetic for camera pixels instead:

Camera resolution for the smallest feature
Units
Pixels needed
–
Sensor size
– MP
Smallest sensor that fits
–
Pixel on the part
– mm
Pixels across the feature, that sensor
–

Pixels needed = field / feature × pixels per feature on each axis (field incl. margin). The lens must resolve the pixels too: Nyquist = 1000 / (2 × pixel µm) lp/mm.

Find cameras with enough pixels Open the full calculator

Two lens-side numbers matter as much as pixels. The lens must resolve the sensor's Nyquist limit — 1000 ÷ (2 × 2.4 µm) = 208 lp/mm — or edges soften before the detector ever sees them; see lens resolution vs pixel size: matching MTF to your sensor and sensor resolution in lp/mm. And the lens must be telecentric, so magnification does not drift with part height — entocentric vs telecentric lenses: when to use each covers that trade.

Perspective with a standard lens compared with a telecentric lens Left: the same part at two distances appears at two sizes through a standard lens. Right: a telecentric lens accepts only rays parallel to its axis, so the part appears the same size at both distances.Standard lensfarnearsensorThe same part looks bigger when nearer:its measured size depends on distanceTelecentric lensOnly rays parallel to the axis enter:the same size at any distance
Perspective with a standard lens compared with a telecentric lens. Left: the same part at two distances appears at two sizes through a standard lens. Right: a telecentric lens accepts only rays parallel to its axis, so the part appears the same size at both distances.

Worked example: the 35 mm fitting

Inputs: part 35 mm tall and 25 mm across the widest feature; tolerance ±0.2 mm; cycle 2 s. Camera: a 1" 20 MP class sensor — 5472 × 3648 pixels of 2.4 µm, which is 13.1 × 8.8 mm of silicon. Lens: 0.166x telecentric.

  • Field of view = 13.1 mm ÷ 0.166 = 78.9 mm wide, and 8.8 mm ÷ 0.166 = 53.0 mm high. The fitting fills two-thirds of the frame height and leaves room for a fixture.
  • Object-space pixel = 2.4 µm ÷ 0.166 = 14.5 µm.
  • Pixels per tolerance = 200 µm ÷ 14.5 µm = 13.8 — mid-zone.
  • Two-edge noise at 1/5-pixel edges: 2 × (14.5 ÷ 5) = 5.8 µm ≈ 0.006 mm, about 3% of the tolerance band.
  • Whole-pixel edges, with no sub-pixel fitting at all, cost 2 × 14.5 = 29 µm = 0.029 mm — under a seventh of the band. From here the budget belongs to optics and calibration, not pixels.

Cycle time: a 20 MP mono frame is about 20 MB, and USB3 moves it in roughly 60 ms. Add a strobe of 0.15-0.5 ms and a few tens of milliseconds of edge fitting, and the measurement closes near 0.1 s — 1.9 s of the cycle remains for stop, settle and release. The 2 s budget is not tight; the same logic squeezed into faster lines is worked in measuring points on a 5 mm part in under one second.

For the full fitting in one frame, the low-magnification pick from the telecentric lenses range is:

Telecentric lenses0.166x, WD 258 mm, 1", C-mount telecentric lens (LS-TCL-1422)LS-TCL-1422
Sensor format
1"
Mount
C-mount
Image circle
16-22 mm
Type
Bi-telecentric
$3,099.00View partBuild a system with it

The LS-TCL-1422 is a 0.166x bi-telecentric C-mount lens for 1" sensors at a 258 mm working distance, with a 16-22 mm image circle. Working distance is a design point on a telecentric, not a tuning knob — order the class you need rather than shimming one into place. Match it with a mono body from the area scan cameras finder:

Area scan camerasHikrobot MV-CS200-10UM 20 MP Area Scan Camera, USB3.0, IMX183, 2nd Gen., MonoMV-CS200-10UM
Sensor format
1"
Lens mount
C-mount
Interface
USB3
Resolution
16-25 MP
$759.00View partBuild a system with it

The MV-CS200-10UM is a 20 MP USB3.0 camera on a 1" IMX183 sensor, in mono — what silhouette edges want. The two IMX183 bodies differ in interface and color:

Specification MV-CS200-10GC MV-CS200-10UM
Max. frame rate 5.9 fps @ 5472 × 3648 19.2 fps @ 5472 × 3648 Mono 8
Exposure time 46 μs to 2.5 sec 44 μs to 0.83 sec
Exposure mode Off/Once/Continuous exposure auto, supports Timed and Trigger Width exposure mode, and Rolling and Global Reset sensor shutter mode Off/Once/Continuous exposure mode, supports Global Reset and Rolling
Pixel format Mono 8/10/12, Bayer GB 8/10/10p/12/12p, YUV422Packed, YUV422_YUYV_Packed, RGB 8, BGR 8 Mono 8/10/10Packed/12/12Packed
Decimation Supports 1 × 1, 2 × 2 Supports 1 × 1, 2 × 2, 4 × 4
Reverse image Supports horizontal and vertical reverse image output Supports horizontal and vertical reverse image output
Data interface Gigabit Ethernet, compatible with Fast Ethernet USB3.0, compatible with USB2.0
Digital I/O 6-pin Hirose connector provides power and I/O, including opto-isolated input × 1 (Line 0), opto-isolated output × 1 (Line 1), bi-directional non-isolated I/O × 1 (Line 2). 6-pin P7 connector provides power and I/O, including opto-isolated input × 1 (Line 0), opto-isolated output × 1(Line 1), bi-directional non-isolated I/O × 1 (Line 2)
Power supply 9 VDC to 24 VDC, supports PoE 9 VDC to 24 VDC, supports USB3.0 power supply
Power consumption Typ. 2.5 W @ 12 VDC Typ. 2.3 W @ 5 VDC (USB3.0 provides power supply)
Dimension 29 mm × 29 mm × 42 mm (1.1" × 1.1" × 1.2") 29 mm × 29 mm × 30 mm (1.1" × 1.1" × 1.2")
Weight Approx. 100 g (0.22 lb.) Approx. 80 g (0.18 lb.)
Price $739.00 $759.00

All 2 share: Sensor type CMOS, rolling shutter; Sensor model Sony® IMX183; Pixel size 2.4 μm × 2.4 μm; Sensor size 1"; Resolution 5472 × 3648; SNR 41.5 dB; Gain 0 dB to 24 dB; Binning Supports 1 × 1, 2 × 2, 4 × 4. Values as printed in each product's data sheet; open a part for its drawing and full specifications.

Take the mono USB3 body for a measurement-only head beside the controller; take the GigE color body when one camera must also feed appearance grading, since GigE spans longer cable runs. Both are rolling-shutter sensors, which is fine with the part stopped and the backlight on continuously, and wrong for measuring a moving line — for that, filter the camera finder for global shutter.

A smaller sensor also makes the grade

The classic 5 MP 2/3" format — 2448 × 2048 pixels at 3.45 µm, or 8.5 × 7.1 mm of silicon — stays inside the 10-pixel rule. The match in the telecentric range is LS-TCL-1390, the 2/3" C-mount object-side telecentric at 0.179x with a 260 mm working distance. That magnification frames 8.5 ÷ 0.179 = 47.5 mm by 7.1 ÷ 0.179 = 39.7 mm, so the 35 mm part fits with about 2 mm to spare above and below. Object-space pixel: 3.45 µm ÷ 0.179 = 19.3 µm, and 200 µm ÷ 19.3 µm = 10.4 pixels per tolerance — on the floor of the zone, but on it. The trade is fixture margin, so part presentation must be disciplined.

Lighting: silhouette the brass

Polished, oiled brass is a mirror. Front light either glares into the lens or vanishes, and edge contrast ends up a property of the day's finish. For gauging, turn the part into a silhouette: backlight on the far side, camera on the near side, and the edge becomes the shadow boundary — finish, tarnish and coolant film drop out of the measurement. The collimated backlight or diffuse backlight for edge gauging comparison favors collimated light at this accuracy, sized at least to the field width. Round shiny sections reward the same discipline; see telecentric illumination for measuring round shiny parts accurately. Keep domes and coaxial front light for the appearance station — how brass behaves under them is shown in lighting solder joints on brass: dome plus coaxial fill.

For dimensions on the end face — a turned step, a counterbore seen as a diameter — send the light through the lens instead. The coaxial route in one body:

Telecentric lenses0.5x, WD 110 mm, 1", C-mount telecentric lens with coaxial light (LS-TCL-2194)LS-TCL-2194
Sensor format
1"
Mount
C-mount
Image circle
11-16 mm
Type
Object-side telecentric
$1,539.00View partBuild a system with it

The LS-TCL-2194 is an object-side telecentric C-mount lens for 1" sensors, 0.5x at a 110 mm working distance, with built-in coaxial light. That magnification frames 13.1 ÷ 0.5 = 26 mm by 8.8 ÷ 0.5 = 18 mm — an end face, not the whole fitting, which is the point of a second station.

If the part must keep moving, hold blur under one pixel: at 100 mm/s, a 150 µs strobe smears 100 mm/s × 0.00015 s = 15 µm ≈ 1 pixel at 14.5 µm per pixel, while a 0.5 ms pulse smears 50 µm ≈ 3.4 pixels. Stop the part, as the 2 s cycle allows, and the question disappears. Drive the strobe from a controller triggered by the station PLC — start at the lighting step of the configurator.

Vision or laser: where each wins

The competing sensor is a laser displacement gauge or 2D laser profiler. It wins when height is the dimension — steps, warpage, clearance under an overhang — or when the far side of the line has no room for a backlight. It loses on integration: a separate controller, a separate program and a measurement engine the existing vision station cannot host, all spent on a tolerance the camera already covers thirty times over.

Dimension you must hold 2D telecentric + backlight Laser line profiler
Height, width, across flats One frame, both edges One profile per pass or snapshot
Diameter of round sections One frame Profile across the crown
Step height, counterbore Second station, coaxial telecentric Native strength
Warpage, full-face height No Yes
Fits the existing image-processing station Same software, one camera added Separate controller and program
Margin at ±0.2 mm Tens of microns Micron-class, unused at this tolerance

The decision, case by case: outer dimensions on a stopped part — camera and backlight. End-face heights read in silhouette — camera and coaxial telecentric. Heights across a whole face, or hidden geometry — profiler. No light path behind the part — profiler.

Checks before you order

  • Clear aperture. A telecentric front element must exceed the field diagonal: √(78.9² + 53.0²) = 95 mm for the worked example. Plan the frame opening, the lens mass and the bracket around it.
  • Standoff on both sides. The lens working distance in front; behind the part, room for a backlight wider than the field.
  • Calibration. Put a certified gauge or dot grid at the part plane and calibrate pixels-to-mm in the finished fixture, never from nominal magnification. Distortion is the budget item: 0.1% residual at 30 mm off-axis is 30 µm, more than the edge noise; lens distortion correction for accurate pixel-to-mm measurements shows the fix.
  • Focus at the real working distance, with the production light fitted — the procedure in focus the lens at working distance applies to any body.
  • Depth range. A fitting that settles ±2 mm high must stay inside the telecentric depth of field; the validation method is in telecentric depth of field: validate measurement accuracy.
  • Swarf and coolant. Brass chips on the backlight glass cast false edges; give the window an air purge and a wipe interval.
  • Which edge. Burrs and chamfers move an edge by more than the tolerance; agree with the process engineer whether the gauge sees the theoretical sharp corner or the burr root. For features stacked in height, read concentricity measurement of features at different heights.

When the usual answer is wrong

  • The part arrives in any orientation. A silhouette still yields across-flats and overall height, but hex orientation must come from fitting, not assumption, and one-sided features need a fixture or a second camera at 90°.
  • The tolerance tightens to ±0.02 mm. The architecture holds; the budget does not. Magnification rises toward 0.5x, the field falls to about 26 mm, you buy a second view, control the mount temperature and run a formal gauge study. The methods that take cutting tools to micrometre precision are in subpixel edge measurement of cutting tools.
  • Threads and knurls. An edge detector on a thread measures crest noise, not a diameter. Define the derived dimension — shadow envelope or pitch-diameter proxy — before promising a number.
  • Sizing from scratch rather than adding to a station. Work the same chain from part to lens to camera as in machine vision dimensional measurement for small parts and telecentric lens selection: match magnification and image circle; the numbers above are the fitting-sized instance of it.

The 60-second checklist

  • Tolerance spans at least 10 object-space pixels: 200 µm ÷ (pitch ÷ m).
  • Field of view covers the part plus 10-20% on the constraining axis.
  • Telecentric lens, so part height cannot change the scale.
  • Backlight at least as wide as the field, collimated, strobed, PLC-triggered.
  • Mono body for gauging; global shutter if the line runs; color only if one camera grades appearance too.
  • Calibration gauge ordered before the camera bracket is cut.
  • Laser profiler only for heights and hidden geometry — interlocked and labelled.

When the drawing is on the table, build the station in the configurator — camera, lens, light and trigger in one pass — or send the part drawing and tolerance list through the contact page and we will size it with you. More station-level reasoning is collected on the systems topic page.

Questions

Is ±0.2 mm too loose to justify a telecentric lens?

The lens is bought for scale stability, not resolution. A standard lens at 258 mm working distance changes magnification by about 1/258 = 0.4% for every millimetre the part sits high or low; across a 30 mm dimension that is 0.12 mm, over half the tolerance, from presentation error alone. A telecentric lens cancels exactly this term, which is why measurement stations pay for it even at ±0.2 mm.

Do I need a global shutter camera if the conveyor keeps moving?

Only if you measure while moving. With the part stopped, a rolling shutter sensor and a continuously lit backlight are fine, because nothing moves during exposure. On a moving line, rolling shutter samples rows at different times: a 20 MP frame read over a few tens of milliseconds at 100 mm/s shears geometry by millimetres. Take a global shutter body, freeze motion with a strobe of 150 µs or less, or add the stop-and-index step the 2 s cycle allows.

What accuracy can I promise after calibration?

Budget the stack: about 6 µm from two sub-pixel edges, a few micrometres from scale calibration, and 5-10 µm of residual distortion after correction, so roughly 0.01-0.02 mm total. Confirm with a gauge study on 30 parts measured twice and report that spread as the measurement system figure. Anything inside ±0.05 mm leaves the whole ±0.2 mm band for the machining process, which is where you want it.

Can one camera serve both the appearance inspection and the measurement?

Yes, with sequenced lighting. Fire the backlight for the measurement frame, then switch to the dome for the appearance frame inside the same stop; two frames fit the 2 s cycle easily. Take the color GigE body if appearance grading needs hue, the mono body if contrast rules. The compromise is the lens: appearance likes depth of field and a fast f-number, measurement wants the telecentric, so prioritize the telecentric and light the appearance step harder.

Why a backlight rather than front light on shiny brass?

Front-lit brass makes edge contrast a property of the finish: polish, oil film and tarnish swing reflectivity by tens of percent, and thresholds drift with them. A backlight turns the edge into a shadow boundary, so the finish drops out of the measurement entirely. That is why gauging stations silhouette the part and leave domes and coaxial light to the appearance and end-face stations.

How wide must the backlight be?

At least the field of view width, 79 mm in the worked example, or the silhouette clips where the part overhangs the emitter. One size up, around 100 mm, also buys alignment tolerance and even illumination to the frame corners. Match the strobe pulse width to the controller current rating rather than pushing the pulse and hoping the light survives.