TECHNICAL FIELD

The present disclosure relates to, but is not limited to, the field of imaging technology, in particular to an image processing method, an electronic device and a storage medium.

BACKGROUND

With the development of science and technology, smart mobile terminals (such as smart phones, tablets, etc.) are becoming more and more popular. The vast majority of smartphones and tablets have built-in cameras, and with the enhancement of mobile terminal processing power and the development of camera technology, the built-in cameras are becoming more powerful and the quality of photos taken is getting increasingly higher. In the related art, mobile terminals are easy to operate and carry, and it has become a common practice for people to take photos using mobile terminals such as smart phones and tablets in daily life.

Intelligent mobile terminals bring convenience to people's daily photographing, and people also have higher and higher requirements on the quality of the photographed images. However, due to lack of professional photographing skills, people generally do not know how to set appropriate shooting parameters according to shooting scenes, so it is difficult to capture images as good as those taken by professional cameras, especially in severe environments, such as rainy, backlight, or night scenes, etc. Therefore, intelligent technologies of scene recognition that do not require setting shooting parameters have come into being.

In some shooting scenes, such as backlight scenes or night portrait scenes, due to poor lighting conditions, usually the exposure duration is lengthened to ensure the amount of exposure, and consequently, not only the overall brightness of the captured image is low, but also the effect of face brightening is poor, and when the face is normally exposed, the bright area of the scene is prone to overexposure and brightness distortion.

SUMMARY

Implementations of the disclosure provide an image processing method, an electronic device and a storage medium.

In one aspect, an implementation of the disclosure provides an image processing method, which may include: under a preset condition, when detecting that an image currently captured by a camera module contains a human face, determining a reference photosensitivity corresponding to each frame of images to be captured according to a current jitter degree of the camera module; determining an exposure duration corresponding to the each frame of the images to be captured according to luminance of a current shooting scene, the reference photosensitivity corresponding to each frame of the images to be captured, and a preset mode of exposure compensation; capturing a plurality of frames of images in sequence according to the reference photosensitivity and the exposure duration corresponding to each frame of the images to be captured; and performing synthesis processing on the captured plurality of frames of images to generate a target image.

In another aspect, an implementation of the present disclosure provides an electronic device, which may include a storage device and a processor, the storage device storing processor-readable instructions that are executable by the processor to perform actions of: under a preset condition, when detecting that an image currently captured by a camera module contains a human face, determining a reference photosensitivity corresponding to each frame of images to be captured according to a current jitter degree of the camera module; determining an exposure duration corresponding to the each frame of the images to be captured according to luminance of a current shooting scene, the reference photosensitivity corresponding to the each frame of the images to be captured, and a preset mode of exposure compensation; capturing a plurality of frames of images in sequence according to the reference photosensitivity and the exposure duration corresponding to the each frame of the images to be captured; and performing synthesis processing on the captured plurality of frames of images to generate a target image.

In yet another aspect, an implementation of the present disclosure provides a computer readable storage medium which may include a computer program that is executable by a processor to perform actions of: under a preset condition, when detecting that an image currently captured by a camera module contains a human face, determining a reference photosensitivity corresponding to each frame of images to be captured according to a current jitter degree of the camera module; determining an exposure duration corresponding to the each frame of the images to be captured according to luminance of a current shooting scene, the reference photosensitivity corresponding to the each frame of the images to be captured, and a preset mode of exposure compensation; capturing a plurality of frames of images in sequence according to the reference photosensitivity and the exposure duration corresponding to the each frame of the images to be captured; and performing synthesis processing on the captured plurality of frames of images to generate a target image.

The nature and advantages of implementations of the present disclosure may be better understood with reference to the following detailed description and accompanying drawings.

