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/Component | Model/Specification |
|---|---|
| SWIR Camera | Attostek SWIR1503BU |
| Visible-Light Camera | Attostek VIS028CU3.2-NC |
| Infrared Light Source | 1300 nm infrared light source |
| Optical Filter | 1300 nm infrared filter |
| Test Samples | White sugar and table salt |
| Environment | Indoor 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:
- Direct SWIR imaging: No additional infrared filter or fill light.
- With 1300 nm fill light: Additional infrared illumination to improve the reflected signal.
- With 1300 nm filter: Filtering out light outside the selected wavelength band.
- 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.





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 Condition | Salt Grayscale Value | Sugar Grayscale Value | Calculated Contrast |
|---|---|---|---|
| SWIR1503BU direct capture | 114.4 | 67.4 | 0.18 |
| With 1300 nm fill light | 139.8 | 83.3 | 0.22 |
| With 1300 nm filter | 132.4 | 81.2 | 0.20 |
| With 1300 nm filter and fill light | 149.1 | 87.4 | 0.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.