CN110493515B - High dynamic range shooting mode starting method and device, storage medium and electronic equipment - Google Patents

High dynamic range shooting mode starting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110493515B
CN110493515B CN201910726994.8A CN201910726994A CN110493515B CN 110493515 B CN110493515 B CN 110493515B CN 201910726994 A CN201910726994 A CN 201910726994A CN 110493515 B CN110493515 B CN 110493515B
Authority
CN
China
Prior art keywords
dynamic range
high dynamic
region
interest
shooting mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910726994.8A
Other languages
Chinese (zh)
Other versions
CN110493515A (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 CN201910726994.8A priority Critical patent/CN110493515B/en
Publication of CN110493515A publication Critical patent/CN110493515A/en
Application granted granted Critical
Publication of CN110493515B publication Critical patent/CN110493515B/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/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
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing 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
    • 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

Landscapes

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

Abstract

The embodiment of the application discloses a method and a device for starting a high dynamic range shooting mode, a storage medium and electronic equipment, wherein a first focusing instruction and a second focusing instruction are received based on a shooting preview interface, a first preview image is determined and obtained according to a first exposure parameter corresponding to the first focusing instruction, and a second preview image is determined and obtained according to a second exposure parameter corresponding to the second focusing instruction; determining a first region of interest and a second region of interest in the first preview image and the second preview image according to the first focusing instruction and the second focusing instruction; acquiring a first brightness ratio of a first region of interest to a second region of interest in the first preview image, and acquiring a second brightness ratio of the first region of interest to the second region of interest in the second preview image; when the first brightness ratio and the second brightness ratio meet the preset starting condition, the high dynamic range shooting mode is started, and the usability of the high dynamic range shooting mode is improved by automatically starting the high dynamic range shooting mode.

Description

High dynamic range shooting mode starting method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for starting a high dynamic range shooting mode, a storage medium, and an electronic device.
Background
Currently, electronic devices such as mobile phones and cameras provide a new shooting mode, i.e., a High-Dynamic Range (HDR) shooting mode. The high dynamic range shooting mode may provide more dynamic range and image detail than the normal shooting mode. In the high dynamic range shooting mode, the electronic equipment can shoot an overexposed image, a normal exposure image and an underexposed image in the same scene, and the dark part details of the overexposed image, the middle details of the normal exposure image and the bright part details of the underexposed image are synthesized to obtain the high dynamic range image. However, the related art requires the user to manually turn on the high dynamic range photographing mode.
Disclosure of Invention
The embodiment of the application provides a high dynamic range image mode switching method and device, a storage medium and electronic equipment, which can automatically start a high dynamic range shooting mode and improve the usability of the high dynamic range shooting mode.
In a first aspect, an embodiment of the present application provides a method for starting a high dynamic range shooting mode, where the method for starting the high dynamic range shooting mode includes:
receiving a first focusing instruction and a second focusing instruction based on a shooting preview interface, determining and acquiring a first preview image according to a first exposure parameter corresponding to the first focusing instruction, and determining and acquiring a second preview image according to a second exposure parameter corresponding to the second focusing instruction;
determining a first region of interest in the first preview image and the second preview image according to the first focusing instruction, and determining a second region of interest in the first preview image and the second preview image according to the second focusing instruction;
acquiring a first brightness ratio of a first region of interest to a second region of interest in the first preview image, and acquiring a second brightness ratio of the first region of interest to the second region of interest in the second preview image;
and when the first brightness ratio and the second brightness ratio meet a preset starting condition, starting a high dynamic range shooting mode.
In a second aspect, an embodiment of the present application provides a high dynamic range shooting mode starting apparatus, including:
the first acquisition module is used for receiving a first focusing instruction and a second focusing instruction based on a shooting preview interface, determining and acquiring a first preview image according to a first exposure parameter corresponding to the first focusing instruction, and determining and acquiring a second preview image according to a second exposure parameter corresponding to the second focusing instruction;
the determining module is used for determining a first interested area in the first preview image and the second preview image according to the first focusing instruction and determining a second interested area in the first preview image and the second preview image according to the second focusing instruction;
the second acquisition module is used for acquiring a first brightness ratio of a first region of interest to a second region of interest in the first preview image and acquiring a second brightness ratio of the first region of interest to the second region of interest in the second preview image;
and the starting module is used for starting the high dynamic range shooting mode when the first brightness ratio and the second brightness ratio meet the preset starting condition.
In a third aspect, embodiments of the present application provide a storage medium having a computer program stored thereon, which, when invoked by a processor, causes the processor to perform a high dynamic range shooting mode starting method as provided by embodiments of the present application.
In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, where the memory stores a computer program, and the processor is configured to execute the method for starting the high dynamic range shooting mode provided in the embodiment of the present application by calling the computer program.
In the embodiment of the application, the electronic equipment receives a first focusing instruction and a second focusing instruction based on a shooting preview interface, determines and acquires a first preview image according to a first exposure parameter corresponding to the first focusing instruction, and determines and acquires a second preview image according to a second exposure parameter corresponding to the second focusing instruction; determining a first region of interest in the first preview image and the second preview image according to the first focusing instruction, and determining a second region of interest in the first preview image and the second preview image according to the second focusing instruction; acquiring a first brightness ratio of a first region of interest to a second region of interest in the first preview image, and acquiring a second brightness ratio of the first region of interest to the second region of interest in the second preview image; and when the first brightness ratio and the second brightness ratio meet the preset starting condition, starting a high dynamic range shooting mode. According to the method and the device, the high dynamic range shooting mode is automatically started by receiving the focusing instruction, and the usability of the high dynamic range shooting mode is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for starting a high dynamic range shooting mode according to an embodiment of the present disclosure.
Fig. 2 is a scene schematic diagram of a high dynamic range shooting mode starting method according to an embodiment of the present application.
Fig. 3 is schematic diagrams of two preview images provided in an embodiment of the present application.
Fig. 4 is another schematic flow chart of a high dynamic range shooting mode starting method according to an embodiment of the present application.
Fig. 5 is a schematic flow chart of the high dynamic range shooting mode starting apparatus according to the embodiment of the present application.
Fig. 6 is another schematic flow chart of the high dynamic range shooting mode starting apparatus according to the embodiment of the present application.
Fig. 7 is a schematic flowchart of a high dynamic range shooting mode starting apparatus according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 9 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
The embodiment of the application firstly provides a starting method of a high dynamic range shooting mode, and the starting method of the high dynamic range shooting mode is applied to electronic equipment. The execution main body of the high dynamic range shooting mode starting method may be the high dynamic range shooting mode starting device provided in the embodiment of the present application, or an electronic device integrated with the high dynamic range shooting mode starting device, where the high dynamic range shooting mode starting device may be implemented in a hardware or software manner, and the electronic device may be a device with processing capability and configured with a processor, such as a smart phone, a tablet computer, a palmtop computer, a notebook computer, or a desktop computer.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for starting a high dynamic range shooting mode according to an embodiment of the present disclosure. The method for starting the high dynamic range shooting mode is applied to the electronic device provided by the embodiment of the present application, and as shown in fig. 1, the flow of the method for starting the high dynamic range shooting mode provided by the embodiment of the present application may be as follows:
101. the method comprises the steps of receiving a first focusing instruction and a second focusing instruction based on a shooting preview interface, determining and obtaining a first preview image according to a first exposure parameter corresponding to the first focusing instruction, and determining and obtaining a second preview image according to a second exposure parameter corresponding to the second focusing instruction.
When a shooting preview interface is opened in an electronic device (such as a mobile phone and a camera), the shooting preview interface of a current scene to be shot is displayed on a screen of the electronic device. Based on the shooting preview interface, a user focuses on a certain position on a screen in a clicking mode, the electronic equipment responds to the focusing operation of the user, exposure parameters during shooting can be changed, and the current preview brightness of the shooting preview interface is adjusted according to the brightness of the focused position.
Receiving a first focusing instruction and a second focusing instruction of a user based on the shooting preview interface, wherein the first focusing instruction and the second focusing instruction can be focusing instructions of two times. The first focus instruction and the second focus instruction may also be focus instructions for light and dark places in the shooting preview interface, respectively.
Optionally, a brighter one of the pointing positions of the two focusing instructions is used as a bright position, and a darker one of the pointing positions of the two focusing instructions is used as a dark position; or
When the brightness of the pointed position of the focusing instruction is larger than a high brightness threshold value, taking the pointed position of the focusing instruction as a bright position, and when the brightness of the pointed position of the focusing instruction is smaller than a low brightness threshold value, taking the pointed position of the focusing instruction as a dark position; or
And displaying prompt information to guide a user to focus on a bright place and a dark place respectively, receiving a first focusing instruction after prompting the user to focus on the bright place, and receiving the first focusing instruction after prompting the user to focus on the bright place, wherein the pointed part of the first focusing instruction is taken as the bright place, and the pointed part of the second focusing instruction is taken as the dark place.
Referring to fig. 2, fig. 2 is a scene schematic diagram of a high dynamic range shooting mode starting method according to an embodiment of the present application. In one embodiment, a first focusing instruction pointing to a bright place in a shooting preview interface is received, the bright place in the shooting preview interface is focused according to the first focusing instruction, the current exposure parameter is adjusted to a lower first exposure parameter due to the need of focusing the bright place, the brightness of the whole shooting preview interface is reduced to some extent, and a frame of preview image under the first exposure parameter is intercepted as a first preview image; and then receiving a second focusing instruction pointing to a dark place in the shooting preview interface, focusing the dark place in the shooting preview interface according to the second focusing instruction, adjusting the current exposure parameter to a higher second exposure parameter because the dark place needs to be focused, improving the brightness of the whole shooting preview interface at the moment, and capturing a frame of preview image under the second exposure parameter as a second preview image.
It should be noted that the first focusing instruction and the second focusing instruction are not in sequence, and may be in tandem or performed simultaneously. The first focusing instruction may be a focusing instruction pointing to a dark place, and the second focusing instruction may be a focusing instruction pointing to a dark place.
102. And determining a first region of interest in the first preview image and the second preview image according to the first focusing instruction, and determining a second region of interest in the first preview image and the second preview image according to the second focusing instruction.
In an embodiment, a touch sensing module is disposed in the electronic device, the touch sensing module obtains a first focusing instruction and a second focusing instruction corresponding to a first focusing point and a second focusing point of a shooting preview interface, the first focusing point and the second focusing point are projected into a first preview image and a second preview image through coordinate system transformation, and a preset range around the first focusing point is determined as a first region of interest.
The region of interest is also called ROI (region of interest), and in image processing, a region to be processed is delineated from a processed image in the form of a square frame, a circle, an ellipse, an irregular polygon, or the like, and is the region of interest. And the interested region is determined in the image as a key processing region, so that the processing time can be reduced, and the processing precision can be increased.
The first region of interest may be determined as a circular region with the first focus point as a center and a preset radius as a radius, and the second region of interest may be determined as a circular region with the second focus point as a center and a preset radius as a radius. Alternatively, a preset-sized rectangle geometrically centered at the first focus point is determined as the first region of interest, a preset-sized rectangle geometrically centered at the second focus point is determined as the second region of interest, and so on. According to the focusing instruction of the user, the first region of interest and the second region of interest can be determined by using various methods, which are not described herein again.
Therefore, a first region of interest in the first preview image and a first region of interest in the second preview image are determined according to the first focusing instruction, and a second region of interest in the first preview image and a second region of interest in the second preview image are determined according to the second focusing instruction.
It should be noted that, the descriptions of "first", "second", etc. do not limit the sequence of the steps.
103. A first brightness ratio of the first region of interest to the second region of interest in the first preview image is obtained, and a second brightness ratio of the first region of interest to the second region of interest in the second preview image is obtained.
It will be appreciated that after the capture preview interface focuses on a bright or dark location, the exposure parameters of the capture preview interface will change accordingly. For example, the first region of interest determined according to the first focusing instruction is a bright region, and the second region of interest determined according to the second focusing instruction is a dark region. Acquiring a first brightness ratio of a first region of interest to a second region of interest in a first preview image, namely acquiring a brightness ratio of a bright position to a dark position after exposure parameters are adjusted after focusing the bright position; and acquiring a second brightness ratio of the first region of interest to the second region of interest in the second preview image, namely acquiring the brightness ratio of the bright place to the dark place after adjusting the exposure parameters after focusing the dark place.
Referring to fig. 2 and 3 together, fig. 3 is a schematic diagram of two preview images in the embodiment of the present application. The user clicks on the image preview interface at 1 and 2 respectively in figure 2 to focus on. Wherein, the 1 is a brighter part on the shooting preview interface, and the 2 is a darker dark part on the shooting preview interface. When focusing is carried out on the position 1, because the focus is carried out on a bright position, the whole preview interface becomes dark after exposure parameters are adjusted, and a frame of image of the preview interface is intercepted after the whole preview interface becomes dark, so that a first preview image A is obtained; when focusing is carried out on the position 2, because the focusing is carried out on the dark position, the whole preview interface is lightened after the exposure parameters are adjusted, and a frame image of the preview interface is captured after the whole preview interface is lightened to obtain a second preview image B. A1 and a2 are first and second regions of interest in image a, respectively, and B1 and B2 are first and second regions of interest in image B, respectively. The first interested region in the image A and the first interested region in the image B are positioned at the same position of the images and have the same size and different brightness; the first region of interest in image a and image B are located at the same position of the images and have the same size and different brightness.
Acquiring a first brightness ratio of the first region of interest to the second region of interest in the first preview image, namely acquiring a brightness ratio R1 at A1 and A2 in the image A; a second luminance ratio of the first region of interest to the second region of interest in the second preview image is obtained, i.e., the luminance ratio R2 at B1 and B2 in the obtained image B.
104. And when the first brightness ratio and the second brightness ratio meet the preset starting condition, starting a high dynamic range shooting mode.
Taking the first interested area as a bright area and the second interested area as a dark area as an example, after focusing, due to adjustment of exposure parameters, the relationship of brightness contrast of the bright and dark areas changes, that is, the brightness ratio of the bright and dark areas changes, and the brightness ratios of the bright and dark areas after two times of adjustment are respectively denoted as R1 and R2.
In an embodiment, whether the dynamic ranges of the first region of interest and the second region of interest are larger than a preset threshold value is judged according to the first brightness ratio R1 and the second brightness ratio R2. The dynamic range refers to a ratio or a difference between the brightest luminance and the darkest luminance. For example, when the luminance is represented by 0 to 255, 0 is the maximum darkest luminance and 255 is the maximum brightest luminance. If the brightness of the brightest part of the first interested area and the second interested area is 255 and the brightness of the darkest part is 0, the dynamic range of the first interested area and the second interested area is very large, the contrast between brightness and darkness is strong, and the high dynamic range shooting mode is preferably started at this moment.
Optionally, if R1 and R2 are close, it is indicated that the dynamic ranges of the first region of interest and the second region of interest are not large, and the high dynamic range shooting mode is not started; on the contrary, if R1> > R2 or R1< < R2 indicates that the dynamic ranges of the first region of interest and the second region of interest are large, it is preferable to turn on the high dynamic range photographing mode.
When the dynamic range of the first interested area and the second interested area is large, the bright place and/or the dark place are cut off along with the adjustment of the exposure parameters. The cut-off processing means that when the exposure parameters are adjusted by focusing the bright area, the brightness of the dark area cannot be further reduced because the dark area reaches the darkest limit brightness, or when the exposure parameters are adjusted by focusing the dark area, the brightness of the bright area cannot be further increased because the bright area reaches the brightest limit brightness.
When the bright area is focused, the whole brightness of the shooting preview interface is pressed to be dark by adjusting the exposure parameters, so that the bright area can be seen clearly; in focusing on the dark area, the adjustment of the exposure parameters raises the overall brightness of the shooting preview interface, so that the dark area can be seen clearly. If the first brightness ratio R1 and the second brightness ratio R2 are not different, it is indicated that no matter the bright area or the dark area is clicked, the brightness of the dark area does not reach the darkest limit brightness 0 and is cut off, the brightness of the bright area does not overexpose to the brightest limit brightness 255, no information is lost because the brightness is not cut off, the exposure parameters and the overall brightness are normally adjusted by the bright area and the dark area along with a focusing instruction, the bright and dark area can be seen through focusing under a common shooting condition, and therefore when R1 and R2 are close, the high dynamic range shooting mode is not started.
Whereas if the case of truncation processing occurs when clicking on a bright and/or dark region, at least one of the resulting R1 and R2 will be very large or very small, resulting in R1> > R2 or R1< < R2, with a large dynamic range in the first and second regions of interest. For example, when the brightness of the dark area reaches the darkest limit brightness 0, the brightness minimum value is 0, and cannot be smaller than 0. Therefore, even after the brightness of the dark area reaches 0, the exposure parameters are still further adjusted along with the focusing command, but when the adjustment of the exposure parameters is completed, the darkest dark area can only be darkened to 0, and the bright area of the dark area cannot be changed to a negative value along with the darkening of the brightness of the bright area. Similarly, the truncation processing during overexposure means that in the dark area, the bright area becomes brighter further along with the adjustment of the exposure parameters, but the brightest area can only reach 255 and cannot exceed the brightest limit brightness, and actually, the brightness of the bright area should be higher and can meet the correct contrast relationship between the bright area and the dark area only when the brightness exceeds 255. The two situations can show that the dynamic ranges of the first interested area and the second interested area are large, the bright place is very bright, the dark place is very dark, and at the moment, a high dynamic range shooting mode is needed to obtain a picture with clear bright and dark places.
In one embodiment, when the first luminance ratio and the second luminance ratio satisfy a preset turn-on condition, turning on the high dynamic range photographing mode includes:
calculating the arithmetic mean value R of the first brightness ratio R1 and the second brightness ratio R2 to be (R1+ R2)/2, and when the arithmetic mean value R is larger than a first preset threshold value, starting a high dynamic range shooting mode, wherein the bright-dark contrast of the first interested area and the second interested area is strong enough; and/or
And calculating the brightness ratio difference between the first brightness ratio R1 and the second brightness ratio R2, and when the brightness ratio difference is larger than a second preset threshold value, starting a high dynamic range shooting mode, wherein the dynamic ranges of the first interested area and the second interested area are sufficiently large.
In an embodiment, after the high dynamic range shooting mode is turned on, the method further includes:
(1) shooting at least two images to be synthesized with different exposure parameters according to the arithmetic mean value;
(2) carrying out high dynamic range image synthesis processing on at least two images to be synthesized with different exposure parameters to obtain a target image with a high dynamic range;
(3) and displaying the target image on a shooting preview interface.
For example, a long exposure time image C to be synthesized and a short exposure time image D to be synthesized are taken, and the exposure times of the images C and D to be synthesized are determined by the arithmetic mean R. The image to be synthesized C is a long exposure image and can be shot clearly in a dark place, and the image to be synthesized D is a short exposure image and can be shot clearly in a bright place. And carrying out image synthesis processing on the image C to be synthesized and the image D to be synthesized, and synthesizing a dark area of the image C to be synthesized and a bright area of the image D to be synthesized to obtain a target image with a high dynamic range, wherein the dark area and the bright area in the target image are clear.
After obtaining the target image with a high dynamic range, displaying the target image on the shooting preview interface may include: acquiring a thumbnail of a target image; and displaying the thumbnail of the target image on a shooting preview interface.
When the electronic equipment starts shooting, the high dynamic range shooting mode is not started by default, only when the high dynamic range shooting mode is manually set by a user or is started according to the high dynamic range shooting mode starting method, the high dynamic range shooting mode is used for shooting, and images shot by the high dynamic range shooting mode are displayed on a shooting preview interface. And after the high dynamic range shooting mode is started, the user can also close the mode at any time. However, even if the high dynamic range shooting mode is closed, the high dynamic range image synthesis processing can be carried out on at least two images to be synthesized with different exposure parameters in the background, and the synthesized target image is displayed on the shooting preview interface in a thumbnail mode, so that a user can compare the target image with the image displayed on the current preview interface more conveniently to determine whether to manually start the high dynamic range shooting mode again.
In an embodiment, before the high dynamic range shooting mode is turned on, the method further includes:
(1) displaying prompt information on a shooting preview interface, wherein the prompt information is used for prompting a user whether to start a high dynamic range shooting mode;
(2) and when receiving confirmation information that the user confirms to start the high dynamic range shooting mode, starting the high dynamic range shooting mode.
When the fact that the high dynamic range shooting mode is suitable for being used at present is determined, the user is reminded of the fact that the high dynamic range shooting mode is suitable for being used at present, whether the user is started or not is inquired, when the user confirms the reminding message, the high dynamic range shooting mode is started, and therefore poor experience brought to the user due to the fact that the user enters the high dynamic range shooting mode forcibly is avoided.
As can be seen from the above, in the embodiment of the present application, a first focusing instruction and a second focusing instruction are received based on a shooting preview interface, a first preview image is determined and obtained according to a first exposure parameter corresponding to the first focusing instruction, and a second preview image is determined and obtained according to a second exposure parameter corresponding to the second focusing instruction; determining a first region of interest in the first preview image and the second preview image according to the first focusing instruction, and determining a second region of interest in the first preview image and the second preview image according to the second focusing instruction; acquiring a first brightness ratio of a first region of interest to a second region of interest in the first preview image, and acquiring a second brightness ratio of the first region of interest to the second region of interest in the second preview image; and when the first brightness ratio and the second brightness ratio meet the preset starting condition, starting a high dynamic range shooting mode. According to the method and the device, the high dynamic range shooting mode is automatically started by receiving the focusing instruction, and the usability of the high dynamic range shooting mode is improved.
Referring to fig. 4, fig. 4 is another flow chart of a high dynamic range shooting mode starting method according to an embodiment of the present application, where the flow chart of the high dynamic range shooting mode starting method may include:
and 201, receiving a first focusing instruction and a second focusing instruction based on a shooting preview interface, determining and acquiring a first preview image according to a first exposure parameter corresponding to the first focusing instruction, and determining and acquiring a second preview image according to a second exposure parameter corresponding to the second focusing instruction.
When a shooting preview interface is opened in an electronic device (such as a mobile phone and a camera), the shooting preview interface of a current scene to be shot is displayed on a screen of the electronic device. Based on the shooting preview interface, a user focuses on a certain position on a screen in a clicking mode, the electronic equipment responds to the focusing operation of the user, exposure parameters during shooting can be changed, and the current preview brightness of the shooting preview interface is adjusted according to the brightness of the focused position.
Receiving a first focusing instruction and a second focusing instruction of a user based on the shooting preview interface, wherein the first focusing instruction and the second focusing instruction can be focusing instructions of two times. The first focus instruction and the second focus instruction may also be focus instructions for light and dark places in the shooting preview interface, respectively.
Optionally, a brighter one of the pointing positions of the two focusing instructions is used as a bright position, and a darker one of the pointing positions of the two focusing instructions is used as a dark position; or
When the brightness of the pointed position of the focusing instruction is larger than a high brightness threshold value, taking the pointed position of the focusing instruction as a bright position, and when the brightness of the pointed position of the focusing instruction is smaller than a low brightness threshold value, taking the pointed position of the focusing instruction as a dark position; or
And displaying prompt information to guide a user to focus on a bright place and a dark place respectively, receiving a first focusing instruction after prompting the user to focus on the bright place, and receiving the first focusing instruction after prompting the user to focus on the bright place, wherein the pointed part of the first focusing instruction is taken as the bright place, and the pointed part of the second focusing instruction is taken as the dark place.
Referring to fig. 2, fig. 2 is a scene schematic diagram of a high dynamic range shooting mode starting method according to an embodiment of the present application. In one embodiment, a first focusing instruction pointing to a bright place in a shooting preview interface is received, the bright place in the shooting preview interface is focused according to the first focusing instruction, the current exposure parameter is adjusted to a lower first exposure parameter due to the need of focusing the bright place, the brightness of the whole shooting preview interface is reduced to some extent, and a frame of preview image under the first exposure parameter is intercepted as a first preview image; and then receiving a second focusing instruction pointing to a dark place in the shooting preview interface, focusing the dark place in the shooting preview interface according to the second focusing instruction, adjusting the current exposure parameter to a higher second exposure parameter because the dark place needs to be focused, improving the brightness of the whole shooting preview interface at the moment, and capturing a frame of preview image under the second exposure parameter as a second preview image.
It should be noted that the first focusing instruction and the second focusing instruction are not in sequence, and may be in tandem or performed simultaneously. The first focusing instruction may be a focusing instruction pointing to a dark place, and the second focusing instruction may be a focusing instruction pointing to a dark place.
202, a first region of interest is determined in the first preview image and the second preview image according to the first focusing instruction, and a second region of interest is determined in the first preview image and the second preview image according to the second focusing instruction.
In an embodiment, a touch sensing module is disposed in the electronic device, the touch sensing module obtains a first focusing instruction and a second focusing instruction corresponding to a first focusing point and a second focusing point of a shooting preview interface, the first focusing point and the second focusing point are projected into a first preview image and a second preview image through coordinate system transformation, and a preset range around the first focusing point is determined as a first region of interest.
The region of interest is also called ROI (region of interest), and in image processing, a region to be processed is delineated from a processed image in the form of a square frame, a circle, an ellipse, an irregular polygon, or the like, and is the region of interest. And the interested region is determined in the image as a key processing region, so that the processing time can be reduced, and the processing precision can be increased.
The first region of interest may be determined as a circular region with the first focus point as a center and a preset radius as a radius, and the second region of interest may be determined as a circular region with the second focus point as a center and a preset radius as a radius. Alternatively, a preset-sized rectangle geometrically centered at the first focus point is determined as the first region of interest, a preset-sized rectangle geometrically centered at the second focus point is determined as the second region of interest, and so on. According to the focusing instruction of the user, the first region of interest and the second region of interest can be determined by using various methods, which are not described herein again.
Therefore, a first region of interest in the first preview image and a first region of interest in the second preview image are determined according to the first focusing instruction, and a second region of interest in the first preview image and a second region of interest in the second preview image are determined according to the second focusing instruction.
It should be noted that, the descriptions of "first", "second", etc. do not limit the sequence of the steps.
And 203, acquiring a first brightness ratio of the first interested area to the second interested area in the first preview image, and acquiring a second brightness ratio of the first interested area to the second interested area in the second preview image.
It will be appreciated that after the capture preview interface focuses on a bright or dark location, the exposure parameters of the capture preview interface will change accordingly. For example, the first region of interest determined according to the first focusing instruction is a bright region, and the second region of interest determined according to the second focusing instruction is a dark region. Acquiring a first brightness ratio of a first region of interest to a second region of interest in a first preview image, namely acquiring a brightness ratio of a bright position to a dark position after exposure parameters are adjusted after focusing the bright position; and acquiring a second brightness ratio of the first region of interest to the second region of interest in the second preview image, namely acquiring the brightness ratio of the bright place to the dark place after adjusting the exposure parameters after focusing the dark place.
Referring to fig. 2 and 3 together, fig. 3 is a schematic diagram of two preview images in the embodiment of the present application. The user clicks on the image preview interface at 1 and 2 respectively in figure 2 to focus on. Wherein, the 1 is a brighter part on the shooting preview interface, and the 2 is a darker dark part on the shooting preview interface. When focusing is carried out on the position 1, because the focus is carried out on a bright position, the whole preview interface becomes dark after exposure parameters are adjusted, and a frame of image of the preview interface is intercepted after the whole preview interface becomes dark, so that a first preview image A is obtained; when focusing is carried out on the position 2, because the focusing is carried out on the dark position, the whole preview interface is lightened after the exposure parameters are adjusted, and a frame image of the preview interface is captured after the whole preview interface is lightened to obtain a second preview image B. A1 and a2 are first and second regions of interest in image a, respectively, and B1 and B2 are first and second regions of interest in image B, respectively. The first interested region in the image A and the first interested region in the image B are positioned at the same position of the images and have the same size and different brightness; the first region of interest in image a and image B are located at the same position of the images and have the same size and different brightness.
Acquiring a first brightness ratio of the first region of interest to the second region of interest in the first preview image, namely acquiring a brightness ratio R1 at A1 and A2 in the image A; a second luminance ratio of the first region of interest to the second region of interest in the second preview image is obtained, i.e., the luminance ratio R2 at B1 and B2 in the obtained image B.
An arithmetic average of the first luminance ratio and the second luminance ratio is calculated 204.
205, determine whether the arithmetic mean is greater than a first predetermined threshold, if yes, go to step 206, otherwise go to step 211.
The arithmetic average value R ═ of (R1+ R2)/2 of the first luminance ratio and the second luminance ratio reflects the degree of bright-dark contrast of the first region of interest and the second region of interest as a whole by averaging. When the arithmetic mean value is large, the first interested area and the second interested area are very dark, very bright and high in bright-dark contrast degree.
And for the condition that the brightness contrast degree of the first region of interest and the second region of interest is high, the step 206 is switched to perform the next judgment step, and for the condition that the brightness contrast degree of the first region of interest and the second region of interest is not high enough, the high dynamic range shooting mode is not started.
A luminance ratio difference is calculated 206 for the first luminance ratio and the second luminance ratio.
207, determining whether the brightness ratio difference is greater than a second preset threshold, if so, turning to step 206, otherwise, turning to step 211.
And 208, starting a high dynamic range shooting mode.
After calculating the arithmetic mean of the first luminance ratio R1 and the second luminance ratio R2 and determining that the arithmetic mean is greater than the first preset threshold, a luminance ratio difference between the first luminance ratio R1 and the second luminance ratio R2 is further calculated. Setting a second preset threshold, and when the brightness ratio difference is smaller than or equal to the second preset threshold, considering that R1 and R2 are close to each other, wherein the dynamic ranges of the first interested area and the second interested area are not large, and the high dynamic range shooting mode can not be started under the condition that the interception processing does not occur after the exposure parameters are adjusted; on the contrary, when the luminance ratio difference is greater than the second preset threshold, i.e., R1> > R2 or R1< < R2, it indicates that the dynamic ranges of the first region of interest and the second region of interest are large, and even in the case where the cut-off process occurs after the exposure parameters are adjusted, it is preferable to start the high dynamic range photographing mode.
The above-mentioned steps of calculating and determining do not limit the present invention, and the arithmetic mean of the first luminance ratio and the second luminance ratio may be calculated first, and then the luminance ratio difference may be calculated when the arithmetic mean is greater than the first preset threshold, or the luminance ratio difference of the first luminance ratio and the second luminance ratio may be calculated first, and then the arithmetic mean may be calculated when the luminance ratio difference is greater than the first preset threshold.
And 209, shooting at least two images to be synthesized with different exposure parameters according to the arithmetic mean value.
In one embodiment, taking at least two images to be combined of different exposure parameters according to an arithmetic mean comprises:
2091, determining a first exposure time and a second exposure time according to the arithmetic mean, wherein a ratio of the first exposure time to the second exposure time is a preset multiple of the arithmetic mean, or a difference between the first exposure time and the second exposure time is the preset multiple of the arithmetic mean;
2092 capture a first image to be synthesized based on the first exposure time and capture a second image to be synthesized based on the second exposure time.
The exposure parameters include exposure time, exposure gain, and the like. When the arithmetic mean value R is large, setting the exposure parameters of every two images to be synthesized to be greatly different; when the arithmetic mean value R is smaller, the difference between the exposure parameters of every two images to be synthesized is set to be smaller.
And before shooting at least two images to be combined with different exposure parameters, allocating the exposure time when the at least two images to be combined are shot. When the exposure gain is fixed, images of different brightness can be captured by photographing with changing the exposure time. The difference or ratio of the exposure times of each two images to be combined is proportional to the arithmetic mean. The larger the arithmetic mean value R is, the higher the bright-dark contrast degree is, and the larger the difference of the exposure time allocated to two images to be synthesized is during shooting; the smaller the arithmetic mean R, the lower the bright-dark contrast, and the closer the brightness of the bright and dark areas, so that the difference in exposure time allocated to the two images to be combined is in the high dynamic range photographing mode.
And 210, carrying out high dynamic range image synthesis processing on at least two images to be synthesized with different exposure parameters to obtain a target image with a high dynamic range, and displaying the target image on a shooting preview interface.
For example, a first image to be synthesized captured based on a first exposure time and a second image to be synthesized captured based on a second exposure time are subjected to image synthesis processing, resulting in a target image with a high dynamic range. The ratio of the first exposure time to the second exposure time is a preset multiple of the arithmetic mean value, or the difference value of the first exposure time and the second exposure time is the preset multiple of the arithmetic mean value.
And setting the first exposure time as the long exposure time and the second exposure time as the short exposure time, wherein the obtained target image comprises dark-area details of the first image to be synthesized and bright-area details of the second image to be synthesized. The reason is that under the long exposure time, the brightness of the dark part is improved, so that the dark part details of the first image to be synthesized are shot more clearly, and under the short exposure time, the brightness of the bright part is suppressed, so that the bright part details of the second image to be synthesized are shot more clearly. By carrying out high dynamic range image synthesis processing on the first image to be synthesized and the second image to be synthesized, clear bright area details and dark area details can be combined into the same image, and a target image with a high dynamic range is obtained.
It should be noted that the first image to be synthesized and the second image to be synthesized may be two frames of preview images captured in the shooting preview interface. The target image obtained by the high dynamic range image synthesis processing may be a final required image obtained by shooting, or a preview image shown to exhibit the effect of the high dynamic range shooting mode at the time of shooting. When the target image is a preview image showing an effect, the target image may be shown on the shooting preview interface in the form of a thumbnail. At this time, the step of displaying the target image on the shooting preview interface includes: acquiring a thumbnail of a target image; and displaying the thumbnail of the target image on a shooting preview interface.
The high dynamic range shooting mode is not turned on 211.
The electronic device performs shooting using a default shooting mode without turning on the high dynamic range shooting mode.
The embodiment of the application also provides a starting device for the high dynamic range shooting mode. Referring to fig. 5, fig. 5 is a schematic structural diagram of a high dynamic range shooting mode starting device according to an embodiment of the present application. The high dynamic range shooting mode starting apparatus 300 is applied to an electronic device, and includes a first obtaining module 301, a determining module 302, a second obtaining module 303, and a starting module 304, as follows:
a first obtaining module 301, configured to receive a first focusing instruction and a second focusing instruction based on a shooting preview interface, determine and obtain a first preview image according to a first exposure parameter corresponding to the first focusing instruction, determine and obtain a second preview image according to a second exposure parameter corresponding to the second focusing instruction;
a determining module 302, configured to determine a first region of interest in the first preview image and the second preview image according to the first focusing instruction, and determine a second region of interest in the first preview image and the second preview image according to the second focusing instruction;
a second obtaining module 303, configured to obtain a first brightness ratio between a first region of interest and a second region of interest in the first preview image, and obtain a second brightness ratio between the first region of interest and the second region of interest in the second preview image;
the starting module 304 is configured to start the high dynamic range shooting mode when the first luminance ratio and the second luminance ratio satisfy a preset starting condition.
Referring to fig. 6, in an embodiment, the opening module 304 includes a calculating unit 3041 and an opening unit 3042:
a calculating unit 3041 for calculating an arithmetic average of the first luminance ratio and the second luminance ratio;
an opening unit 3042, configured to open a high dynamic range shooting mode when the arithmetic average value is greater than a first preset threshold.
Optionally, the opening unit 3042 is further configured to:
when the arithmetic mean value is larger than a first preset threshold value, calculating a brightness ratio difference value of the first brightness ratio and the second brightness ratio;
and when the brightness ratio difference value is larger than a second preset threshold value, starting a high dynamic range shooting mode.
Referring to fig. 7, in an embodiment, the high dynamic range shooting mode starting apparatus 300 further includes a shooting module 305, a synthesizing module 306, and a display module 307:
a shooting module 305, configured to shoot at least two images to be synthesized with different exposure parameters according to the arithmetic mean;
the synthesis module 306 is configured to perform high dynamic range image synthesis processing on the to-be-synthesized images with the at least two different exposure parameters to obtain a target image with a high dynamic range;
and a display module 307, configured to display the target image on the shooting preview interface.
Wherein, the photographing module 305 includes a determination unit 3051 and a photographing unit 3052:
a determining unit 3051, configured to determine a first exposure time and a second exposure time according to the arithmetic mean, where a ratio of the first exposure time to the second exposure time is a preset multiple of the arithmetic mean, or a difference between the first exposure time and the second exposure time is the preset multiple of the arithmetic mean;
a shooting unit 3052, configured to shoot a first image to be synthesized based on the first exposure time, and shoot a second image to be synthesized based on the second exposure time.
Referring to fig. 7, in an embodiment, the high dynamic range shooting mode starting apparatus 300 further includes:
a prompt module 308, configured to display a prompt message on the shooting preview interface, where the prompt message is used to prompt a user whether to start a high dynamic range shooting mode;
a receiving module 309, configured to start the high dynamic range shooting mode when receiving confirmation information that the user confirms to start the high dynamic range shooting mode.
It should be noted that the high dynamic range shooting mode starting apparatus provided in the embodiment of the present application and the high dynamic range shooting mode starting method in the foregoing embodiments belong to the same concept, and any method provided in the high dynamic range shooting mode starting method embodiment may be run on the high dynamic range shooting mode starting apparatus, and a specific implementation process thereof is described in detail in the high dynamic range shooting mode starting method embodiment, and is not described herein again.
Embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, and when the stored computer program is executed on a computer, the computer is enabled to execute the steps in the high dynamic range shooting mode starting method provided by the embodiments of the present application. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
An electronic device is further provided in the embodiments of the present application, please refer to fig. 8, and fig. 8 is a schematic structural diagram of the electronic device provided in the embodiments of the present application. The electronic device comprises a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by running or loading a computer program stored in the memory 402 and calling data stored in the memory 402.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer 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 created according to use of the electronic device, and the like. Further, the memory 402 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. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
In this embodiment, the processor 401 in the electronic device loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions, as follows:
receiving a first focusing instruction and a second focusing instruction based on a shooting preview interface, determining and acquiring a first preview image according to a first exposure parameter corresponding to the first focusing instruction, and determining and acquiring a second preview image according to a second exposure parameter corresponding to the second focusing instruction;
determining a first region of interest in the first preview image and the second preview image according to the first focusing instruction, and determining a second region of interest in the first preview image and the second preview image according to the second focusing instruction;
acquiring a first brightness ratio of a first region of interest to a second region of interest in the first preview image, and acquiring a second brightness ratio of the first region of interest to the second region of interest in the second preview image;
and when the first brightness ratio and the second brightness ratio meet a preset starting condition, starting a high dynamic range shooting mode.
Referring to fig. 9, fig. 9 is another schematic structural diagram of the electronic device according to the embodiment of the present disclosure, and the difference from the electronic device shown in fig. 8 is that the electronic device further includes components such as an input unit 403 and an output unit 404.
The input unit 403 may be used for receiving input numbers, character information, voice or user characteristic information (such as fingerprints), and generating a keyboard, a mouse, a joystick, a voice signal, an optical or trackball signal input, and the like, related to user setting and function control, among others.
The output unit 404 may be used to present information input by the user or information provided to the user, such as a screen, a recording, and the like.
In this embodiment, the processor 401 in the electronic device loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions, as follows:
receiving a first focusing instruction and a second focusing instruction based on a shooting preview interface, determining and acquiring a first preview image according to a first exposure parameter corresponding to the first focusing instruction, and determining and acquiring a second preview image according to a second exposure parameter corresponding to the second focusing instruction;
determining a first region of interest in the first preview image and the second preview image according to the first focusing instruction, and determining a second region of interest in the first preview image and the second preview image according to the second focusing instruction;
acquiring a first brightness ratio of a first region of interest to a second region of interest in the first preview image, and acquiring a second brightness ratio of the first region of interest to the second region of interest in the second preview image;
and when the first brightness ratio and the second brightness ratio meet a preset starting condition, starting a high dynamic range shooting mode.
In an embodiment, when the first luminance ratio and the second luminance ratio satisfy a preset switching condition and the high dynamic range shooting mode is turned on, the processor 401 further performs:
calculating an arithmetic mean of the first luminance ratio and the second luminance ratio;
and when the arithmetic mean value is larger than a first preset threshold value, starting a high dynamic range shooting mode.
In an embodiment, when the arithmetic mean is greater than a first preset threshold and the high dynamic range shooting mode is turned on, the processor 401 further performs:
when the arithmetic mean value is larger than a first preset threshold value, calculating a brightness ratio difference value of the first brightness ratio and the second brightness ratio;
and when the brightness ratio difference value is larger than a second preset threshold value, starting a high dynamic range shooting mode.
In an embodiment, after the high dynamic range shooting mode is turned on, the processor 401 further performs:
shooting at least two images to be synthesized with different exposure parameters according to the arithmetic mean value;
carrying out high dynamic range image synthesis processing on the at least two images to be synthesized with different exposure parameters to obtain a target image with a high dynamic range;
and displaying the target image on the shooting preview interface.
In an embodiment, when the shooting preview interface displays the target image, the processor 401 further performs:
acquiring a thumbnail of the target image;
and displaying the thumbnail of the target image on the shooting preview interface.
In an embodiment, the exposure parameter includes an exposure time, and when capturing at least two images to be combined of different exposure parameters according to the arithmetic mean, the processor 401 further performs:
determining a first exposure time and a second exposure time according to the arithmetic mean value, wherein the ratio of the first exposure time to the second exposure time is a preset multiple of the arithmetic mean value, or the difference value of the first exposure time and the second exposure time is the preset multiple of the arithmetic mean value;
and shooting a first image to be synthesized based on the first exposure time, and shooting a second image to be synthesized based on the second exposure time.
In one embodiment, before the high dynamic range shooting mode is turned on, the processor 401 further performs:
displaying prompt information on the shooting preview interface, wherein the prompt information is used for prompting a user whether to start a high dynamic range shooting mode;
and when receiving confirmation information that the user confirms to start the high dynamic range shooting mode, starting the high dynamic range shooting mode.
It should be noted that the electronic device provided in the embodiment of the present application and the high dynamic range shooting mode starting method in the foregoing embodiments belong to the same concept, and any method provided in the embodiment of the high dynamic range shooting mode starting method may be run on the electronic device, and a specific implementation process thereof is described in detail in the embodiment of the feature extraction method, and is not described herein again.
It should be noted that, for the high dynamic range shooting mode starting method in the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process for implementing the high dynamic range shooting mode starting method in the embodiment of the present application can be completed by controlling related hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process of the embodiment of the high dynamic range shooting mode starting method can be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
For the high dynamic range shooting mode starting device in the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in 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 method, the device, the storage medium and the electronic device for starting the high dynamic range shooting mode provided by the embodiment of the application are introduced in detail, a specific example is applied in the description to explain the principle and the implementation of the application, and the description of the embodiment is only used for helping to understand the method and the core idea of the application; meanwhile, for those skilled in the art, according to the idea of the present application, 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 application.

Claims (10)

1. A high dynamic range shooting mode starting method is characterized by comprising the following steps:
receiving a first focusing instruction and a second focusing instruction based on a shooting preview interface, determining and acquiring a first preview image according to a first exposure parameter corresponding to the first focusing instruction, and determining and acquiring a second preview image according to a second exposure parameter corresponding to the second focusing instruction;
determining a first region of interest in the first preview image and the second preview image according to the first focusing instruction, and determining a second region of interest in the first preview image and the second preview image according to the second focusing instruction;
acquiring a first brightness ratio of a first region of interest to a second region of interest in the first preview image, and acquiring a second brightness ratio of the first region of interest to the second region of interest in the second preview image;
and when the first brightness ratio and the second brightness ratio meet a preset starting condition, starting a high dynamic range shooting mode.
2. The method according to claim 1, wherein the turning on the high dynamic range shooting mode when the first luminance ratio and the second luminance ratio satisfy a preset switching condition comprises:
calculating an arithmetic mean of the first luminance ratio and the second luminance ratio;
and when the arithmetic mean value is larger than a first preset threshold value, starting a high dynamic range shooting mode.
3. The method of claim 2, wherein the turning on the high dynamic range photographing mode when the arithmetic mean is greater than a first preset threshold comprises:
when the arithmetic mean value is larger than a first preset threshold value, calculating a brightness ratio difference value of the first brightness ratio and the second brightness ratio;
and when the brightness ratio difference value is larger than a second preset threshold value, starting a high dynamic range shooting mode.
4. The method of claim 2 or 3, further comprising, after the high dynamic range shooting mode is turned on:
shooting at least two images to be synthesized with different exposure parameters according to the arithmetic mean value;
carrying out high dynamic range image synthesis processing on the at least two images to be synthesized with different exposure parameters to obtain a target image with a high dynamic range;
and displaying the target image on the shooting preview interface.
5. The high dynamic range shooting mode opening method of claim 4, wherein the presenting the target image in a shooting preview interface comprises:
acquiring a thumbnail of the target image;
and displaying the thumbnail of the target image on the shooting preview interface.
6. The method according to claim 4, wherein the exposure parameter comprises an exposure time, and the capturing at least two images to be combined with different exposure parameters according to the arithmetic mean comprises:
determining a first exposure time and a second exposure time according to the arithmetic mean value, wherein the ratio of the first exposure time to the second exposure time is a preset multiple of the arithmetic mean value, or the difference value of the first exposure time and the second exposure time is the preset multiple of the arithmetic mean value;
and shooting a first image to be synthesized based on the first exposure time, and shooting a second image to be synthesized based on the second exposure time.
7. The method of claim 1, wherein before the high dynamic range shooting mode is turned on, the method further comprises:
displaying prompt information on the shooting preview interface, wherein the prompt information is used for prompting a user whether to start a high dynamic range shooting mode;
and when receiving confirmation information that the user confirms to start the high dynamic range shooting mode, starting the high dynamic range shooting mode.
8. A high dynamic range shooting mode starting device, comprising:
the first acquisition module is used for receiving a first focusing instruction and a second focusing instruction based on a shooting preview interface, determining and acquiring a first preview image according to a first exposure parameter corresponding to the first focusing instruction, and determining and acquiring a second preview image according to a second exposure parameter corresponding to the second focusing instruction;
the determining module is used for determining a first interested area in the first preview image and the second preview image according to the first focusing instruction and determining a second interested area in the first preview image and the second preview image according to the second focusing instruction;
the second acquisition module is used for acquiring a first brightness ratio of a first region of interest to a second region of interest in the first preview image and acquiring a second brightness ratio of the first region of interest to the second region of interest in the second preview image;
and the starting module is used for starting the high dynamic range shooting mode when the first brightness ratio and the second brightness ratio meet the preset starting condition.
9. A storage medium having stored thereon a computer program, characterized in that when the computer program is called by a processor, it causes the processor to execute a high dynamic range photographing mode turning-on method according to any one of claims 1 to 7.
10. An electronic device comprising a processor and a memory, the memory storing a computer program, wherein the processor is configured to execute the high dynamic range shooting mode startup method according to any one of claims 1 to 7 by calling the computer program.
CN201910726994.8A 2019-08-07 2019-08-07 High dynamic range shooting mode starting method and device, storage medium and electronic equipment Active CN110493515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910726994.8A CN110493515B (en) 2019-08-07 2019-08-07 High dynamic range shooting mode starting method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910726994.8A CN110493515B (en) 2019-08-07 2019-08-07 High dynamic range shooting mode starting method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110493515A CN110493515A (en) 2019-11-22
CN110493515B true CN110493515B (en) 2020-12-22

Family

ID=68550204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910726994.8A Active CN110493515B (en) 2019-08-07 2019-08-07 High dynamic range shooting mode starting method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110493515B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110602401A (en) * 2019-09-17 2019-12-20 维沃移动通信有限公司 Photographing method and terminal
CN112954228B (en) * 2019-12-11 2022-11-18 杭州海康威视数字技术股份有限公司 Wide dynamic exposure control method and camera equipment
CN112887630A (en) * 2021-04-06 2021-06-01 南昌欧菲光电技术有限公司 Automatic exposure method, electronic device, and computer-readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4561912B2 (en) * 2008-09-12 2010-10-13 ソニー株式会社 Imaging apparatus, imaging method, and program
US20160307603A1 (en) * 2015-04-15 2016-10-20 Sony Corporation Information processing device, information recording medium, information processing method, and program
CN104883504B (en) * 2015-06-05 2018-06-01 广东欧珀移动通信有限公司 Open the method and device of high dynamic range HDR functions on intelligent terminal
CN105872399B (en) * 2016-04-19 2019-10-08 奇酷互联网络科技(深圳)有限公司 Backlighting detecting and backlight detection system
CN109194946B (en) * 2018-09-30 2021-07-20 Oppo广东移动通信有限公司 Data processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110493515A (en) 2019-11-22

Similar Documents

Publication Publication Date Title
US11418702B2 (en) Method and device for displaying shooting interface, and terminal
CN108322646B (en) Image processing method, image processing device, storage medium and electronic equipment
CN109167931B (en) Image processing method, device, storage medium and mobile terminal
US9013592B2 (en) Method, apparatus, and computer program product for presenting burst images
CN111586282B (en) Shooting method, shooting device, terminal and readable storage medium
CN110620873B (en) Device imaging method and device, storage medium and electronic device
CN110493515B (en) High dynamic range shooting mode starting method and device, storage medium and electronic equipment
CN111491102B (en) Detection method and system for photographing scene, mobile terminal and storage medium
CN109996009B (en) Image processing method, image processing device, storage medium and electronic equipment
CN108040204B (en) Image shooting method and device based on multiple cameras and storage medium
KR20160116289A (en) Method and apparatus for adjustmenting shooting parameter
US20180139369A1 (en) Backlit face detection
US9628721B2 (en) Imaging apparatus for generating high dynamic range image and method for controlling the same
CN110035237B (en) Image processing method, image processing device, storage medium and electronic equipment
CN112312035B (en) Exposure parameter adjusting method, exposure parameter adjusting device and electronic equipment
CN111405185B (en) Zoom control method and device for camera, electronic equipment and storage medium
CN112164007A (en) Image display method and apparatus, terminal and readable storage medium
CN113840095A (en) Light supplement lamp control method and related device
CN111586280B (en) Shooting method, shooting device, terminal and readable storage medium
CN114070998B (en) Moon shooting method and device, electronic equipment and medium
CN111263079B (en) Image processing method, image processing device, storage medium and electronic equipment
US11336802B2 (en) Imaging apparatus
CN114827477B (en) Method, device, electronic equipment and medium for time-lapse photography
CN113923367B (en) Shooting method and shooting device
CN117793534A (en) Zoom method and device, electronic equipment and readable storage medium

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