An image compensation method, comprising: acquiring (S301) a Hall value of an electronic device, wherein the electronic device is provided with a first camera and a second camera, and at least one of the first camera and the second camera is provided with an optical image stabilization, OIS, system; wherein the Hall value is a current or voltage value measured by a Hall sensor; acquiring (S302) a lens bias corresponding to the Hall value; wherein the lens bias refers to magnitude and direction of lens movement, and the lens movement is a movement of the first camera or the second camera in x direction or y direction; calculating (S303) an image bias corresponding to the lens bias according to a preset OIS calibration function; wherein the image bias is relative to an image at an initial time point, the preset OIS calibration function reflects a corresponding relationship between the image bias and the lens bias; and performing (S304) image compensation by using the image bias on at least one of a first image captured by the first camera and a second image captured by the second camera at the same time; the method being characterized in that said step of acquiring a Hall value comprises: acquiring angular velocity information of a gyroscope at a higher rate than images are acquired; acquiring Hall values synchronously with gyroscope data; calculating an average value of all angular velocity values corresponding to an image frame; selecting an angular velocity value with a smallest difference from the average value; selecting the Hall value corresponding to the selected angular velocity value. acquiring (S301) a Hall value of an electronic device, wherein the electronic device is provided with a first camera and a second camera, and at least one of the first camera and the second camera is provided with an optical image stabilization, OIS, system; wherein the Hall value is a current or voltage value measured by a Hall sensor; acquiring (S302) a lens bias corresponding to the Hall value; wherein the lens bias refers to magnitude and direction of lens movement, and the lens movement is a movement of the first camera or the second camera in x direction or y direction; calculating (S303) an image bias corresponding to the lens bias according to a preset OIS calibration function; wherein the image bias is relative to an image at an initial time point, the preset OIS calibration function reflects a corresponding relationship between the image bias and the lens bias; and performing (S304) image compensation by using the image bias on at least one of a first image captured by the first camera and a second image captured by the second camera at the same time; the method being characterized in that said step of acquiring a Hall value comprises: acquiring angular velocity information of a gyroscope at a higher rate than images are acquired; acquiring Hall values synchronously with gyroscope data; calculating an average value of all angular velocity values corresponding to an image frame; selecting an angular velocity value with a smallest difference from the average value; selecting the Hall value corresponding to the selected angular velocity value. acquiring angular velocity information of a gyroscope at a higher rate than images are acquired; acquiring Hall values synchronously with gyroscope data; calculating an average value of all angular velocity values corresponding to an image frame; selecting an angular velocity value with a smallest difference from the average value; selecting the Hall value corresponding to the selected angular velocity value. <EOS>