A sugar content sorting device for Sanhua plums based on a near-infrared spectrum, comprising a spectral acquisition device (1) and a fruit sorting device (2), wherein the spectral acquisition device (1) is fixed to a top of the fruit sorting device (2), the spectral acquisition device (1) comprises a detection box (101) and photoelectric switches (102) symmetrically fixed to inner walls of two sides of the detection box (101), the detection box (101) is arranged in a square shape and has an opening through which a top is communicated with a bottom, inner walls of other two sides, which are not provided with the photoelectric switches (102), of the detection box (101) are respectively provided with a light source port (103) and an optical fiber port (104) which are adapted to each other;
- and
- the fruit sorting device (2) comprises a first sorting box (201) that is fixed to the bottom of the detection box (101) and is in communication with the detection box, and a first motor (202) fixed to an outer wall of the first sorting box (201), wherein an output shaft of the first motor (202) penetrates into the first sorting box (201) through a bearing and is fixed with a first baffle (203), a second sorting box (204) in communication with the first sorting box is fixed to a bottom of the first sorting box (201), a second motor (205) is fixed to an outer wall of the second sorting box (204), and an output shaft of the second motor (205) penetrates into the second sorting box (204) through a bearing and is fixed with a second baffle (206);
- wherein a spectrometer is arranged on a side, adjacent to an outside of the detection box (101), of the optical fiber port (104), the spectrometer at a position of the optical fiber port (104) uses a hard trigger mode, and when an external rising edge signal is transmitted to the spectrometer at the position of the optical fiber port (104), the spectrometer at the position of the optical fiber port (104) starts to acquire a spectrum of a current object, two photoelectric switches (102) are through-beam photoelectric switches, when Sanhua plum fruits pass between the two photoelectric switches (102), the photoelectric switches (102) detect an obstacle and generate a rising edge to be transmitted to the spectrometer at the position of the optical fiber port (104), and the spectrometer at the position of the optical fiber port (104) acquires current spectral information after receiving a signal, a velocity at which the first motor (202) controls the first baffle (203) to rotate to a top is configured to be greater than a falling velocity of the Sanhua plum fruits, and a velocity at which the second motor (205) controls the second baffle (206) to rotate to a top is configured to be greater than the falling velocity of the Sanhua plum fruits.