7 min read · Machine vision

A packing house wants to grade tomatoes or limes to a consistent standard, and someone offers two kinds of camera: an ordinary color camera and a hyperspectral camera. The question to ask first is: what exactly do we need to measure? Each camera sees a different amount.
This article helps you choose based on what you need to measure. For the principle of sorting fruit with hyperspectral imaging, read our existing article on AI fruit sorting. We do not repeat it here.
Start from what you need to measure, not the camera type
Sorting targets fall into two broad groups. The first is what the human eye can see. The second is what is inside the fruit.
- Color and ripeness on the surface: judged from the color of the skin, such as green, yellow or red
- Size, shape and surface defects: bruises, cracks, black spots
- Internal properties: sweetness, dry weight, moisture, which the eye cannot see
The first two can usually start with a color camera. The third needs more data than color, and needs a way to measure the true value for comparison.
How a color camera differs from a hyperspectral camera
An RGB camera (an ordinary color camera) records light in three color bands, red, green and blue, for each pixel. A hyperspectral camera records the light spectrum at each pixel, that is, how much light at each wavelength is reflected back. The camera maker Specim explains that this technique combines spectroscopy with imaging, so every pixel carries a full spectrum.
The wavelength range depends on the camera model. Examples from Specim product pages: the FX10 covers 400–1000 nanometers (VNIR, the visible light range continuing into the near infrared), and the FX17 covers 900–1700 nanometers (NIR, the near infrared). The product page for the latter says it suits tasks such as measuring sugar in fruit and vegetables.
In short, a color camera shows what the surface looks like, while a hyperspectral camera gives extra data that may be linked to internal substances. But that data is not a sweetness value directly. You have to build a model to convert it.
Internal values need reference data
One research example measured the sweetness of Tribute Citru oranges using a hyperspectral camera in two ranges (400–1000 and 900–1700 nanometers). The team cut the oranges, squeezed the juice, measured it with a refractometer (a Brix meter), and then used those values to teach a model to predict from the spectrum. They used 458 fruits.
What we can learn is that a predicted value needs a real instrument to provide the answer key, and measuring that answer key destroys the fruit. This study also compared the side of the fruit that was imaged (the stem side and the blossom-end side), which shows that the way the fruit is placed is a variable that should be kept constant.
Another study, on pineapples, used a digital sugar meter as the reference value and split 90 fruits for building the model and 10 for testing. The authors themselves admit that the sample is small and comes from a single source, so do not generalize a good result to other fruits or other seasons.
Hypothetical example: a tomato packing house wants to separate out the 'sweet enough' ones. It first tries a color camera to select deep red fruit, then randomly picks 40 fruits and measures Brix with a real instrument. It finds that 25 fruits are deep red according to the color camera, but only 16 of them pass the sweetness threshold. That is 16 ÷ 25 = 64%, which means color alone does not tell sweetness well enough. These numbers are made up to show the way of thinking. They are not results from a real customer or project.
Lighting and calibration
A hyperspectral camera is more sensitive to light than a color camera. The studies above describe correcting the image with a white reference panel and a dark image (dark current), to compensate for uneven lighting and the camera's noise.
- Use the same type and position of light every time, and block outside light that changes over time
- Capture the white reference panel and the dark image at the set intervals
- Place the fruit in the same orientation, for example stem side up
- If you change the lights or the camera, test the model again
Set up the sample set and reference values
- Collect fruit that covers the varieties, growing areas and seasons you will actually use
- For each fruit, capture the image first, then measure the true value with a reliable instrument, such as a Brix meter
- Split the data into a set to build the model and a test set the model has never seen
- Try a color camera with the same target value first; if it is good enough, there is no need to add complexity
- Test with a new fruit lot collected on a different day before using it on the real conveyor
Speed, upkeep and value for money
A hyperspectral camera used in line-scan mode needs the fruit to move past the camera at a steady speed, so you have to control the conveyor speed and the image timing. The data is also much larger than color images, so you need a computer that can handle it.
- Color camera: easy to set up, small data, suits color, size and surface defects
- Hyperspectral: gives spectral data, but needs samples, a reference instrument and someone to maintain the model
- Budget: compare it against the question that needs answering, not against the camera specs
Checklist before choosing
- Write down clearly what you need to measure and what the pass and fail criteria are
- Does the owner of the work have a reference instrument and an agreed measuring method yet
- Are there samples from several lots and several growing areas, covering the full season
- Have you tried a color camera against the same criteria yet
- Can you control the lighting, the fruit orientation and the conveyor speed
- Is there someone to maintain the model and test again when the variety or the season changes
When it fits, and the limits
Choosing a method that matches the question helps you avoid investing more than necessary. If the criteria are color and defects, a color camera is usually enough. If you need to look at internal values and you have a reference instrument, hyperspectral is worth a try.
The key limit is this: do not claim that a camera can read sweetness or anything inside the fruit for every kind of fruit. The model must be validated separately by type, variety and data range, and results in a study are not a guarantee that your conveyor will perform the same.
Start a conversation with BT San
If you are thinking about inspecting produce with a camera, prepare three things: the type and variety of fruit, the property you need to check, and the method you now use to measure the reference value. If possible, take photos of the conveyor or the place where it will be installed. Then consult the BT San team to see whether you should start with a color camera or try hyperspectral.




