Cameras & sensorsGuide

Digital camera image acquisition for machine vision

Choose a digital camera image acquisition path for inspection, with interface comparisons, pixel and bandwidth calculations, triggering and image saving.

LumaSpec Vision11 min read Share on LinkedIn

On this page 11 sections
  1. 01Choose the acquisition path before choosing hardware
  2. 02Turn the smallest defect into a pixel requirement
  3. 03Compare interfaces against the complete station
  4. 04Calculate transfer, memory and saving loads separately
  5. 05Build acquisition around buffers rather than files
  6. 06Plan triggering for the inspection you will automate
  7. 07Save evidence without changing the inspection image
  8. 08Use catalog parts as acquisition-path candidates
  9. 09Recognize when the usual answer is wrong
  10. 10Check the complete chain before ordering
  11. 11Questions

For small-part inspection, choose a camera that sends digital image data directly to the acquisition computer, then size the optics, interface and software around the smallest defect you must detect. A large preview image alone does not establish inspection capability. This guide helps you separate camera resolution from display enlargement, choose the acquisition hardware, calculate data rates and save defect images reliably. Plan the trigger and frame identification now if the station may later make automatic inspection decisions.

Choose the acquisition path before choosing hardware

The usual starting point is a digital machine-vision camera connected through a supported host interface. The software receives image buffers, processes or displays them, and writes selected images to storage. Recording an image does not require converting it to analog video first.

Neither CCD nor CMOS identifies the camera's external interface. Those terms describe sensor technology, not whether a camera sends analog video, USB data or Ethernet packets. Check the camera's actual output and supported acquisition software.

The main acquisition paths differ as follows:

Camera output Host acquisition path Main integration check
GigE Vision Compatible Ethernet adapter and acquisition software Driver support, network configuration and available bandwidth
USB3 Vision Compatible USB host controller and acquisition software Controller sharing, cable suitability and sustained transfer
Camera Link Compatible frame grabber and camera connection Supported configuration, timing and camera control
CoaXPress Compatible frame grabber and camera connection Link configuration, host bandwidth and trigger handling
Analog video Capture hardware supporting the exact video format Sampling, interlacing and capture format

Browse area scan cameras by the required output rather than the sensor label. The camera finder helps narrow the interface, shutter and resolution choices.

An existing analog camera can still serve a suitable task, but its capture hardware cannot recover detail that the video output never carried. The guide to analog capture distortion and frame-grabber settings covers that separate acquisition path.

Turn the smallest defect into a pixel requirement

Start with the required field of view and the smallest feature you need to distinguish. Display enlargement is not optical magnification and does not add captured information. Enlarging a blurred scratch across a larger monitor only makes the blur larger.

For an initial sampling estimate, calculate the number of pixels needed across the inspection width:

Object sampling = field width / horizontal pixel count Required horizontal pixels = field width × pixels across feature / feature width

Suppose the inspection must cover a width of 20 mm and find a feature measuring 0.05 mm across. Using an initial target of 4 pixels across that feature:

Required horizontal pixels = 20 mm × 4 / 0.05 mm = 1600 pixels Object sampling = 20 mm / 1600 = 0.0125 mm/pixel

Four pixels across a feature is a planning assumption, not a detection guarantee. Contrast, focus, motion, lens performance and the inspection algorithm determine whether it is adequate. Measurement tasks may need substantially more sampling and a separate uncertainty assessment.

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

Use actual horizontal and vertical pixel counts when checking a candidate camera. Total megapixels alone do not show whether the required inspection rectangle fits.

For reflective metal parts, prove that the defect remains visible across acceptable surface finishes and part orientations. Additional pixels will not resolve a scratch that disappears into glare.

Compare interfaces against the complete station

For a single inspection station, GigE Vision and USB3 Vision are practical starting points when their supported operating modes meet the task. Neither interface is universally better. Choose according to software support, cable routing, host resources and the required sustained transfer rate.

GigE acquisition needs a suitable network adapter and a deliberate network arrangement. USB acquisition needs a suitable host controller; separate connectors can still share controller bandwidth. Connector count is not a reliable measure of independent acquisition capacity.

Camera Link and CoaXPress require dedicated receiving hardware. Their suitability depends on the camera mode, compatible frame grabber and the host's ability to accept the incoming data.

Frame grabbers and interface adapters are not interchangeable merely because they fit an available computer slot. The accessories finder helps locate interface hardware and matching camera cables.

If the selected camera requires dedicated receiving hardware, follow the acquisition sequence in frame-grabber capture for Camera Link and CoaXPress.

Calculate transfer, memory and saving loads separately

Estimate the uncompressed image payload before allowing for transport overhead. Use the transmitted pixel format, not just the sensor's nominal bit depth.

Image payload = width × height × transmitted bits per pixel / 8 Payload rate = image payload × frames per second

Consider an assumed monochrome acquisition mode with 1600 × 1200 pixels, an 8-bit transmitted format and 30 frames per second:

Image payload = 1600 × 1200 × 8 / 8 = 1,920,000 bytes = 1.92 MB Payload rate = 1.92 MB × 30 = 57.6 MB/s Bit rate = 57.6 MB/s × 8 = 460.8 Mbit/s

These calculations use decimal MB. They exclude packet overhead, metadata and any row padding. A format transported in a wider container increases the payload; for example, a 16-bit container uses twice the bytes of an 8-bit container at the same dimensions.

The camera interface, host connection, memory handling and storage system each need adequate capacity. A nominal link rate above the calculated payload is necessary, but it does not prove reliable operation.

Saving every frame in this example produces:

Data per minute = 57.6 MB/s × 60 s = 3456 MB = 3.456 GB

If only 1% of frames are retained, the average raw image volume becomes 34.56 MB per minute. However, the acquisition path must still receive every inspected frame. Selective saving reduces storage traffic, not necessarily camera traffic.

When measured performance falls short, use camera throughput bottleneck checks to separate exposure, transport and host limitations.

Build acquisition around buffers rather than files

The software should acquire into memory, associate each frame with its identity, and send work to inspection and saving stages. Avoid making acquisition wait for a file to finish writing.

A practical pipeline contains these stages:

  1. Configure the camera and allocate acquisition buffers.
  2. Start acquisition and establish trigger readiness.
  3. Receive a complete frame and record its frame identifier and available timestamp.
  4. Inspect the image or retain it for operator review.
  5. Queue selected images and metadata for saving.
  6. Release or requeue the acquisition buffer when no consumer still needs it.

Buffer ownership matters. Some acquisition libraries reuse image memory after the application returns a buffer. Passing a pointer to a background saving thread without retaining ownership or copying the image can produce corrupted records.

For the worked example, ten raw image buffers require approximately:

Buffer memory = 10 × 1.92 MB = 19.2 MB Nominal buffering interval = 10 / 30 frames/s ≈ 0.33 s

That is only raw pixel memory. Processing copies, converted images and file-writing queues require additional space. A larger buffer pool absorbs brief delays but cannot correct sustained processing slower than acquisition.

Before selecting a programming environment, verify the camera driver, acquisition library, operating system and required pixel formats. The guide to camera acquisition software integration options explains this compatibility decision.

Plan triggering for the inspection you will automate

Continuous acquisition is convenient for setting focus and reviewing stationary parts. It is not automatically the right production method. A moving part may need a hardware trigger so that exposure occurs at a repeatable position.

Choose among the following operating patterns:

  • Free-running acquisition: suitable for live adjustment and tasks where every frame is inspected without a separate part event.
  • Software triggering: useful for operator-requested images when host scheduling variation is acceptable.
  • Hardware triggering: appropriate when an electrical event must initiate capture with controlled timing.

Verify the camera's documented trigger inputs, electrical requirements and timing behavior. Never assume that a connector accepts the voltage available from another device.

Exposure also limits useful capture. For a simple motion estimate:

Object-space blur = object speed × exposure time

At an assumed speed of 100 mm/s and exposure of 0.0001 s, the object moves 0.01 mm during exposure. With the earlier sampling of 0.0125 mm/pixel, that corresponds to approximately 0.8 pixel of motion. This estimates translation blur only; it does not include vibration or optical blur.

Shorter exposure requires sufficient illumination. A global shutter avoids rolling-shutter geometric distortion, but it does not eliminate motion blur during exposure.

Keep the acquisition session running rather than repeatedly opening the camera for individual captures. For implementation details, use hardware-triggered capture in Python or GUI-button software capture, according to the chosen operating pattern.

Save evidence without changing the inspection image

Decide whether saved images are for operator explanation, algorithm development or quantitative analysis. Those purposes can require different records.

A display preview may have contrast adjustment, color conversion or overlays that are absent from the acquired pixels. For analysis, retain the original pixel data in a format that preserves the required bit depth. Save an annotated preview separately when operators need visible defect locations.

Useful metadata includes:

  • Part identifier and inspection sequence number.
  • Camera frame identifier and available acquisition timestamp.
  • Exposure, gain and inspection recipe identifier.
  • Inspection decision and measured values.
  • Pixel format and image dimensions.
  • Save completion status or a reported write failure.

Check the saved file by reopening it and comparing its dimensions, pixel type and representative pixel values against the source buffer. A readable file is not proof that the original intensity data survived.

If the inspection needs more than display-oriented intensity data, follow the checks in preserving camera image bit depth when saving.

Use catalog parts as acquisition-path candidates

The following camera options illustrate direct digital acquisition through different host interfaces. They are starting points for compatibility checks, not a substitute for proving image quality on your parts.

The LS-CMR-0053 provides a GigE camera option. The LS-CMR-0166 provides a USB3 camera option. Both are listed with rolling shutters, so assess part motion before choosing either for a moving inspection.

Area scan cameras12 MP GigE area scan camera, IMX226, 1/1.7" rolling shutter, 9 fps (LS-CMR-0053)LS-CMR-0053
Sensor format
1/1.7"
Lens mount
C-mount
$560.00View part
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

For a GigE host connection, the LS-FGB-0004 is a catalog interface-card candidate. Check the host slot, driver support, power requirements and compatibility with the complete acquisition arrangement before ordering.

Frame grabbersPCIe x4 4-port PoE Gigabit Ethernet card, Intel i210AT (LS-FGB-0004)LS-FGB-0004
Interface
GigE
$359.00View partBuild a system with it

For the data connection, compare the LS-CBL-0199 GigE cable with the LS-CBL-0219 USB3 cable according to the selected interface. Confirm connector fit, retention, route and permitted motion for the actual installation.

Do not add a camera I/O cable solely because the system saves images. Its purpose depends on the camera's documented power, trigger and output arrangement. The guide to when camera GPIO cabling is needed helps separate those functions from image transfer.

Recognize when the usual answer is wrong

A general-purpose area-scan camera is not always the best starting point. A very small field of view may require microscope optics, careful mechanical support and a much tighter focus allowance. Choose the optical arrangement from the required object sampling and working clearance, not the desired screen enlargement.

Retaining an existing analog camera may be reasonable when it already resolves the defect and its timing meets the task. Conversely, adding a capture adapter is not a resolution upgrade when the original video signal is the limiting stage.

For moving parts, reject a camera that meets the pixel calculation but produces unacceptable distortion. For color-dependent defects, validate the complete color acquisition and lighting arrangement rather than assuming monochrome contrast will remain sufficient.

A manual review station also differs from unattended production. Automatic operation needs frame-to-part association, controlled error handling and a defined response when acquisition or saving fails. An inspection image is not a safety-rated machine signal; any safety function requires its own compliant design.

Check the complete chain before ordering

Use this checklist to turn a successful demonstration into a repeatable acquisition specification:

  • Defect visibility: test representative good and defective parts, including normal finish variation.
  • Sampling: record field dimensions, image dimensions and pixels across the smallest required feature.
  • Motion: verify exposure and shutter behavior at the intended operating speed.
  • Interface: confirm the exact camera mode, acquisition driver and host connection.
  • Capacity: calculate payload, then measure sustained acquisition, processing and saving together.
  • Triggering: prove readiness, event association and behavior when triggers arrive too quickly.
  • Memory: define buffer ownership, queue limits and the response to overload.
  • Evidence: reopen saved images and verify pixel data, metadata and part identity.
  • Recovery: test startup, controlled shutdown, connection loss and storage failure.
  • Acceptance: define the required run duration, allowed frame loss and response to missing records.

Begin with the camera system configurator once the field of view, defect size and acquisition rate are defined. For a compatibility review, send those requirements and the intended trigger and saving behavior through application support.

Questions

Can a machine-vision camera transfer images without analog conversion?

Yes. A digital machine-vision camera can transfer pixel data through a supported interface to acquisition buffers in the computer. The required hardware depends on that interface: Ethernet and USB use compatible host connections, while Camera Link and CoaXPress require compatible frame grabbers. Confirm software support before choosing the camera.

Do I need a frame grabber to save inspection images?

Not necessarily. GigE Vision and USB3 Vision cameras normally use compatible host interfaces and acquisition software rather than dedicated Camera Link or CoaXPress receiving hardware. An additional interface adapter may still be appropriate for host compatibility, available connections or power. Start with the camera's documented acquisition requirements.

How should I specify resolution instead of screen magnification?

Define the object field of view and the smallest defect, then estimate the pixels needed across that defect. Screen enlargement changes presentation but adds no captured detail. Validate the sampling estimate with representative parts because lens performance, contrast, focus and motion can limit detection even when the pixel count appears sufficient.

Does saving only defective images reduce acquisition bandwidth?

A selected-image saving policy can substantially reduce storage volume. However, the camera link and inspection pipeline still need to handle every frame used for decision-making. Provide bounded save queues, preserve the image until writing finishes, and report failures so that a missing record is not mistaken for a successful save.

When should hardware triggering be included in the design?

Plan hardware triggering when capture must follow a physical event with repeatable timing, especially for moving parts. Confirm electrical compatibility and documented timing before wiring. Software triggering can suit operator-requested stationary images, while continuous acquisition is useful for setup and inspections that process the ongoing image stream.