Design and Implementation of a Real-Time Hyperspectral–RGB Inspection System for Tobacco Foreign Object Sorting
Abstract
Real-time detection of visually similar foreign objects in industrial processes poses significant challenges for high-speed inspection systems. This article presents a hardware-software co-designed multimodal inspection system that integrates near-infrared hyperspectral (NIRH) and red-green-blue (RGB) line-scan imaging for robust object detection. Hyperspectral signals are processed by a custom 1-D convolutional neural network (1DCNN), while RGB images are analyzed using a you only look once (YOLO)-family model. The complementary sensing and processing strategy allows the system to leverage spectral and spatial information jointly, enhancing detection accuracy in complex environments. Detection results are first converted into actuation commands, which are then fused and executed by an field-programmable gate array (FPGA)-based controller that performs precise timing alignment and synchronizes a high-speed nozzle array, achieving hard real-time operation. Experimental evaluation demonstrates that the proposed framework achieves high detection reliability, low latency, and effective hardware–software integration, illustrating its potential for deployment in edge industrial inspection applications.