CN110493515A - High dynamic range screening-mode open method, device, storage medium and electronic equipment - Google Patents

High dynamic range screening-mode open method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110493515A
CN110493515A CN201910726994.8A CN201910726994A CN110493515A CN 110493515 A CN110493515 A CN 110493515A CN 201910726994 A CN201910726994 A CN 201910726994A CN 110493515 A CN110493515 A CN 110493515A
Authority
CN
China
Prior art keywords
dynamic range
high dynamic
interest
mode
area
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
CN201910726994.8A
Other languages
Chinese (zh)
Other versions
CN110493515B (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

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 present application discloses a kind of high dynamic range screening-mode open method, device, storage medium and electronic equipment, the first focus command and the second focus command are received based on shooting preview interface, it determines and the first preview image is obtained according to the first exposure parameter of corresponding first focus command, determine and the second preview image is obtained according to the second exposure parameter of corresponding second focus command;The first area-of-interest and the second area-of-interest are determined in the first preview image and the second preview image according to the first focus command and the second focus command;The first brightness ratio of the first area-of-interest and the second area-of-interest in the first preview image is obtained, and obtains the second brightness ratio of the first area-of-interest and the second area-of-interest in the second preview image;When the first brightness ratio and the second brightness ratio meet default unlocking condition, high dynamic range screening-mode is opened, by automatically turning on high dynamic range screening-mode, improves the ease for use of high dynamic range screening-mode.

Description

High dynamic range screening-mode open method, device, storage medium and electronic equipment
Technical field
This application involves fields of communication technology, and in particular to a kind of high dynamic range screening-mode open method, is deposited device Storage media and electronic equipment.
Background technique
Currently, electronic equipment such as mobile phone, camera etc. provides a kind of new screening-mode --- high dynamic range (High- Dynamic Range, abbreviation HDR) screening-mode.Compared to common screening-mode, high dynamic range screening-mode can be mentioned For more dynamic ranges and image detail.Under high dynamic range screening-mode, electronic equipment can shoot to obtain same field Overexposure light image, normal exposure image and under-exposure image under scape, by the dark portion details of overexposure light image, normal exposure image Intermediate details and the highlights details of under-exposure image synthesize to obtain high dynamic range images.However, needing to use in the related technology The manually opened high dynamic range screening-mode in family.
Summary of the invention
The embodiment of the present application provides a kind of high dynamic range images mode switching method, device, storage medium and electronics Equipment can automatically turn on high dynamic range screening-mode, improve the ease for use of high dynamic range screening-mode.
In a first aspect, the embodiment of the present application provides a kind of high dynamic range screening-mode open method, the high dynamic Range screening-mode open method includes:
The first focus command and the second focus command are received based on shooting preview interface, is determined and according to correspondence described first First exposure parameter of focus command obtains the first preview image, determines and exposes according to the second of correspondence second focus command Optical parameter obtains the second preview image;
Determine that the first sense is emerging in first preview image and the second preview image according to first focus command Interesting region, and the second sense is determined in first preview image and the second preview image according to second focus command Interest region;
The first brightness ratio of the first area-of-interest and the second area-of-interest in first preview image is obtained, and Obtain the second brightness ratio of the first area-of-interest and the second area-of-interest in second preview image;
When first brightness ratio and the second brightness ratio meet default unlocking condition, opens high dynamic range and shoot mould Formula.
Second aspect, the embodiment of the present application provide a kind of high dynamic range screening-mode opening device, the high dynamic Range screening-mode opening device includes:
First obtains module, for receiving the first focus command and the second focus command based on shooting preview interface, determines And the first preview image is obtained according to the first exposure parameter of correspondence first focus command, it determines and according to correspondence described the Second exposure parameter of two focus commands obtains the second preview image;
Determining module, for true in first preview image and the second preview image according to first focus command The first area-of-interest is made, and according to second focus command in first preview image and the second preview image Determine the second area-of-interest;
Second obtains module, for obtaining the first area-of-interest and the second area-of-interest in first preview image The first brightness ratio, and obtain the second bright of the first area-of-interest and the second area-of-interest in second preview image Degree ratio;
Opening module, it is high dynamic for opening when first brightness ratio and the second brightness ratio meet default unlocking condition State range screening-mode.
The third aspect, the embodiment of the present application provide a kind of storage medium, are stored thereon with computer program, when the meter When calculation machine program is called by processor, so that the processor executes high dynamic range provided by the embodiments of the present application such as and shoots mould Formula open method.
Fourth aspect, the embodiment of the present application provide a kind of electronic equipment, including processor and memory, the memory It is stored with computer program, the processor is provided by calling the computer program for executing the embodiment of the present application such as High dynamic range screening-mode open method.
In the embodiment of the present application, electronic equipment is based on shooting preview interface the first focus command of reception and the second focusing refers to It enables, determine and the first preview image is obtained according to the first exposure parameter of corresponding first focus command, determine and according to corresponding the Second exposure parameter of two focus commands obtains the second preview image;According to the first focus command in the first preview image and second The first area-of-interest is determined in preview image, and according to the second focus command in the first preview image and the second preview graph The second area-of-interest is determined as in;Obtain of the first area-of-interest and the second area-of-interest in the first preview image One brightness ratio, and obtain the second brightness ratio of the first area-of-interest and the second area-of-interest in the second preview image;When When first brightness ratio and the second brightness ratio meet default unlocking condition, high dynamic range screening-mode is opened.The application is by connecing Focus command is received, high dynamic range screening-mode is automatically turned on, improves the ease for use of high dynamic range screening-mode.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a flow diagram of high dynamic range screening-mode open method provided by the embodiments of the present application.
Fig. 2 is the schematic diagram of a scenario of high dynamic range screening-mode open method provided by the embodiments of the present application.
Fig. 3 is the schematic diagram of two preview images provided by the embodiments of the present application.
Fig. 4 is another flow diagram of high dynamic range screening-mode open method provided by the embodiments of the present application.
Fig. 5 is a flow diagram of high dynamic range screening-mode opening device provided by the embodiments of the present application.
Fig. 6 is another flow diagram of high dynamic range screening-mode opening device provided by the embodiments of the present application.
Fig. 7 is the another flow diagram of high dynamic range screening-mode opening device provided by the embodiments of the present application.
Fig. 8 is a structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Fig. 9 is another structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Schema is please referred to, wherein identical component symbol represents identical component, the principle of the application is to implement one It is illustrated in computing environment appropriate.The following description be based on illustrated by the application specific embodiment, should not be by It is considered as limitation the application other specific embodiments not detailed herein.
The embodiment of the present application provides a kind of high dynamic range screening-mode open method first, which shoots mould Formula open method is applied to electronic equipment.Wherein, the executing subject of the high dynamic range screening-mode open method can be this Apply for the high dynamic range screening-mode opening device that embodiment provides, or is integrated with high dynamic range screening-mode unlatching The electronic equipment of device, the high dynamic range screening-mode opening device can be realized by the way of hardware or software, electric Sub- equipment can be smart phone, tablet computer, palm PC, laptop or desktop computer etc. configured with processor And the equipment with processing capacity.
Fig. 1 is please referred to, Fig. 1 is that the process of high dynamic range screening-mode open method provided by the embodiments of the present application is illustrated Figure.The high dynamic range screening-mode open method is applied to electronic equipment provided by the embodiments of the present application, as shown in Figure 1, this The process for the high dynamic range screening-mode open method that application embodiment provides can be such that
101, the first focus command and the second focus command are received based on shooting preview interface, determined and according to corresponding first First exposure parameter of focus command obtains the first preview image, determines and is joined according to the second exposure of corresponding second focus command Number obtains the second preview image.
Shooting preview interface is opened in electronic equipment (such as mobile phone, camera), then can show and work as on the screen of electronic equipment The shooting preview interface of preceding scene to be captured.Based on the shooting preview interface, user is by way of click on the screen to certain Place is focused, and electronic equipment responds the focusing operation of user, can change exposure parameter when shooting, according to being focused the bright of place The current preview brightness of degree adjustment shooting preview interface.
The first focus command and the second focus command of user are received based on shooting preview interface, wherein the first focusing refers to It enables and the second focus command can be the focus command of front and back twice.First focus command and the second focus command may be point Focus command of the safety pin to place and dark place bright in shooting preview interface.
Optionally, using a brighter side at the direction of two focus commands as bright place, by the finger of two focus commands Into place, a darker side is as dark place;Or
When brightness at the direction of focus command is greater than high brightness threshold value, by the direction of the focus command as bright Place when the brightness at the direction of focus command is less than low brightness threshold, will be used as dark place at the direction of the focus command;Or
Display reminding information is to guide user to focus respectively to bright place and dark place, after prompt user is focused bright place The first focus command is received, the first focus command is received after prompt user is focused bright place, is then focused first As bright place at the direction of instruction, dark place will be used as at the direction of the second focus command.
Referring to Fig. 2, the scene that Fig. 2 is high dynamic range screening-mode open method provided by the embodiments of the present application is illustrated Figure.In one embodiment, the first focus command for receiving the bright place being directed toward in shooting preview interface first, according to first focusing Instruction is focused the bright place in shooting preview interface, due to needing to focus to bright place, thus current exposure parameter is adjusted To lower first exposure parameter, the brightness of entire shooting preview interface is declined at this time, is intercepted under the first exposure parameter One frame preview image is as the first preview image;Then the second focus command of the dark place being directed toward in shooting preview interface is received, The dark place in shooting preview interface is focused according to second focus command, due to needing to focus to dark place, thus will be worked as Prior exposure parameter is adjusted to higher second exposure parameter, and the brightness of entire shooting preview interface is promoted at this time, interception the A frame preview image under two exposure parameters is as the second preview image.
It should be noted that the first focus command and the second focus command are in no particular order, the two be can be one in front and one in back, It can be while carrying out.Also, the first focus command may be the focus command for being directed toward dark place, and the second focus command can also be with For the focus command for being directed toward dark place.
102, the first region of interest is determined in the first preview image and the second preview image according to the first focus command Domain, and the second area-of-interest is determined in the first preview image and the second preview image according to the second focus command.
In one embodiment, touch-control sensing mould group is provided in electronic equipment, it is poly- to obtain first by touch-control sensing mould group Coke instruction and the second focus command correspond to the first focus point and the second focus point of shooting preview interface, are become by coordinate system It changes, the first focus point and the second focus point is projected in the first preview image and the second preview image, by the first focus point week It encloses preset range and is determined as the first area-of-interest.
Area-of-interest is also known as the region ROI (region of interest), in image procossing, from processed image In region to be treated, as area-of-interest are sketched the contours of in a manner of box, circle, ellipse, irregular polygon etc..In image In determine area-of-interest as emphasis processing region, the processing time can be reduced, increase processing accuracy.
Wherein it is possible to by the first sense is determined as the center of circle, by the border circular areas of radius of pre-set radius using the first focus point Interest region will be determined as the second area-of-interest as the center of circle, by the border circular areas of radius of pre-set radius using the second focus point. Alternatively, will be focused the first area-of-interest is determined as by the default size rectangle of geometric center of the first focus point with second Point is that the default size rectangle of geometric center is determined as second area-of-interest, etc..According to the focus command of user, can make The first area-of-interest and the second area-of-interest determined with a variety of methods, details are not described herein again.
The first area-of-interest and the second preview graph in the first preview image are determined according to the first focus command as a result, The first area-of-interest as in determines the second area-of-interest in the first preview image and the according to the second focus command The second area-of-interest in two preview images.
It should be noted that the descriptions such as " first " therein, " second " do not constitute the restriction to step sequencing.
103, the first brightness ratio of the first area-of-interest and the second area-of-interest in the first preview image is obtained, and Obtain the second brightness ratio of the first area-of-interest and the second area-of-interest in the second preview image.
It is understood that after shooting preview interface is focused bright place or dark place, the exposure of shooting preview interface Parameter will change correspondingly.For example, being the region Liang Chu according to the first area-of-interest that the first focus command is determined, according to second The second area-of-interest that focus command is determined is dark place region.Obtain the first area-of-interest and in the first preview image First brightness ratio of two area-of-interests, as after being focused to bright place, bright place after obtaining adjustment exposure parameter and dark The brightness ratio at place;The second brightness ratio of the first area-of-interest and the second area-of-interest in the second preview image is obtained, i.e., For the brightness ratio for after being focused to dark place, obtaining bright place and dark place after adjustment exposure parameter.
Please refer to figs. 2 and 3 together, and Fig. 3 is the schematic diagram of two preview images in the embodiment of the present application.User is scheming As preview interface is clicked on in Fig. 21 and at 2, it is focused.It wherein, is brighter bright in shooting preview interface at 1 Locate, is dark place darker in shooting preview interface at 2.When being focused to 1, due to being the focusing to bright place, adjustment exposes Entire preview interface is dimmed after optical parameter, and a frame image of interception preview interface, obtains the first preview image A after dimmed;In When to being focused at 2, due to being the focusing to dark place, entire preview interface brightens after adjusting exposure parameter, cuts after brightening The frame image for taking preview interface, obtains the second preview image B.A1 and A2 be respectively the first area-of-interest in image A and Second area-of-interest, B1 and B2 are respectively the first area-of-interest and the second area-of-interest in image B.Image A and figure As the first area-of-interest in B is located at the same position of image, and size having the same and different brightness;Image A with The first area-of-interest in image B is located at the same position of image, and size having the same and different brightness.
The first brightness ratio for obtaining the first area-of-interest and the second area-of-interest in the first preview image, as obtains Brightness ratio R1 in image A at A1 and A2;Obtain the first area-of-interest and the second area-of-interest in the second preview image Second brightness ratio as obtains the brightness ratio R2 in image B at B1 and B2.
104, it when the first brightness ratio and the second brightness ratio meet default unlocking condition, opens high dynamic range and shoots mould Formula.
Using the first area-of-interest as clear zone, the second area-of-interest be dark space for, after focusing, due to exposure parameter Adjustment, the relationship of the brightness contrast of bright dark space can change, i.e., the brightness ratio of bright dark space can change, and will adjust twice The brightness ratio of bright dark space is denoted as R1 and R2 respectively afterwards.
In one embodiment, the first area-of-interest and the second sense are judged according to the first brightness ratio R1 and the second brightness ratio R2 Whether the dynamic range in interest region is greater than preset threshold.Wherein, dynamic range refers to most bright brightness and most dark brightness Ratio or difference.For example, 0 is the most dark brightness of the limit, and 255 be the most bright brightness of the limit if indicating brightness with 0~255.If Most bright local brightness is 255 in first area-of-interest and the second area-of-interest, and most dark local brightness is 0, then illustrates The dynamic range of first area-of-interest and the second area-of-interest is very big, and bright dark comparison is strong, this appropriate to the occasion unlatching high dynamic Range screening-mode.
Optionally, if R1 and R2 is close, illustrate the dynamic range of the first area-of-interest and the second area-of-interest not Greatly, it is not turned on high dynamic range screening-mode;On the contrary, if R1>>R2 or R1<<R2, illustrates the first area-of-interest and second The dynamic range of area-of-interest is very big, preferably opens high dynamic range screening-mode.
When the dynamic range of the first area-of-interest and the second area-of-interest is very big, with the adjustment of exposure parameter, Bright place and/or dark place are truncated processing.Wherein, truncation refer to focus clear zone adjustment exposure parameter when, dark space due to When reaching most dark limit brightness and can not further decrease brightness, or focusing dark space adjustment exposure parameter, clear zone is due to arriving Brightness can not be further increased up to most bright limit brightness.
When focusing clear zone, the adjustment of exposure parameter by the overall brightness of shooting preview interface toward secretly pressing so that bright Area can be seen clearly;When focusing dark space, the adjustment of exposure parameter up mentions the overall brightness of shooting preview interface, so that Dark space can be seen clearly.If the first brightness ratio R1 and the second brightness ratio R2 are not much different, illustrate no matter click clear zone also It is dark space, the brightness of dark space is all truncated processing without reaching most dark limit brightness 0, and the brightness in clear zone is also without overexposure to most Bright limit brightness 255 is truncated processing, due to not being truncated processing, thus will not dropout, clear zone and dark space with Focus command normally adjust exposure parameter and overall brightness, in the case of general shooting by focus can see it is limpid dark Area, thus when R1 and R2 are close, it is not turned on high dynamic range screening-mode.
And if there is the case where truncation when clicking clear zone and/or dark space, in obtained R1 and R2 extremely Few one will be very big or very small, lead to R1>>R2 or R1<<R2, in the first area-of-interest and the second area-of-interest Dynamic range is very big.For example, dark space is truncated processing, and dark space is further dimmed when focusing clear zone, the brightness of dark space is further It is dimmed, it, can not be smaller than 0 since brightness minimum value is exactly 0 when the brightness of dark space reaches most dark limit brightness 0.Thus, Even if after in dark space, brightness reaches 0, exposure parameter still can further be adjusted with focus command, but when exposure parameter has adjusted Cheng Shi, dark space is most dark also can only be secretly to 0, and can not be dimmed with the brightness in clear zone, and the clear zone of dark space is become negative value.Together Reason, truncation when overexposure refer to that, when focusing dark space, clear zone further brightens with the adjustment of exposure parameter, but most It is bright also can not to exceed this most bright limit brightness to 255, and in fact, the brightness in clear zone should be higher, beyond 255 Just it is able to satisfy correct bright dark space relativity.Both the above situation can illustrate the first area-of-interest and the second region of interest The dynamic range in domain is very big, and bright place is non-to be always on, and dark place is very dark, is necessary to adopt high dynamic range screening-mode to obtain at this time bright Dark place all clearly pictures.
In one embodiment, when the first brightness ratio and the second brightness ratio meet default unlocking condition, high dynamic range is opened Enclosing screening-mode includes:
The arithmetic average R=(R1+R2)/2 for calculating the first brightness ratio R1 and the second brightness ratio R2, as arithmetic average R When greater than the first preset threshold, high dynamic range screening-mode is opened, at this time the first area-of-interest and the second area-of-interest It is bright secretly compare it is sufficiently strong;And/or
The brightness ratio difference for calculating the first brightness ratio R1 and the second brightness ratio R2, when brightness ratio difference is greater than the second default threshold When value, high dynamic range screening-mode is opened, the dynamic range of the first area-of-interest and the second area-of-interest is enough at this time Greatly.
In one embodiment, after unlatching high dynamic range screening-mode, further includes:
(1) according to arithmetic average, the image to be synthesized of at least two different exposure parameters is shot;
(2) high dynamic range images synthesis processing is carried out to the image to be synthesized of at least two different exposure parameters, obtained Target image with high dynamic range;
(3) target image is shown in shooting preview interface.
For example, the image C to be synthesized of one long time for exposure of the shooting and image D to be synthesized of a short exposure time, to The time for exposure of composograph C and D are determined by arithmetic average R.Since image C to be synthesized is long exposure image, for dark place It can shoot to be apparent, and image D to be synthesized is short exposed images, and bright place can be shot to be apparent.Treat composograph C Image synthesis processing is carried out with image D to be synthesized, by the region Liang Chu in the dark place region of image C to be synthesized and image D to be synthesized It is synthesized, so that it may obtain the target image with high dynamic range, dark place region and the region Liang Chu be all in the target image It is apparent.
It obtains after there is the target image of high dynamic range, shows that target image may include: to obtain in shooting preview interface Take the thumbnail of target image;The thumbnail of target image is shown in shooting preview interface.
When electronic equipment starts shooting, default is not turned on high dynamic range screening-mode, only when user's manual setting High dynamic range screening-mode opens high dynamic range shooting according to above-mentioned high dynamic range screening-mode open method Mode is just shot using high dynamic range screening-mode, and high dynamic range screening-mode is shown in shooting preview interface The image of shooting.And after the unlatching of high dynamic range screening-mode, user can also close the mode at any time.Even if high dynamic Range screening-mode is closed, and can also carry out high dynamic range in be synthesized image of the backstage at least two different exposure parameters Image synthesis processing is enclosed, the target image that synthesis obtains is shown in shooting preview interface in the form of thumbnail, so that User more easily compares with the image shown on current preview interface, to determine whether again manually opened high dynamic range Enclose screening-mode.
In one embodiment, before unlatching high dynamic range screening-mode, further includes:
(1) the display reminding information in shooting preview interface, prompt information open high dynamic range for prompting the user whether Enclose screening-mode;
(2) when receiving user and confirming the confirmation message for opening high dynamic range screening-mode, high dynamic range is opened Screening-mode.
When determining currently is suitable for using high dynamic range screening-mode, prompting user is currently suitable for using high dynamic first Range screening-mode, and ask the user whether to open, when user confirms reminder message, just opens high dynamic range and clap Mode is taken the photograph, brings bad experience to user to avoid making a forcible entry into high dynamic range screening-mode.
From the foregoing, it will be observed that receiving the first focus command in the embodiment of the present application based on shooting preview interface and the second focusing referring to It enables, determine and the first preview image is obtained according to the first exposure parameter of corresponding first focus command, determine and according to corresponding the Second exposure parameter of two focus commands obtains the second preview image;According to the first focus command in the first preview image and second The first area-of-interest is determined in preview image, and according to the second focus command in the first preview image and the second preview graph The second area-of-interest is determined as in;Obtain of the first area-of-interest and the second area-of-interest in the first preview image One brightness ratio, and obtain the second brightness ratio of the first area-of-interest and the second area-of-interest in the second preview image;When When first brightness ratio and the second brightness ratio meet default unlocking condition, high dynamic range screening-mode is opened.The application is by connecing Focus command is received, high dynamic range screening-mode is automatically turned on, improves the ease for use of high dynamic range screening-mode.
Please with reference to Fig. 4, Fig. 4 is the another of high dynamic range screening-mode open method provided by the embodiments of the present application The process of flow diagram, the high dynamic range screening-mode open method may include:
201, the first focus command and the second focus command are received based on shooting preview interface, determined and according to corresponding first First exposure parameter of focus command obtains the first preview image, determines and is joined according to the second exposure of corresponding second focus command Number obtains the second preview image.
Shooting preview interface is opened in electronic equipment (such as mobile phone, camera), then can show and work as on the screen of electronic equipment The shooting preview interface of preceding scene to be captured.Based on the shooting preview interface, user is by way of click on the screen to certain Place is focused, and electronic equipment responds the focusing operation of user, can change exposure parameter when shooting, according to being focused the bright of place The current preview brightness of degree adjustment shooting preview interface.
The first focus command and the second focus command of user are received based on shooting preview interface, wherein the first focusing refers to It enables and the second focus command can be the focus command of front and back twice.First focus command and the second focus command may be point Focus command of the safety pin to place and dark place bright in shooting preview interface.
Optionally, using a brighter side at the direction of two focus commands as bright place, by the finger of two focus commands Into place, a darker side is as dark place;Or
When brightness at the direction of focus command is greater than high brightness threshold value, by the direction of the focus command as bright Place when the brightness at the direction of focus command is less than low brightness threshold, will be used as dark place at the direction of the focus command;Or
Display reminding information is to guide user to focus respectively to bright place and dark place, after prompt user is focused bright place The first focus command is received, the first focus command is received after prompt user is focused bright place, is then focused first As bright place at the direction of instruction, dark place will be used as at the direction of the second focus command.
Referring to Fig. 2, the scene that Fig. 2 is high dynamic range screening-mode open method provided by the embodiments of the present application is illustrated Figure.In one embodiment, the first focus command for receiving the bright place being directed toward in shooting preview interface first, according to first focusing Instruction is focused the bright place in shooting preview interface, due to needing to focus to bright place, thus current exposure parameter is adjusted To lower first exposure parameter, the brightness of entire shooting preview interface is declined at this time, is intercepted under the first exposure parameter One frame preview image is as the first preview image;Then the second focus command of the dark place being directed toward in shooting preview interface is received, The dark place in shooting preview interface is focused according to second focus command, due to needing to focus to dark place, thus will be worked as Prior exposure parameter is adjusted to higher second exposure parameter, and the brightness of entire shooting preview interface is promoted at this time, interception the A frame preview image under two exposure parameters is as the second preview image.
It should be noted that the first focus command and the second focus command are in no particular order, the two be can be one in front and one in back, It can be while carrying out.Also, the first focus command may be the focus command for being directed toward dark place, and the second focus command can also be with For the focus command for being directed toward dark place.
202, the first region of interest is determined in the first preview image and the second preview image according to the first focus command Domain, and the second area-of-interest is determined in the first preview image and the second preview image according to the second focus command.
In one embodiment, touch-control sensing mould group is provided in electronic equipment, it is poly- to obtain first by touch-control sensing mould group Coke instruction and the second focus command correspond to the first focus point and the second focus point of shooting preview interface, are become by coordinate system It changes, the first focus point and the second focus point is projected in the first preview image and the second preview image, by the first focus point week It encloses preset range and is determined as the first area-of-interest.
Area-of-interest is also known as the region ROI (region of interest), in image procossing, from processed image In region to be treated, as area-of-interest are sketched the contours of in a manner of box, circle, ellipse, irregular polygon etc..In image In determine area-of-interest as emphasis processing region, the processing time can be reduced, increase processing accuracy.
Wherein it is possible to by the first sense is determined as the center of circle, by the border circular areas of radius of pre-set radius using the first focus point Interest region will be determined as the second area-of-interest as the center of circle, by the border circular areas of radius of pre-set radius using the second focus point. Alternatively, will be focused the first area-of-interest is determined as by the default size rectangle of geometric center of the first focus point with second Point is that the default size rectangle of geometric center is determined as second area-of-interest, etc..According to the focus command of user, can make The first area-of-interest and the second area-of-interest determined with a variety of methods, details are not described herein again.
The first area-of-interest and the second preview graph in the first preview image are determined according to the first focus command as a result, The first area-of-interest as in determines the second area-of-interest in the first preview image and the according to the second focus command The second area-of-interest in two preview images.
It should be noted that the descriptions such as " first " therein, " second " do not constitute the restriction to step sequencing.
203, the first brightness ratio of the first area-of-interest and the second area-of-interest in the first preview image is obtained, and Obtain the second brightness ratio of the first area-of-interest and the second area-of-interest in the second preview image.
It is understood that after shooting preview interface is focused bright place or dark place, the exposure of shooting preview interface Parameter will change correspondingly.For example, being the region Liang Chu according to the first area-of-interest that the first focus command is determined, according to second The second area-of-interest that focus command is determined is dark place region.Obtain the first area-of-interest and in the first preview image First brightness ratio of two area-of-interests, as after being focused to bright place, bright place after obtaining adjustment exposure parameter and dark The brightness ratio at place;The second brightness ratio of the first area-of-interest and the second area-of-interest in the second preview image is obtained, i.e., For the brightness ratio for after being focused to dark place, obtaining bright place and dark place after adjustment exposure parameter.
Please refer to figs. 2 and 3 together, and Fig. 3 is the schematic diagram of two preview images in the embodiment of the present application.User is scheming As preview interface is clicked on in Fig. 21 and at 2, it is focused.It wherein, is brighter bright in shooting preview interface at 1 Locate, is dark place darker in shooting preview interface at 2.When being focused to 1, due to being the focusing to bright place, adjustment exposes Entire preview interface is dimmed after optical parameter, and a frame image of interception preview interface, obtains the first preview image A after dimmed;In When to being focused at 2, due to being the focusing to dark place, entire preview interface brightens after adjusting exposure parameter, cuts after brightening The frame image for taking preview interface, obtains the second preview image B.A1 and A2 be respectively the first area-of-interest in image A and Second area-of-interest, B1 and B2 are respectively the first area-of-interest and the second area-of-interest in image B.Image A and figure As the first area-of-interest in B is located at the same position of image, and size having the same and different brightness;Image A with The first area-of-interest in image B is located at the same position of image, and size having the same and different brightness.
The first brightness ratio for obtaining the first area-of-interest and the second area-of-interest in the first preview image, as obtains Brightness ratio R1 in image A at A1 and A2;Obtain the first area-of-interest and the second area-of-interest in the second preview image Second brightness ratio as obtains the brightness ratio R2 in image B at B1 and B2.
204, calculate the arithmetic average of the first brightness ratio and the second brightness ratio.
205, judge whether arithmetic average is greater than the first preset threshold, if being then transferred to step 206, if being otherwise transferred to step Rapid 211.
The arithmetic average R=(R1+R2)/2 of first brightness ratio and the second brightness ratio is by way of being averaged from entirety On reflect the bright dark comparison degree of the first area-of-interest and the second area-of-interest.When arithmetic average is very big, explanation First area-of-interest and the second area-of-interest one are very dark, and one non-to be always on, and bright dark comparison degree is high.
In the case of bright for the first area-of-interest and the second area-of-interest dark comparison degree is high, be transferred to step 206 into In the case of the next judgment step of row, bright for the first area-of-interest and the second area-of-interest dark comparison degree are not high enough, It is not turned on high dynamic range screening-mode.
206, calculate the brightness ratio difference of the first brightness ratio and the second brightness ratio.
207, judge whether brightness ratio difference is greater than the second preset threshold, if being then transferred to step 206, if being otherwise transferred to step Rapid 211.
208, open high dynamic range screening-mode.
It is calculating the arithmetic average of the first brightness ratio R1 and the second brightness ratio R2 and is judging that arithmetic average is greater than After first preset threshold, the brightness ratio difference of the first brightness ratio R1 and the second brightness ratio R2 are further calculated.Setting second is default Threshold value, when brightness ratio difference is less than or equal to the second preset threshold, it is believed that R1 and R2 is close, at this time the first area-of-interest with The dynamic range of second area-of-interest is little, the case where truncation does not occur after adjusting exposure parameter, can not open Open high dynamic range screening-mode;On the contrary, being said when brightness ratio difference is greater than the second preset threshold, i.e. R1>>R2 or R1<<R2 thing The dynamic range of bright first area-of-interest and the second area-of-interest is very big, or even occurs truncation after adjusting exposure parameter The case where processing, preferably opens high dynamic range screening-mode.
It should be noted that above-mentioned calculating and the step of judging are not construed as limiting the invention, first can be first calculated The arithmetic average of brightness ratio and the second brightness ratio, then brightness is calculated in the case where arithmetic average is greater than the first preset threshold Than difference, the brightness ratio difference of the first brightness ratio Yu the second brightness ratio can also be first calculated, then is greater than first in brightness ratio difference Arithmetic average is calculated in the case where preset threshold.
209, according to arithmetic average, shoot the image to be synthesized of at least two different exposure parameters.
In one embodiment, according to arithmetic average, the image to be synthesized for shooting at least two different exposure parameters includes:
2091, according to arithmetic average, determine the first time for exposure and the second time for exposure, wherein when the first exposure Between with presupposition multiple or the first time for exposure and the second time for exposure that the ratio of the second time for exposure is arithmetic average Difference is the presupposition multiple of arithmetic average;
2092, the first image to be synthesized is shot based on the first time for exposure, based on the shooting second of the second time for exposure wait close At image.
Wherein, exposure parameter includes time for exposure and exposure gain etc..When arithmetic average R is very big, by every two to The exposure parameter of composograph is arranged to differ greatly;When arithmetic average R is smaller, by the exposure of every two images to be synthesized Parameter setting must differ smaller.
Before the image to be synthesized for shooting at least two different exposure parameters, distribution shooting at least two images to be synthesized When time for exposure.When exposure gain immobilizes, different brightness can be shot by carrying out shooting by the change time for exposure Image.The difference or ratio of the time for exposure of every two images to be synthesized is directly proportional to arithmetic average.Arithmetic average R It is bigger, illustrate that bright dark comparison degree is higher, the gap for distributing to the time for exposure of two images to be synthesized when shooting is bigger; Arithmetic average R is smaller, illustrates that bright dark comparison degree is lower, and the brightness of bright dark space is closer, to shoot in high dynamic range Under mode, the gap of the time for exposure of two images to be synthesized is distributed to regard to smaller.
210, high dynamic range images synthesis processing is carried out to the image to be synthesized of at least two different exposure parameters, is obtained Target image with high dynamic range shows target image in shooting preview interface.
For example, the first image to be synthesized shot based on the first time for exposure is shot with based on the second time for exposure The second image to be synthesized carry out image synthesis processing, obtain the target image with high dynamic range.Wherein, when the first exposure Between with presupposition multiple or the first time for exposure and the second time for exposure that the ratio of the second time for exposure is arithmetic average Difference is the presupposition multiple of arithmetic average.
If the first time for exposure was the long time for exposure, the second time for exposure was short exposure time, the then target image obtained In comprising the first image to be synthesized dark space details and the second image to be synthesized clear zone details.This is because in the long time for exposure Under, the brightness of dark place is promoted, so that the dark space details for the first image to be synthesized that shooting obtains shoots to be more clear, and Under short exposure time, the brightness at bright place is suppressed, thus the clear zone details shooting for the second image to be synthesized that shooting obtains It must be more clear.By carrying out high dynamic range images synthesis processing, energy to the first image to be synthesized and the second image to be synthesized It enough will clearly clear zone details and dark space details be integrated in same image, and obtain the target image with high dynamic range.
It should be noted that the first image to be synthesized and the second image to be synthesized can be to intercept in shooting preview interface Two frame preview images.Target image that high dynamic range images synthesis is handled is either shooting finally needing of obtaining Image, the preview image shown when being also possible to shooting to embody high dynamic range screening-mode effect.When target image is When the preview image of bandwagon effect, which can be shown in shooting preview interface in the form of thumbnail.At this point, In Shooting preview interface shows that the step of target image includes: the thumbnail for obtaining target image;Mesh is shown in shooting preview interface The thumbnail of logo image.
211, it is not turned on high dynamic range screening-mode.
In the case where being not turned on high dynamic range screening-mode, electronic equipment is clapped using the screening-mode of default It takes the photograph.
The embodiment of the present application also provides a kind of high dynamic range screening-mode opening device.Referring to figure 5., Fig. 5 is this Shen Please embodiment provide high dynamic range screening-mode opening device structural schematic diagram.The wherein high dynamic range screening-mode Opening device 300 be applied to electronic equipment, the high dynamic range screening-mode opening device include first obtain module 301, really Cover half block 302, second obtains module 303 and opening module 304, as follows:
First obtains module 301, for receiving the first focus command and the second focus command based on shooting preview interface, really Determine and the first preview image is obtained according to the first exposure parameter of correspondence first focus command, determines and according to correspondence Second exposure parameter of the second focus command obtains the second preview image;
Determining module 302 is used for according to first focus command in first preview image and the second preview image In determine the first area-of-interest, and according to second focus command in first preview image and the second preview graph The second area-of-interest is determined as in;
Second obtains module 303, for obtaining in first preview image the first area-of-interest and second interested First brightness ratio in region, and obtain the of the first area-of-interest and the second area-of-interest in second preview image Two brightness ratios;
Opening module 304, for opening high when first brightness ratio and the second brightness ratio meet default unlocking condition Dynamic range screening-mode.
Please also refer to Fig. 6, in one embodiment, opening module 304 includes computing unit 3041 and opening unit 3042:
Computing unit 3041, for calculating the arithmetic average of the first brightness ratio Yu the second brightness ratio;
Opening unit 3042, for opening high dynamic range and clapping when the arithmetic average is greater than the first preset threshold Take the photograph mode.
Optionally, opening unit 3042 is also used to:
When the arithmetic average is greater than the first preset threshold, calculating first brightness ratio is bright with the second brightness ratio Degree compares difference;
When the brightness ratio difference is greater than the second preset threshold, high dynamic range screening-mode is opened.
Referring to Figure 7 together, in one embodiment, high dynamic range screening-mode opening device 300 further includes shooting mould Block 305, synthesis module 306 and display module 307:
Shooting module 305, for shooting the figure to be synthesized of at least two different exposure parameters according to the arithmetic average Picture;
Synthesis module 306 carries out high dynamic range for the image to be synthesized at least two different exposure parameters Image synthesis processing, obtains the target image with high dynamic range;
Display module 307, for showing the target image in the shooting preview interface.
Wherein, shooting module 305 includes determination unit 3051 and shooting unit 3052:
Determination unit 3051, for determining the first time for exposure and the second time for exposure according to the arithmetic average, Wherein, the ratio of the first time for exposure and the second time for exposure are the presupposition multiple or the first exposure of the arithmetic average The difference of time and the second time for exposure are the presupposition multiple of the arithmetic average;
Shooting unit 3052 is based on described second for shooting the first image to be synthesized based on first time for exposure Time for exposure shoots the second image to be synthesized.
Please continue to refer to Fig. 7, in one embodiment, high dynamic range screening-mode opening device 300 further include:
Cue module 308, for the display reminding information in the shooting preview interface, the prompt information is for prompting Whether user opens high dynamic range screening-mode;
Receiving module 309, for opening when receiving user and confirming the confirmation message for opening high dynamic range screening-mode Open high dynamic range screening-mode.
It should be noted that high dynamic range screening-mode opening device and foregoing embodiments provided by the embodiments of the present application In high dynamic range screening-mode open method belong to same design, can be on high dynamic range screening-mode opening device Either offer method, specific implementation process are detailed in high dynamic in operation high dynamic range screening-mode open method embodiment Range screening-mode open method embodiment, details are not described herein again.
The embodiment of the present application provides a kind of computer-readable storage medium, is stored thereon with computer program, when it is deposited When the computer program of storage executes on computers, so that computer executes high dynamic range provided by the embodiments of the present application such as and claps Take the photograph the step in mode open method.Wherein, storage medium can be magnetic disk, CD, read-only memory (Read Only Memory, ROM) or random access device (Random Access Memory, RAM) etc..
The embodiment of the present application also provides a kind of electronic equipment, please refers to Fig. 8, and Fig. 8 is electronics provided by the embodiments of the present application One structural schematic diagram of equipment.Electronic equipment includes processor 401 and memory 402.Wherein, processor 401 and memory 402 It is electrically connected.
Processor 401 is the control centre of electronic equipment, utilizes each of various interfaces and the entire electronic equipment of connection A part by the computer program of operation or load store in memory 402, and is called and is stored in memory 402 Data, execute the various functions of electronic equipment and handle data.
Memory 402 can be used for storing software program and module, and processor 401 is stored in memory 402 by operation Computer program and module, thereby executing various function application and data processing.Memory 402 can mainly include storage Program area and storage data area, wherein storing program area can computer program needed for storage program area, at least one function (such as sound-playing function, image player function etc.) etc.;Storage data area can be stored to be created according to using for electronic equipment Data etc..In addition, memory 402 may include high-speed random access memory, it can also include nonvolatile memory, example Such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 402 may be used also To include Memory Controller, to provide access of the processor 401 to memory 402.
In the embodiment of the present application, processor 401 in electronic equipment can according to following step, by one or one with On computer program process it is corresponding instruction be loaded into memory 402, and by processor 401 operation be stored in memory Computer program in 402, thus realize various functions, it is as follows:
The first focus command and the second focus command are received based on shooting preview interface, is determined and according to correspondence described first First exposure parameter of focus command obtains the first preview image, determines and exposes according to the second of correspondence second focus command Optical parameter obtains the second preview image;
Determine that the first sense is emerging in first preview image and the second preview image according to first focus command Interesting region, and the second sense is determined in first preview image and the second preview image according to second focus command Interest region;
The first brightness ratio of the first area-of-interest and the second area-of-interest in first preview image is obtained, and Obtain the second brightness ratio of the first area-of-interest and the second area-of-interest in second preview image;
When first brightness ratio and the second brightness ratio meet default unlocking condition, opens high dynamic range and shoot mould Formula.
Fig. 9 is please referred to, Fig. 9 is another structural schematic diagram of electronic equipment provided by the embodiments of the present application, with electricity shown in Fig. 8 The difference of sub- equipment is that electronic equipment further includes the components such as input unit 403 and output unit 404.
Wherein, input unit 403 can be used for receiving the number of input, character information, sound or user's characteristic information (such as Fingerprint), and generate related with user setting and function control keyboard, mouse, operating stick, voice signal, optics or Trackball signal input etc..
Output unit 404 can be used for showing information input by user or the information for being supplied to user, such as screen, recording Deng.
In the embodiment of the present application, processor 401 in electronic equipment can according to following step, by one or one with On computer program process it is corresponding instruction be loaded into memory 402, and by processor 401 operation be stored in memory Computer program in 402, thus realize various functions, it is as follows:
The first focus command and the second focus command are received based on shooting preview interface, is determined and according to correspondence described first First exposure parameter of focus command obtains the first preview image, determines and exposes according to the second of correspondence second focus command Optical parameter obtains the second preview image;
Determine that the first sense is emerging in first preview image and the second preview image according to first focus command Interesting region, and the second sense is determined in first preview image and the second preview image according to second focus command Interest region;
The first brightness ratio of the first area-of-interest and the second area-of-interest in first preview image is obtained, and Obtain the second brightness ratio of the first area-of-interest and the second area-of-interest in second preview image;
When first brightness ratio and the second brightness ratio meet default unlocking condition, opens high dynamic range and shoot mould Formula.
In one embodiment, it when first brightness ratio and the second brightness ratio meet default switching condition, opens high dynamic When state range screening-mode, processor 401 is also executed:
Calculate the arithmetic average of the first brightness ratio Yu the second brightness ratio;
When the arithmetic average is greater than the first preset threshold, high dynamic range screening-mode is opened.
In one embodiment, it when the arithmetic average is greater than the first preset threshold, opens high dynamic range and shoots mould When formula, processor 401 is also executed:
When the arithmetic average is greater than the first preset threshold, calculating first brightness ratio is bright with the second brightness ratio Degree compares difference;
When the brightness ratio difference is greater than the second preset threshold, high dynamic range screening-mode is opened.
In one embodiment, after opening high dynamic range screening-mode, processor 401 is also executed:
According to the arithmetic average, the image to be synthesized of at least two different exposure parameters is shot;
High dynamic range images synthesis processing is carried out to the image to be synthesized of at least two different exposure parameters, is obtained Target image with high dynamic range;
The target image is shown in the shooting preview interface.
In one embodiment, when the shooting preview interface shows the target image, processor 401 is also executed:
Obtain the thumbnail of the target image;
The thumbnail of the target image is shown in the shooting preview interface.
In one embodiment, exposure parameter includes the time for exposure, and according to the arithmetic average, shooting at least two is not With exposure parameter image to be synthesized when, processor 401 also executes:
According to the arithmetic average, the first time for exposure and the second time for exposure are determined, wherein the first time for exposure Ratio with the second time for exposure is the presupposition multiple of the arithmetic average or the first time for exposure and the second time for exposure Difference be the arithmetic average presupposition multiple;
Based on first time for exposure shoot the first image to be synthesized, based on second time for exposure shooting second to Composograph.
In one embodiment, before opening high dynamic range screening-mode, processor 401 is also executed:
The display reminding information in the shooting preview interface, the prompt information are high dynamic for prompting the user whether to open State range screening-mode;
When receiving user and confirming the confirmation message for opening high dynamic range screening-mode, high dynamic range shooting is opened Mode.
It should be noted that the high dynamic range in electronic equipment provided by the embodiments of the present application and foregoing embodiments is shot Mode open method belongs to same design, can run high dynamic range screening-mode open method embodiment on an electronic device Either middle offer method, specific implementation process are detailed in feature extracting method embodiment, and details are not described herein again.
It should be noted that this field is general for the high dynamic range screening-mode open method of the embodiment of the present application Logical tester is understood that realize all or part of stream of the high dynamic range screening-mode open method of the embodiment of the present application Journey is relevant hardware can be controlled by computer program to complete, and the computer program can be stored in a computer It in read/write memory medium, is such as stored in the memory of electronic equipment, and by least one processor in the electronic equipment It executes, in the process of implementation may include the process such as the embodiment of high dynamic range screening-mode open method.Wherein, described Storage medium can be magnetic disk, CD, read-only memory, random access memory etc..
For the high dynamic range screening-mode opening device of the embodiment of the present application, each functional module be can integrate In one processing chip, it is also possible to modules and physically exists alone, one can also be integrated in two or more modules In a module.Above-mentioned integrated module both can take the form of hardware realization, can also use the form of software function module It realizes.If the integrated module is realized and when sold or used as an independent product in the form of software function module, Also it can store in a computer readable storage medium, the storage medium is for example read-only memory, disk or light Disk etc..
It is situated between above to a kind of high dynamic range screening-mode open method, device provided by the embodiment of the present application, storage Matter and electronic equipment are described in detail, and specific case used herein carries out the principle and embodiment of the application It illustrates, the description of the example is only used to help understand the method for the present application and its core ideas;Meanwhile for this field Technical staff, according to the thought of the application, there will be changes in the specific implementation manner and application range, to sum up institute It states, the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of high dynamic range screening-mode open method characterized by comprising
The first focus command and the second focus command are received based on shooting preview interface, determine and is focused according to correspondence described first First exposure parameter of instruction obtains the first preview image, determines and is joined according to the second of correspondence second focus command the exposure Number obtains the second preview image;
The first region of interest is determined in first preview image and the second preview image according to first focus command Domain, and determine that second is interested in first preview image and the second preview image according to second focus command Region;
The first brightness ratio of the first area-of-interest and the second area-of-interest in first preview image is obtained, and is obtained Second brightness ratio of the first area-of-interest and the second area-of-interest in second preview image;
When first brightness ratio and the second brightness ratio meet default unlocking condition, high dynamic range screening-mode is opened.
2. high dynamic range screening-mode open method according to claim 1, which is characterized in that described to work as described first When brightness ratio and the second brightness ratio meet default switching condition, opening high dynamic range screening-mode includes:
Calculate the arithmetic average of the first brightness ratio Yu the second brightness ratio;
When the arithmetic average is greater than the first preset threshold, high dynamic range screening-mode is opened.
3. high dynamic range screening-mode open method according to claim 2, which is characterized in that described to count when described When average value is greater than the first preset threshold, opening high dynamic range screening-mode includes:
When the arithmetic average is greater than the first preset threshold, the brightness ratio of first brightness ratio and the second brightness ratio is calculated Difference;
When the brightness ratio difference is greater than the second preset threshold, high dynamic range screening-mode is opened.
4. high dynamic range screening-mode open method according to claim 2 or 3, which is characterized in that the unlatching is high After dynamic range screening-mode, further includes:
According to the arithmetic average, the image to be synthesized of at least two different exposure parameters is shot;
High dynamic range images synthesis processing is carried out to the image to be synthesized of at least two different exposure parameters, is had The target image of high dynamic range;
The target image is shown in the shooting preview interface.
5. high dynamic range screening-mode open method according to claim 4, which is characterized in that described in shooting preview Target image described in showing interface includes:
Obtain the thumbnail of the target image;
The thumbnail of the target image is shown in the shooting preview interface.
6. high dynamic range screening-mode open method according to claim 4, which is characterized in that the exposure parameter packet The time for exposure is included, described according to the arithmetic average, the image to be synthesized for shooting at least two different exposure parameters includes:
According to the arithmetic average, the first time for exposure and the second time for exposure are determined, wherein the first time for exposure and the The ratio of two time for exposure is the presupposition multiple or the difference of the first time for exposure and the second time for exposure of the arithmetic average Value is the presupposition multiple of the arithmetic average;
The first image to be synthesized is shot based on first time for exposure, it is to be synthesized based on second time for exposure shooting second Image.
7. high dynamic range screening-mode open method according to claim 1, which is characterized in that the unlatching high dynamic Before range screening-mode, further includes:
The display reminding information in the shooting preview interface, the prompt information open high dynamic range for prompting the user whether Enclose screening-mode;
When receiving user and confirming the confirmation message for opening high dynamic range screening-mode, opens high dynamic range and shoot mould Formula.
8. a kind of high dynamic range screening-mode opening device characterized by comprising
First obtains module, for receiving the first focus command and the second focus command, determining and root based on shooting preview interface The first preview image is obtained according to the first exposure parameter of correspondence first focus command, is determined and poly- according to correspondence described second Second exposure parameter of coke instruction obtains the second preview image;
Determining module, for being determined in first preview image and the second preview image according to first focus command First area-of-interest, and determined in first preview image and the second preview image according to second focus command Second area-of-interest out;
Second obtains module, for obtaining the of the first area-of-interest and the second area-of-interest in first preview image One brightness ratio, and obtain the second brightness of the first area-of-interest and the second area-of-interest in second preview image Than;
Opening module, for opening high dynamic range when first brightness ratio and the second brightness ratio meet default unlocking condition Enclose screening-mode.
9. a kind of storage medium, is stored thereon with computer program, which is characterized in that when the computer program is by processor tune Used time, so that the processor executes high dynamic range screening-mode open method as described in any one of claim 1 to 7.
10. a kind of electronic equipment, including processor and memory, the memory storage have computer program, which is characterized in that The processor is by calling the computer program, for executing high dynamic range as described in any one of claim 1 to 7 Screening-mode open method.
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 true CN110493515A (en) 2019-11-22
CN110493515B 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)

Cited By (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
CN112887630A (en) * 2021-04-06 2021-06-01 南昌欧菲光电技术有限公司 Automatic exposure method, electronic device, and computer-readable storage medium
CN112954228A (en) * 2019-12-11 2021-06-11 杭州海康威视数字技术股份有限公司 Wide dynamic exposure control method and camera equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674417A (en) * 2008-09-12 2010-03-17 索尼株式会社 Imaging apparatus and imaging mode control method
CN104883504A (en) * 2015-06-05 2015-09-02 广东欧珀移动通信有限公司 Method and device for opening HDR (high-dynamic range) function on intelligent terminal
CN105872399A (en) * 2016-04-19 2016-08-17 奇酷互联网络科技(深圳)有限公司 Backlighting detection method and system
US20160307603A1 (en) * 2015-04-15 2016-10-20 Sony Corporation Information processing device, information recording medium, information processing method, and program
CN109194946A (en) * 2018-09-30 2019-01-11 Oppo广东移动通信有限公司 Data processing method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674417A (en) * 2008-09-12 2010-03-17 索尼株式会社 Imaging apparatus and imaging mode control method
US20160307603A1 (en) * 2015-04-15 2016-10-20 Sony Corporation Information processing device, information recording medium, information processing method, and program
CN104883504A (en) * 2015-06-05 2015-09-02 广东欧珀移动通信有限公司 Method and device for opening HDR (high-dynamic range) function on intelligent terminal
CN105872399A (en) * 2016-04-19 2016-08-17 奇酷互联网络科技(深圳)有限公司 Backlighting detection method and system
CN109194946A (en) * 2018-09-30 2019-01-11 Oppo广东移动通信有限公司 Data processing method and device, electronic equipment and storage medium

Cited By (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
CN112954228A (en) * 2019-12-11 2021-06-11 杭州海康威视数字技术股份有限公司 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

Also Published As

Publication number Publication date
CN110493515B (en) 2020-12-22

Similar Documents

Publication Publication Date Title
US10230901B2 (en) Realtime capture exposure adjust gestures
CN109547701B (en) Image shooting method and device, storage medium and electronic equipment
CN108322646B (en) Image processing method, image processing device, storage medium and electronic equipment
CN110493515A (en) High dynamic range screening-mode open method, device, storage medium and electronic equipment
US9571739B2 (en) Camera timer
CN110248098A (en) Image processing method, device, storage medium and electronic equipment
CN110620873B (en) Device imaging method and device, storage medium and electronic device
CN111383224B (en) Image processing method, device, storage medium and electronic equipment
CN109996009A (en) Image processing method, device, storage medium and electronic equipment
CN103677609A (en) Picture processing method and terminal
CN111539960A (en) Image processing method and related device
CN110290324A (en) Equipment imaging method, device, storage medium and electronic equipment
CN109005350A (en) Image repeats shooting reminding method, device, storage medium and mobile terminal
CN109784252A (en) Image processing method, device, storage medium and electronic equipment
CN106815803B (en) Picture processing method and device
CN110751608A (en) Night scene high dynamic range image fusion method and device and electronic equipment
CN106791398A (en) A kind of image processing method and terminal
WO2020207387A1 (en) Image processing method and apparatus, storage medium, and electronic device
CN109961452A (en) Processing method, device, storage medium and the electronic equipment of photo
CN107147851A (en) Photo processing method, device, computer-readable recording medium and electronic equipment
CN110166696A (en) Image pickup method, device, terminal device and computer readable storage medium
CN111416936B (en) Image processing method, image processing device, electronic equipment and storage medium
CN110430375A (en) Imaging method, device, storage medium and electronic equipment
CN108647097B (en) Text image processing method and device, storage medium and terminal
CN110336943A (en) A kind of scene recognition method and device

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