CN107690804B - Image processing method and user terminal - Google Patents

Image processing method and user terminal Download PDF

Info

Publication number
CN107690804B
CN107690804B CN201580027295.4A CN201580027295A CN107690804B CN 107690804 B CN107690804 B CN 107690804B CN 201580027295 A CN201580027295 A CN 201580027295A CN 107690804 B CN107690804 B CN 107690804B
Authority
CN
China
Prior art keywords
preview image
value
image processing
image
processing coefficient
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201580027295.4A
Other languages
Chinese (zh)
Other versions
CN107690804A (en
Inventor
栗琳
罗巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN107690804A publication Critical patent/CN107690804A/en
Application granted granted Critical
Publication of CN107690804B publication Critical patent/CN107690804B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

An image processing method and a user terminal are provided, wherein the image processing method comprises the following steps: when a starting command for a camera of a user terminal is received, displaying a preview image in a shooting area of the camera; if the preview image contains the face element, acquiring the environmental parameters of the preview image, wherein the environmental parameters comprise: a sensitivity ISO value and/or a brightness contrast value; setting an image processing coefficient for the preview image according to the environment parameter; and processing the preview image by adopting the image processing coefficient. The technical scheme of the embodiment of the invention is beneficial to improving the flexibility of image processing.

Description

Image processing method and user terminal
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image processing method and a user terminal.
Background
With the popularization and development of user terminals such as mobile phones and tablet computers carrying cameras, photographing gradually becomes an important way for recording travel, life and the like. People can shoot images through the user terminal and transmit the images to personal platforms such as a microblog and a WeChat through a network to share with friends and family. In order to make the visual effect of the shot image better, a user can set corresponding parameters through the graphic processing software so as to process the current shot image.
In some special scenes, such as a low-light scene, the amount of light entering during shooting is small, and is greatly affected by noise, and the quality of the image is low, and in a backlight scene, the shot object is dark compared with the surrounding environment and is greatly affected by noise. At present, although some user terminals have an image processing function and better process an image captured in a normal environment, for a special scene like the above-mentioned one, if an image processing method in the normal environment is still used to process an image captured in the special scene, the processed image may be blurred seriously.
Disclosure of Invention
The embodiment of the invention provides an image processing method and a user terminal, aiming at flexibly processing an image according to a shooting scene of the image.
A first aspect of an embodiment of the present invention provides an image processing method, including:
when a starting command for a camera of a user terminal is received, displaying a preview image in a shooting area of the camera;
if the preview image contains the face element, acquiring the environmental parameters of the preview image, wherein the environmental parameters comprise: a sensitivity (International Organization for quantification of sensitivity) value and/or a brightness contrast value;
setting an image processing coefficient for the preview image according to the environment parameter;
and processing the preview image by adopting the image processing coefficient.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the acquiring the environment parameter of the preview image includes:
acquiring a current ISO value of the camera;
determining a current ISO value of the camera as the ISO value of the preview image.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the setting an image processing coefficient for the preview image according to the environment parameter includes:
acquiring at least one low illumination range and a low illumination level of each low illumination range, wherein one low illumination level corresponds to one image processing coefficient;
determining whether the ISO value is within the at least one low light level range;
if so, determining a target low illumination level of the preview image according to a low illumination range to which the ISO value belongs;
and setting a first image processing coefficient corresponding to the target low illumination level for the preview image.
With reference to the first aspect, in a third possible implementation manner of the first aspect, the acquiring the environment parameter of the preview image includes:
acquiring the average brightness value of the face elements in the preview image and the average brightness value of the shooting environment except the face elements in the preview image;
and calculating a brightness contrast value according to the average brightness value of the face element and the average brightness value of the shooting environment.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the setting an image processing coefficient for the preview image according to the environment parameter includes:
acquiring at least one backlight value range, wherein one backlight value range corresponds to one image processing coefficient;
judging whether the brightness contrast value is within the at least one backlight value range;
and if so, setting a second image processing coefficient corresponding to the brightness contrast value according to the backlight value range to which the brightness contrast value belongs.
With reference to the second and fourth possible implementations of the first aspect, in a fifth possible implementation of the first aspect, the processing the preview image by using the image processing coefficient includes:
processing the preview image by adopting the first image processing coefficient and according to a preset processing mode; or
Processing the preview image by adopting the second image processing coefficient and according to a preset processing mode; or
Overlapping the first image processing coefficient and the second image processing coefficient, and processing the preview image by adopting the overlapped coefficients and according to a preset processing mode;
wherein the preset treatment mode comprises at least one of buffing, whitening and face thinning.
With reference to the first aspect or any one of the first possible implementation manner to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, after the processing the preview image by using the image processing coefficient, the method further includes:
and outputting the processed preview image.
Optionally, after processing multiple preview images, if the user is not satisfied with the current processing, the user terminal may be shaken to perform setting and processing of image parameters again.
A second aspect of an embodiment of the present invention provides a user terminal, including:
the acquisition unit is used for displaying a preview image in a shooting area of the camera when receiving a starting command aiming at the camera of the user terminal;
a parameter obtaining unit, configured to obtain an environmental parameter of the preview image if the preview image includes a face element, where the environmental parameter includes: a sensitivity ISO value and/or a brightness contrast value;
a setting unit, configured to set an image processing coefficient for the preview image according to the environment parameter;
and the processing unit is used for processing the preview image by adopting the image processing coefficient.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the parameter obtaining unit includes:
the reading subunit is used for acquiring the current ISO value of the camera;
an ISO determination subunit, configured to determine a current ISO value of the camera as the ISO value of the preview image.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the setting unit includes:
the system comprises a grade acquisition subunit, a processing unit and a processing unit, wherein the grade acquisition subunit is used for acquiring at least one low illumination range and a low illumination grade of each low illumination range, and one low illumination grade corresponds to one image processing coefficient;
an ISO judging subunit, configured to judge whether the ISO value is within the at least one low illuminance range;
a level determining subunit, configured to determine, when the ISO value is within the at least one low illumination range, a target low illumination level of the preview image according to a low illumination range to which the ISO value belongs;
and the first setting subunit is used for setting a first image processing coefficient corresponding to the target low illumination level for the preview image.
With reference to the second aspect, in a third possible implementation manner of the second aspect, the parameter obtaining unit includes:
a brightness acquiring subunit, configured to acquire an average brightness value of a face element in the preview image and an average brightness value of a shooting environment other than the face element in the preview image;
and the calculating subunit is used for calculating a brightness contrast value according to the average brightness value of the face element and the average brightness value of the shooting environment.
With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the setting unit includes:
the backlight acquisition subunit is used for acquiring at least one backlight value range, wherein one backlight value range corresponds to one image processing coefficient;
the brightness judging subunit is used for judging whether the brightness contrast value is within the at least one backlight value range;
and the second setting subunit is used for setting a second image processing coefficient corresponding to the brightness contrast value according to the backlight value range to which the brightness contrast value belongs when the brightness contrast value is in the at least one backlight value range.
With reference to the second and fourth possible implementations of the second aspect, in a fifth possible implementation of the second aspect, the processing unit is specifically configured to:
processing the preview image by adopting the first image processing coefficient and according to a preset processing mode; or
Processing the preview image by adopting the second image processing coefficient and according to a preset processing mode; or
Overlapping the first image processing coefficient and the second image processing coefficient, and processing the preview image by adopting the overlapped coefficients and according to a preset processing mode;
wherein the preset treatment mode comprises at least one of buffing, whitening and face thinning.
With reference to the second aspect or any one of the first possible implementation manner to the fifth possible implementation manner of the second aspect, in a sixth possible implementation manner of the second aspect, the user terminal further includes:
an output unit configured to output the processed preview image.
A third aspect of the embodiments of the present invention provides a user terminal, where the user terminal includes a display, a camera, a memory, and a processor, where the processor invokes a code or an instruction in the memory to execute the following steps:
when a starting command for a camera of a user terminal is received, displaying a preview image in a shooting area of the camera;
if the preview image contains the face element, acquiring the environmental parameters of the preview image, wherein the environmental parameters comprise: a sensitivity ISO value and/or a brightness contrast value;
setting an image processing coefficient for the preview image according to the environment parameter;
and processing the preview image by adopting the image processing coefficient.
With reference to the third aspect, in a first possible implementation manner of the third aspect, when the processor performs the step of acquiring the environment parameter of the preview image, the processor specifically performs the following steps:
acquiring a current ISO value of the camera;
determining a current ISO value of the camera as the ISO value of the preview image.
With reference to the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, when the processor performs the step of setting an image processing coefficient for the preview image according to the environment parameter, the processor specifically performs the following steps:
acquiring at least one low illumination range and a low illumination level of each low illumination range, wherein one low illumination level corresponds to one image processing coefficient;
determining whether the ISO value is within the at least one low light level range;
if so, determining a target low illumination level of the preview image according to a low illumination range to which the ISO value belongs;
and setting a first image processing coefficient corresponding to the target low illumination level for the preview image.
With reference to the third aspect, in a third possible implementation manner of the third aspect, when the processor performs the step of acquiring the environment parameter of the preview image, the processor specifically performs the following steps:
acquiring the average brightness value of the face elements in the preview image and the average brightness value of the shooting environment except the face elements in the preview image;
and calculating a brightness contrast value according to the average brightness value of the face element and the average brightness value of the shooting environment.
With reference to the third possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, when the processor performs the step of setting an image processing coefficient for the preview image according to the environment parameter, the processor specifically performs the following steps:
acquiring at least one backlight value range, wherein one backlight value range corresponds to one image processing coefficient;
judging whether the brightness contrast value is within the at least one backlight value range;
and if so, setting a second image processing coefficient corresponding to the brightness contrast value according to the backlight value range to which the brightness contrast value belongs.
With reference to the second and fourth possible implementations of the third aspect, in a fifth possible implementation of the third aspect, when the processor performs the step of processing the preview image by using the image processing coefficient, the processor specifically performs the following steps:
processing the preview image by adopting the first image processing coefficient and according to a preset processing mode; or
Processing the preview image by adopting the second image processing coefficient and according to a preset processing mode; or
Overlapping the first image processing coefficient and the second image processing coefficient, and processing the preview image by adopting the overlapped coefficients and according to a preset processing mode;
wherein the preset treatment mode comprises at least one of buffing, whitening and face thinning.
With reference to the third aspect or any one of the first possible implementation manner to the fifth possible implementation manner of the third aspect, in a sixth possible implementation manner of the third aspect, after the step of processing the preview image by using the image processing coefficient is performed, the processor further performs the following steps:
and calling the display to output the processed preview image.
A fourth aspect of embodiments of the present invention provides a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a portable electronic device comprising a camera and a plurality of applications, are operable to:
when a starting command for a camera of a user terminal is received, displaying a preview image in a shooting area of the camera;
if the preview image contains the face element, acquiring the environmental parameters of the preview image, wherein the environmental parameters comprise: a sensitivity ISO value and/or a brightness contrast value;
setting an image processing coefficient for the preview image according to the environment parameter;
and processing the preview image by adopting the image processing coefficient.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the instructions are configured to:
acquiring a current ISO value of the camera;
determining a current ISO value of the camera as the ISO value of the preview image.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the instructions are configured to:
acquiring at least one low illumination range and a low illumination level of each low illumination range, wherein one low illumination level corresponds to one image processing coefficient;
determining whether the ISO value is within the at least one low light level range;
if so, determining a target low illumination level of the preview image according to a low illumination range to which the ISO value belongs;
and setting a first image processing coefficient corresponding to the target low illumination level for the preview image.
With reference to the first aspect, in a third possible implementation manner of the first aspect, the instructions are configured to:
acquiring the average brightness value of the face elements in the preview image and the average brightness value of the shooting environment except the face elements in the preview image;
and calculating a brightness contrast value according to the average brightness value of the face element and the average brightness value of the shooting environment.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the instructions are configured to:
acquiring at least one backlight value range, wherein one backlight value range corresponds to one image processing coefficient;
judging whether the brightness contrast value is within the at least one backlight value range;
and if so, setting a second image processing coefficient corresponding to the brightness contrast value according to the backlight value range to which the brightness contrast value belongs.
With reference to the second and fourth possible implementations of the first aspect, in a fifth possible implementation of the first aspect, the instructions are configured to:
processing the preview image by adopting the first image processing coefficient and according to a preset processing mode; or
Processing the preview image by adopting the second image processing coefficient and according to a preset processing mode; or
Overlapping the first image processing coefficient and the second image processing coefficient, and processing the preview image by adopting the overlapped coefficients and according to a preset processing mode;
wherein the preset treatment mode comprises at least one of buffing, whitening and face thinning.
With reference to the first aspect or any one of the first to fifth possible implementations of the first aspect, in a sixth possible implementation of the first aspect, the instructions are further configured to:
and outputting the processed preview image.
As can be seen from the above, when a user terminal receives a start command for a camera of the user terminal, a preview image in a shooting area of the camera is displayed, and if the preview image includes a face element, an environment parameter of the preview image is obtained, where the environment parameter includes: and setting an image processing coefficient for the preview image according to the environmental parameter, and finally processing the preview image by adopting the image processing coefficient. The image processing coefficient is set according to the environmental parameters of the preview image, and can be adjusted more flexibly and accurately so as to flexibly process the image according to the shooting scene of the image.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a user terminal in an embodiment of the present invention;
FIG. 2 is a flowchart illustrating an image processing method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another image processing method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating another image processing method according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating another image processing method according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a ue according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of another ue in an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a parameter obtaining unit according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a setting unit according to an embodiment of the present invention;
FIG. 10 is a schematic structural diagram of another parameter obtaining unit in the embodiment of the present invention;
fig. 11 is a schematic structural diagram of another setting unit in the embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Please refer to fig. 1, which is a schematic diagram of an internal structure of a ue according to an embodiment of the present invention; the user terminal herein may include, but is not limited to: smart phones, tablet computers (PDAs), laptops, smart wearable devices, and the like. As shown in fig. 1, the user terminal 1000 may include, but is not limited to: the display 1001, the camera 1002, the memory 1003, and the processor 1004 may be connected by a bus or other means in some embodiments of the invention, and the bus connection is exemplified in fig. 1. The camera 1002 of the user terminal may include, but is not limited to, a rear camera and a front camera, the camera 1002 may be used for a user to take a picture or a video, and the display 1001 may be used for outputting the picture or the video taken by the camera 1002. The processor (CPU) 1004 is a computing core and a control core of the user terminal. The memory 1003 stores an operating system, which may include but is not limited to: windows system, Android system, etc. The processor 1004 performs the following steps by calling code or instructions in the memory 1003:
when a starting command for a camera of a user terminal is received, displaying a preview image in a shooting area of the camera;
if the preview image contains the face element, acquiring the environmental parameters of the preview image, wherein the environmental parameters comprise: a sensitivity (International Organization for quantification of sensitivity) value and/or a brightness contrast value;
setting an image processing coefficient for the preview image according to the environment parameter;
and processing the preview image by adopting the image processing coefficient.
Optionally, in some possible embodiments of the present invention, when the processor 1004 executes the step of acquiring the environmental parameter of the preview image, the following steps are specifically executed:
acquiring a current ISO value of the camera;
determining a current ISO value of the camera as the ISO value of the preview image.
Optionally, in some possible embodiments of the present invention, when the processor 1004 executes the step of setting the image processing coefficient for the preview image according to the environment parameter, the following steps are specifically executed:
acquiring at least one low illumination range and a low illumination level of each low illumination range, wherein one low illumination level corresponds to one image processing coefficient;
determining whether the ISO value is within the at least one low light level range;
if so, determining a target low illumination level of the preview image according to a low illumination range to which the ISO value belongs;
and setting a first image processing coefficient corresponding to the target low illumination level for the preview image.
Optionally, in some possible embodiments of the present invention, when the processor 1004 executes the step of acquiring the environmental parameter of the preview image, the following steps are specifically executed:
acquiring the average brightness value of the face elements in the preview image and the average brightness value of the shooting environment except the face elements in the preview image;
and calculating a brightness contrast value according to the average brightness value of the face element and the average brightness value of the shooting environment.
Optionally, in some possible embodiments of the present invention, when the processor 1004 executes the step of setting the image processing coefficient for the preview image according to the environment parameter, the following steps are specifically executed:
acquiring at least one backlight value range, wherein one backlight value range corresponds to one image processing coefficient;
judging whether the brightness contrast value is within the at least one backlight value range;
and if so, setting a second image processing coefficient corresponding to the brightness contrast value according to the backlight value range to which the brightness contrast value belongs.
Optionally, in some possible embodiments of the present invention, when the processor 1004 executes the step of processing the preview image by using the image processing coefficient, the following steps are specifically executed:
processing the preview image by adopting the first image processing coefficient; or
Processing the preview image by adopting the second image processing coefficient; or
And overlapping the first image processing coefficient and the second image processing coefficient, and processing the preview image by adopting the coefficient after overlapping.
Optionally, in some possible embodiments of the present invention, after the step of processing the preview image by using the image processing coefficient is executed by the processor, the processor further executes the following steps:
the processor 1004 calls the display 1001 to output the processed preview image.
It can be understood that the functions of the modules of the user terminal 1000 in this embodiment may be implemented according to the methods in the method embodiments of fig. 2 to fig. 5, and the implementation process may refer to the related description of the method embodiments.
Referring to fig. 2, fig. 2 is a flowchart illustrating an image processing method according to an embodiment of the present invention. As shown in fig. 2, an image processing method according to an embodiment of the present invention may include:
and S101, when a starting command for the camera of the user terminal is received, displaying a preview image in a shooting area of the camera.
Specifically, before a user takes a picture with a user terminal carrying a camera, such as a mobile phone, a start command of the terminal camera can be generated by clicking a shooting button or a shooting application icon. When the user terminal receives a starting command aiming at the camera of the user terminal, the camera of the user terminal can be aligned to a certain shooting area, and a preview image in the shooting area of the camera is displayed. In the embodiment of the invention, the real-time facial beautification processing is mainly carried out on the image with the face element, and the problem of poor shooting effect of the face possibly shot in a special scene is solved, so that the face element in the preview image needs to be detected after the preview image in the shooting area of the camera is displayed.
S102, if the preview image contains the face element, acquiring the environment parameter of the preview image, wherein the environment parameter comprises: a sensitivity ISO value and/or a brightness contrast value.
Specifically, the embodiment of the present invention mainly performs real-time facial beautification processing on a face image, and detects whether a preview image contains a face element after the preview image is acquired, for example, whether the preview image contains the face element may be detected by performing contour acquisition. If the preview image contains the face element, acquiring the environmental parameters of the preview image, wherein the environmental parameters comprise: a sensitivity ISO value and/or a brightness contrast value. The sensitivity is represented by a number, and the higher the ISO value is, the stronger the sensitivity to light is, and the weaker the sensitivity is.
In the embodiment of the present invention, the ISO value is a value obtained by a user by determining the ambient brightness, and the user may determine whether the currently obtained ISO value is within a preset ISO threshold range, so as to determine whether a shooting scene of a current preview image is a low-illumination scene, if not, an ordinary scene mode may be adopted to set an image processing coefficient, otherwise, an image processing coefficient is not set according to the ambient parameter.
In the embodiment of the invention, the brightness contrast value is a ratio of the average brightness of the face to the average brightness of the environment, in the preview image, the features of the face contour or the region can be identified to obtain the average brightness of the face, the average brightness of the environment except the face contour or the region is obtained, and then the face contrast, namely the brightness contrast value, is obtained by calculating the average brightness of the face and the average brightness of the environment. It should be noted that, in this embodiment, the preview image related to the face element is not limited to the above-mentioned image processing, and other preview images capable of detecting a specified object having an outline or being recognized, for example, are also within the scope of the protection of the embodiment of the present invention.
S103, setting an image processing coefficient for the preview image according to the environment parameter.
The image processing parameters related to the image processing coefficient in the embodiment of the present invention may include buffing, whitening, face thinning, and other parameters such as brightening eyes and local brightening.
Specifically, an image processing coefficient is set for the preview image according to the environment parameter, and the image processing coefficient may be set for the preview image by an ISO value or may be set for the preview image by a brightness contrast value. Further, the image processing coefficients may be set by an ISO value and a brightness contrast value, and the image processing coefficients corresponding to the ISO value and the brightness contrast value are superimposed, for example, the buffing, whitening and thinning strength are set to be a1, a2 and a3 times of the original values, respectively, and the buffing, whitening and thinning strength are set to be b1, b2 and b3 times of the original values, respectively, so as to finally obtain the buffing, whitening and thinning strength being a1 × b1, a2 × b2 and a3 × b3 times of the original values, in the embodiment of the present invention, a1, a2, a3, b1, b2 and b3 are all numbers greater than 0 and less than 1, in the case that a1 is 0.7, a2 is 0.5, a3 is 0.1, b1 is 0.5, b2 is 0.5, b3 is 0.57, and 0.05 is calculated.
And S104, processing the preview image by adopting the image processing coefficient.
Specifically, the preview image is processed by using the image processing coefficient, and after the preview image is processed, the shooting action can be completed through a shooting key. Optionally, after processing a plurality of preview images, if the user is not satisfied with the current processing, the user terminal may be shaken to perform setting and processing of image parameters again.
It can be seen that, in this embodiment, when the user terminal receives a start command for a camera of the user terminal, a preview image in a shooting area of the camera is displayed, and if the preview image includes a face element, an environment parameter of the preview image is obtained, where the environment parameter includes: a sensitivity ISO value and/or a brightness contrast value. The image processing coefficient is set according to the environmental parameters of the preview image, and can be adjusted more flexibly and accurately so as to flexibly process the image according to the shooting scene of the image.
Optionally, in some possible embodiments of the present invention, the acquiring the environment parameter of the preview image includes: acquiring a current ISO value of the camera; determining a current ISO value of the camera as the ISO value of the preview image.
Optionally, in some possible embodiments of the present invention, the setting an image processing coefficient for the preview image according to the environment parameter includes: acquiring at least one low illumination range and a low illumination level of each low illumination range, wherein one low illumination level corresponds to one image processing coefficient; determining whether the ISO value is within the at least one low light level range; if so, determining a target low illumination level of the preview image according to a low illumination range to which the ISO value belongs; and setting a first image processing coefficient corresponding to the target low illumination level for the preview image.
For example, the low illumination level is divided into an extremely low illumination scene, a low illumination scene, and the ISO ranges respectively corresponding to these scenes are: ISO >1200, 1200 is more than or equal to ISO > 800, 800 is more than or equal to ISO > 400, when the ISO value is 1300, the illumination of the current preview image can be judged to be an extremely low illumination scene, and corresponding image processing coefficients can be set correspondingly, such as the buffing, whitening and face thinning strength are set to be 0.7 times, 0.5 times and 0.1 times of the common image processing strength respectively. The method divides the illumination of the preview image into different grades according to different ISO threshold values, and sets the image processing coefficients according to the grades, so that the setting process can be simplified to a certain extent, and simultaneously, the image processing coefficients corresponding to the grades and the grades can be set by a user or by default of a system, so that the method can enhance the flexibility of image processing.
Optionally, in some possible embodiments of the present invention, the acquiring the environment parameter of the preview image includes: acquiring the average brightness value of the face elements in the preview image and the average brightness value of the shooting environment except the face elements in the preview image; and calculating a brightness contrast value according to the average brightness value of the face element and the average brightness value of the shooting environment.
Optionally, in some possible embodiments of the present invention, the setting an image processing coefficient for the preview image according to the environment parameter includes: acquiring at least one backlight value range, wherein one backlight value range corresponds to one image processing coefficient; judging whether the brightness contrast value is within the at least one backlight value range; and if so, setting a second image processing coefficient corresponding to the brightness contrast value according to the backlight value range to which the brightness contrast value belongs.
It can be understood that the embodiment of the present invention may obtain face contour information and face angle information according to detected face information, may calculate face average brightness according to the information, may further calculate average brightness of a non-face region as environment average brightness, and then calculate brightness contrast value according to the face average brightness and the environment average brightness, for example, when the brightness contrast value S is 50, and the preset threshold range is 100 > S > 15, the buffing and whitening are set to be 0.5 times of the normal image processing coefficient. The image processing coefficient is set through the brightness contrast value, the human face edge can be sharpened, and the definition of the preview image is improved.
Optionally, in some possible embodiments of the present invention, the processing the preview image by using the image processing coefficient includes: processing the preview image by adopting the first image processing coefficient; or processing the preview image by adopting the second image processing coefficient; or overlapping the first image processing coefficient and the second image processing coefficient, and processing the preview image by using the coefficient after overlapping.
It can be understood that the problem of serious image blur in a low-illumination scene by adopting the common image processing can be solved by adopting the first image processing coefficient obtained by the ISO value to perform the image processing; the problem of image blurring caused by adopting common image processing in a backlight scene can be solved by adopting the second image processing coefficient obtained by the brightness contrast value to carry out image processing; the first image and the second image processing coefficient are adopted for superposition, the problem of image blurring caused by adopting common image processing in a low-illumination and backlight scene can be further solved, the human face edge can be clearer due to the combination of the first image and the second image, the human face blurring degree is reduced, and meanwhile, the processed preview image is smoother and more natural due to parameter superposition processing.
Optionally, in some possible embodiments of the present invention, after processing the preview image by using the image processing coefficient, the method further includes: and outputting the processed preview image.
Referring to fig. 3, fig. 3 is a schematic flowchart of another image processing method according to an embodiment of the present invention. As shown in fig. 3, another signal processing method according to an embodiment of the present invention may include:
s201, when a starting command for the camera of the user terminal is received, displaying a preview image in a shooting area of the camera.
Specifically, before a user takes a picture with a user terminal such as a mobile phone, etc., which carries a camera, the user may click a shooting button or a shooting application icon to generate a start command of the terminal camera. When the user terminal receives a starting command aiming at the camera of the user terminal, the camera of the user terminal can be aligned to a certain shooting area, and a preview image in the shooting area of the camera is displayed. In the embodiment of the invention, the skin beautifying treatment is mainly performed on the image with the face elements, so that the problem of poor shooting effect of the face possibly shot in a special scene is solved, and therefore, after the preview image in the shooting area of the camera is displayed, the face elements in the preview image need to be detected.
S202, if the preview image contains the face element, obtaining the current ISO value of the camera.
Specifically, after the preview image is acquired, whether the preview image contains a face element is detected, and the detection mode may include contour detection, some local feature detection, and the like. If the preview image contains the face element, determining that the preview image is an image which accords with the image processing characteristics of the embodiment of the invention, and continuously executing the step of obtaining the ISO value of the preview image camera. The sensitivity ISO value is a numerical value indicating the sensitivity to light, and a higher ISO value indicates a higher sensitivity to light, whereas a lower sensitivity to light is indicated. In a typical user terminal, there is generally a light-sensitive element of light intensity, by which the ISO value of the current shooting environment can be obtained and read by a controller of the user terminal. Therefore, the user can directly read the current ISO value of the camera through the user terminal.
S203, determining the current ISO value of the camera as the ISO value of the preview image.
Specifically, the current ISO value of the camera is determined as the ISO value of the preview image, wherein the lower the ISO value of the preview image is, the better the imaging quality of the preview image is, i.e., the preview image is clearer, and therefore the lower the ISO value is, the closer the image processing coefficient set relatively can be to 1.
S204, at least one low illumination range and a low illumination level of each low illumination range are obtained, wherein one low illumination level corresponds to one image processing coefficient.
Specifically, the image processing parameters related to the image processing coefficients in the embodiment of the present invention may include buffing, whitening, face thinning, and others such as brightening eyes and local brightening. In the embodiment of the present invention, the low illumination range and the low illumination level to which each low illumination range belongs may be preset, for example, the low illumination level is divided into an extremely low illumination scene, a low illumination scene and a low illumination scene, and one low illumination level corresponds to one image processing coefficient, where the correspondence relationship between the low illumination level, the ISO range and the image processing coefficient is as follows:
extremely low illumination scenes: ISO >1200, the strength of buffing, whitening and face thinning is 0.7 times, 0.5 times and 0.1 times of the common strength respectively;
lower illumination scenes: more than or equal to 1200 ISO is more than 800, and the strength of the buffing, whitening and face thinning is respectively 0.8 time, 0.7 time and 0.4 time of the common strength;
low light scene: the ISO is more than or equal to 800 and more than 400, and the strength of the buffing, the whitening and the face thinning are respectively 0.9 time, 0.8 time and 0.8 time of the common strength.
The corresponding relation can be preset by a user, and default standard setting of a user terminal system can also be selected, wherein the multiple range of the parameters such as buffing, whitening and face thinning strength is 0-1, and the multiple is lower.
S205, judging whether the ISO value is located in the at least one low illumination range.
Specifically, it is determined whether the ISO value is within the at least one low illumination range, for example: when the ISO value is 1300, it can be determined that the current preview image illumination is within the range of ISO >1200 and within the preset low illumination range; if the ISO is 200, it indicates that the ISO value is not within the preset low illumination range, and the normal image processing coefficient can be adopted for processing.
And S206, if so, determining the target low illumination level of the preview image according to the low illumination range to which the ISO value belongs.
Specifically, when the ISO value is within the at least one low illumination range, the target low illumination level of the preview image may be determined according to the low illumination range to which the ISO value belongs, for example, when the ISO value is 1300, it may be determined that the current preview image illumination is within a range of ISO >1200, and the corresponding low illumination level is an extremely low illumination scene.
And S207, setting a first image processing coefficient corresponding to the target low illumination level for the preview image.
Specifically, after the current low illumination level is determined, a first image processing coefficient corresponding to the target low illumination level may be set for the preview image, and for example, the skin-polishing intensity, the skin-whitening intensity, and the face-thinning intensity may be set to be 0.7 times, 0.5 times, and 0.1 times of the normal image processing intensity, respectively, according to the low illumination level.
In the embodiment of the present invention, the image processing coefficients are set by the ISO values in steps S202 to S207. Optionally, after the setting is performed according to the low-illumination scene, the brightness contrast value may be set as needed, see steps S208 to S212. In the embodiment of the present invention, the image processing coefficients may be set separately according to the ISO value or the brightness contrast value, or the preview image may be processed after superimposing the image processing coefficients set separately from the ISO value and the brightness contrast value, and the order between steps S202 to S207 and steps S208 to S212 is not limited.
And S208, acquiring the average brightness value of the face elements in the preview image and the average brightness value of the shooting environment except the face elements in the preview image.
In practical applications, an original image obtained by a camera is generally an image in a RAW format, where the RAW image is RAW data obtained by converting a captured light source signal into a digital signal through the camera, and before image processing is performed on the RAW image, the RAW image needs to be converted into an image easy to process, such as an image in a YUV format.
Specifically, in the embodiment of the present invention, the preview image is a preview image including a face element, so that an average luminance value of the face element in the preview image and an average luminance value of a shooting environment other than the face element in the preview image can be obtained. The average brightness value may be calculated by acquiring a corresponding region of the face element through face recognition, and then acquiring an average brightness value according to the brightness of all pixel points in the region.
S209, calculating a brightness contrast value according to the average brightness value of the face element and the average brightness value of the shooting environment.
Specifically, a brightness contrast value is calculated according to the average brightness value of the face element and the average brightness value of the shooting environment, and the brightness contrast value may be a ratio obtained by dividing the average brightness value of the face element and the average brightness value of the shooting environment.
S210, at least one backlight value range is obtained, wherein one backlight value range corresponds to one image processing coefficient.
In the embodiment of the invention, the backlight value range and the image processing coefficient corresponding to each backlight value range can be obtained in advance, for example, if the backlight value is more than 15 and less than 100, the corresponding skin grinding and whitening are respectively set to be 0.5 times of the processing intensity of the common image; and if the backlight value Y is less than 15, the corresponding buffing and whitening are respectively set to be 0.8 time of the processing intensity of the common image. The backlight value range and the image processing coefficient corresponding to each backlight value range can be set by a user or can be set by default.
S211, judging whether the brightness contrast value is in the at least one backlight value range.
Specifically, it is determined whether the brightness contrast value is within the at least one backlight value range, for example, when the calculated brightness contrast value X is within a backlight value of 15 < Y < 100, which indicates that the current preview image is an image captured in a backlight scene, step S212 may be performed to set the second image processing coefficient, otherwise, the current image processing coefficient may not be adjusted.
And S212, if so, setting a second image processing coefficient corresponding to the brightness contrast value according to the backlight value range to which the brightness contrast value belongs.
Specifically, if the brightness contrast value is within the at least one backlight value range, the second image processing coefficient corresponding to the brightness contrast value is set according to the backlight value range to which the brightness contrast value belongs, for example, the brightness contrast value X is 80, and within the backlight value 15 < Y < 100, the second image processing coefficient corresponding to the backlight value 15 < Y < 100 may be obtained according to a preset correspondence relationship, that is, the buffing and the whitening are respectively set to be 0.5 times of the normal image processing intensity.
And S213, overlapping the first image processing coefficient and the second image processing coefficient, and processing the preview image by using the overlapped coefficients, wherein the preset processing mode comprises at least one of buffing, whitening and face thinning.
Specifically, in the embodiment of the present invention, a first image processing coefficient obtained according to an ISO value and a second image processing coefficient obtained according to the brightness contrast value may be subjected to superposition processing to implement processing on the preview image, for example, when the peeling, whitening and face-thinning intensity in the first image processing coefficient is 0.7 times, 0.5 times and 0.1 times of the normal image processing intensity, respectively, and the peeling and whitening in the second image processing coefficient is set to be 0.5 times of the normal image processing intensity, the peeling, whitening and face-thinning intensity obtained after superposition processing of the first image processing coefficient and the second image processing coefficient is 0.35 times, 0.25 times and 0.1 times of the normal image processing intensity, respectively.
In practical application, whether the scene shot by the preview image is a low-illumination scene or a backlight scene can be judged, and then the first image processing coefficient and/or the second image processing coefficient are/is selected according to actual conditions.
And S214, outputting the processed preview image.
Specifically, after the preview image is processed by the image processing coefficient, the processed preview image may be displayed and output by the user terminal.
It can be seen that, in the embodiment of the present invention, the user terminal may obtain the ISO value and the brightness contrast value, and determine whether the ISO value and the brightness contrast value are within the threshold range, if so, obtain the corresponding first image processing coefficient and second image processing coefficient according to the corresponding relationship between the threshold range and the image processing coefficient, and process the preview image according to the superimposed image processing coefficient. The problem of serious image blurring caused by adopting common image processing in a low-illumination scene can be solved by adopting the first image processing coefficient obtained by the ISO value to perform image processing; the problem of image blurring caused by adopting common image processing in a backlight scene can be solved by adopting the second image processing coefficient obtained by the brightness contrast value to carry out image processing; the first image and the second image processing coefficient are adopted for superposition, the problem of image blurring caused by adopting common image processing in a low-illumination and backlight scene can be further solved, the human face edge can be clearer due to the combination of the first image and the second image, the human face blurring degree is reduced, and meanwhile, the processed preview image is smoother and more natural due to parameter superposition processing.
Referring to fig. 4, fig. 4 is a flowchart illustrating another image processing method according to an embodiment of the present invention. As shown in fig. 4, another signal processing method according to an embodiment of the present invention may include:
and S301, when a starting command for the camera of the user terminal is received, displaying a preview image in a shooting area of the camera.
S302, if the preview image contains the face element, obtaining the current ISO value of the camera.
S303, determining the current ISO value of the camera as the ISO value of the preview image.
S304, at least one low illumination range and a low illumination level of each low illumination range are obtained, wherein one low illumination level corresponds to one image processing coefficient.
S305, judging whether the ISO value is located in the at least one low illumination range.
S306, if yes, determining the target low illumination level of the preview image according to the low illumination range to which the ISO value belongs.
S307, setting a first image processing coefficient corresponding to the target low illumination level for the preview image.
For a detailed explanation of steps S301 to S307, refer to steps S201 to S207, which are not described in detail herein.
And S308, processing the preview image by adopting the first image processing coefficient according to a preset processing mode, wherein the preset processing mode comprises at least one of buffing, whitening and face thinning.
Specifically, in the embodiment of the present invention, the first image processing coefficient is adopted to process the preview image according to a preset processing manner, for example, when the skin-polishing, skin-whitening and face-thinning intensities in the first image processing coefficient are respectively 0.7 times, 0.5 times and 0.1 times of the normal image processing intensity, the preview image may be processed according to the image processing intensity.
And S309, outputting the processed preview image.
Specifically, after the preview image is processed by the first image processing coefficient, the processed preview image may be displayed and output by the user terminal.
It can be seen that, in the embodiment of the present invention, the user terminal may determine the target low illumination level of the preview image by obtaining the ISO value and determining the low illumination range to which the ISO value belongs, so as to obtain the first image processing coefficient, perform image processing according to the first image processing coefficient, and output the image processing coefficient, thereby solving the problem of serious image blur in a low illumination scene in which ordinary image processing is adopted.
Referring to fig. 5, fig. 5 is a flowchart illustrating another image processing method according to an embodiment of the present invention. As shown in fig. 5, another signal processing method according to an embodiment of the present invention may include:
s401, when a starting command for the camera of the user terminal is received, displaying a preview image in a shooting area of the camera.
S402, if the preview image contains the face elements, obtaining the average brightness value of the face elements in the preview image and the average brightness value of the shooting environment except the face elements in the preview image.
And S403, calculating a brightness contrast value according to the average brightness value of the face element and the average brightness value of the shooting environment.
S404, at least one backlight value range is obtained, wherein one backlight value range corresponds to one image processing coefficient.
S405, judging whether the brightness contrast value is in the at least one backlight value range.
S406, if yes, setting a second image processing coefficient corresponding to the brightness contrast value according to the backlight value range to which the brightness contrast value belongs.
For a detailed explanation of steps S401 to S406, refer to S201, S208 to S212, which are not described in detail herein.
And S407, processing the preview image by adopting the second image processing coefficient according to a preset processing mode, wherein the preset processing mode comprises at least one of buffing, whitening and face thinning.
Specifically, in the embodiment of the present invention, the second image processing coefficient is adopted, and the preview image is processed according to a preset processing manner, for example, if the peeling and whitening in the second image processing coefficient are respectively set to be 0.5 times of the normal image processing intensity, the image processing is performed according to the image processing intensity.
And S408, outputting the processed preview image.
Specifically, after the preview image is processed by the second image processing coefficient, the processed preview image may be displayed and output by the user terminal.
It can be seen that, in the embodiment of the present invention, the average brightness value of the face element and the average brightness value of the shooting environment obtain the brightness contrast value, the second image processing coefficient is set according to the backlight value range to which the brightness contrast value belongs, and the second image processing coefficient is adopted to perform image processing, so that the problem of image blur in a backlight scene in which ordinary image processing is adopted can be solved.
Referring to fig. 6, fig. 6 is a schematic block diagram of a user terminal according to an embodiment of the present invention, and as shown in fig. 6, the user terminal may include: acquisition unit 301, parameter acquisition unit 302, setting unit 303 and processing unit 304, wherein:
the acquisition unit 301 is configured to display a preview image in a shooting area of a camera when a start command for the camera of the user terminal is received.
Specifically, before a user takes a picture with a user terminal such as a mobile phone, etc., which carries a camera, the user may click a shooting button or a shooting application icon to generate a start command of the terminal camera. When the user terminal receives a start command for the user terminal camera, the user terminal camera may be directed to a certain shooting area, and the acquisition unit 301 is utilized to display a preview image in the shooting area of the camera. In the embodiment of the present invention, skin makeup processing is mainly performed on an image with a face element, so as to solve a problem that a shooting effect of a face may be poor in a special scene, and therefore after a preview image in a shooting area of a camera is displayed by the acquisition unit 301, the parameter acquisition unit 302 needs to detect the face element in the preview image.
A parameter obtaining unit 302, configured to obtain an environmental parameter of the preview image if the preview image includes a face element, where the environmental parameter includes: a sensitivity ISO value and/or a brightness contrast value.
Specifically, the embodiment of the present invention mainly performs image processing on a face image, and after a preview image is acquired, the parameter acquiring unit 302 detects whether the preview image contains a face element, for example, whether the preview image contains a face element may be detected by performing contour acquisition. If the preview image contains a face element, the parameter obtaining unit 302 obtains an environmental parameter of the preview image, where the environmental parameter includes: a sensitivity ISO value and/or a brightness contrast value. The sensitivity is represented by a number, and the higher the ISO value is, the stronger the sensitivity to light is, and the weaker the sensitivity is.
In the embodiment of the present invention, the ISO value is a value obtained by a user by determining the ambient brightness, and the user may determine whether the currently obtained ISO value is within a preset ISO threshold range, so as to determine whether a shooting scene of a current preview image is a low-illumination scene, if not, an ordinary scene mode may be adopted to set an image processing coefficient, otherwise, an image processing coefficient is not set according to the ambient parameter.
In the embodiment of the invention, the brightness contrast value is a ratio of the average brightness of the face to the average brightness of the environment, in the preview image, the features of the face contour or the region can be identified to obtain the average brightness of the face, the average brightness of the environment except the face contour or the region is obtained, and then the face contrast, namely the brightness contrast value, is obtained by calculating the average brightness of the face and the average brightness of the environment. It should be noted that, in this embodiment, the preview image related to the face element is not limited to the above-mentioned image processing, and other preview images capable of detecting a specified object having an outline or being recognized, for example, are also within the scope of the protection of the embodiment of the present invention.
A setting unit 303, configured to set an image processing coefficient for the preview image according to the environment parameter.
The image processing parameters related to the image processing coefficient in the embodiment of the present invention may include buffing, whitening, face thinning, and other parameters such as brightening eyes and local brightening.
Specifically, the setting unit 303 sets an image processing coefficient for the preview image according to the environment parameter, and may set the image processing coefficient for the preview image by an ISO value or by a brightness contrast value. Further, the image processing coefficients may be set by an ISO value and a brightness contrast value, and the image processing coefficients corresponding to the ISO value and the brightness contrast value are superimposed, for example, the buffing, whitening and thinning strength are set to be a1, a2 and a3 times of the original values, respectively, and the buffing, whitening and thinning strength are set to be b1, b2 and b3 times of the original values, respectively, so as to finally obtain the buffing, whitening and thinning strength being a1 × b1, a2 × b2 and a3 × b3 times of the original values, in the embodiment of the present invention, a1, a2, a3, b1, b2 and b3 are all numbers greater than 0 and less than 1, in the case that a1 is 0.7, a2 is 0.5, a3 is 0.1, b1 is 0.5, b2 is 0.5, b3 is 0.5, and 0.5 is 0.25 and 0.05.
A processing unit 304, configured to process the preview image by using the image processing coefficient.
Specifically, the processing unit 304 processes the preview image by using the image processing coefficient, and after the preview image is processed, the shooting operation can be completed through the shooting key. Optionally, after processing a plurality of preview images, if the user is not satisfied with the current processing, the user terminal may be shaken to perform setting and processing of image parameters again.
It can be seen that, in this embodiment, when the user terminal receives a start command for a camera of the user terminal, a preview image in a shooting area of the camera is displayed, and if the preview image includes a face element, an environment parameter of the preview image is obtained, where the environment parameter includes: a sensitivity ISO value and/or a brightness contrast value. The image processing coefficient is set according to the environmental parameters of the preview image, and can be adjusted more flexibly and accurately so as to flexibly process the image according to the shooting scene of the image.
Referring to fig. 7, fig. 7 is a schematic block diagram of another user terminal according to an embodiment of the present invention. As shown in fig. 7, the user terminal may include: an acquisition unit 301, a parameter acquisition unit 302, a setting unit 303, a processing unit 304 and an output unit 305.
The acquisition unit 301 is configured to display a preview image in a shooting area of a camera when a start command for the camera of the user terminal is received.
Specifically, before a user takes a picture with a user terminal such as a mobile phone, etc., which carries a camera, the user may click a shooting button or a shooting application icon to generate a start command of the terminal camera. When the user terminal receives a start command for the user terminal camera, the user terminal camera may be directed to a certain shooting area, and a preview image in the shooting area of the camera is displayed through the acquisition unit 301. In the embodiment of the invention, the skin beautifying treatment is mainly performed on the image with the face elements, so that the problem of poor shooting effect of the face possibly shot in a special scene is solved, and therefore, after the preview image in the shooting area of the camera is displayed, the face elements in the preview image need to be detected.
A parameter obtaining unit 302, configured to obtain an environmental parameter of the preview image if the preview image includes a face element, where the environmental parameter includes: a sensitivity ISO value and/or a brightness contrast value.
Specifically, referring to fig. 8, a schematic structural diagram of a parameter obtaining unit is provided in the embodiment of the present invention. As shown in fig. 8, the parameter obtaining unit 302 may include: a reading subunit 3021 and an ISO determination subunit 3022.
A reading subunit 3021, configured to obtain a current ISO value of the camera if the preview image includes a face element.
Specifically, after the preview image is acquired, the reading subunit 3021 detects whether the preview image contains a face element, and the detection manner may include contour detection, some local feature detection, and the like. If the preview image contains a face element, it is determined that the preview image is an image that meets the image processing characteristics of the embodiment of the present invention, and the step of obtaining the ISO value of the camera of the preview image may be continuously executed by the reading subunit 3021. The sensitivity ISO value is a numerical value indicating the sensitivity to light, and a higher ISO value indicates a higher sensitivity to light, whereas a lower sensitivity to light is indicated. In a typical user terminal, there is generally a light-sensitive element of light intensity, by which the ISO value of the current shooting environment can be obtained and read by a controller of the user terminal. The user can directly read the current ISO value of the camera through the reading subunit 3021,
an ISO determination subunit 3022 configured to determine a current ISO value of the camera as the ISO value of the preview image.
Specifically, the ISO determination subunit 3022 determines the current ISO value of the camera as the ISO value of the preview image, where the lower the ISO value of the preview image is, the better the imaging quality of the preview image is, i.e., the more clear the preview image is, and thus the lower the ISO value is, the closer to 1 the image processing coefficient set relatively can be.
A setting unit 303, configured to set an image processing coefficient for the preview image according to the environment parameter.
Specifically, referring to fig. 9, a schematic structural diagram of a setting unit is provided for the embodiment of the present invention. As shown in fig. 9, the setting unit 303 may include: a class acquisition sub-unit 3031, an ISO determination sub-unit 3032, an ISO determination sub-unit 3033, and a first setting sub-unit 3034.
The level obtaining sub-unit 3031 is configured to obtain at least one low illumination level range and a low illumination level to which each low illumination level range belongs, where one low illumination level corresponds to one image processing coefficient.
Specifically, the image processing parameters related to the image processing coefficients in the embodiment of the present invention may include buffing, whitening, face thinning, and others such as brightening eyes and local brightening. In the embodiment of the present invention, the low illumination range and the low illumination level to which each low illumination range belongs may be preset, for example, the low illumination level is divided into an extremely low illumination scene, a low illumination scene and a low illumination scene, and one low illumination level corresponds to one image processing coefficient, where the correspondence relationship between the low illumination level, the ISO range and the image processing coefficient is as follows:
extremely low illumination scenes: ISO >1200, the strength of buffing, whitening and face thinning is 0.7 times, 0.5 times and 0.1 times of the common strength respectively;
lower illumination scenes: more than or equal to 1200 ISO is more than 800, and the strength of the buffing, whitening and face thinning is respectively 0.8 time, 0.7 time and 0.4 time of the common strength;
low light scene: the ISO is more than or equal to 800 and more than 400, and the strength of the buffing, the whitening and the face thinning are respectively 0.9 time, 0.8 time and 0.8 time of the common strength.
The corresponding relation can be preset by a user, and default standard setting of a user terminal system can also be selected, wherein the multiple range of the parameters such as buffing, whitening and face thinning strength is 0-1, and the multiple is lower.
An ISO determination subunit 3032 is configured to determine whether the ISO value is within the at least one low illuminance range.
Specifically, it is determined whether the ISO value is within the at least one low illumination range, for example: when the ISO value is 1300, it can be determined that the current preview image illumination is within the range of ISO >1200 and within the preset low illumination range; if the ISO is 200, it indicates that the ISO value is not within the preset low illumination range, and the normal image processing coefficient can be adopted for processing.
A level determining subunit 3033, configured to determine, when the ISO value is within the at least one low illumination range, a target low illumination level of the preview image according to a low illumination range to which the ISO value belongs.
Specifically, when the ISO value is within the at least one low illumination range, the target low illumination level of the preview image may be determined according to the low illumination range to which the ISO value belongs, for example, when the ISO value is 1300, it may be determined that the current preview image illumination is within a range of ISO >1200, and the corresponding low illumination level is an extremely low illumination scene.
A first setting sub-unit 3034, configured to set a first image processing coefficient corresponding to the target low illumination level for the preview image.
Specifically, after determining the current low illumination level, the first setting subunit 3034 may set a first image processing coefficient corresponding to the target low illumination level for the preview image, for example, may set the peeling strength, the whitening strength, and the face thinning strength to be 0.7 times, 0.5 times, and 0.1 times of the normal image processing strength according to the low illumination level.
Specifically, referring to fig. 10, a schematic structural diagram of a setting unit is provided for the embodiment of the present invention. As shown in fig. 10, the parameter obtaining unit 302 may further include: a luminance acquisition subunit 3023 and a calculation subunit 3024.
A luminance acquiring subunit 3023 configured to acquire an average luminance value of the face element in the preview image and an average luminance value of the shooting environment other than the face element in the preview image.
In practical applications, an original image obtained by a camera is generally an image in a RAW format, where the RAW image is RAW data obtained by converting a captured light source signal into a digital signal through the camera, and before image processing is performed on the RAW image, the RAW image needs to be converted into an image easy to process, such as an image in a YUV format.
Specifically, in the embodiment of the present invention, the preview image is a preview image containing a face element, so the average luminance value of the face element in the preview image and the average luminance value of the shooting environment other than the face element in the preview image can be acquired by the luminance acquiring subunit 3023. The average brightness value may be calculated by acquiring a corresponding region of the face element through face recognition, and then acquiring an average brightness value according to the brightness of all pixel points in the region.
A computing subunit 3024, configured to compute a brightness contrast value according to the average brightness value of the face element and the average brightness value of the shooting environment.
Specifically, the calculation subunit 3024 calculates a luminance contrast value from the average luminance value of the face element and the average luminance value of the shooting environment, and the luminance contrast value may be a ratio obtained by dividing the average luminance value of the face element and the average luminance value of the shooting environment.
Specifically, referring to fig. 11, a schematic structural diagram of a setting unit is provided for the embodiment of the present invention. As shown in fig. 11, the setting unit 303 may further include: a backlight acquiring sub-unit 3035, a brightness judging sub-unit 3036, and a second setting sub-unit 3037.
The backlight obtaining subunit 3035 is configured to obtain at least one backlight value range, where one backlight value range corresponds to one image processing coefficient.
In this embodiment of the present invention, the backlight obtaining sub-unit 3035 may obtain the backlight value ranges and the image processing coefficients corresponding to each backlight value range in advance, for example, if the backlight value 15 is less than Y and less than 100, the corresponding skin polishing and whitening are respectively set to be 0.5 times of the normal image processing intensity; and if the backlight value Y is less than 15, the corresponding buffing and whitening are respectively set to be 0.8 time of the processing intensity of the common image. The backlight value range and the image processing coefficient corresponding to each backlight value range can be set by a user or can be set by default.
And a brightness judgment subunit 3036, configured to judge whether the brightness contrast value is within the at least one backlight value range.
Specifically, the brightness determination subunit 3036 determines whether the brightness contrast value is within the at least one backlight value range, for example, when the calculated brightness contrast value X is within a backlight value of 15 < Y < 100, which indicates that the current preview image is an image captured in a backlight scene, the second setting subunit 3037 may be invoked to adjust the current image processing coefficient, otherwise, the current image processing coefficient may not be adjusted.
The second setting subunit 3037 is configured to, when the brightness contrast value is within the at least one backlight value range, set a second image processing coefficient corresponding to the brightness contrast value according to the backlight value range to which the brightness contrast value belongs.
Specifically, if the brightness contrast value is within the at least one backlight value range, the second setting subunit 3037 sets the second image processing coefficient corresponding to the brightness contrast value according to the backlight value range to which the brightness contrast value belongs, for example, the brightness contrast value X is 80, and within the backlight value 15 < Y < 100, the second image processing coefficient corresponding to the backlight value 15 < Y < 100, that is, the buffing and the whitening, respectively set to be 0.5 times of the normal image processing intensity, may be obtained according to a preset correspondence relationship.
A processing unit 304, configured to perform overlap processing on the first image processing coefficient and the second image processing coefficient, and process the preview image by using the coefficients after the overlap processing.
Specifically, in the embodiment of the present invention, the processing unit 304 may perform an overlap processing on a first image processing coefficient obtained according to an ISO value and a second image processing coefficient obtained according to the brightness contrast value to implement the processing on the preview image, for example, when the first image processing coefficient includes a first image processing coefficient in which the peeling, whitening and face-thinning intensities are respectively 0.7 times, 0.5 times and 0.1 times of the normal image processing intensity, and the second image processing coefficient includes a second image processing coefficient in which the peeling and whitening are respectively set to be 0.5 times of the normal image processing intensity, the first image processing coefficient and the second image processing coefficient may obtain a second image processing coefficient in which the peeling, whitening and face-thinning intensities are respectively 0.35 times, 0.25 times and 0.1 times of the normal image processing intensity after the overlap processing.
Alternatively, the processing unit 304 is specifically configured to process the preview image by using the first image processing coefficient and according to a preset processing manner, where the preset processing manner includes at least one of buffing, whitening, and face thinning.
Specifically, in the embodiment of the present invention, the processing unit 304 uses the first image processing coefficient to process the preview image according to a preset processing manner, for example, when the first image processing coefficient includes skin polishing, skin whitening and face thinning intensities that are 0.7 times, 0.5 times and 0.1 times of the normal image processing intensity, the preview image may be processed according to the image processing intensity.
Alternatively, in this embodiment of the present invention, the processing unit 304 processes the preview image according to a preset processing manner by using the first image processing coefficient, where the preset processing manner includes at least one of buffing, whitening and face thinning.
Specifically, in the embodiment of the present invention, the first image processing coefficient is adopted to process the preview image according to a preset processing manner, for example, when the skin-polishing, skin-whitening and face-thinning intensities in the first image processing coefficient are respectively 0.7 times, 0.5 times and 0.1 times of the normal image processing intensity, the preview image may be processed according to the image processing intensity.
In practical application, whether the scene shot by the preview image is a low-illumination scene or a backlight scene can be judged, and then the first image processing coefficient and/or the second image processing coefficient are/is selected according to actual conditions.
An output unit 305, configured to output the processed preview image.
Specifically, after the preview image is processed by the image processing coefficient, the output unit 305 may display and output the processed preview image by the user terminal, where the image processing coefficient may be a first image processing coefficient, a second image processing coefficient, or an image processing coefficient obtained by superimposing the first image processing coefficient and the second image processing coefficient.
It can be seen that, in the embodiment of the present invention, the user terminal may obtain the ISO value and the brightness contrast value, and determine whether the ISO value and the brightness contrast value are within the threshold range, if so, obtain the corresponding first image processing coefficient and second image processing coefficient according to the corresponding relationship between the threshold range and the image processing coefficient, and process the preview image according to the superimposed image processing coefficient. The problem of serious image blurring caused by adopting common image processing in a low-illumination scene can be solved by adopting the first image processing coefficient obtained by the ISO value to perform image processing; the problem of image blurring caused by adopting common image processing in a backlight scene can be solved by adopting the second image processing coefficient obtained by the brightness contrast value to carry out image processing; the first image and the second image processing coefficient are adopted for superposition, the problem of image blurring caused by adopting common image processing in a low-illumination and backlight scene can be further solved, the human face edge can be clearer due to the combination of the first image and the second image, the human face blurring degree is reduced, and meanwhile, the processed preview image is smoother and more natural due to parameter superposition processing.
Embodiments of the present invention also provide a computer readable storage medium storing one or more programs, where the one or more programs include instructions, which when executed by a portable electronic device including a camera and a plurality of application programs, cause the portable electronic device to perform the method described in fig. 1 to 5.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. Those skilled in the art may combine or combine features of different embodiments and features of different embodiments described in this specification.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by hardware, firmware, or a combination thereof. When implemented in software, the functions described above may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. Taking this as an example but not limiting: the computer-readable medium may include Random Access Memory (RAM), Read-Only Memory (ROM), electrically erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-on Memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Furthermore, the method is simple. Any connection is properly termed a computer-readable medium. For example, if software is transmitted from a website, a server, or other remote source using a coaxial cable, a fiber optic cable, a twisted pair, a Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, the fiber optic cable, the twisted pair, the DSL, or the wireless technologies such as infrared, radio, and microwave are included in the fixation of the medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy Disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
In short, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (19)

1. An image processing method, comprising:
when a starting command for a camera of a user terminal is received, displaying a preview image in a shooting area of the camera;
if the preview image contains the face element, acquiring the environmental parameters of the preview image, wherein the environmental parameters comprise: a sensitivity ISO value and a brightness contrast value; acquiring an average brightness value of a face element in the preview image and an average brightness value of a shooting environment except the face element in the preview image, and calculating a brightness contrast value according to the average brightness value of the face element and the average brightness value of the shooting environment;
setting an image processing coefficient for the preview image according to the environment parameter; wherein a first image processing coefficient is set according to the sensitivity ISO value, and a second image processing coefficient is set according to the brightness contrast value;
and processing the preview image by adopting the image processing coefficient, wherein the processing comprises overlapping the first image processing coefficient and the second image processing coefficient, and processing the preview image by adopting the coefficient after overlapping and according to a preset processing mode.
2. The method of claim 1, wherein the obtaining the environment parameter of the preview image comprises:
acquiring a current ISO value of the camera;
determining a current ISO value of the camera as the ISO value of the preview image.
3. The method according to claim 2, wherein the setting of the image processing coefficient for the preview image according to the environment parameter comprises:
acquiring at least one low illumination range and a low illumination level of each low illumination range, wherein one low illumination level corresponds to one image processing coefficient;
determining whether the ISO value is within the at least one low light level range;
if so, determining a target low illumination level of the preview image according to a low illumination range to which the ISO value belongs;
and setting a first image processing coefficient corresponding to the target low illumination level for the preview image.
4. The method according to claim 1, wherein the setting an image processing coefficient for the preview image according to the environment parameter comprises:
acquiring at least one backlight value range, wherein one backlight value range corresponds to one image processing coefficient;
judging whether the brightness contrast value is within the at least one backlight value range;
and if so, setting a second image processing coefficient corresponding to the brightness contrast value according to the backlight value range to which the brightness contrast value belongs.
5. The method of claim 3 or 4, wherein the processing the preview image using the image processing coefficients comprises:
processing the preview image by adopting the first image processing coefficient and according to a preset processing mode; or
Processing the preview image by adopting the second image processing coefficient and according to a preset processing mode;
wherein the preset treatment mode comprises at least one of buffing, whitening and face thinning.
6. The method of claim 5, wherein after processing the preview image using the image processing coefficients, further comprising:
and outputting the processed preview image.
7. A user terminal, comprising:
the acquisition unit is used for displaying a preview image in a shooting area of the camera when receiving a starting command aiming at the camera of the user terminal;
a parameter obtaining unit, configured to obtain an environmental parameter of the preview image if the preview image includes a face element, where the environmental parameter includes: a sensitivity ISO value and a brightness contrast value; wherein the parameter acquiring unit includes: a brightness acquiring subunit, configured to acquire an average brightness value of a face element in the preview image and an average brightness value of a shooting environment other than the face element in the preview image, and a calculating subunit, configured to calculate a brightness contrast value according to the average brightness value of the face element and the average brightness value of the shooting environment;
a setting unit, configured to set an image processing coefficient for the preview image according to the environment parameter; wherein a first image processing coefficient is set according to the sensitivity ISO value, and a second image processing coefficient is set according to the brightness contrast value;
and the processing unit is used for processing the preview image by adopting the image processing coefficient, and comprises the steps of performing superposition processing on the first image processing coefficient and the second image processing coefficient, and processing the preview image by adopting the superposed coefficients and according to a preset processing mode.
8. The ue of claim 7, wherein the parameter obtaining unit comprises:
the reading subunit is used for acquiring the current ISO value of the camera;
an ISO determination subunit, configured to determine a current ISO value of the camera as the ISO value of the preview image.
9. The user terminal according to claim 8, wherein the setting unit comprises:
the system comprises a grade acquisition subunit, a processing unit and a processing unit, wherein the grade acquisition subunit is used for acquiring at least one low illumination range and a low illumination grade of each low illumination range, and one low illumination grade corresponds to one image processing coefficient;
an ISO judging subunit, configured to judge whether the ISO value is within the at least one low illuminance range;
a level determining subunit, configured to determine, when the ISO value is within the at least one low illumination range, a target low illumination level of the preview image according to a low illumination range to which the ISO value belongs;
and the first setting subunit is used for setting a first image processing coefficient corresponding to the target low illumination level for the preview image.
10. The user terminal according to claim 7, wherein the setting unit comprises:
the backlight acquisition subunit is used for acquiring at least one backlight value range, wherein one backlight value range corresponds to one image processing coefficient;
the brightness judging subunit is used for judging whether the brightness contrast value is within the at least one backlight value range;
and the second setting subunit is used for setting a second image processing coefficient corresponding to the brightness contrast value according to the backlight value range to which the brightness contrast value belongs when the brightness contrast value is in the at least one backlight value range.
11. The ue of claim 9 or 10, wherein the processing unit is specifically configured to:
processing the preview image by adopting the first image processing coefficient and according to a preset processing mode; or
Processing the preview image by adopting the second image processing coefficient and according to a preset processing mode;
wherein the preset treatment mode comprises at least one of buffing, whitening and face thinning.
12. The ue of claim 11, wherein the ue further comprises:
an output unit configured to output the processed preview image.
13. A user terminal, characterized in that the user terminal comprises: the system comprises a display, a camera, a memory and a processor, wherein the processor executes the following steps by calling codes or instructions in the memory:
when a starting command for a camera of a user terminal is received, displaying a preview image in a shooting area of the camera;
if the preview image contains the face element, acquiring the environmental parameters of the preview image, wherein the environmental parameters comprise: a sensitivity ISO value and a brightness contrast value; acquiring an average brightness value of a face element in the preview image and an average brightness value of a shooting environment except the face element in the preview image, and calculating a brightness contrast value according to the average brightness value of the face element and the average brightness value of the shooting environment;
setting an image processing coefficient for the preview image according to the environment parameter; wherein a first image processing coefficient is set according to the sensitivity ISO value, and a second image processing coefficient is set according to the brightness contrast value;
and processing the preview image by adopting the image processing coefficient, wherein the processing comprises overlapping the first image processing coefficient and the second image processing coefficient, and processing the preview image by adopting the coefficient after overlapping and according to a preset processing mode.
14. The user terminal according to claim 13, wherein the processor, when executing the step of obtaining the environment parameter of the preview image, specifically executes the following steps:
acquiring a current ISO value of the camera;
determining a current ISO value of the camera as the ISO value of the preview image.
15. The user terminal according to claim 14, wherein the processor, when executing the step of setting an image processing coefficient for the preview image according to the environment parameter, specifically executes the following steps:
acquiring at least one low illumination range and a low illumination level of each low illumination range, wherein one low illumination level corresponds to one image processing coefficient;
determining whether the ISO value is within the at least one low light level range;
if so, determining a target low illumination level of the preview image according to a low illumination range to which the ISO value belongs;
and setting a first image processing coefficient corresponding to the target low illumination level for the preview image.
16. The user terminal according to claim 13, wherein the processor, when executing the step of setting an image processing coefficient for the preview image according to the environment parameter, specifically executes the following steps:
acquiring at least one backlight value range, wherein one backlight value range corresponds to one image processing coefficient;
judging whether the brightness contrast value is within the at least one backlight value range;
and if so, setting a second image processing coefficient corresponding to the brightness contrast value according to the backlight value range to which the brightness contrast value belongs.
17. The user terminal according to claim 15 or 16, wherein the processor, when executing the step of processing the preview image by using the image processing coefficient, specifically executes the following steps:
processing the preview image by adopting the first image processing coefficient and according to a preset processing mode; or
Processing the preview image by adopting the second image processing coefficient and according to a preset processing mode;
wherein the preset treatment mode comprises at least one of buffing, whitening and face thinning.
18. The user terminal of claim 17, wherein the processor, after performing the step of processing the preview image using the image processing coefficients, further performs the steps of:
and calling the display to output the processed preview image.
19. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a portable electronic device comprising a camera and a plurality of applications, cause the portable electronic device to perform the method of any of claims 1-6.
CN201580027295.4A 2015-10-28 2015-10-28 Image processing method and user terminal Active CN107690804B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2015093012 2015-10-28

Publications (2)

Publication Number Publication Date
CN107690804A CN107690804A (en) 2018-02-13
CN107690804B true CN107690804B (en) 2020-08-25

Family

ID=61152305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580027295.4A Active CN107690804B (en) 2015-10-28 2015-10-28 Image processing method and user terminal

Country Status (1)

Country Link
CN (1) CN107690804B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11818497B2 (en) 2019-02-28 2023-11-14 Huawei Technologies Co., Ltd. Recording frame rate control method and related apparatus

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108882439A (en) * 2018-05-16 2018-11-23 广东小天才科技有限公司 Illumination control method and illumination equipment
CN109089041A (en) * 2018-08-22 2018-12-25 Oppo广东移动通信有限公司 Recognition methods, device, electronic equipment and the storage medium of photographed scene
CN109646950B (en) * 2018-11-20 2020-03-20 苏州紫焰网络科技有限公司 Image processing method and device applied to game scene and terminal
CN109862282B (en) * 2019-02-18 2021-04-30 Oppo广东移动通信有限公司 Method and device for processing person image
CN111741211B (en) * 2019-03-25 2022-07-29 华为技术有限公司 Image display method and apparatus
CN110248141B (en) * 2019-06-10 2021-06-04 广州视源电子科技股份有限公司 Video image brightness adjusting method, device, equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582991A (en) * 2008-05-13 2009-11-18 深圳华为通信技术有限公司 Method and device for processing image
CN101931749A (en) * 2009-06-25 2010-12-29 原相科技股份有限公司 Shooting parameter adjustment method for face detection and image capturing device for face detection
CN102821250A (en) * 2012-08-23 2012-12-12 青岛海信网络科技股份有限公司 Automatic dimming method and device of infrared camera
CN104902177A (en) * 2015-05-26 2015-09-09 广东欧珀移动通信有限公司 Intelligent photographing method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582991A (en) * 2008-05-13 2009-11-18 深圳华为通信技术有限公司 Method and device for processing image
CN101931749A (en) * 2009-06-25 2010-12-29 原相科技股份有限公司 Shooting parameter adjustment method for face detection and image capturing device for face detection
CN102821250A (en) * 2012-08-23 2012-12-12 青岛海信网络科技股份有限公司 Automatic dimming method and device of infrared camera
CN104902177A (en) * 2015-05-26 2015-09-09 广东欧珀移动通信有限公司 Intelligent photographing method and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11818497B2 (en) 2019-02-28 2023-11-14 Huawei Technologies Co., Ltd. Recording frame rate control method and related apparatus

Also Published As

Publication number Publication date
CN107690804A (en) 2018-02-13

Similar Documents

Publication Publication Date Title
CN107690804B (en) Image processing method and user terminal
US11765466B2 (en) Imaging control method and apparatus, electronic device, and computer readable storage medium
EP3609177B1 (en) Control method, control apparatus, imaging device, and electronic device
US10805508B2 (en) Image processing method, and device
CN110766621B (en) Image processing method, image processing device, storage medium and electronic equipment
CN109040523B (en) Artifact eliminating method and device, storage medium and terminal
EP3644599A1 (en) Video processing method and apparatus, electronic device, and storage medium
US11233948B2 (en) Exposure control method and device, and electronic device
CN108513069B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110213462B (en) Image processing method, image processing device, electronic apparatus, image processing circuit, and storage medium
EP3836532A1 (en) Control method and apparatus, electronic device, and computer readable storage medium
CN108574803B (en) Image selection method and device, storage medium and electronic equipment
CN112822413B (en) Shooting preview method, shooting preview device, terminal and computer readable storage medium
CN116055895B (en) Image processing method and device, chip system and storage medium
CN112488933A (en) Video detail enhancement method and device, mobile terminal and storage medium
CN108810407B (en) Image processing method, mobile terminal and computer readable storage medium
CN111447360A (en) Application program control method and device, storage medium and electronic equipment
CN108495038B (en) Image processing method, image processing device, storage medium and electronic equipment
CN112003996B (en) Video generation method, terminal and computer storage medium
CN113099101B (en) Camera shooting parameter adjusting method and device and electronic equipment
CN114119413A (en) Image processing method and device, readable medium and mobile terminal
CN113538462A (en) Image processing method and device, computer readable storage medium and electronic device
CN108335278B (en) Image processing method and device, storage medium and electronic equipment
CN116668773B (en) Method for enhancing video image quality and electronic equipment
CN112950516B (en) Method and device for enhancing local contrast of image, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant