CN107147851B - Photo processing method and device, computer readable storage medium and electronic equipment - Google Patents

Photo processing method and device, computer readable storage medium and electronic equipment Download PDF

Info

Publication number
CN107147851B
CN107147851B CN201710401748.6A CN201710401748A CN107147851B CN 107147851 B CN107147851 B CN 107147851B CN 201710401748 A CN201710401748 A CN 201710401748A CN 107147851 B CN107147851 B CN 107147851B
Authority
CN
China
Prior art keywords
sensitivity
image
terminal
photo
face
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.)
Expired - Fee Related
Application number
CN201710401748.6A
Other languages
Chinese (zh)
Other versions
CN107147851A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710401748.6A priority Critical patent/CN107147851B/en
Publication of CN107147851A publication Critical patent/CN107147851A/en
Application granted granted Critical
Publication of CN107147851B publication Critical patent/CN107147851B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • 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
    • 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/73Circuitry for compensating brightness variation in the scene by influencing the exposure time

Landscapes

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

Abstract

The embodiment of the invention discloses a photo processing method, a photo processing device, a computer readable storage medium and electronic equipment. The photo processing method comprises the following steps: when the fact that a human face picture needs to be shot is detected, the current light sensitivity of the terminal is obtained; if the current sensitivity is detected to reach a preset threshold value, at least determining a first sensitivity and a second sensitivity which are different in numerical value, wherein the first sensitivity and the second sensitivity are both smaller than the current sensitivity; when the shooting operation is detected, shooting at least one frame of picture according to the first sensitivity, and shooting at least one frame of picture according to the second sensitivity; acquiring an image of a face region from a photograph taken at a first sensitivity, and acquiring an image of a non-face region from a photograph taken at a second sensitivity; and synthesizing the image of the face area and the image of the non-face area to obtain an output photo. The embodiment of the invention can improve the detail expression degree of the photo.

Description

Photo processing method and device, computer readable storage medium and electronic equipment
Technical Field
The invention belongs to the technical field of picture processing, and particularly relates to a picture processing method and device, a computer readable storage medium and electronic equipment.
Background
With the increasing performance of cameras and the increasing computing power of processors, the terminal can capture pictures with high definition by means of various image processing algorithms. For example, the terminal may quickly take a plurality of frames of photos, and then synthesize a frame of photo with less noise through a multi-frame noise reduction process.
However, in a dark environment, some areas of the picture taken by the terminal are easily overexposed. Then, the output pictures obtained after multi-frame synthesis of these pictures with overexposed areas have much lost picture details.
Disclosure of Invention
The embodiment of the invention provides a photo processing method and device, a computer readable storage medium and electronic equipment, which can improve the detail expression degree of a photo.
The embodiment of the invention provides a photo processing method, which comprises the following steps:
when the fact that a human face picture needs to be shot is detected, the current light sensitivity of the terminal is obtained;
if the current sensitivity is detected to reach a preset threshold value, at least determining a first sensitivity and a second sensitivity which are different in numerical value, wherein the first sensitivity and the second sensitivity are both smaller than the current sensitivity;
when the shooting operation is detected, shooting at least one frame of picture according to the first sensitivity, and shooting at least one frame of picture according to the second sensitivity;
acquiring an image of a face region from a photograph taken at the first sensitivity, and acquiring an image of a non-face region from a photograph taken at the second sensitivity;
and synthesizing the image of the face area and the image of the non-face area to obtain an output photo.
An embodiment of the present invention provides a photo processing apparatus, including:
the first acquisition module is used for acquiring the current sensitivity of the terminal when the condition that a human face picture needs to be shot is detected;
the determining module is used for determining at least a first sensitivity and a second sensitivity which have different numerical values if the current sensitivity is detected to reach a preset threshold, wherein the first sensitivity and the second sensitivity are both smaller than the current sensitivity;
the shooting module is used for shooting at least one frame of picture according to the first sensitivity and shooting at least one frame of picture according to the second sensitivity when shooting operation is detected;
a second acquisition module for acquiring an image of a face region from a photograph taken using the first sensitivity and acquiring an image of a non-face region from a photograph taken using the second sensitivity;
and the output module is used for synthesizing the image of the face area and the image of the non-face area to obtain an output photo.
The embodiment of the invention provides a computer-readable storage medium, which stores a computer program, and the computer program is loaded by a processor and realizes the steps in the photo processing method provided by the embodiment of the invention when being executed.
The embodiment of the invention provides electronic equipment, which comprises a memory, a processor and a computer program which is stored in the memory and can run in the processor, wherein the processor executes the computer program to realize the steps in the photo processing method provided by the embodiment of the invention.
According to the photo processing method and device, the computer readable storage medium and the electronic device provided by the embodiment of the invention, when the condition that the human face photo needs to be shot is detected, the terminal can firstly acquire the current sensitivity and detect whether the current sensitivity reaches the preset threshold value. If yes, the terminal can be considered to be in a night shooting environment currently. In this case, the terminal may determine a first sensitivity and a second sensitivity that are different in value, each of the first sensitivity and the second sensitivity being smaller than the current sensitivity. When the photographing operation is detected, the terminal may photograph at least one frame of a photograph according to the first sensitivity and the second sensitivity, respectively. Thereafter, the terminal may acquire an image of a face region from a photograph taken using the first sensitivity and an image of a non-face region from a photograph taken using the second sensitivity. Then, the terminal may synthesize the acquired image of the face region and the image of the non-face region to obtain an output photograph. Because the actually used sensitivity (the first sensitivity and the second sensitivity are lower than the current sensitivity) is reduced when the picture is shot in a night scene, the shot picture can effectively reduce the detail loss caused by overexposure due to higher sensitivity. Moreover, the face region image and the non-face region image for synthesizing the picture are shot under different sensitivity environments, so that the details of the face region image and the non-face region image can be well reserved, and the embodiment of the invention can improve the detail expression degree of the picture.
Drawings
The technical solution and the advantages of the present invention will be apparent from the following detailed description of the embodiments of the present invention with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a photo processing method according to an embodiment of the present invention.
Fig. 2 is another schematic flow chart of a photo processing method according to an embodiment of the present invention.
Fig. 3A to fig. 3D are schematic scene diagrams of a photo processing method according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a photo processing apparatus according to an embodiment of the present invention.
FIG. 5 is a schematic view of another structure of a photo processing apparatus according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present invention are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the invention and should not be taken as limiting the invention with regard to other embodiments that are not detailed herein.
As will be described in detail below.
Referring to fig. 1, fig. 1 is a schematic flow chart of a photo processing method according to an embodiment of the present invention, where the flow chart may include:
in step S101, when it is detected that a face photograph needs to be taken, the current sensitivity of the terminal is acquired.
It is understood that the execution subject of the embodiment of the present invention may be a terminal device such as a smart phone or a tablet computer.
For example, in a dark environment, some areas of a picture taken by the terminal are easily overexposed. Then, the output pictures obtained after multi-frame synthesis of these pictures with overexposed areas have much lost picture details.
In step S101 of the embodiment of the present invention, when it is detected that a human face picture needs to be taken, the terminal may first obtain the current sensitivity of the terminal.
For example, after the terminal turns on the camera, an image for the user to preview is presented on the screen interface, and at this time, the terminal may detect whether the screen interface includes a face through a face recognition technology. If yes, the terminal is considered to need to take a face picture. If not, the terminal does not need to take the face picture.
When it is detected that a human face picture needs to be taken, the terminal can first acquire the current sensitivity used by the camera.
Thereafter, the terminal may detect whether the current sensitivity is greater than or equal to a preset threshold.
If the terminal detects that the current sensitivity is smaller than the preset threshold, that is, the sensitivity used by the terminal is smaller, the current environment is not considered to be a night scene environment, and at this time, the terminal can shoot a photo according to an instruction input by the user.
If the terminal detects that the current sensitivity is greater than or equal to the preset threshold, it proceeds to step S102.
In step S102, if it is detected that the current sensitivity reaches a preset threshold, at least a first sensitivity and a second sensitivity with different values are determined, and the first sensitivity and the second sensitivity are both smaller than the current sensitivity.
For example, when the terminal detects that the current sensitivity used by the camera is greater than or equal to the preset threshold, the current environment may be considered as a night scene environment because the sensitivity used by the terminal is greater. In this case, since the current sensitivity is large, it is easy to cause overexposure of the photograph when the photograph is taken. Thus, the terminal may determine at least a first sensitivity and a second sensitivity that are not equal in value, depending on the current sensitivity, and the first sensitivity and the second sensitivity may both be less than the current sensitivity.
For example, if the terminal detects that the current sensitivity of the camera is 800, which reaches a preset threshold, the terminal may determine a first sensitivity and a second sensitivity, which are different in value, according to the current sensitivity, and the first sensitivity and the second sensitivity are both smaller than 800. For example, the first sensitivity may have a value of 700, and the second sensitivity may have a value of 750.
In step S103, when a photographing operation is detected, at least one frame of a picture is photographed according to the first sensitivity, and at least one frame of a picture is photographed according to the second sensitivity.
In step S104, an image of a human face region is acquired from a photograph taken at the first sensitivity, and an image of a non-human face region is acquired from a photograph taken at the second sensitivity.
In step S105, the image of the face region and the image of the non-face region are synthesized to obtain an output photograph.
For example, steps S103, S104, and S105 may include:
after the first sensitivity and the second sensitivity are determined, when it is detected that a user presses a photographing button to trigger a photographing operation, the terminal may photograph at least one frame of picture according to the first sensitivity and photograph at least one frame of picture according to the second sensitivity.
That is, when the user starts a photographing operation by pressing the photographing button, the terminal does not photograph at the current sensitivity but photographs at least one frame of photograph at the first sensitivity and the second sensitivity in succession, respectively. For example, the terminal camera uses a current sensitivity value of 800, when it is detected that the user presses the photographing button to trigger the photographing operation, the terminal may photograph at least one frame of picture at a first sensitivity value of 700 and then photograph at least one frame of picture at a second sensitivity value of 750, so that the terminal photographs at least two frames of pictures.
After the photograph is taken, the terminal may acquire an image of a face region from the photograph taken using the first sensitivity and an image of a non-face region from the photograph taken using the second sensitivity.
For example, the terminal takes a picture a of one frame using the first sensitivity and takes a picture B of one frame using the second sensitivity. Then, the terminal may identify a face region from the photograph a by using a face recognition technique, and acquire an image of the face region. For the photo B, the terminal can also recognize the face region from the photo B through a face recognition technology, and then obtains the non-face region in the photo B through a reverse selection operation. Or after the face area is identified from the picture B, the terminal may remove the identified face area, so as to obtain the non-face area in the picture B.
After acquiring a face region image from a photograph taken at the first sensitivity and acquiring a non-face region image from a photograph taken at the second sensitivity, the terminal may synthesize the face region image and the non-face region image to obtain an output photograph.
For example, if a face region image a is acquired from a photograph a taken at the first sensitivity and a non-face region image B is acquired from a photograph B taken at the second sensitivity, the terminal may synthesize the face region image a and the non-face region image B to obtain one frame of output photograph.
It is understood that, in the embodiment of the present invention, since the sensitivity (both the first sensitivity and the second sensitivity are lower than the current sensitivity) actually used when the photo is taken in the night scene environment, the taken photo can effectively reduce the detail loss caused by overexposure due to the higher sensitivity.
In addition, based on the difference between the reflection capacities of the face area and the non-face area for light rays during photographing, the face area image and the non-face area image for synthesizing a photograph are photographed under different sensitivity environments, so that the details of the face area image and the non-face area image can be well preserved. Therefore, the embodiment of the invention can improve the detail expression degree of the photo.
Referring to fig. 2, fig. 2 is another schematic flow chart of a photo processing method according to an embodiment of the present invention, where the flow chart may include:
in step S201, when it is detected that a human face picture needs to be taken, the terminal acquires the current sensitivity.
For example, after the terminal starts the camera, an image for the user to preview is presented on the screen interface, and at this time, the terminal may detect whether the screen interface includes a face through a face recognition technology. If yes, the terminal is considered to need to take a face picture. If not, the terminal does not need to take the face picture.
When it is detected that a human face picture needs to be taken, the terminal can first acquire the current sensitivity used by the camera.
Thereafter, the terminal may detect whether the current sensitivity is greater than or equal to a preset threshold.
If the terminal detects that the current sensitivity is smaller than the preset threshold, that is, the current sensitivity is smaller, the current environment is not considered to be a night scene environment, and at this time, the terminal can shoot a photo according to an instruction input by the user.
If the terminal detects that the current sensitivity is greater than or equal to the preset threshold, it proceeds to step S202.
In step S202, if it is detected that the current sensitivity reaches a preset threshold, the terminal determines a first sensitivity and a second sensitivity, wherein the first sensitivity is less than the second sensitivity, and the first sensitivity and the second sensitivity are both less than the current sensitivity.
For example, when the terminal detects that the current sensitivity used by the camera is greater than or equal to the preset threshold, that is, the current sensitivity is greater, the current environment may be considered as a night scene environment or a dark light environment. In this case, because the current sensitivity is large, when a picture is taken, overexposure of the picture is easily caused, and image details of the picture are lost. Thus, the terminal may determine a first sensitivity and a second sensitivity based on the current sensitivity, the first sensitivity being less than the second sensitivity, and both the first and second sensitivities being less than the current sensitivity.
For example, if the terminal detects that the current sensitivity of the camera is 800, and reaches the preset threshold, the terminal determines that the value of the first sensitivity may be 700, the value of the second sensitivity may be 750, and so on according to the current sensitivity, which is not limited herein.
In step S203, when the photographing operation is detected, the terminal photographs at least one frame of picture according to the first sensitivity and photographs at least one frame of picture according to the second sensitivity.
In step S204, the terminal acquires an image of a face region from a photograph taken with the first sensitivity, and acquires an image of a non-face region from a photograph taken with the second sensitivity.
In step S205, the terminal synthesizes the image of the face region and the image of the non-face region to obtain a target photograph.
For example, steps S203, S204, and S205 may include:
after the first sensitivity and the second sensitivity are determined, when it is detected that a user presses a photographing button to trigger a photographing operation, the terminal may photograph at least one frame of picture according to the first sensitivity and photograph at least one frame of picture according to the second sensitivity.
That is, when the user presses the photographing button to trigger a photographing operation, the terminal does not photograph at the current sensitivity but photographs at least one frame of photograph at the first and second sensitivities, respectively. For example, the terminal camera uses a current sensitivity value of 800, when it is detected that the user presses the photographing button to trigger the photographing operation, the terminal may photograph at least one frame of picture at a first sensitivity value of 700 and then photograph at least one frame of picture at a second sensitivity value of 750, so that the terminal photographs at least two frames of pictures.
Since the face region is more easily overexposed than the non-face region, the face region should be photographed with a lower sensitivity. Based on this, after the photograph is taken, the terminal may acquire an image of a face region from the photograph taken using the first sensitivity and acquire an image of a non-face region from the photograph taken using the second sensitivity.
For example, the terminal takes a picture a of one frame using the first sensitivity and takes a picture B of one frame using the second sensitivity. Then, the terminal may identify a face region from the photograph a by using a face recognition technique, and acquire an image of the face region. For the photo B, the terminal can also recognize the face region from the photo B through a face recognition technology, and then obtains the non-face region in the photo B through a reverse selection operation. Or after the face area is identified from the picture B, the terminal may remove the identified face area, so as to obtain the non-face area in the picture B.
After acquiring a face region image from a photograph taken at the first sensitivity and acquiring a non-face region image from a photograph taken at the second sensitivity, the terminal may synthesize the face region image and the non-face region image to obtain a target photograph.
For example, if a face region image a is acquired from a photograph a taken at the first sensitivity and a non-face region image B is acquired from a photograph B taken at the second sensitivity, the terminal may synthesize the face region image a and the non-face region image B to obtain a frame of target photograph.
In step S206, the terminal obtains a first adjusting parameter value and a second adjusting parameter value, where the first adjusting parameter value is greater than the second adjusting parameter value, and the larger the adjusting parameter value is, the more the corresponding brightness is increased.
In step S207, the terminal performs brightness enhancement on the face region image in the target picture according to the first adjustment parameter value through a logarithmic curve algorithm, and performs brightness enhancement on the non-face region image in the target picture according to the second adjustment parameter value, so as to obtain an output picture.
For example, steps S206 and S207 may include:
after the target photograph is obtained, since the face area image and the non-face area image for synthesizing the target photograph are taken under a lower sensitivity environment (both the first sensitivity and the second sensitivity are lower than the current sensitivity), the overall brightness of the target photograph is low. In this case, the terminal may perform brightness enhancement on the target photo, thereby obtaining an output photo.
In an embodiment, after obtaining the target photo, the terminal may perform brightness enhancement on the target photo through a logarithmic curve algorithm, so as to obtain an output photo.
In the embodiment of the invention, the first sensitivity is less than the second sensitivity, so that the brightness of the human face area image in the target photo is lower than that of the non-human face area image. Therefore, the embodiment of the invention can improve the brightness of the face region image more and improve the brightness of the non-face region image less.
For example, the present embodiment may perform brightness enhancement on the target photo through a Logarithmic Curve (Logarithmic dark) algorithm. In the logarithmic curve algorithm, an adjustment parameter value is included, and the larger the adjustment parameter value is, the more the corresponding brightness is improved.
The terminal may then obtain a first tuning parameter value and a second tuning parameter value, the first tuning parameter value may be greater than the second tuning parameter value. After the first adjusting parameter value and the second adjusting parameter value are obtained, the terminal can perform brightness improvement on the face region image in the target picture according to the first adjusting parameter value through a logarithmic curve algorithm, and perform brightness improvement on the non-face region image in the target picture according to the second adjusting parameter value, so that an output picture is obtained.
In one embodiment, the image of the target photograph has a large number of pixel points. For example, there may be 500 ten thousand pixel points in the image of the target photograph. Through a logarithmic curve algorithm, the terminal can improve the brightness of each pixel point of the face region image in the target picture according to the first adjusting parameter value. Meanwhile, the terminal can improve the brightness of each pixel point of the non-face area image in the target photo according to the second adjusting parameter value.
In one embodiment, when the brightness of the target photo is increased by the logarithmic curve algorithm, the method may include the following steps:
firstly, the terminal can normalize the initial brightness value of each pixel point in the target photo to obtain the normalized brightness value of each pixel point.
Then, the terminal can adjust the normalized brightness value of each pixel point in sequence by a logarithmic curve algorithm according to the adjustment parameter value to obtain the adjusted normalized brightness value of each pixel point.
And then, the terminal can restore the adjusted normalized brightness value of each pixel point in sequence to obtain the adjusted brightness value of each pixel point.
Take brightness enhancement of the face region image as an example.
Firstly, the terminal can normalize the initial brightness value of each pixel point of the face region image to obtain the normalized brightness value of each pixel point.
Then, the terminal can adjust the normalized brightness value of each pixel point in sequence by a logarithmic curve algorithm according to the first adjustment parameter value to obtain the adjusted normalized brightness value of each pixel point.
And finally, the terminal can restore the adjusted normalized brightness value of each pixel point in sequence to obtain the adjusted brightness value of each pixel point.
The normalization refers to dividing the brightness value of the pixel point by 255, so that the brightness value of the pixel point is adjusted to be between 0 and 1, and the normalized brightness value is obtained.
The terminal can normalize the initial brightness value of each pixel point of the face region image to obtain the normalized brightness value of each pixel point.
And then, the terminal adjusts the normalized brightness value of each pixel point in sequence by a logarithmic curve algorithm according to the first adjustment parameter value so as to obtain the adjusted normalized brightness value of each pixel point. For example, the normalized luminance value of each pixel point may be amplified according to the first adjustment parameter value.
And finally, the terminal can restore the adjusted normalized brightness value of each pixel point in sequence to obtain the adjusted brightness value of each pixel point. The restoring refers to multiplying the adjusted normalized brightness value by 255, so that the brightness value of the pixel point is adjusted to be between 0 and 255.
In some embodiments, when the terminal sequentially adjusts the normalized brightness value of each pixel point by using a logarithmic curve algorithm according to the adjustment parameter value, the terminal adjusts according to the following formula:
wherein v (x, y) is the normalized brightness value of the pixel point at the (x, y) coordinate after adjustment, w (x, y) is the normalized brightness value of the pixel point at the (x, y) coordinate before adjustment, and beta is the adjustment parameter value. Wherein β is greater than 1. For example, when the brightness of the face region image is increased, the first adjustment parameter value may be 3.
And after the terminal obtains the adjusted normalized brightness value v (x, y) of each pixel point, multiplying the normalized brightness value v (x, y) by 255 to obtain the adjusted brightness value of the pixel point at the (x, y) coordinate.
And after the terminal sequentially adjusts and obtains the adjusted brightness value of each pixel point, the brightness improvement of the face region image is completed.
Similarly, when the terminal performs brightness enhancement on the non-face area image, the value of the second adjustment parameter may be 2.
After the brightness of the face region image and the non-face region image in the target photo is improved, the terminal can obtain an output photo.
In one embodiment, in step S203, if the terminal takes multiple pictures according to the first sensitivity and multiple pictures according to the second sensitivity, the terminal may include the following steps when acquiring the image of the face region and the image of the non-face region:
for example, the terminal takes two pictures of a first sensitivity, pictures C and D, respectively, and two pictures of a second sensitivity, pictures E and F, respectively. Then, the terminal may perform multi-frame noise reduction processing on the pictures C and D, for example, to obtain the picture G after the multi-frame noise reduction processing. Similarly, the terminal may perform multi-frame denoising processing on the pictures E and F, for example, to obtain the picture H after the multi-frame denoising processing.
It can be understood that the images of the pictures G and H obtained by the multi-frame noise reduction processing have lower noise and clearer image quality.
After that, the terminal may obtain an image of a face region, for example, G, from the photograph G, and an image of a non-face region, for example, H, from the photograph H. After the face region image g and the non-face region image h are obtained, the terminal can synthesize g and h to obtain an output photo.
It can be understood that because the face area image and the non-face area image are both obtained by multi-frame noise reduction, the image definition of the finally output picture is higher.
In an implementation, this embodiment may further include the following steps:
during the taking of a picture according to the first sensitivity and the second sensitivity, the terminal keeps the exposure time constant.
For example, the exposure time corresponding to the current sensitivity acquired in step S201 is T, and when a photograph is taken according to the first sensitivity and the second sensitivity in step S203, the exposure time used by the terminal may still be kept at T.
Referring to fig. 3A to 3D, fig. 3A to 3D are schematic views of scenes of a photo processing method according to an embodiment of the invention.
For example, a user turns on a camera to prepare to take a picture of a friend, and an image for the user to preview is presented on a terminal screen interface. At this time, the terminal may detect whether the screen interface includes a face image through a face recognition technology. For example, in this embodiment, the terminal detects that the screen interface includes a face image of a friend of the user, as shown in fig. 3A.
The terminal may then acquire the current sensitivity used by the camera, for example, the current sensitivity may have a value of 800, as shown in fig. 3A.
After acquiring the current sensitivity, the terminal may detect whether the current sensitivity is greater than or equal to a preset threshold. For example, the preset threshold is 800. That is, at this time, the terminal detects that the current sensitivity reaches the preset threshold. In this case, the current shooting environment of the terminal may be considered as a night scene environment. Since the current sensitivity is large, when a photograph is taken, it is easy to cause overexposure of the photograph.
After acquiring the current sensitivity, the terminal may determine a first sensitivity and a second sensitivity according to the current sensitivity, the first sensitivity being less than the second sensitivity, and the first sensitivity and the second sensitivity may both be less than the current sensitivity. For example, the first sensitivity may have a value of 700, and the second sensitivity may have a value of 750.
After the first sensitivity and the second sensitivity are determined, when it is detected that the user presses a photographing button to trigger a photographing operation, the terminal may photograph two frames of photos according to the first sensitivity and photograph two frames of photos according to the second sensitivity. That is, the terminal may first take two pictures, for example, pictures C and D, respectively, at a first sensitivity of 700 in magnitude. Then, the terminal can take two pictures, e.g., pictures E and F, respectively, at a second sensitivity of 750 in numerical size. Thus, the terminal takes four pictures.
After that, the terminal may perform multi-frame noise reduction processing, for example, multi-frame noise reduction processing on the pictures C and D taken with the first sensitivity to obtain a picture G. Similarly, the terminal may perform multi-frame noise reduction processing on the pictures E and F taken at the second sensitivity, for example, to obtain a picture H.
Then, the terminal may acquire an image of the face region from the photograph G through a face recognition technique. As shown in fig. 3B, the terminal acquires an image G of the face region from the photograph G (the face region image G is shown in a dotted line frame in the figure).
Meanwhile, the terminal may acquire an image (e.g., a background image) of the non-face region from the photograph H. As shown in fig. 3C, the terminal acquires an image H of a non-face region from the photograph H (the image H of the non-face region is between the dotted line frame and the implementation frame in the figure).
After the image g of the face region and the image h of the non-face region are acquired, the terminal may synthesize the image g of the face region and the image h of the non-face region to obtain a target photograph I, as shown in fig. 3D.
Since the image g of the face region and the image h of the non-face region are both images captured with a low sensitivity, the overall brightness of the target photograph I is low. At this time, the terminal can perform brightness enhancement on the target photo to obtain an output photo with better detail expression.
In this embodiment, the terminal may perform brightness enhancement on the target photo I through a logarithmic curve algorithm. In the logarithmic curve algorithm, an adjustment parameter value is included, and the larger the adjustment parameter value is, the more the corresponding brightness is improved. Because the first sensitivity corresponding to the image of the human face region is less than the second sensitivity corresponding to the non-human face region, the brightness of the image of the human face region is lower than that of the image of the non-human face region in the target photograph I. Therefore, when the brightness is increased, the terminal increases the brightness of the face area image in the target photograph I more. For example, the terminal may first obtain a first modulation parameter value β 1 and a second modulation parameter value β 2, where the first modulation parameter value β 1 is greater than the second modulation parameter value β 2, for example, β 1 ═ 3, and β 2 ═ 2.
And then, the terminal carries out brightness improvement on the face region image in the target picture according to the beta 1 and carries out brightness improvement on the non-face region image in the target picture I according to the beta 2, and after the brightness improvement is finished, an output picture can be obtained and is displayed on a screen interface for a user to check.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a photo processing device according to an embodiment of the present invention. The photo processing device 300 may include: a first acquisition module 301, a determination module 302, a photographing module 303, a second acquisition module 304, and an output module 305.
The first obtaining module 301 is configured to obtain current sensitivity of the terminal when it is detected that a human face picture needs to be taken.
For example, after the terminal starts the camera, an image for the user to preview is presented on the screen interface, and at this time, the terminal may detect whether the screen interface includes a face through a face recognition technology. If yes, the terminal is considered to need to take a face picture. If not, the terminal does not need to take the face picture.
When it is detected that a human face picture needs to be taken, the first obtaining module 301 of the terminal may first obtain the current sensitivity used by the camera.
Thereafter, the terminal may detect whether the current sensitivity is greater than or equal to a preset threshold.
If the terminal detects that the current sensitivity is smaller than the preset threshold, that is, the sensitivity used by the terminal is smaller, the current environment is not considered to be a night scene environment, and at this time, the terminal can shoot a photo according to an instruction input by the user.
The determining module 302 is configured to determine at least a first sensitivity and a second sensitivity with different values if it is detected that the current sensitivity reaches a preset threshold, where both the first sensitivity and the second sensitivity are smaller than the current sensitivity.
For example, when the terminal detects that the current sensitivity used by the camera is greater than or equal to the preset threshold, the current environment may be considered as a night scene environment because the sensitivity used by the terminal is greater. In this case, since the current sensitivity is large, it is easy to cause overexposure of the photograph when the photograph is taken. Thus, the determining module 302 may determine at least a first sensitivity and a second sensitivity that are not equal in value, which may both be less than the current sensitivity, based on the current sensitivity.
For example, if the terminal detects that the current sensitivity of the camera is 800, which reaches a preset threshold, the determining module 302 may determine a first sensitivity and a second sensitivity, which are different in value, according to the current sensitivity, and the first sensitivity and the second sensitivity are both smaller than 800. For example, the first sensitivity may have a value of 700, and the second sensitivity may have a value of 750.
The shooting module 303 is configured to shoot at least one frame of picture according to the first sensitivity and shoot at least one frame of picture according to the second sensitivity when the shooting operation is detected.
A second obtaining module 304, configured to obtain an image of a face region from a photograph taken at the first sensitivity, and obtain an image of a non-face region from a photograph taken at the second sensitivity.
An output module 305, configured to synthesize the image of the face region and the image of the non-face region to obtain an output photo.
For example, after the determining module 302 determines the first sensitivity and the second sensitivity, when it is detected that the user presses the photographing button to trigger the photographing operation, the photographing module 303 may photograph at least one frame of picture at the first sensitivity and photograph at least one frame of picture at the second sensitivity.
That is, when the user presses the photographing button to trigger the photographing operation, the terminal does not photograph at the current sensitivity but photographs at least one frame of photograph at the first sensitivity and the second sensitivity in succession, respectively. For example, the terminal camera uses a current sensitivity value of 800, when it is detected that the user presses the photographing button to trigger the photographing operation, the photographing module 303 may first photograph at least one frame of picture at a first sensitivity value of 700, and then photograph at least one frame of picture at a second sensitivity value of 750, so that the terminal photographs at least two frames of pictures.
After the photographing module 303 has taken a picture, the second acquiring module 304 may acquire an image of a face region from the picture taken using the first sensitivity and an image of a non-face region from the picture taken using the second sensitivity.
For example, the photographing module 303 photographs a frame of a picture a using a first sensitivity and photographs a frame of a picture B using a second sensitivity. Then, the second obtaining module 304 may identify a face region from the photo a through a face recognition technology, and obtain an image of the face region. For the photo B, the second obtaining module 304 may also identify a face region from the photo B through a face recognition technology, and then obtain a non-face region in the photo B through a reverse selection operation. Alternatively, after the face region is recognized from the picture B, the second obtaining module 304 may remove the recognized face region, so as to obtain the non-face region in the picture B.
After acquiring a face region image from a photograph taken at the first sensitivity and acquiring a non-face region image from a photograph taken at the second sensitivity, the output module 305 may synthesize the face region image and the non-face region image to obtain an output photograph.
In one embodiment, the determining module 302 may be configured to:
at least a first sensitivity and a second sensitivity are determined, the first sensitivity being less than the second sensitivity.
For example, after the first obtaining module 301 obtains the current sensitivity of the terminal, the determining module 302 may determine a first sensitivity and a second sensitivity according to the current sensitivity, wherein the first sensitivity is smaller than the second sensitivity.
For example, if the current sensitivity acquired by the first acquiring module 301 has a value of 800, the first sensitivity determined by the determining module 302 may have a value of 700, and the second sensitivity may have a value of 750.
Since the face region is more easily overexposed than the non-face region, the face region should be photographed with a lower sensitivity. Based on this, after the photographing module 303 has taken a picture, the second acquiring module 304 may acquire an image of a face region from the picture taken using the first sensitivity and acquire an image of a non-face region from the picture taken using the second sensitivity.
In one embodiment, the output module 305 may be configured to:
synthesizing the image of the face area and the image of the non-face area to obtain a target photo;
and carrying out brightness improvement on the target photo through a logarithmic curve algorithm to obtain an output photo.
For example, since both the face area image and the non-face area image for synthesis are captured under a low sensitivity environment (both the first sensitivity and the second sensitivity are lower than the current sensitivity), the overall brightness of both the face area image and the non-face area image is low. In this case, the terminal may perform brightness enhancement on the face region image and the non-face region image.
For example, the output module 305 may synthesize the face region image and the non-face region image to obtain a target photograph. Then, the output module 305 may perform brightness enhancement on the target photo through a logarithmic curve algorithm, so as to obtain an output photo.
In one embodiment, the output module 305 may be configured to:
acquiring a first adjusting parameter value and a second adjusting parameter value, wherein the first adjusting parameter value is larger than the second adjusting parameter value, and the larger the adjusting parameter value is, the more the corresponding brightness is improved;
and performing brightness improvement on the face region image in the target photo according to the first adjusting parameter value through a logarithmic curve algorithm, and performing brightness improvement on the non-face region image in the target photo according to the second adjusting parameter value to obtain an output photo.
For example, since the first sensitivity is less than the second sensitivity, the brightness of the face region image in the target photograph is lower than that of the non-face region image. Therefore, the output module 305 may improve the brightness of the face region image more, and improve the brightness of the non-face region image less.
For example, the output module 305 may perform brightness enhancement on the target photo through a Logarithmic Curve (Logarithmic cube) algorithm. In the logarithmic curve algorithm, an adjustment parameter value is included, and the larger the adjustment parameter value is, the more the corresponding brightness is improved.
Then the output module 305 may obtain a first tuning parameter value and a second tuning parameter value, where the first tuning parameter value may be greater than the second tuning parameter value. After the first adjustment parameter value and the second adjustment parameter value are obtained, the output module 305 may perform brightness enhancement on the face region image in the target photo according to the first adjustment parameter value through a logarithmic curve algorithm, and perform brightness enhancement on the non-face region image in the target photo according to the second adjustment parameter value, thereby obtaining an output photo.
Take brightness enhancement of the face region image as an example.
First, the output module 305 may normalize the initial brightness value of each pixel of the face region image to obtain a normalized brightness value of each pixel.
Then, the output module 305 may sequentially adjust the normalized luminance value of each pixel point according to the first adjustment parameter value by using a logarithmic curve algorithm, so as to obtain an adjusted normalized luminance value of each pixel point.
Finally, the output module 305 may restore the adjusted normalized luminance value of each pixel point in turn to obtain the adjusted luminance value of each pixel point.
The normalization refers to dividing the brightness value of the pixel point by 255, so that the brightness value of the pixel point is adjusted to be between 0 and 1, and the normalized brightness value is obtained.
The output module 305 may normalize the initial brightness value of each pixel of the face region image to obtain a normalized brightness value of each pixel.
Then, the output module 305 sequentially adjusts the normalized luminance value of each pixel point according to the first adjustment parameter value by using a logarithmic curve algorithm, so as to obtain an adjusted normalized luminance value of each pixel point. For example, the output module 305 may amplify the normalized luminance value of each pixel according to the first adjustment parameter value.
Finally, the output module 305 may restore the adjusted normalized luminance value of each pixel point in turn to obtain the adjusted luminance value of each pixel point. The restoring refers to multiplying the adjusted normalized brightness value by 255, so that the brightness value of the pixel point is adjusted to be between 0 and 255.
In some embodiments, the output module 305 may adjust the normalized luminance value of each pixel point in turn by using a logarithmic curve algorithm according to the adjustment parameter value according to the following formula:
wherein v (x, y) is the normalized brightness value of the pixel point at the (x, y) coordinate after adjustment, w (x, y) is the normalized brightness value of the pixel point at the (x, y) coordinate before adjustment, and beta is the adjustment parameter value. Wherein β is greater than 1. For example, when the brightness of the face region image is increased, the first adjustment parameter value may be 3.
After obtaining the adjusted normalized luminance value v (x, y) of each pixel point, the output module 305 multiplies the normalized luminance value v (x, y) by 255 to obtain the adjusted luminance value of the pixel point at the (x, y) coordinate.
The output module 305 sequentially adjusts and obtains the adjusted brightness value of each pixel point, and then the brightness improvement of the face region image is completed.
Referring to fig. 5, fig. 5 is another schematic structural diagram of a photo processing apparatus according to an embodiment of the present invention. In an embodiment, the photo processing apparatus 300 may further include: a module 306 is maintained.
A maintaining module 306, configured to maintain an exposure time of the terminal unchanged during the process of taking the picture according to the first sensitivity and the second sensitivity.
For example, the exposure time corresponding to the current sensitivity acquired by the first acquiring module 301 is T, and when the photographing module 303 photographs according to the first sensitivity and the second sensitivity, the maintaining module 306 may maintain the exposure time of the terminal unchanged, that is, the exposure time used by the terminal is still maintained at T.
The embodiment of the invention also provides a computer-readable storage medium, which stores a computer program, and the computer program is loaded by a processor and realizes the steps in the photo processing method provided by the embodiment of the invention when being executed.
The embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable in the processor, and when the processor executes the computer program, the steps in the photo processing method provided in the embodiment of the present invention are implemented.
For example, the electronic device may be a mobile terminal such as a tablet computer, a mobile phone, and the like. Referring to fig. 6, fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. The mobile terminal 500 may include: memory 501 having one or more computer-readable storage media, input unit 502, output unit 503, camera unit 504, processor 505 including one or more processing cores, and the like. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The memory 501 may be used to store applications and data. The memory 501 stores applications containing executable code. The application programs may constitute various functional modules. The processor 505 executes various functional applications and data processing by running an application program stored in the memory 501.
The input unit 502 may be used to receive input numbers, character information, or user characteristic information, such as a fingerprint, and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. In an embodiment, the input unit 503 may include a touch-sensitive surface as well as other input devices.
The output unit 503 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal, which may be configured by graphics, text, icons, video, and any combination thereof. The display unit 504 may include a display panel.
The camera unit 504 has basic functions such as still image capturing and video camera. The camera unit 504 may include a camera. After the camera collects images, the images are processed by a photosensitive assembly circuit and a control assembly in the camera and converted into digital signals which can be identified by the electronic equipment.
The processor 505 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing an application program stored in the memory 501 and calling data stored in the memory 501, thereby performing overall monitoring of the mobile terminal.
Although not shown in fig. 6, the mobile terminal may further include a bluetooth module, a wireless fidelity module, and the like, which are not described in detail herein.
In this embodiment, the processor 505 in the mobile terminal loads the executable code corresponding to the process of one or more application programs into the memory 501 according to the following instructions, and the processor 505 runs the application programs stored in the memory 501, thereby implementing the following steps:
when the fact that a human face picture needs to be shot is detected, the current light sensitivity of the terminal is obtained; if the current sensitivity is detected to reach a preset threshold value, at least determining a first sensitivity and a second sensitivity which are different in numerical value, wherein the first sensitivity and the second sensitivity are both smaller than the current sensitivity; when the shooting operation is detected, shooting at least one frame of picture according to the first sensitivity, and shooting at least one frame of picture according to the second sensitivity; acquiring an image of a face region from a photograph taken at the first sensitivity, and acquiring an image of a non-face region from a photograph taken at the second sensitivity; and synthesizing the image of the face area and the image of the non-face area to obtain an output photo.
The processor 505, when performing the above step of determining at least the first sensitivity and the second sensitivity which are not equal in value, may include: at least a first sensitivity and a second sensitivity are determined, the first sensitivity being less than the second sensitivity.
When the processor 505 performs the above step of synthesizing the image of the face region and the image of the non-face region to obtain an output photo, the method may include: synthesizing the image of the face area and the image of the non-face area to obtain a target photo; and carrying out brightness improvement on the target photo through a logarithmic curve algorithm to obtain an output photo.
When the processor 505 executes the above-mentioned logarithmic curve algorithm to perform brightness enhancement on the target photo to obtain an output photo, the method may include: acquiring a first adjusting parameter value and a second adjusting parameter value, wherein the first adjusting parameter value is larger than the second adjusting parameter value, and the larger the adjusting parameter value is, the more the corresponding brightness is improved; and performing brightness improvement on the face region image in the target photo according to the first adjusting parameter value through a logarithmic curve algorithm, and performing brightness improvement on the non-face region image in the target photo according to the second adjusting parameter value to obtain an output photo.
The processor 505 may also perform the following steps: during the process of taking a picture according to the first sensitivity and the second sensitivity, the exposure time of the terminal is kept unchanged.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the photo processing method, and are not described herein again.
The photo processing apparatus provided in the embodiment of the present invention and the photo processing method in the above embodiment belong to the same concept, and any one of the methods provided in the embodiments of the photo processing method may be run on the photo processing apparatus, and a specific implementation process thereof is described in detail in the embodiment of the photo processing method, and is not described herein again.
It should be noted that, for the photo processing method according to the embodiment of the present invention, it can be understood by those skilled in the art that all or part of the processes for implementing the photo processing method according to the embodiment of the present invention can be implemented by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and during the execution process, the processes according to the embodiment of the photo processing method can be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the photo processing device according to the embodiment of the present invention, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The above provides a detailed description of the photo processing method, the photo processing apparatus, the computer readable storage medium, and the electronic device according to the embodiments of the present invention, and a specific example is applied in the description to explain the principles and embodiments of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of processing a photograph, the method comprising:
after a camera is started on a terminal, presenting an image for a user to preview on a terminal screen interface, wherein the terminal is in a photographing preview mode, detecting whether the screen interface contains a human face, acquiring the current sensitivity of the terminal when detecting that the screen interface does not contain the human face, and photographing a picture according to the current sensitivity;
when the fact that the screen interface contains the face is detected, the fact that a face photo needs to be shot is considered, and the current light sensitivity of the terminal is detected;
if the current sensitivity is detected to reach a preset threshold value, the current environment is considered to be a night scene environment, at least a first sensitivity and a second sensitivity which are different in numerical value are determined, and the first sensitivity and the second sensitivity are both smaller than the current sensitivity;
when the shooting operation is detected, shooting at least one frame of picture according to the first sensitivity, and shooting at least one frame of picture according to the second sensitivity;
removing the non-face region from the picture shot at the first sensitivity to obtain an image of the face region shot at the first sensitivity, and removing the face region from the picture shot at the second sensitivity to obtain an image of the non-face region shot at the second sensitivity;
synthesizing the image of the first sensitivity shooting face area and the image of the second sensitivity shooting non-face area to obtain a target picture, and performing brightness improvement on the target picture through a logarithmic curve algorithm to obtain an output picture;
and if the current sensitivity is detected not to reach a preset threshold value, determining that the current environment is not a night scene environment, and when the shooting operation is detected, shooting a picture according to the current sensitivity.
2. A method of processing a photograph as claimed in claim 1, characterized in that said determining at least a first sensitivity and a second sensitivity which are not equal in value comprises:
at least a first sensitivity and a second sensitivity are determined, the first sensitivity being less than the second sensitivity.
3. The method of claim 2, wherein the synthesizing the image of the face region and the image of the non-face region to obtain an output photo comprises:
synthesizing the image of the face area and the image of the non-face area to obtain a target photo;
and carrying out brightness improvement on the target photo through a logarithmic curve algorithm to obtain an output photo.
4. The method of claim 3, wherein the obtaining an output photo by performing brightness enhancement on the target photo through a logarithmic curve algorithm comprises:
acquiring a first adjusting parameter value and a second adjusting parameter value, wherein the first adjusting parameter value is larger than the second adjusting parameter value, and the larger the adjusting parameter value is, the more the corresponding brightness is improved;
and performing brightness improvement on the face region image in the target photo according to the first adjusting parameter value through a logarithmic curve algorithm, and performing brightness improvement on the non-face region image in the target photo according to the second adjusting parameter value to obtain an output photo.
5. The method of photo processing according to claim 1, further comprising:
during the process of taking a picture according to the first sensitivity and the second sensitivity, the exposure time of the terminal is kept unchanged.
6. A photo processing apparatus, characterized in that the apparatus comprises:
the terminal comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for presenting an image for a user to preview on a terminal screen interface after the terminal starts a camera, the terminal is in a photographing preview mode, whether a face is included on the screen interface is detected, when the screen interface is detected not to include the face, the current sensitivity of the terminal is acquired, a picture is taken according to the current sensitivity, when the screen interface is detected to include the face, the picture of the face needs to be taken, and the current sensitivity of the terminal is detected;
the determining module is used for determining at least a first sensitivity and a second sensitivity which have different values if the current sensitivity is detected to reach a preset threshold value and the current environment is considered to be a night scene environment, wherein the first sensitivity and the second sensitivity are both smaller than the current sensitivity;
the shooting module is used for shooting at least one frame of picture according to the first sensitivity and shooting at least one frame of picture according to the second sensitivity when shooting operation is detected;
a second acquisition module, configured to remove the non-face region from the photograph taken at the first sensitivity to acquire an image of the face region taken at the first sensitivity, and remove the face region from the photograph taken at the second sensitivity to acquire an image of the non-face region taken at the second sensitivity;
the output module is used for synthesizing the image of the face area and the image of the non-face area to obtain a target photo, and the brightness of the target photo is improved through a logarithmic curve algorithm to obtain an output photo;
the shooting module is further configured to determine that the current environment is not a night scene environment if it is detected that the current sensitivity does not reach a preset threshold, and shoot a picture according to the current sensitivity when a shooting operation is detected.
7. The photo processing apparatus of claim 6, wherein the determination module is configured to:
at least a first sensitivity and a second sensitivity are determined, the first sensitivity being less than the second sensitivity.
8. The photo processing apparatus of claim 7, wherein the output module is configured to:
synthesizing the image of the face area and the image of the non-face area to obtain a target photo;
and carrying out brightness improvement on the target photo through a logarithmic curve algorithm to obtain an output photo.
9. A computer-readable storage medium, storing a computer program, wherein the computer program is loaded by a processor and executed to implement the steps in the photo processing method of any one of claims 1 to 5.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable in the processor, wherein the processor implements the steps in the photo processing method of any one of claims 1 to 5 when executing the computer program.
CN201710401748.6A 2017-05-31 2017-05-31 Photo processing method and device, computer readable storage medium and electronic equipment Expired - Fee Related CN107147851B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710401748.6A CN107147851B (en) 2017-05-31 2017-05-31 Photo processing method and device, computer readable storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710401748.6A CN107147851B (en) 2017-05-31 2017-05-31 Photo processing method and device, computer readable storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107147851A CN107147851A (en) 2017-09-08
CN107147851B true CN107147851B (en) 2019-12-31

Family

ID=59780393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710401748.6A Expired - Fee Related CN107147851B (en) 2017-05-31 2017-05-31 Photo processing method and device, computer readable storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107147851B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107517351B (en) * 2017-10-18 2020-03-24 广东小天才科技有限公司 Photographing mode switching method and device
CN108391111A (en) * 2018-02-27 2018-08-10 深圳Tcl新技术有限公司 Image definition adjusting method, display device and computer readable storage medium
CN109034142A (en) * 2018-09-29 2018-12-18 广州微印信息科技有限公司 A kind of photo processing method based on image recognition
CN110992284A (en) * 2019-11-29 2020-04-10 Oppo广东移动通信有限公司 Image processing method, image processing apparatus, electronic device, and computer-readable storage medium
CN112862712A (en) * 2021-02-01 2021-05-28 广州方图科技有限公司 Beautifying processing method, system, storage medium and terminal equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095979A (en) * 2011-11-07 2013-05-08 华晶科技股份有限公司 Image processing method and imaging capture device of face overexposure
CN103259976A (en) * 2012-02-17 2013-08-21 佳能株式会社 Image processing apparatus, image pickup apparatus, image processing method
CN103379281A (en) * 2012-04-20 2013-10-30 佳能株式会社 Image processing apparatus and image processing method for performing image synthesis
CN105100601A (en) * 2014-05-21 2015-11-25 佳能株式会社 Image pickup device, control method therefor, and signal processing device for image pickup device
CN105763805A (en) * 2016-02-29 2016-07-13 广东欧珀移动通信有限公司 Control method and device and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095979A (en) * 2011-11-07 2013-05-08 华晶科技股份有限公司 Image processing method and imaging capture device of face overexposure
CN103259976A (en) * 2012-02-17 2013-08-21 佳能株式会社 Image processing apparatus, image pickup apparatus, image processing method
CN103379281A (en) * 2012-04-20 2013-10-30 佳能株式会社 Image processing apparatus and image processing method for performing image synthesis
CN105100601A (en) * 2014-05-21 2015-11-25 佳能株式会社 Image pickup device, control method therefor, and signal processing device for image pickup device
CN105763805A (en) * 2016-02-29 2016-07-13 广东欧珀移动通信有限公司 Control method and device and electronic device

Also Published As

Publication number Publication date
CN107147851A (en) 2017-09-08

Similar Documents

Publication Publication Date Title
CN107147851B (en) Photo processing method and device, computer readable storage medium and electronic equipment
CN111418201B (en) Shooting method and equipment
CN109671106B (en) Image processing method, device and equipment
CN108335279B (en) Image fusion and HDR imaging
WO2017215501A1 (en) Method and device for image noise reduction processing and computer storage medium
CN110248098B (en) Image processing method, image processing device, storage medium and electronic equipment
US9451173B2 (en) Electronic device and control method of the same
CN111028189A (en) Image processing method, image processing device, storage medium and electronic equipment
TWI530911B (en) Dynamic exposure adjusting method and electronic apparatus using the same
KR102263537B1 (en) Electronic device and control method of the same
CN109996009B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110620873B (en) Device imaging method and device, storage medium and electronic device
CN104917973B (en) Dynamic exposure method of adjustment and its electronic device
US11563889B2 (en) Electronic device and method for controlling camera using external electronic device
CN110430370B (en) Image processing method, image processing device, storage medium and electronic equipment
CN105391940B (en) A kind of image recommendation method and device
US20170019615A1 (en) Image processing method, non-transitory computer-readable storage medium and electrical device thereof
CN112422798A (en) Photographing method and device, electronic equipment and storage medium
CN110766729A (en) Image processing method, image processing device, storage medium and electronic equipment
CN113439286A (en) Processing image data in a composite image
CN110740266B (en) Image frame selection method and device, storage medium and electronic equipment
CN107180417B (en) Photo processing method and device, computer readable storage medium and electronic equipment
KR20210101941A (en) Electronic device and method for generating high dynamic range images
US20170026584A1 (en) Image processing apparatus and method of operating the same
CN108513068B (en) Image selection method and device, 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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191231

CF01 Termination of patent right due to non-payment of annual fee