An image processing method for an electronic device, wherein the electronic device comprises an imaging apparatus comprising an image sensor , the image sensor comprises an array of photosensitive pixel units and an array of filter units arranged on the array of photosensitive pixel units , each filter unit corresponds to one photosensitive pixel unit and comprises a plurality of filters having a same color, each photosensitive pixel unit comprises a plurality of photosensitive pixels adjacent to each other, and each photosensitive pixel of a photosensitive pixel unit is covered by a filter, the image processing method comprises: controlling the image sensor to output a merged image, wherein, the merged image comprises merged pixels arranged in a Bayer array, the photosensitive pixels adjacent to each other in a same photosensitive pixel unit are collectively output as one merged pixel, and the merged image has a first brightness; controlling the image sensor to output a color-block image, wherein, the color-block image comprises image pixel units arranged in a preset array, the preset array comprises the Bayer array, each image pixel unit comprises a plurality of original pixels adjacent to each other, each photosensitive pixel corresponds to one original pixel, the color-block image has a second brightness, and the first brightness is greater than the second brightness; converting the merged image into a first image having the first brightness using a scaling algorithm, wherein, the first image comprises first pixels arranged in the Bayer array, and each photosensitive pixel corresponds to one first pixel; converting the color-block image into a second image having the second brightness using an interpolation algorithm, wherein, the second image comprises second pixels arranged in the Bayer array, and each photosensitive pixel corresponds to one second pixel; and merging the first image and the second image to obtain a high dynamic range, HDR, image; performing a white-balance compensation on the color-block image; and performing a reverse white-balance compensation on the second image. controlling the image sensor to output a merged image, wherein, the merged image comprises merged pixels arranged in a Bayer array, the photosensitive pixels adjacent to each other in a same photosensitive pixel unit are collectively output as one merged pixel, and the merged image has a first brightness; controlling the image sensor to output a color-block image, wherein, the color-block image comprises image pixel units arranged in a preset array, the preset array comprises the Bayer array, each image pixel unit comprises a plurality of original pixels adjacent to each other, each photosensitive pixel corresponds to one original pixel, the color-block image has a second brightness, and the first brightness is greater than the second brightness; converting the merged image into a first image having the first brightness using a scaling algorithm, wherein, the first image comprises first pixels arranged in the Bayer array, and each photosensitive pixel corresponds to one first pixel; converting the color-block image into a second image having the second brightness using an interpolation algorithm, wherein, the second image comprises second pixels arranged in the Bayer array, and each photosensitive pixel corresponds to one second pixel; and merging the first image and the second image to obtain a high dynamic range, HDR, image; performing a white-balance compensation on the color-block image; and performing a reverse white-balance compensation on the second image. <EOS>