To meet the practical needs of rapid and non-destructive detection in fruit and vegetable processing, this paper designs a developed portable near-infrared spectrum quality-detection device. In this design, the digital micromirror device of the near-infrared micro-electromechanical system is used as the light splitting element, and the detection information is obtained by a single-point detector, to realize the miniaturization design of the spectrum detection system and significantly reduce the cost. Moreover, the quality inspection model is established based on the PLS method and the principal component analysis method. From the results of the prediction set, the model established by the logarithm of the original absorption spectrum (1/R) and the PLS method is applicable, with a high correlation coefficient (0.9537) and low corrected root mean square error (0.3776). This research can provide reference data for the design of low-cost, practical, and miniaturized near-infrared spectrum detection systems.