SWIR1503BU SWIR Camera Imaging Experiment Report on Distinguishing Same-Color White Sugar and Salt

Author:Attostek    ·    Release Date :06/13/2026    ·    Category :Industrial Inspection

Experiment Overview

White sugar and table salt look very similar under visible light, making them difficult to distinguish through conventional visual inspection. However, their different chemical compositions result in different spectral absorption characteristics in the short-wave infrared (SWIR) region.

This experiment used the AttosTek SWIR1503BU camera to investigate the feasibility of distinguishing white sugar and salt through SWIR imaging. Images captured under different illumination and filtering conditions were compared with those from a visible-light camera to evaluate the differences in grayscale intensity and image contrast.

Camera Selection and Test Equipment

Distinguishing materials with similar appearances requires sufficient image contrast and a high signal-to-noise ratio (SNR). High quantum efficiency near the target wavelength is also important for capturing differences in reflected infrared signals.

The AttosTek SWIR1503BU was selected for this experiment based on its imaging performance at the 1300 nm wavelength.

Key Camera Specifications:

  • Maximum SNR: 62.98 dB
  • Quantum Efficiency: Approximately 75% at 1300 nm
  • Interface: 10GigE
Equipment/ComponentModel/Specification
SWIR CameraAttostek SWIR1503BU
Visible-Light CameraAttostek VIS028CU3.2-NC
Infrared Light Source1300 nm infrared light source
Optical Filter1300 nm infrared filter
Test SamplesWhite sugar and table salt
EnvironmentIndoor environment, 25°C

Experimental Setup and Procedure

Equal amounts of white sugar and table salt were placed within the camera’s field of view. The SWIR1503BU was fixed in position, and the focus, aperture, and exposure time were adjusted to obtain clear images.

To evaluate the effects of infrared illumination and spectral filtering, four imaging conditions were tested:

  1. Direct SWIR imaging: No additional infrared filter or fill light.
  2. With 1300 nm fill light: Additional infrared illumination to improve the reflected signal.
  3. With 1300 nm filter: Filtering out light outside the selected wavelength band.
  4. With both filter and fill light: Combining spectral filtering and infrared illumination.

A reference image was also captured using the VIS028CU3.2-NC visible-light camera from the same position for comparison.

Experimental Results and Analysis

4.1 Image Comparison

The visible-light camera captured both sugar and salt as white particles with similar brightness, making them difficult to distinguish.

In contrast, the SWIR1503BU revealed clear grayscale differences between the two materials. Sugar appeared darker, while salt appeared brighter.

Vis028cu3.2 Nc可见光相机拍摄糖和盐
VIS028CU3.2-NC visible-light imaging
Swir1503b10g短波红外相机拍摄糖和盐
Direct SWIR imaging
Swir1503b10g短波红外相机在1300nm光源补光下拍摄糖和盐
With 1300 nm fill light
Swir1503b10g短波红外相机使用1300nm滤光片拍摄糖和盐
With 1300 nm filter
Swir1503b10g短波红外相机在1300nm滤光片和光源下拍摄糖和盐
With both filter and fill light

The four imaging conditions produced the following results:

  • Direct SWIR imaging: Sugar and salt showed noticeable brightness differences.
  • 1300 nm fill light: Overall image brightness and material contrast improved.
  • 1300 nm filter: Filtering enhanced the grayscale separation between the two materials.
  • Filter + fill light: The best contrast was achieved, with sugar appearing dark gray and salt appearing bright white.

4.2 Quantitative Contrast Analysis

To evaluate the imaging results quantitatively, the average grayscale values of sugar and salt were measured under each condition.

The contrast was calculated using the following formula:

Contrast = (I_max − I_min) / Gray Scale Range

where I_max and I_min are the average grayscale values of salt and sugar respectively, and the gray scale range is 255 for 8-bit images.

Capture ConditionSalt Grayscale ValueSugar Grayscale ValueCalculated Contrast
SWIR1503BU direct capture114.467.40.18
With 1300 nm fill light139.883.30.22
With 1300 nm filter132.481.20.20
With 1300 nm filter and fill light149.187.40.24

The results show that combining a 1300 nm optical filter with matching infrared illumination achieved the highest contrast of 0.24, compared with 0.18 under direct SWIR imaging.

This demonstrates that appropriate wavelength selection and illumination can further improve material contrast in SWIR imaging.

Experimental Results and Analysis

The experiment demonstrates that the AttosTek SWIR1503BU can distinguish white sugar and table salt based on their different SWIR reflectance characteristics, even when their appearances are nearly identical under visible light.

Among the four tested conditions, combining a 1300 nm optical filter with matching infrared illumination produced the clearest grayscale separation.

With its high SNR and high quantum efficiency at 1300 nm, the SWIR1503BU provides an effective imaging solution for investigating material identification and sorting applications.

Potential applications include:

  • Food processing and ingredient sorting.
  • Sugar and salt identification.
  • Seasoning and powder material inspection.
  • Pharmaceutical raw material inspection.

For applications requiring improved imaging contrast, a 1300 nm optical filter combined with a matching infrared light source is recommended as a starting configuration. Further testing under actual production conditions is recommended to determine sorting accuracy and system performance.

Quick Consultation
Do you need more information about this solution?
Contact US
Share To:

latest articles

My experiment involves two cameras capturing images of the same object at the same time. Can your software handle this?

Yes. We can offer two solutions: Option 1: Use the software to connect and open multiple cameras at the same time, achieving synchronized multi-camera imaging, and you can save all the images to the same path. Option 2: Use another software that supports running two instances simultaneously, each performing multi-camera imaging, and you can save the images to different paths.
View details

How do you check if a camera is dropping frames?

If you're using trigger mode, you can directly compare the number of triggers to the final frame count of the camera. If you're using video mode, you can check for frame drops by looking at the continuity of the frame numbers.
View details

What’s the difference between optocoupler-isolated and non-isolated signals?

Optocoupler isolation will optimize the input trigger signal, while non-isolated signals won't. If the trigger signal quality is poor (has glitches), it might trigger falsely. If the trigger signal quality is good, it's recommended to use non-isolated signals, as its input rise delay (TDR) is only 0.02µs.
View details