CN111147753A - Method, electronic device and medium for processing photos - Google Patents

Method, electronic device and medium for processing photos Download PDF

Info

Publication number
CN111147753A
CN111147753A CN201911422914.6A CN201911422914A CN111147753A CN 111147753 A CN111147753 A CN 111147753A CN 201911422914 A CN201911422914 A CN 201911422914A CN 111147753 A CN111147753 A CN 111147753A
Authority
CN
China
Prior art keywords
input
photos
exposure parameter
brightness
interval
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.)
Granted
Application number
CN201911422914.6A
Other languages
Chinese (zh)
Other versions
CN111147753B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911422914.6A priority Critical patent/CN111147753B/en
Publication of CN111147753A publication Critical patent/CN111147753A/en
Application granted granted Critical
Publication of CN111147753B publication Critical patent/CN111147753B/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/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • 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
    • 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/741Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Abstract

The embodiment of the invention discloses a photo processing method, electronic equipment and a medium. The photo processing method comprises the following steps: receiving a first input in a case where N first photographs having different exposure parameter values are displayed; responding to a first input, and synthesizing M first photos according to exposure parameter values of the M first photos related to the first input in the N first photos to obtain a second photo, wherein M is a positive integer smaller than or equal to N, and N is a positive integer larger than 2; the second photograph is displayed. By using the photo processing method provided by the embodiment of the invention, a user can freely combine photos with different exposure parameters to obtain an HDR image meeting the own requirements, the visual effect of the HDR image is improved, and the use experience of the user is improved.

Description

Method, electronic device and medium for processing photos
Technical Field
The embodiment of the invention relates to the technical field of intelligent shooting, in particular to a photo processing method, electronic equipment and a medium.
Background
A High-Dynamic Range (HDR) image may provide more Dynamic Range and image details than a normal image, and a final HDR image is synthesized from a Low-Dynamic Range (LDR) image of different exposure times and using the LDR image with the best details corresponding to each exposure time. The visual effect in the real environment can be better reflected.
For example, the current HDR technology is to take N photographs with different exposure, all of which are used to compose the final HDR image. However, since the exposure in the HDR technology is a fixed value calculated based on an algorithm, when synthesizing a photo according to the HDR technology, only N obtained photos can be synthesized, and the exposure of the N photos used for synthesizing the HDR image cannot be changed according to different requirements of a user, so that the finally obtained HDR image cannot better reflect a visual effect in a real environment, and the use experience of the user is affected.
Disclosure of Invention
Embodiments of the present invention provide a method, an electronic device, and a medium for processing a photo, which enable a user to freely combine photos with different exposure parameters to obtain an HDR image meeting the needs of the user, improve the visual effect of the HDR image, and improve the user experience.
In a first aspect, an embodiment of the present invention provides a method for processing a photo, which is applied to an electronic device, and includes:
receiving a first input in a case where N first photographs having different exposure parameter values are displayed;
responding to a first input, and synthesizing M first photos according to exposure parameter values of the M first photos related to the first input in the N first photos to obtain a second photo, wherein M is a positive integer smaller than or equal to N, and N is a positive integer larger than 2;
the second photograph is displayed.
In a second aspect, an embodiment of the present invention provides an electronic device, including:
the first receiving module is used for receiving first input under the condition of displaying N first pictures with different exposure parameter values;
the synthesis module is used for responding to the first input, and synthesizing the M first photos according to the exposure parameter values of the M first photos related to the first input in the N first photos to obtain a second photo, wherein M is a positive integer smaller than or equal to N, and N is a positive integer larger than 2;
and the first display module is used for displaying the second photo.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program instructions, the steps of the method for processing photos according to the first aspect are implemented.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for processing photos according to the first aspect.
In the method for processing the photo provided by the embodiment of the invention, the user can select M first photos with different exposure parameters for synthesizing the photo according to the personalized requirements of the user, so that an HDR image which better meets the requirements of the user can be obtained, the use requirements of the user on the HDR image can be met, and the use experience of the user can be improved.
Drawings
The present invention will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings, in which like or similar reference characters designate like or similar features.
FIG. 1 is a flow chart illustrating a method for processing a photo according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a second interface provided in accordance with one embodiment of the present invention;
FIG. 3 is a diagram illustrating a preview capture interface according to an embodiment of the present invention;
FIG. 4 is a schematic view of a first interface provided by one embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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.
Currently, HDR technology is widely used in the field of smart camera technology. However, when an HDR image is captured by an electronic device using the HDR technology, generally, a capture scene of a capture preview interface captured by a current camera component is detected first, and exposure parameter values are determined based on the capture scene of the current capture preview interface, so that the electronic device can capture a plurality of photos for photo composition with different exposure parameter values according to the determined exposure parameter values.
Then, the electronic device performs photo synthesis on the multiple photos with different exposure parameter values for photo synthesis to obtain a final HDR image.
Therefore, when the traditional HDR technology is used for synthesizing photos, only the photos obtained are synthesized, the exposure of the N photos used for synthesizing the HDR image cannot be changed according to different requirements of a user, and the requirement that the user can obtain different HDR images according to different requirements cannot be met, so that the use experience of the user is influenced.
In order to solve the above problem, embodiments of the present invention provide a method, an electronic device, and a medium for processing a photo, which enable a user to freely combine photos with different exposure parameters to obtain an HDR image meeting the needs of the user, improve the visual effect of the HDR image, and improve the user experience.
Fig. 1 is a flowchart illustrating a photo processing method according to an embodiment of the present invention. As shown in fig. 1, the method applied to photo processing of an electronic device includes:
s101, receiving a first input under the condition that N first photos with different exposure parameter values are displayed.
And S102, responding to the first input, and synthesizing the M first photos according to the exposure parameters of the M first photos in the N first photos to obtain a second photo.
Wherein M is a positive integer less than or equal to N, and N is a positive integer greater than 2.
And S103, displaying the second photo.
According to the embodiment of the invention, the electronic equipment receives the first input of the user to the first control, and the electronic equipment can synthesize the selected M first photos for photo synthesis to finally obtain and display the second photos meeting the user requirements, so that the use experience of the user is improved.
Optionally, in some embodiments of the present invention, the first input may be a selected input of the exposure parameters of the M first photos among the N first photos based on the user's own requirement for the HDR image. At this time, the user can autonomously select the M first photos for synthesizing the HDR image according to different requirements of the user on the HDR image, thereby improving the user experience.
The first input may also be a determination input of exposure parameters of the M photos automatically recommended by the user for the electronic device. At the moment, the user can directly perform photo synthesis according to the M first photos automatically recommended by the electronic equipment without re-selection, so that the use experience of the user is improved.
Alternatively, in some embodiments of the present invention, the exposure parameter may be an exposure compensation Value (EV), the EV is increased by 1, the exposure amount is increased by 2 times, and when the ambient brightness and the sensor are the same, the brightness of the corresponding obtained picture should be increased by one time in a linear interval.
As shown in fig. 2, fig. 2 is a schematic diagram of a second interface according to an embodiment of the invention. As can be seen from fig. 2, N first photographs (N is a positive integer greater than 2) with different exposure parameter values are displayed on the second interface, where each photograph may display a corresponding EV, and the N first photographs with different exposure parameter values may be referred to as EV packets.
After the user views the N first photos with different exposure parameter values displayed on the second interface, the user can control the electronic device to synthesize the photos through the first control on the second interface.
According to some embodiments of the invention, the first photos with different exposure parameter values are displayed on the second interface, so that the user can visually check the photos for synthesizing the HDR image on the second interface, the user can freely select the photos according to the requirements of the user, and the user experience is improved.
Optionally, in some embodiments of the present invention, with continued reference to fig. 2, on the second interface, the M first photos selected by the user for photo synthesis may be displayed with different distinctions of the identification pattern.
Under the condition that N first photos with different exposure parameter values are displayed, after the electronic equipment responds to the input of a user to the first control, the electronic equipment can synthesize the M first photos according to the exposure parameter values of the M first photos related to the first input in the N first photos to obtain a second photo. Wherein M is a positive integer less than or equal to N.
Optionally, in some embodiments of the present invention, before S101, the user may further make a sixth input to a second control in the shooting preview interface.
As shown in fig. 3, fig. 3 is a schematic diagram of a shooting preview interface according to an embodiment of the present invention. As shown in fig. 3, the shooting preview interface may be an interface of the electronic device in a shooting mode, where a shooting preview image 31 collected by the camera component is displayed on the shooting preview interface, and the second control is used to represent a control for setting the EV combination. And displaying the first interface by the user through a sixth input of the second control.
Secondly, the electronic equipment receives a sixth input of the user to the second control in the shooting preview interface, and responds to the sixth input to display the first interface. As shown in fig. 4, fig. 4 is a schematic view of a first interface according to an embodiment of the present invention.
As can be seen from fig. 4, taking the exposure compensation value as the exposure parameter, the first interface is provided with a first exposure parameter interval of the exposure compensation value. For example, the Min EV + value, the Max EV + value, the Min EV-value, and the Max EV-value together comprise a first exposure parameter interval, and the Min EV + value corresponds to a first adjustment control, the Max EV + value corresponds to a first adjustment control, the Min EV-value corresponds to a first adjustment control, and the Max EV-value corresponds to a first adjustment control. In addition, a first Step length value of the adjustment Step length EV Step and a second adjustment control corresponding to the first Step length value are also displayed on the first interface.
For example, the first exposure parameter interval: if the Min EV + value is 1, the Max EV + value is 2, the Min EV-value is-1, the MaxEV-value is-2, and the EV Step is 0.5, the electronic device may obtain a first picture with the following exposure compensation values when shooting according to the first exposure parameter interval and the adjustment Step length: +0EV, +1EV, +1.5EV, +2EV, -0EV, -1EV, -1.5EV, -2 EV.
Next, if the user wants to adjust the EV parameter in the HDR shooting mode, a second input may be further made to at least one of the first adjustment control and the second adjustment control to adjust the value of the EV parameter. The electronic device may continue to respond to a second input of the user to at least one of the first adjustment control and the second adjustment control, and obtain the exposure parameter values of the subsequently taken N first photos, so as to subsequently take the photos according to the obtained exposure parameter values of the first photos.
With some embodiments of the invention, the user may first make a sixth input to the second control on the capture preview interface to enter the setting interface (first interface) of EV parameters. Secondly, a user can set exposure compensation parameters of N first pictures shot by the HDR on the first interface, so that the electronic equipment can shoot the first pictures according to the requirements of the user, and the use experience of the user is improved.
Next, the electronic device may also receive a third input by the user while the electronic device is in the HDR photographing mode.
The electronic device can respond to the third input, and then start to take N first pictures with different exposure parameter values according to the acquired N different exposure parameter values. It should be understood that the electronic device would take N first pictures within the first exposure parameter interval according to the EV Step value.
By some embodiments of the present invention, in the HDR shooting mode, the electronic device, in response to a third input from the user, may shoot N first photos with different exposure parameter values, so that when synthesizing an HDR image, the electronic device may have multiple low dynamic range images, so as to improve the visual effect of the HDR image.
Optionally, in some embodiments of the present invention, the first exposure parameter interval and the first step length value of the adjustment step length displayed on the first interface may be recommended values determined by the electronic device according to target shooting scene information of the shooting preview image displayed on the shooting preview interface.
For example, the electronic device may determine target shooting scene information corresponding to a shooting preview image displayed on a shooting preview interface according to the shooting preview image displayed on the shooting preview interface, and an Automatic Exposure Control (AEC) module in the electronic device may determine a first exposure parameter interval and a first step value according to the target shooting scene information, and recommend the first exposure parameter interval and the first step value to the user as the first exposure parameter interval and the first step value in the HDR shooting mode.
Optionally, in some embodiments of the present invention, a plurality of selection controls for shooting scene information may be further displayed on the shooting preview interface, so that if the target shooting scene information corresponding to the shooting preview image identified by the electronic device is not accurate, a user may adjust the target shooting scene information corresponding to the shooting preview image displayed on the shooting preview interface to the shooting scene information selected by the user through input of the selection controls for the shooting scene information.
According to some embodiments of the invention, a user can directly control the electronic device to take a picture according to the first exposure parameter interval and the first step length value recommended by the electronic device through the target shooting scene information, or can adjust and input at least one of the first exposure parameter interval and the first step length value, so that the electronic device takes a picture according to the adjusted first exposure parameter interval and the first step length value, thereby meeting different requirements of different users, improving the operation flexibility of the user, and improving the use experience of the user.
Optionally, in some embodiments of the present invention, before S102, further including:
the electronic equipment can determine the exposure parameter values of the M first pictures in the N first pictures according to the image histogram information corresponding to the shot preview image. The image histogram information refers to statistical data histogram information, which can be used to indicate the pixel distribution of each luminance interval on one RAW format image, for example, an 8-bit (bit) statistical data histogram indicates the distribution number of 256 luminance pixels, 0-255, on the whole image.
Optionally, in some embodiments of the present invention, the electronic device may first determine first luminance information corresponding to the first luminance interval and second luminance information corresponding to the second luminance interval of the image histogram information corresponding to the captured preview image. The first brightness interval pushdown zone may be a brightness interval (start-end) desired to be brightened, and the second brightness interval pushup zone may be an interval (start-end) desired to be darkened by depressing a high light, and the first brightness interval and the second brightness interval may be brightness intervals preset by the electronic device (not to be changed by the user) or brightness intervals preset by the user.
Next, the electronic device determines a second exposure parameter interval based on the first luminance information and the second luminance information. That is, the electronic apparatus calculates the value of dark region position dark Pos and the value of bright region bright Pos using the first luminance information and the second luminance information by expression (1) and expression (2), respectively.
The dark Pos is a weighted average of the luminance (first luminance information) of the statistical data histogram of the captured preview image in the first luminance section (pushdown zone). (1)
The brightness Pos is a weighted average of the luminance (second luminance information) of the statistical data histogram of the captured preview image in the second luminance zone (pushup zone). (2)
The dark Pos is used for representing the maximum value of EV + in M first pictures, and when the calculated dark Pos is larger than a dark Max value preset in the electronic equipment, the dark Pos value can select a Min EV + value set by a user; if the dark Pos is smaller than the dark Min preset in the electronic equipment, the dark Pos value can select the Max EV + value set by the user; if the dark Pos is in the dark Min-dark Max range, the dark Pos value is obtained by interpolation according to the Max and Min of the EV + range set by the user.
The bright Pos is used for representing the minimum value of EV-in the M first photos, and when the calculated bright Pos is larger than a bright Max value preset in the electronic equipment, the bright Pos value can select a MaxEV-value set by a user; if the bright Pos value is smaller than the bright Min preset in the electronic equipment, the bright Pos value can select the Min EV-value set by the user; if the bright Pos is in the range of bright Min-bright Max, the value of bright Pos can be obtained by interpolation calculation according to the Max and Min of EV-range set by the user.
After the final dark Pos value and the bright Pos value are obtained through the above calculation, the electronic device may obtain the range of EV parameter values (dark Pos-bright Pos) of the M first photos used for photo synthesis, and use the range of EV parameters (dark Pos-bright Pos) as the second exposure parameter interval.
Optionally, in some embodiments of the present invention, when determining the second exposure parameter interval, the electronic device may not only need to calculate the expression (1) and the expression (2) above, but also may add analysis on parameters such as definition and saturation of the image, and obtain the second exposure parameter interval according to the (dark Pos-bright Pos) value, the definition, and the saturation in a comprehensive manner.
Optionally, in some embodiments of the invention, after obtaining the second exposure parameter interval, the electronic device may determine M first photos for photo composition from the (EV + to EV-) range indicated by the second exposure parameter interval (dark Pos-bright Pos) among the N first photos.
For example, if the exposure parameters of the obtained 8 first pictures are: +0EV, +1EV, +1.5EV, +2EV, -0EV, -1EV, -1.5EV, -2EV, and the range of EV parameter values (dark Pos-bright Pos) obtained by the above calculation is (+1EV, -1.5EV), then the exposure parameters for the electronic device to obtain 6 first photographs for photograph composition in 8 first photographs are: +1EV, +1.5EV, +2EV, -0EV, -1EV, -1.5 EV.
According to some embodiments of the invention, the electronic device can directly recommend the combination of the first photos for synthesizing the HDR image for the user through the image histogram information corresponding to the preview image, so that the user can directly perform photo synthesis according to intelligent recommendation, and the use experience of the user is improved.
Optionally, in some embodiments of the present invention, after S103, the method for processing a photo further includes:
if the user is not satisfied with the brightness of the target area in the second picture, a fourth input, such as a frame selection input, may be made to the target area. Next, the electronic device may display an adjustment prompt in response to a fourth input by the user into the target area of the second photograph. And the adjustment prompt information is displayed in a preset control form. The preset control may be used to indicate that the brightness corresponding to the target area is to be "brightened" or the preset control may be used to indicate that the brightness corresponding to the target area is to be "darkened".
Optionally, in some embodiments of the present invention, if the fifth input is an input for a preset control indicating that brightness corresponding to the target area is to be "brightened", indicating that the user considers that the brightness corresponding to the target area is too dark, and wants to brighten, the electronic device may adjust the first brightness interval (pushdown zone) according to brightness information corresponding to the target area to obtain a third brightness interval (pushdown zone), where the third brightness information corresponding to the third brightness interval is brightness of the statistical data histogram of the captured preview image in the third brightness interval (pushdown zone).
Then, the electronic device may recalculate the third luminance information and the second luminance information according to the expression (1) and the expression (2) to obtain (dark Pos-bright Pos), so as to adjust the second exposure parameter interval to obtain a third exposure parameter interval.
Finally, after obtaining the third exposure parameter interval, the electronic device may determine, again from the N first photos, M first photos for photo synthesis according to the (EV + to EV-) range represented by the third exposure parameter interval (dark-bright Pos), so as to ensure that the brightness of the area having the brightness of the target area in the second photo synthesized by using the M newly obtained first photos is increased.
Optionally, in some embodiments of the present invention, if the fifth input is a preset input indicating that the brightness corresponding to the target area is to be "darkened", that is, the user regards that the brightness corresponding to the target area is too bright, and wants to dim, the electronic device may adjust the second brightness interval (pushup zone) according to the brightness information corresponding to the target area, to obtain a fourth brightness interval (pushup zone), where the fourth brightness information corresponding to the fourth brightness interval is the brightness of the statistical data histogram of the captured preview image in the fourth brightness interval (pushup zone).
Then, the electronic device may recalculate the fourth luminance information and the first luminance information according to the expression (1) and the expression (2) to obtain (dark Pos-bright Pos), so as to adjust the second exposure parameter interval to obtain the third exposure parameter interval.
Finally, after obtaining the fourth exposure parameter interval, the electronic device may re-determine M first photos for photo composition from the N first photos according to the (EV + to EV-) range represented by the third exposure parameter interval (dark-bright Pos), so as to ensure that the brightness of the area having the brightness of the target area in the second photo composed by using the re-obtained M first photos is all reduced.
According to some embodiments of the present invention, after the user sees the second photo obtained after the synthesis, if the user is not satisfied with the brightness of a certain region in the second photo, the user may return to the second interface shown in fig. 2 again according to the adjustment prompt information to reselect the first photo used for synthesizing the HDR image, and the electronic device may also perform, based on the input of the adjustment prompt information by the user, selection recommendation of M photos again according to the adjustment requirement of the user on the target region, so as to improve the user experience.
Optionally, in some embodiments of the present invention, the electronic device may further calculate a dynamic range of the second photo, and display the calculated dynamic range on the second photo as a reference opinion of whether the HDR image is saved by the user. The larger the dynamic range is, the better the quality of the image is objectively represented, and in addition, the electronic device may also display the definition and/or the protection degree of the second photo on the second photo as a reference opinion of whether the HDR image is saved by the user.
Based on the specific implementation of the photo processing method provided by the above embodiment, correspondingly, the invention further provides a specific implementation of the electronic device. Please refer to fig. 5.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 5, the electronic apparatus includes:
a first receiving module 510, configured to receive a first input in a case where N first photos with different exposure parameter values are displayed;
a synthesizing module 520, configured to, in response to a first input, perform synthesizing processing on M first photos according to exposure parameter values of the M first photos associated with the first input in the N first photos to obtain a second photo, where M is a positive integer less than or equal to N, and N is a positive integer greater than 2;
a first display module 530 for displaying the second photo.
According to some embodiments of the invention, the electronic equipment receives the first input of the user to the first control, and the electronic equipment can synthesize the selected M first photos for photo synthesis to finally obtain and display the second photos meeting the user requirements, so that the use experience of the user is improved.
Optionally, in some embodiments of the present invention, the electronic device further includes:
the second display module is used for displaying the first interface;
the second receiving module is used for receiving a second input to the first interface;
the acquisition module is used for responding to the second input and acquiring N different exposure parameter values;
a third receiving module for receiving a third input;
and the shooting module is used for responding to the third input and shooting N first pictures with different exposure parameter values according to the N different exposure parameter values.
Optionally, in some embodiments of the present invention, the electronic device further includes:
the identification module is used for identifying the target shooting scene information according to the shooting preview image;
the first determining module is used for determining a first exposure parameter interval and a first step length value based on the target shooting scene information;
and the fourth receiving module is specifically configured to receive an adjustment input of at least one of the first exposure parameter interval and the first step size value displayed on the first interface.
Optionally, in some embodiments of the present invention, the electronic device further includes:
the second determining module is used for determining exposure parameters of the M first photos based on image histogram information corresponding to the shot preview images;
the fourth receiving module is specifically configured to receive a first input, where the first input is a determination input of exposure parameters of the M first pictures.
Optionally, in some embodiments of the present invention, the second determining module includes:
the first determining submodule is used for determining first brightness information corresponding to image histogram information corresponding to a shooting preview image in a first brightness interval and second brightness information corresponding to a second brightness interval;
the second determining submodule is used for determining a second exposure parameter interval based on the first brightness information and the second brightness information;
and the third determining submodule is used for determining the exposure parameters of the M first photos in the second exposure parameter interval.
Optionally, in some embodiments of the present invention, the electronic device further includes:
a fifth receiving module, configured to receive a fourth input to the target area of the second photograph;
the third display module is used for responding to the fourth input and displaying the adjustment prompt information;
the third determining module is used for responding to a fifth input of the adjusting prompt information, and determining exposure parameters of the Z first photos for photo synthesis in the N photos again on the basis of the image histogram information corresponding to the target area;
and the fourth display module is used for synthesizing the Z first photos based on the exposure parameter values of the Z first photos to obtain third photos and displaying the third photos, wherein Z is a positive integer less than or equal to N.
Optionally, in some embodiments of the present invention, the third determining module includes:
the first adjusting submodule is used for adjusting a first brightness interval or a second brightness interval associated with a preset control in the adjustment prompt message under the condition that the fifth input is the input of the preset control;
the fourth determining submodule is used for determining third brightness information based on the adjusted first brightness interval or determining fourth brightness information based on the adjusted second brightness interval;
the fifth determining submodule is used for adjusting the second exposure parameter interval based on the third brightness information or the fourth brightness information to obtain a third exposure parameter interval;
and the sixth determining sub-module is used for determining Z first photos for photo synthesis again in the N photos based on the third exposure parameter interval.
Each module of the electronic device provided in the embodiment of the present invention has a function of implementing the method/step of photo processing in the embodiment shown in fig. 1 to 4, and can achieve the technical effect corresponding to the embodiment shown in fig. 1 to 4, and is not described herein again for brevity.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 610 is configured to control the user input unit 607 to receive a first input; responding to a first input, and synthesizing M first photos according to exposure parameter values of the M first photos related to the first input in the N first photos to obtain a second photo, wherein M is a positive integer smaller than or equal to N, and N is a positive integer larger than 2; and controlling the display unit 606 to display the second photo.
In the embodiment of the invention, a user can select M first photos with different exposure parameters for synthesizing photos according to the personalized requirements of the user, so that an HDR image which meets the requirements of the user better is obtained, the use requirements of the user on the HDR image are met, and the use experience of the user is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 602, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the electronic apparatus 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The electronic device 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the electronic apparatus 600 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. In some embodiments, the touch panel 6071 and the display panel 6061 are two independent components to implement the input and output functions of the electronic device, but in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the electronic device, and this is not limited herein.
The interface unit 608 is an interface for connecting an external device to the electronic apparatus 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 600 or may be used to transmit data between the electronic device 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 609, and calling data stored in the memory 609, thereby performing overall monitoring of the electronic device. Processor 610 may include one or more processing units; optionally, the processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The electronic device 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and optionally, the power supply 611 may be logically connected to the processor 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 600 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, an embodiment of the present invention further provides an electronic device, which includes a processor 610, a memory 609, and a computer program that is stored in the memory 609 and can be run on the processor 610, and when being executed by the processor 610, the computer program implements each process of the above-mentioned method embodiment for processing a photo, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the photo processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A photo processing method applied to an electronic device is characterized by comprising the following steps:
receiving a first input in a case where N first photographs having different exposure parameter values are displayed;
responding to the first input, and synthesizing M first photos according to exposure parameter values of the M first photos related to the first input in the N first photos to obtain a second photo, wherein M is a positive integer smaller than or equal to N, and N is a positive integer larger than 2;
and displaying the second photo.
2. The method of claim 1, wherein prior to receiving the first input in the case of displaying N first photographs having different values of the exposure parameter, further comprising:
displaying a first interface;
receiving a second input to the first interface;
acquiring N different exposure parameter values in response to the second input;
receiving a third input;
and responding to the third input, and taking the N first pictures with different exposure parameter values according to the N different exposure parameter values.
3. The method of claim 2, wherein the first interface includes first exposure parameter interval information and first step size value information;
before the displaying the first interface, the method further comprises:
identifying target shooting scene information according to the shooting preview image;
determining the first exposure parameter interval and the first step length value based on the target shooting scene information;
the receiving a second input to the first interface comprises:
receiving an adjustment input for at least one of the first exposure parameter interval and the first step size value displayed on the first interface.
4. The method of claim 1, wherein prior to receiving the first input, further comprising:
determining exposure parameters of the M first pictures based on image histogram information corresponding to the shot preview image;
the receiving a first input, comprising:
receiving a first input, wherein the first input is a determination input of exposure parameters of the M first photos.
5. The method according to claim 4, wherein the determining exposure parameters of the M first photos based on image histogram information corresponding to the shooting preview image comprises:
determining first brightness information corresponding to a first brightness interval and second brightness information corresponding to a second brightness interval of image histogram information corresponding to the shooting preview image;
determining a second exposure parameter interval based on the first brightness information and the second brightness information;
and determining the exposure parameters of the M first pictures based on the second exposure parameter interval.
6. The method of claim 5, wherein after displaying the second photograph, further comprising:
receiving a fourth input to a target area of the second photograph;
displaying an adjustment prompt message in response to the fourth input;
in response to a fifth input of the adjustment prompt information, re-determining exposure parameters of the Z first photos for photo synthesis in the N photos based on image histogram information corresponding to the target area;
and synthesizing the Z first pictures based on the exposure parameter values of the Z first pictures to obtain a third picture, and displaying the third picture, wherein Z is a positive integer less than or equal to N.
7. The method of claim 6, wherein the re-determining exposure parameters of the Z first photos for photo composition in the N photos based on the image histogram information corresponding to the target area in response to a fifth input of the adjustment hint information comprises:
when the fifth input is input for a preset control in the adjustment prompt information, adjusting the first brightness interval or the second brightness interval associated with the preset control;
determining third brightness information based on the adjusted first brightness interval, or determining fourth brightness information based on the adjusted second brightness interval;
adjusting the second exposure parameter interval based on the third brightness information or the fourth brightness information to obtain a third exposure parameter interval;
and determining the Z first photos for photo synthesis in the N photos again based on the third exposure parameter interval.
8. An electronic device, comprising:
the first receiving module is used for receiving first input under the condition of displaying N first pictures with different exposure parameter values;
the synthesis module is used for responding to the first input, and synthesizing the M first photos according to exposure parameter values of the M first photos related to the first input in the N first photos to obtain a second photo, wherein M is a positive integer smaller than or equal to N, and N is a positive integer larger than 2;
and the first display module is used for displaying the second photo.
9. An electronic device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of photo processing as claimed in any one of claims 1 to 7 when executing the computer program instructions.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of photo processing according to any one of claims 1 to 7.
CN201911422914.6A 2019-12-31 2019-12-31 Method, electronic device and medium for processing photos Active CN111147753B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911422914.6A CN111147753B (en) 2019-12-31 2019-12-31 Method, electronic device and medium for processing photos

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911422914.6A CN111147753B (en) 2019-12-31 2019-12-31 Method, electronic device and medium for processing photos

Publications (2)

Publication Number Publication Date
CN111147753A true CN111147753A (en) 2020-05-12
CN111147753B CN111147753B (en) 2022-01-28

Family

ID=70523026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911422914.6A Active CN111147753B (en) 2019-12-31 2019-12-31 Method, electronic device and medium for processing photos

Country Status (1)

Country Link
CN (1) CN111147753B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917973A (en) * 2014-03-11 2015-09-16 宏碁股份有限公司 Dynamic exposure adjusting method and electronic apparatus
CN108683862A (en) * 2018-08-13 2018-10-19 Oppo广东移动通信有限公司 Image formation control method, device, electronic equipment and computer readable storage medium
CN109120862A (en) * 2018-10-15 2019-01-01 Oppo广东移动通信有限公司 High-dynamic-range image acquisition method, device and mobile terminal
CN109729279A (en) * 2018-12-20 2019-05-07 华为技术有限公司 A kind of image capturing method and terminal device
CN110166705A (en) * 2019-06-06 2019-08-23 Oppo广东移动通信有限公司 High dynamic range HDR image generation method and device, electronic equipment, computer readable storage medium
US20190281216A1 (en) * 2018-03-07 2019-09-12 Canon Kabushiki Kaisha Image capturing apparatus, image capturing method, and storage medium to generate a panoramic image having a high dynamic range

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104917973A (en) * 2014-03-11 2015-09-16 宏碁股份有限公司 Dynamic exposure adjusting method and electronic apparatus
US20190281216A1 (en) * 2018-03-07 2019-09-12 Canon Kabushiki Kaisha Image capturing apparatus, image capturing method, and storage medium to generate a panoramic image having a high dynamic range
CN108683862A (en) * 2018-08-13 2018-10-19 Oppo广东移动通信有限公司 Image formation control method, device, electronic equipment and computer readable storage medium
CN109120862A (en) * 2018-10-15 2019-01-01 Oppo广东移动通信有限公司 High-dynamic-range image acquisition method, device and mobile terminal
CN109729279A (en) * 2018-12-20 2019-05-07 华为技术有限公司 A kind of image capturing method and terminal device
CN110166705A (en) * 2019-06-06 2019-08-23 Oppo广东移动通信有限公司 High dynamic range HDR image generation method and device, electronic equipment, computer readable storage medium

Also Published As

Publication number Publication date
CN111147753B (en) 2022-01-28

Similar Documents

Publication Publication Date Title
CN109361865B (en) Shooting method and terminal
CN107707827B (en) High-dynamic image shooting method and mobile terminal
CN109688322B (en) Method and device for generating high dynamic range image and mobile terminal
CN108307109B (en) High dynamic range image preview method and terminal equipment
CN107566739B (en) photographing method and mobile terminal
CN110365907B (en) Photographing method and device and electronic equipment
CN109218626B (en) Photographing method and terminal
CN109361867B (en) Filter processing method and mobile terminal
CN108924414B (en) Shooting method and terminal equipment
CN110602401A (en) Photographing method and terminal
CN108234894B (en) Exposure adjusting method and terminal equipment
CN110213484B (en) Photographing method, terminal equipment and computer readable storage medium
CN107623818B (en) Image exposure method and mobile terminal
CN111147752B (en) Zoom factor adjusting method, electronic device, and medium
CN108513067B (en) Shooting control method and mobile terminal
CN108040209B (en) Shooting method and mobile terminal
CN109462745B (en) White balance processing method and mobile terminal
CN107846583B (en) Image shadow compensation method and mobile terminal
CN109727212B (en) Image processing method and mobile terminal
CN109104578B (en) Image processing method and mobile terminal
CN108174110B (en) Photographing method and flexible screen terminal
CN110708475B (en) Exposure parameter determination method, electronic equipment and storage medium
CN107807488B (en) Camera assembly, aperture adjusting method and mobile terminal
CN111083386B (en) Image processing method and electronic device
CN110086998B (en) Shooting method and terminal

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