Article sections
How does a camera form an image?Camera selection: resolution, field of view, and shutterHow do you start camera selection with the smallest defect?Frequently asked questionsHow does a camera form an image?
An image starts forming long before the colored frame we see on screen. A light source illuminates the part. Some of the light is absorbed, some is reflected, and some scatters in different directions depending on the surface's shape and material. The lens focuses the light reaching the camera onto the sensor. The sensor converts the light collected over a certain time into an electrical signal. Finally, this signal is read out as numerical pixel values.
Every step in this chain matters. If light from the surface is insufficient, the sensor collects less signal. If exposure is long while the part is moving, light from different positions overlaps in a single image. If the lens cannot transfer the required detail, having more sensor pixels does not solve the problem on its own.
How are pixels, signal, and noise related in a camera sensor?
It is easy to think of a pixel as just a small square on the screen. Its counterpart on the sensor, however, is a physical measurement element that responds to photons falling on a particular area. Even when the same scene is captured repeatedly with the same settings, the pixel value may not be identical. Statistical variation in photon arrival, sensor electronics, temperature, and the readout process all contribute.
Three concepts are particularly useful here: signal, noise and saturation. Signal is the response carrying the surface information we want to measure. Noise makes this response variable. Saturation is the point at which the sensor can no longer distinguish detail in a bright region. A white glare spot on a metal part may look very distinct in the image; however, if there is a fine scratch within that white region, the sensor may already have lost the ability to distinguish it.
This is why, when comparing cameras, it makes sense to consider not only megapixel count but also characteristics such as dark noise, quantum efficiency, dynamic range, and saturation capacity. Standardized characterization approaches such as EMVA 1288 exist to present these measurements comparably. [1]
The difference between exposure time, gain, and image processing settings
Exposure time determines how long the sensor collects light. Increasing this time generally produces more signal, but also increases the risk of motion blur. Gain is the amplification of the electrical signal obtained. It can make a dark image look brighter, but does not restore missing light; noise may also become more visible.
Operations such as gamma, white balance, sharpening, or automatic exposure change the image's appearance. Some are useful, but automatic settings changing from frame to frame can introduce unwanted uncertainty in measurement and defect inspection. Recording the camera's actual exposure, gain, pixel format, and processing settings during field testing is a seemingly small but important habit.
The difference between 8-bit and 12-bit also needs to be interpreted correctly. An 8-bit data format represents 256 levels per pixel, while 12-bit represents 4096 possible levels. However, 12-bit output does not automatically mean the sensor produces 12 bits of meaningful detail. Effective dynamic range, noise, and lighting conditions must be evaluated separately. [2]
Optical factors that determine image sharpness
Sometimes an image appears in focus, yet the target defect remains indistinguishable. The cause may be lens contrast transfer, diffraction, sensor sampling, or motion. If a scratch is visible at the center of the field of view while an identical scratch fades at the edge, examine not just focus adjustment but also lens performance across the field.
In the first prototype, it is therefore more informative to examine not only the frame in which the part looks best, but also its corners, edges, bright regions, and different heights together.
When do dynamic range, quantum efficiency, and sensor noise matter?
Imagine a dark recess and a bright edge on a machined metal part appearing in the same image. Shortening exposure enough to preserve the bright edge may reduce the signal in the recess; extending it to reveal the dark region may saturate the edge. The camera's dynamic range concerns the usable signal range between these two extremes. Higher bit depth alone does not increase this range.
Quantum efficiency (QE) concerns the proportion of photons reaching the sensor that can be converted into measurable electrical charge, and depends on wavelength. Read noise can impose a limit in low-signal regions, while saturation capacity can impose a limit in bright regions. Comparisons should therefore not be reduced to a single catalog value such as '12-bit' or 'X% QE.' Measurements such as those under EMVA 1288 provide a starting point for camera characterization; the final evaluation must be performed under the lighting that will be used.
| Parameter | What does it affect? | When is it critical? |
|---|---|---|
| Read noise | Discernibility of detail in weak signals | Short exposure and low light |
| Saturation capacity | Information loss in bright regions | Shiny metal or strong reflections |
| Quantum efficiency | Signal obtained at a particular wavelength | Limited light, NIR, narrowband LEDs |
| Dynamic range | Handling bright and dark regions in the same frame | High-contrast surface |
| Bit depth | Capacity to represent numerical levels | Precise intensity analysis and measurement |
Camera selection: resolution, field of view, and shutter
A product catalog lists numbers such as 5 MP, 12 MP, and 20 MP side by side. The higher number often seems like the safe choice. But starting camera selection with megapixels is like choosing a screw for a hole whose dimensions we do not know.
First, let's answer these two questions: How large is the physical area the camera needs to see at once? And how small is the smallest detail we want to distinguish?
How do you calculate field of view (FOV) and millimeters per pixel?
In our example, assume the camera needs to view an area that is 160 mm wide horizontally. If we record this area using 2448 horizontal pixels:
160 mm ÷ 2448 pixels ≈ 0.065 mm/pixel.
In other words, one pixel corresponds to a width of approximately 65 micrometers in the object plane. If the scratch we are looking for is approximately 0.15 mm wide, it theoretically spans 2.3 pixels. Using 4096 horizontal pixels over the same field of view gives approximately 0.039 mm/pixel, and the scratch spans 3.8 pixels.
This calculation is a starting point, not a guaranteed solution. A detail spanning a few pixels does not mean it will be detected under every condition. The lens's optical resolution, contrast between scratch and background, motion, sampling direction, and software approach affect the result. Fine, low-contrast defects may require a larger sampling margin.
The requirement should be framed as follows: saying 'the smallest defect is 0.15 mm' is not enough on its own. On what material, in which orientations, at what contrast, and against what validation criterion must this defect be detected? This question must also be answered.
How do you calculate exposure time from conveyor speed?
Now assume the part is moving along the conveyor at 0.4 m/s, or 400 mm/s. With an exposure of 5 milliseconds, the part moves 2 mm during that time. At 0.5 milliseconds, motion falls to 0.2 mm; at 0.1 milliseconds, it falls to 0.04 mm.
A simple approximation for the trail caused by motion is:
Motion distance ≈ Part speed × Effective exposure time
How do changes in resolution and exposure affect image quality?
A single calculation does not constitute optical design, but change the values below to explore a first approximation. Results are based on ideal geometric sampling; the lens, lighting, and noise are not included.
Note: This tool does not, on its own, determine defect detectability or whether a camera selection is correct.
This distance must be considered alongside the image's pixel scale. At the 0.039 mm/pixel scale in our example, the motion over 0.5 ms is 0.2 mm which corresponds to approximately 5 pixels. If a very fine line is being sought, this is unacceptably large.
Higher FPS is not always the solution. FPS indicates how many frames the camera produces per second; exposure indicates how long a single frame collects light. If a camera operating at 100 FPS uses a 5 ms exposure, the part still moves for 5 ms. Powerful, correctly timed strobe lighting can provide sufficient signal during a short exposure.
How should timing be arranged between the camera, sensor, and strobe?
On a moving line, when the camera acquires an image matters as much as how many pixels it contains. A photoelectric sensor detects the arriving part; the camera accepts the trigger signal; exposure starts; if needed, the light pulses during this interval; the data is read out and processed. The delay and variation of each step must be measured separately.
For example, at a conveyor speed of 400 mm/s, a 1 ms variation in trigger timing may shift the object's image position by approximately 0.4 mm. At the previously calculated scale of 0.039 mm/pixel, this corresponds to approximately 10 pixels. A fixed delay can be calibrated; variable delay (jitter) can cause the product to shift to unexpected positions in the frame.
400 mm/s × 0.001 s = 0.4 mm ≈ 10.3 pixels
For product counting and physical rejection applications, the camera trigger source, product identity, encoder count, and distance to the reject station must be defined on the same timeline. It must also be verified that the strobe pulse does not extend beyond camera exposure, to obtain repeatable brightness in every frame.
Differences between global shutter and rolling shutter
Global shutter exposes the sensor's pixels over the same time interval. Rolling shutter exposes rows at different times. With a fast-moving object, rolling shutter may cause skew or geometric displacement. However, not every rolling shutter application is problematic; object speed, readout speed, geometry, and required accuracy are decisive. [3]
On a moving production line, do not base the choice solely on price. Run the sample at its actual speed and check image deformation, displacement, and blur. If you will be measuring, quantify this effect in particular.
How do you calculate the line rate for a line-scan camera?
In a line-scan camera, one image axis is formed by pixels on the sensor and the other by the part's motion. If the desired sampling interval along product motion is 0.039 mm/line and line speed is 400 mm/s, approximately 10,256 lines/s are required. The camera, triggering system, and lighting must operate stably at this rate.
400 mm/s ÷ 0.039 mm/line ≈ 10,256 lines/s
Acquiring at a fixed line rate while speed varies may stretch or compress the image in the direction of motion. Encoder-based distance-triggered line acquisition can reduce this effect. However, encoder resolution, acceleration, slip, and actual product motion must also be considered. The accuracy of the trigger source is therefore as important as the nominal line rate.
What are ROI, binning, and pixel format used for?
ROI (Region of Interest) means reading only the required subregion of the sensor. Reducing the number of pixels read can reduce transfer load and, in some camera architectures, shorten the frame cycle. However, the speed benefit varies by model because of the sensor's readout method. Using an ROI also increases the risk of missing unexpected part shifts outside the image.
Binning is a method based on combining information from neighboring sensor pixels. Its implementation depends on the sensor's hardware or software capabilities; it may improve signal quality or reduce data at the expense of resolution. Decimation can reduce data by skipping some samples; it does not imply the same information benefit. When comparing, examine not just FPS but whether the target defect is actually preserved.
Output formats such as monochrome 8-bit, Bayer 8-bit, RGB 24-bit, or 10/12-bit packed change raw data volume and the processing pipeline. For the same 4096 × 3000 image, for example, raw 8-bit monochrome data is approximately 12.3 MB, compared with approximately 36.9 MB in 24-bit RGB format. Protocol overhead and other system traffic must also be accounted for when evaluating the interface's actual transfer capacity.
Comparison of area-scan and line-scan cameras
Area-scan cameras form a two-dimensional image at once. They are very practical if the part fits in one frame, its position is well controlled, and line speed is suitable. Line-scan cameras collect one or a few image rows at a time; as motion progresses, the rows are combined to form an image of a long surface.
This second approach can be useful for continuously moving sheet metal, paper, fabric, film, or wide rolls. What matters here is not only the camera's line rate, but also coordination between conveyor speed and line acquisition. If speed changes, encoder-based triggering helps keep the image consistent in physical scale. [4]
How do you choose between color and monochrome industrial cameras?
If the information you seek is genuinely color, for example an incorrectly colored cap, a print shade, or a marking check, a color camera may be necessary. By contrast, a monochrome camera may offer advantages for many defects detected through shape, edges, or light intensity differences. In most color cameras, Bayer filters cause different pixels on the sensor to sample different colors; this affects the structure of the raw data obtained.
A color camera's output converted to grayscale in software is not always equivalent to data from a native monochrome sensor. On the other hand, it would also be incorrect to say monochrome is superior for every problem. The choice should depend on the type of information that makes the defect visible.
Connectivity, data volume, and mechanical conditions
Camera selection does not end with image quality. An 8-bit monochrome image at 4096 × 3000 resolution carries approximately 12.3 MB of raw data. At 30 images per second, pixel data alone generates approximately 369 MB/s. The interface's actual capacity must be verified separately, accounting for packet headers, buffers, and transfer overhead. The data loads of 12-bit packed, 12-bit unpacked, and RGB formats are not the same either. [2]
When choosing between interfaces such as GigE Vision, USB3 Vision, Camera Link, or CoaXPress, evaluate cable length, topology, host hardware, bandwidth, triggering requirements, driver stability, and ease of maintenance together. The camera body's suitability for temperature, vibration, dust, and mechanical protection is also part of the design.
How do you start camera selection with the smallest defect?
A camera being 5 MP or 12 MP does not mean it will necessarily capture the defect. First determine the area the part must occupy in the image and the smallest physical detail that must be distinguished. Then calculate the sampling required along the image's horizontal and vertical axes. Looking only at total megapixel count may lead to insufficient resolution along one important direction.
With a horizontal resolution of 2,448 pixels, the scale is 160 / 2,448 = 0.0654 mm/pixel. A detail 0.15 mm wide spans approximately 2.3 pixels. This value may be borderline for detection; defect contrast and the detail the lens can transfer also matter. Using 4,096 horizontal pixels over the same area makes the defect span approximately 3.84 pixels. This may improve evaluation, but is not by itself a guarantee of adequacy.
Which sensor values should be compared alongside resolution?
The sensor data sheet should be examined not only for pixel pitch, but also for quantum efficiency, read noise, saturation capacity and dynamic range. For example, applying high electronic gain for a faint scratch in dark regions may amplify both signal and noise. Measurements obtained under EMVA 1288 conditions provide a more meaningful starting point for comparing cameras; however, actual application performance also changes if the lighting and optical setup differ.
Triggering and exposure are not the same thing
When a photoelectric sensor detects a part on a conveyor, it can send a digital trigger. The instant the camera actually starts acquiring the image is affected by input delay and camera settings. The strobe pulse must also align with this time window. Incorrect timing can produce a dark image, capture the part at two different positions, or place it partly outside the frame. The mechanical reference point, trigger delay, and lighting pulse must therefore be measured on the same timeline.
How do we validate camera selection in the field?
Prepare a small sample set of good, bad, and borderline products. Image each sample at actual production speed and under expected lighting conditions. Examine the smallest defect's pixel coverage, contrast, blur, and visibility separately. Choose the resolution, sensor, and interface combination that produces stable results in this test, rather than relying on catalog values.
Field of view and motion blur calculator
Simple physical relationships; does not include lens MTF, contrast, distortion, or timing delays.
Frequently asked questions
How many megapixels does the camera need?
Field of view and the smallest detail to distinguish must be calculated together. Pixel count along the relevant axis and defect contrast matter more than total MP.
Does increasing FPS reduce motion blur?
Not on its own. Blur is mostly determined by motion speed and effective exposure/light pulse duration.
Is global shutter always necessary?
It is often a strong starting point when moving parts pose a risk of geometric distortion; however, operating conditions and rolling shutter readout speed must be evaluated together.
Technical references
The text contains explanations supported by technical references and numerical examples for teaching purposes. The system values in the examples are not measurement results from an actual facility.