Abstract:The purity and moisture content of wheat seeds are two important indicators reflecting the quality of wheat seeds; Based on hyperspectral image technology, an automatic detection system for wheat seed purity/moisture content was developed. The detection system integrates system calibration, hyperspectral image acquisition, data analysis, model update, report output and other functional modules, which has the advantages of perfect function, easy operation and strong scalability; The developed system uses the STM32 control module, together with the SHT20 temperature and humidity detection module, light source control module and stepper motor drive module, to achieve operating environment information acquisition, platform motion control, light source power and hyperspectral camera focal length adjustment; Real-time acquisition of hyperspectral images and information interaction of STM32 control module are realized by using the host computer; Use python language to write the background logic and human-computer interaction interface of the software operation platform; The developed system and integrated data analysis model (partial least squares regression model, partial least squares identification model) can realize the high-precision detection of wheat seed moisture content (decision coefficient of 0.943, root mean square error of 0.0081g) and purity (accuracy of 96.5%, accuracy of 93.0%, recall rate of 93.0%); The designed wheat seed purity/moisture content detection system provides the possibility of promoting the field application of hyperspectral image technology in the field of wheat seed quality inspection.