A method for obtaining exposure compensation values of a high dynamic range image, comprising: determining (S 101) a plurality of color channel histograms corresponding to a current scene, wherein the color channel histograms each comprise a corresponding relationship between different brightness values and pixel ratios in different color channel histograms corresponding to the current scene; determining (S 102) an underexposure degree and an overexposure degree of the current scene, according to a preset normal exposure brightness threshold, a preset pixel ratio threshold, and the corresponding relationship between different brightness values and pixel ratios, wherein the method is characterized in that the normal exposure brightness threshold comprises a first exposure brightness threshold; the pixel ratio threshold comprises a first pixel ratio threshold, determining the underexposure degree of the current scene comprises: in each of the color channel histograms, obtaining a sum of the pixel ratios according to an ascending order of brightness value from low to high until the sum of the pixel ratios reaches the first pixel ratio threshold; determining a plurality of first brightness values of each of the color channel histograms when the sum of the pixel ratios reaches the first pixel ratio threshold; and determining the underexposure degree of the current scene according to a first brightness difference between the minimum value of the first brightness values and the first exposure brightness threshold; and determining an underexposure compensation value and an overexposure compensation value of the current scene, according to the underexposure degree and the overexposure degree of the current scene. determining (S 101) a plurality of color channel histograms corresponding to a current scene, wherein the color channel histograms each comprise a corresponding relationship between different brightness values and pixel ratios in different color channel histograms corresponding to the current scene; determining (S 102) an underexposure degree and an overexposure degree of the current scene, according to a preset normal exposure brightness threshold, a preset pixel ratio threshold, and the corresponding relationship between different brightness values and pixel ratios, wherein the method is characterized in that the normal exposure brightness threshold comprises a first exposure brightness threshold; the pixel ratio threshold comprises a first pixel ratio threshold, determining the underexposure degree of the current scene comprises: in each of the color channel histograms, obtaining a sum of the pixel ratios according to an ascending order of brightness value from low to high until the sum of the pixel ratios reaches the first pixel ratio threshold; determining a plurality of first brightness values of each of the color channel histograms when the sum of the pixel ratios reaches the first pixel ratio threshold; and determining the underexposure degree of the current scene according to a first brightness difference between the minimum value of the first brightness values and the first exposure brightness threshold; and determining an underexposure compensation value and an overexposure compensation value of the current scene, according to the underexposure degree and the overexposure degree of the current scene. in each of the color channel histograms, obtaining a sum of the pixel ratios according to an ascending order of brightness value from low to high until the sum of the pixel ratios reaches the first pixel ratio threshold; determining a plurality of first brightness values of each of the color channel histograms when the sum of the pixel ratios reaches the first pixel ratio threshold; and determining the underexposure degree of the current scene according to a first brightness difference between the minimum value of the first brightness values and the first exposure brightness threshold; and determining an underexposure compensation value and an overexposure compensation value of the current scene, according to the underexposure degree and the overexposure degree of the current scene.