The invention relates to a
crop classification method and
system based on
coded aperture snapshot calculation
spectral imaging, and the method comprises the following steps: S1, capturing an agricultural scene through an optical
encoder and an imaging element based on
compressed sensing, and obtaining an output result of the optical
encoder; s2, constructing a
data set of an output result of the optical
encoder and a real
label of the
crop variety, designing a
deep learning decoder, constructing a
deep learning framework, respectively carrying out training, testing and
verification, and finally obtaining a weight file of the model through
gradient descent; and S3, collecting compressed data through an optical encoder, and obtaining a
crop classification result of an agricultural scene and a hyperspectral image of the corresponding scene in real time through network reasoning by using the obtained weight file. According to the crop classification method and
system, an integrated method of optical hardware coding and decoding based on the
deep learning network is used for crop classification, the classification speed is greatly improved, and the data storage cost is reduced.