System designGuide

Auto-pick taught objects with a vision model: the generic method

Teach a vision model once, then let a generic program match the pose each cycle and pick without new waypoints. With the pixel math and a worked example.

LumaSpec Vision11 min read Share on LinkedIn

On this page 8 sections
  1. 01What a taught-model auto-pick does
  2. 02The pixel math that decides whether the camera is enough
  3. 03Worked example: 5 MP over a 200 mm field
  4. 04Vision sensor, smart camera or vision controller
  5. 05The generic program, block by block
  6. 06When the generic answer is wrong
  7. 07Checks before you order
  8. 08Questions

Teaching waypoints and gripper actions for every new part is the slow way to build a picking cell. The generic method does the work once: teach the vision system the object and its grasp point, then let one program turn every vision match into a pick. Here you get the method in build order, the pixel math that decides whether your camera is good enough, a worked example with the arithmetic shown, and where a vision sensor, a smart camera or a vision controller fits. It is written for line engineers and integrators who need the second and third part in a cell to cost minutes of teaching, not a shift of programming.

What a taught-model auto-pick does

A taught-model pick has two phases. In the teach phase, you present the part under production lighting, draw the model region, set the rotation range the matcher may expect, and mark the grasp point relative to the model center. Vision software that stores these parameters — shape region, angle range, grasp offset — rather than a single reference picture is usually called parametric teaching, and it is what lets one model follow the part around its arrival angles.

The run phase is the same every cycle: trigger the camera, match the taught model, accept the match on score, convert the returned position and angle to robot coordinates, then run the shared pick-and-place moves with the computed pick pose. The waypoints are shared; only the pick pose changes. That is why the second part costs a teach session and not a program rewrite, and why the program structure never grows with the product list.

A 2D taught model returns X, Y and in-plane rotation only. Z comes from geometry, not from the image: the part height is a taught parameter, and the pick height is computed from the fixture surface minus that height. That single assumption — one height, small tilt — is the boundary of the whole method, and it decides when you need a 3D sensor instead.

The pixel math that decides whether the camera is enough

Pick accuracy is a chain of three errors added in quadrature: the matcher's detection error, the hand-eye calibration error, and the robot's own repeatability. Detection error starts from the pixel size, which follows from the field of view and the sensor's pixel count. Choose the field after the arrival spread is known: a field sized to the spread plus 10% margin keeps pixels dense where they matter.

pixel size (mm/px) = field of view width (mm) / horizontal pixels detection error (mm) ≈ pixel size / 3 to pixel size / 5 pick offset (mm) ≈ sqrt(detection² + calibration² + robot repeatability²)

The subpixel factor of 3 to 5 is what a grayscale correlation matcher typically resolves on a well-contrasted, sharply focused part; soft focus or weak contrast pushes the effective factor toward 1. A fixed-mount hand-eye calibration over a few hundred millimetres of workspace lands around 0.05-0.15 mm on a rigid stand, with target quality and stand rigidity setting where in the range you land. Small six-axis arms print repeatability between ±0.02 and ±0.05 mm. Two design rules follow: keep the predicted pick offset under one third of the part's locating feature tolerance, and give the gripper fingers a lead-in chamfer of at least five times the offset so the fingers correct what the pose misses.

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

Worked example: 5 MP over a 200 mm field

The part is a connector cap, 40 × 25 mm on the flange, presented flat and singly on a matte fixture, pick tolerance ±0.5 mm. A typical 5 MP sensor resolves 2448 × 2048 pixels, and the stand gives a 200 mm wide field.

  • Pixel size: 200 / 2448 = 0.0817, so 0.082 mm/px.
  • Detection error: 0.082 / 3 = 0.027 mm, and 0.082 / 5 = 0.016 mm; take the conservative 0.03 mm.
  • Hand-eye calibration: 0.10 mm, fixed mount, calibrated at the production working distance.
  • Robot repeatability: ±0.05 mm.
  • Pick offset: sqrt(0.03² + 0.10² + 0.05²) = sqrt(0.0009 + 0.0100 + 0.0025) = sqrt(0.0134) ≈ 0.12 mm.

The decision: 0.12 mm against a ±0.5 mm budget passes, because it sits under the 0.167 mm that one third of the tolerance allows, and the chamfer rule asks for 5 × 0.12 = 0.6 mm of finger lead-in, so specify 0.6-1.0 mm. The cycle side: exposure 10 ms + readout and transfer 15 ms + match 80 ms + pose hand-off 20 ms = 125 ms of vision overhead, which is 6% of a 2 s robot cycle (0.125 / 2.0 = 6.25%). A 5 MP camera over 200 mm auto-picks this cap to about ±0.12 mm, and the camera is nowhere near the bottleneck.

Vision sensor, smart camera or vision controller

One taught part on a fixed stand needs very little compute. The choice widens with part families, camera count and whether AI checks will join the taught models. Mono is the usual pick for taught matching: the model trains on grayscale structure anyway, so mono sensors put their pixel budget into resolution rather than color. Color earns its place when the matcher must separate same-shape parts by color, or a color check rides along with the pick.

Set-up Matching runs on Fits best Property to check
Vision sensor on the device one taught part, one station, pose handed to the robot over Ethernet built-in or fixed lens limits the field choice
Smart camera on the device a few models per camera, lights driven from the camera shutter type against part motion
Cameras + vision controller controller CPU 3+ cameras, AI plus taught models, one job store LAN port count and PoE budget

The three camera-side models in the table, side by side:

Specification MV-SCB007EC-12S-WBN MV-SC3050XC-16M-ATN-H MV-SC5060XM-08M-WBN
Vision tool Count: blob count, Edge count, Pattern count, Contour count; Presence: circle presence, Line presence, Blob presence, Edge presence, Pattern presence, Contour presence, Anomaly judgment; Positioning: position correction; Logic: condition judgment, Logic judgment, Character comparison, Variable calculation, Combined judgment, Data formatting; Measurement: line-line angle, Diameter measurement, Mean brightness, Contrast measurement, Width measurement, Point-line measurement, Grayscale area, Line angle, Pitch inspection, Color area; Recognition: character recognition, Registration classification, Color comparison, Color recognition, Type recognition Measurement: point-point measurement, Point-line measurement, Contrast measurement, Grayscale area, Pitch measurement, Width measurement, Mean brightness, Line-line angle, Color measurement, Color area, Diameter measurement, Line angle; Presence: blob presence, Edge presence, Contour presence, Pattern presence, Circle presence, Line presence, Anomaly judgment, Presence inspection; Count: blob count, Edge count, Contour count, Pattern count, Learned count, Color counting; Recognition: multi-object counting, Code recognition, Color comparison, Color recognition, Type recognition, Registration classification, Registration object detection, Character recognition, Character streak inspection, Learned character recognition; Logic: variable calculation, Branch control, Logic judgment, Data formatting, Condition judgment, Character comparison, Combined judgment; Positioning: calibration conversion, Single-point alignment, Single-point deviation correction, Single-point picking, Unit conversion, Position correction; Deep learning: classification, Object detection; Defect tools: anomaly detection; Industry tools: character recognition and defect detection –
Solution capacity Supports solution importing and exporting, up to 8 solutions and 40 modules can be stored. Supports importing and exporting project, up to 32 projects can be stored –
Communication protocol RS-232, TCP, UDP, FTP, PROFINET, Modbus, EtherNet/IP, MELSEC/SLMP, FINS, Keyence KV RS-232, TCP, UDP, FTP, PROFINET, Modbus, EtherNet/IP, MELSEC/SLMP, FINS, Keyence KV TCP, UDP, Modbus, Serial Port, PROFINET, EtherNet/IP, Fins, MC, FTP, etc.
Sensor type CMOS, global shutter CMOS, global shutter CMOS, rolling shutter
Pixel size 3.45 μm × 3.45 μm 3.45 μm × 3.45 μm 2 μm × 2 μm
Sensor size 1/2.9" 1/1.45" 1/2.4"
Resolution 1408 × 1024 2432 × 2048 3200 × 1920
Max. frame rate 60 fps 40 fps 15 fps
Gain 0 ~ 15 dB 0 dB ~ 15 dB 0 dB to 34 dB
Exposure time 16 μs ~ 1 sec 6 μs ~ 1 sec 72 μs to 150 ms
Pixel format Mono 8, RGB 8 RGB 8, Mono 8 Mono 8
Mono/color Color Color Mono
Price $1,989.00 · quoted $1,809.00 $1,629.00

All 3 share: Humidity 20% RH to 95% RH (no condensation); Certification CE, KC. Values as printed in each product's data sheet; open a part for its drawing and full specifications.

A vision sensor is the smallest bill of materials for one part on one station: the MV-SCB007EC-12S-WBN is a 1.6 MP color vision sensor with a built-in 12 mm lens and manual focus, made for a close, fixed field. A smart camera adds on-board vision libraries and interchangeable M12 lenses: the MV-SC5060XM-08M-WBN is a 6 MP mono model with an 8 mm lens on GigE, its rolling shutter at home on parts that hold still for the picture, while the global-shutter MV-SC3050XC-16M-ATN-H, a 5 MP color sensor with an M12 mount, covers presentation that moves during exposure.

Past 3 or 4 cameras, or once AI checks join the taught models, put the matching on a vision controller and keep the cameras as sensors. Two controllers that cover the range:

Vision controllersHikrobot MV-VC2140-128G40-1T VC2100 Vision Controller, N97, 8GB+128G SSD+ 1THDDMV-VC2140-128G40-1T
LAN ports
3-4 LAN ports
USB 3 ports
2 USB 3 ports
$1,679.00View part
Vision controllersHikrobot MV-VC5525-256G70-NN VC5000 Vision Controller, 12th-I5, 32GB+256G SSD, Supported PCIEMV-VC5525-256G70-NN
LAN ports
5+ LAN ports
USB 3 ports
3-4 USB 3 ports
$4,479.00 · quotedView and quote

The MV-VC2140-128G40-1T runs an Intel N-series N97 processor with 8 GB of memory, a 128 GB SSD plus 1 TB HDD, and 4 built-in light channels — a two-camera taught-model cell with light control in one box. The MV-VC5525-256G70-NN moves to a 12th-gen Intel Core i5 with 32 GB of memory, a 256 GB SSD, PoE camera ports and 8 built-in light channels for a larger camera set. The camera finder filters by resolution, shutter and mount, and the system configurator builds the whole bill of materials around them.

The generic program, block by block

  1. Shared constants. The camera scan pose, a safe home, the drop pose, and an approach height above the tallest part you handle. These never change when the part changes.
  2. Taught data per part. Model ID, grasp offset from the model center, grip force or stroke, and the part height that sets Z.
  3. Vision request. Trigger the capture, match the model ID, and accept only at score 0.7 or better. Below that, send a not-okay signal to the PLC instead of a pose; in enclosed, controlled light with a clean background, 0.5 is a safe floor.
  4. Coordinate transform. Push X, Y and the angle through the hand-eye calibration into robot base coordinates, and add the angle to the tool orientation command.
  5. Computed pick. Move to the pose raised by the approach height, go down in a straight line, close the gripper with the taught force, retreat straight up.
  6. Shared drop. Release at the one drop pose. If each part drops somewhere else, that single case statement is the only place the program grows — the drop-target program structure guide shows how to keep even that generic.

For the 2D case, Z is bookkeeping. The cap sits on a fixture at Z = 800 mm in base coordinates and stands 12 mm tall, so the pick height is 800 − 12 = 788 mm and the approach point sits at 788 + 30 = 818 mm. Both numbers are computed from taught values at teach time; nothing is re-taught at runtime.

None of this needs a PC in the cell. A smart camera or vision sensor closes the loop on the device and talks to the robot directly, which is the set-up in the pick-and-place without an external PC guide.

When the generic answer is wrong

  • Unknown tilt or stacked parts. A 2D taught model assumes one height and small tilt; a random bin needs Z, out-of-plane tilt and grasp planning, which is point-cloud matching on a 3D sensor. The 3D vs 2D decision guide draws that line, and vision-guided flexible feeding is the usual fix on the presentation side.
  • Several part types in one image. Running every model on every frame slows the cycle and invites first-result mistakes; the multi-model scene guide covers the branch logic.
  • Picks that drift as production runs. Drift traces to calibration or to arrivals outside the taught angle range far more often than to the model itself; the vision pick rotation drift checklist works through both.
  • Scores that swing with factory lights. Enclose the station, drive the light from a controller channel, and use the ambient light control guide to test how much variation is left.

Checks before you order

  • Field: the field of view covers the whole arrival spread plus a 10% margin, and the smallest feature the matcher must hold is at least 3 pixels across (field width / horizontal pixels).
  • Mount: a rigid stand that shares no vibration with the press or feeder, camera distance recorded, calibration run at the production working distance.
  • Light: enclosed against factory lighting, driven from a controller or camera channel so every exposure is identical.
  • I/O: one output for the gripper, one not-okay signal to the PLC, a hardware trigger input; count light channels against the controller's built-ins.
  • Commissioning: ten consecutive auto-picks at reduced speed with guarding closed, then measure the spread of picked positions with calipers and hold it near the predicted offset — the 0.12 mm from the worked example — and inside one third of your tolerance.

Start the build at the camera: the configurator below filters cameras to the pixel size your tolerance needs. If you want the pick math checked against your part drawing, send the layout through the quote page.

Build the whole station

The configurator matches a camera, lens, light, light controller and cables to each other, step by step, and lists only parts that fit what you already picked.

Start with the camera

Questions

How many pixels do I need across a feature for reliable matching?

Plan for at least 3 pixels across the smallest feature the matcher must lock onto, and 5 or more when contrast is modest or focus is slightly soft. For the tolerance budget, keep the pixel size under one fifth of the allowed pick offset: a ±0.5 mm budget needs 0.1 mm pixels or finer, and a 5 MP sensor delivers 0.098 mm per pixel across a 240 mm field (240 / 2448). Below that pixel count, narrow the field before buying more resolution.

Does taught-model auto-pick work for parts lying randomly in a bin?

No, not from a single 2D image. A taught 2D model returns X, Y and in-plane rotation and assumes the taught height and small tilt. A random bin needs Z height, out-of-plane tilt and grasp planning, which is point-cloud matching on a 3D sensor. If parts are singulated and flat on a tray or belt, the taught-model method stays the faster and simpler choice; move to 3D only when singulation fails.

Can one taught model pick a whole size family of parts?

If the matcher's teach allows a scale range, small size steps inside that range need no new model, so check the model's settings before teaching a family. Large steps are better as separate models selected by a coarse classifier, because score falls as the seen size moves from the trained size. Store each model's grasp offset with it, since the grip point scales with the part, not with the program.

How much cycle time does the vision step add per pick?

Budget 25-40 ms for capture and transfer in a static, well-lit scene, 30-150 ms for the taught-model match, which grows with scene complexity and the processor doing the matching, and 10-30 ms to hand the pose to the robot. That is roughly 70-220 ms of vision overhead. Robot travel usually dominates the cycle; measure the real match time at commissioning and reuse that number in the cycle budget.

Do I have to re-teach the model after moving the camera?

The taught object model usually survives: it describes the part's appearance and grasp point relative to the part itself. What breaks is the hand-eye calibration that maps camera pixels to robot coordinates, and any taught reference poses tied to the old camera position. After a camera move, refocus or lens change, rerun the hand-eye calibration and re-check the pick offset over ten cycles before releasing the cell.