The application discloses a spectral super-resolution method based on a variational
autoencoder, and comprises the following steps: inputting a target
RGB image into a first convolutional layer of a spectral super-resolution network to obtain a plurality of feature maps containing shallow layer features corresponding to the target
RGB image; inputting the feature maps into an attention mechanism module of the spectral super-resolution network to perform
feature mapping on the feature maps; inputting the feature maps subjected to the
feature mapping into a second convolutional layer of the spectral super-resolution network to reconstruct a target hyperspectral image corresponding to the target
RGB image; and training the spectral super-resolution network according to a first hyperspectral image and a first RGB image extracted by the variational
autoencoder, wherein the first hyperspectral image is reconstructed by the untrained spectral super-resolution
network on the basis of a training RGB image. The target RGB image is acquired by a common camera, so that the
image acquisition difficulty is low, and the hyperspectral image is reconstructed by the spectral super-resolution network, so that the imaging time is short, and the method can be widely applied to the field of spectral super-resolution.