A white balance compensation method, characterized in that the method comprises: obtaining color information of each of M first regions comprised in a first image, the first image being an image acquired by a spectral sensor; performing white balance compensation using a target numerical value for a second image acquired by a color sensor, and obtaining color information of each of M second regions comprised in the white-balance compensated second image, each of the M second regions corresponding to a respective one of the M first regions; and for an i-th second region of the M second regions, in a case that first color information and second color information meet a preset condition, performing white balance compensation for the i-th second region according to the first color information and the second color information, wherein the first color information is color information of the i-th second region, and the second color information is color information of a first region corresponding to the i-th second region; wherein M is an integer greater than 1, and i is a positive integer less than or equal to M; the first color information is a first color value, the second color information is a second color value, the preset condition is that an absolute value of a difference between the first color value and the second value is greater than or equal to a preset color value; wherein the performing white balance compensation for the i-th second region according to the first color information and the second color information comprises: using a product of the first color value and a first preset ratio as a first compensation value; using a product of the second color value and a second preset ratio as a second compensation value; using a sum of the first compensation value and the second compensation value as a target compensation value; and performing white balance compensation for the i-th second region according to the target compensation value. obtaining color information of each of M first regions comprised in a first image, the first image being an image acquired by a spectral sensor; performing white balance compensation using a target numerical value for a second image acquired by a color sensor, and obtaining color information of each of M second regions comprised in the white-balance compensated second image, each of the M second regions corresponding to a respective one of the M first regions; and for an i-th second region of the M second regions, in a case that first color information and second color information meet a preset condition, performing white balance compensation for the i-th second region according to the first color information and the second color information, wherein the first color information is color information of the i-th second region, and the second color information is color information of a first region corresponding to the i-th second region; wherein M is an integer greater than 1, and i is a positive integer less than or equal to M; the first color information is a first color value, the second color information is a second color value, the preset condition is that an absolute value of a difference between the first color value and the second value is greater than or equal to a preset color value; wherein the performing white balance compensation for the i-th second region according to the first color information and the second color information comprises: using a product of the first color value and a first preset ratio as a first compensation value; using a product of the second color value and a second preset ratio as a second compensation value; using a sum of the first compensation value and the second compensation value as a target compensation value; and performing white balance compensation for the i-th second region according to the target compensation value. using a product of the first color value and a first preset ratio as a first compensation value; using a product of the second color value and a second preset ratio as a second compensation value; using a sum of the first compensation value and the second compensation value as a target compensation value; and performing white balance compensation for the i-th second region according to the target compensation value.