KeySight is an AI-powered visual inspection system developed to identify defective fruit directly on a moving production line. Using computer vision and deep learning, the solution detects individual apples, evaluates their quality, and classifies each one as acceptable or defective. The system is designed for real-time operation on compact NVIDIA Jetson hardware, making it suitable for integration with industrial cameras, conveyor systems, and automated sorting mechanisms.
Fruit quality inspection is often performed manually, making the process dependent on human attention and subjective judgment. Inspectors must evaluate products continuously while they move along a production line, which can lead to inconsistent results, overlooked defects, and production bottlenecks.
A reliable automated solution must detect fruit in motion, distinguish defective products from acceptable ones, and deliver results quickly enough to support real-time sorting. Our initial tests showed that performing detection and quality classification in a single stage did not provide the required precision. A more specialized approach was therefore needed.
We developed a two-stage computer vision pipeline using YOLOv8 and YOLO11. In the first stage, the system detects and locates each apple in the camera image. Once an apple has been identified, the detected image region is passed to a separate binary classification model.
The second-stage model classifies the apple into one of two categories:
In addition to detection and classification, the system tracks each apple as it moves along the production line. Every apple is assigned a persistent instance identity, allowing the system to recognize the same product across multiple video frames. This enables the model to inspect an apple several times during its movement and from different visible angles. Instead of making a final decision from a single image, the system combines the current prediction with previous classifications associated with the same tracked apple. Using multiple observations reduces the impact of temporary occlusion, motion blur, lighting changes, or an unfavorable viewing angle. The final quality decision is therefore based on a more complete visual assessment of each individual apple.
Separating object detection from quality classification produced more reliable results than using a single model to perform both tasks simultaneously. It also allowed each part of the system to be optimized independently. The final models were optimized for deployment on NVIDIA Jetson devices. Their compact size enables fast inference close to the production line without requiring images to be transferred to an external cloud service.
The completed system achieved precision above 90% when identifying defective apples. The two-stage architecture delivered better results than the original single-stage approach by separating apple detection from quality classification. Instance tracking further improved the reliability of the inspection process by allowing each apple to be evaluated across multiple frames.
Rather than relying on one image, the system uses several observations of the same apple from different angles and considers its previous classification results. This provides a more stable final decision and reduces errors caused by poor visibility, motion blur, partial occlusion, or temporary changes in lighting.
The optimized models are small enough to perform fast inference on NVIDIA Jetson hardware. This enables detection, tracking, classification, and decision-making to run directly beside the production line in real time. The solution can be connected to industrial cameras and automated sorting equipment, creating a complete workflow for detecting, evaluating, and removing defective apples before they continue to the next production stage.
From Edge AI inference to production firmware, we turn complex embedded challenges into real, deployable solutions. Let's talk.