CN108307109A - A kind of high dynamic range images method for previewing and terminal device - Google Patents

A kind of high dynamic range images method for previewing and terminal device Download PDF

Info

Publication number
CN108307109A
CN108307109A CN201810040716.2A CN201810040716A CN108307109A CN 108307109 A CN108307109 A CN 108307109A CN 201810040716 A CN201810040716 A CN 201810040716A CN 108307109 A CN108307109 A CN 108307109A
Authority
CN
China
Prior art keywords
exposure gain
target light
light exposure
number
image
Prior art date
Application number
CN201810040716.2A
Other languages
Chinese (zh)
Other versions
CN108307109B (en
Inventor
肖旭
刘小东
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Priority to CN201810040716.2A priority Critical patent/CN108307109B/en
Publication of CN108307109A publication Critical patent/CN108307109A/en
Application granted granted Critical
Publication of CN108307109B publication Critical patent/CN108307109B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, TV cameras, video cameras, camcorders, webcams, camera modules for embedding in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/225Television cameras ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, camcorders, webcams, camera modules specially adapted for being embedded in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/232Devices for controlling television cameras, e.g. remote control ; Control of cameras comprising an electronic image sensor
    • H04N5/23229Devices for controlling television cameras, e.g. remote control ; Control of cameras comprising an electronic image sensor comprising further processing of the captured image without influencing the image pickup process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, TV cameras, video cameras, camcorders, webcams, camera modules for embedding in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/225Television cameras ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, camcorders, webcams, camera modules specially adapted for being embedded in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/232Devices for controlling television cameras, e.g. remote control ; Control of cameras comprising an electronic image sensor
    • H04N5/23293Electronic viewfinders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, TV cameras, video cameras, camcorders, webcams, camera modules for embedding in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/225Television cameras ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, camcorders, webcams, camera modules specially adapted for being embedded in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/235Circuitry or methods for compensating for variation in the brightness of the object, e.g. based on electric image signals provided by an electronic image sensor
    • H04N5/2355Circuitry or methods for compensating for variation in the brightness of the object, e.g. based on electric image signals provided by an electronic image sensor by increasing the dynamic range of the final image compared to the dynamic range of the electronic image sensor, e.g. by adding correct exposed portions of short and long exposed images

Abstract

The embodiment of the invention discloses a kind of high dynamic range images method for previewing and terminal devices, are related to field of communication technology, can solve the prior art only after completion of taking pictures, when showing final shooting image, the problem of capable of just seeing HDR synthetic effects.Concrete scheme is:During shooting preview, the initial preview image of imaging sensor output is obtained;Obtain N number of target light exposure gain;Each image processor in N number of image processor is controlled respectively according to a target light exposure gain in N number of target light exposure gain, the exposure gain of initial preview image is adjusted, generates preview image among N frames;Image procossing is carried out to preview image among N frames, generates high dynamic range images, and export to shooting preview interface;Wherein, the initial preview image exported from imaging sensor is transmitted separately to each image processor, and N number of target light exposure gain is used to adjust the exposure gain of initial preview image, and N is the integer more than 2.

Description

A kind of high dynamic range images method for previewing and terminal device

Technical field

The present embodiments relate to field of communication technology more particularly to a kind of high dynamic range images method for previewing and terminals Equipment.

Background technology

Currently, user can be with high dynamic range (High-Dynamic Range, HDR) mould of the camera of using terminal equipment Formula is taken pictures.The HDR patterns of the camera of equipment specifically, user opens a terminal, and after clicking shoot button, can trigger end End equipment collects the corresponding image of three different exposure gains using preset three exposure gains (such as 0 ,+2 and -2), and It the processing such as synthesized, compressed to these three images of acquisition, a photo with HDR effects is obtained, then again in terminal The photo with HDR effects is shown on the interface of equipment.

As it can be seen that in the prior art, user only after clicking and taking pictures button and completion of taking pictures, shows final shooting When image, HDR synthetic effects can be just seen.

Invention content

A kind of high dynamic range images method for previewing of offer of the embodiment of the present invention and terminal device, to solve the prior art only Have after completion of taking pictures, when showing final shooting image, the problem of capable of just seeing HDR synthetic effects.

In order to solve the above-mentioned technical problem, the invention is realized in this way:

In a first aspect, the embodiment of the present invention provides a kind of high dynamic range images method for previewing, the high dynamic range images Method for previewing includes:During shooting preview, the initial preview image of imaging sensor output is obtained;N number of target is obtained to expose The gain of light;Each image processor in N number of image processor is controlled respectively according to a target in N number of target light exposure gain Exposure gain adjusts the exposure gain of initial preview image, generates preview image among N frames;Preview image among N frames is carried out Image procossing generates high dynamic range images, and exports to shooting preview interface;Wherein, it is exported from imaging sensor initial Preview image is transmitted separately to each image processor, and the exposure that N number of target light exposure gain is used to adjust initial preview image increases Benefit, N are the integer more than 2.

Second aspect, the embodiment of the present invention provide a kind of terminal device, which includes:Acquiring unit, control are single Member and processing unit.Wherein, acquiring unit, for during shooting preview, obtaining the initial preview of imaging sensor output Image.Acquiring unit is additionally operable to obtain N number of target light exposure gain.Control unit, it is every in N number of image processor for controlling A image processor is respectively according to a target light exposure gain in N number of target light exposure gain of acquiring unit acquisition, and adjustment is just The exposure gain of beginning preview image generates preview image among N frames.Processing unit, among the N frames for being obtained to control unit Preview image carries out image procossing, generates high dynamic range images, and export to shooting preview interface.Wherein, from image sensing The initial preview image of device output is transmitted separately to each image processor, and N number of target light exposure gain is for adjusting initial preview The exposure gain of image, N are the integer more than 2.

The third aspect, the embodiment of the present invention provide a kind of terminal device, which includes processor, memory and deposit Storage on a memory and the computer program that can run on a processor, realizes such as the when which is executed by processor The step of high dynamic range images method for previewing described in one side.

Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer readable storage medium Upper storage computer program realizes high dynamic range images as described in relation to the first aspect when the computer program is executed by processor The step of method for previewing.

In embodiments of the present invention, it during due to terminal device shooting preview, can control in N number of image processor Each image processor according to a target light exposure gain in N number of target light exposure gain, adjusts initial preview image respectively Exposure gain ultimately generates high dynamic range images, and exports to shooting preview interface, and realization is output to each of preview interface Frame image all carries the effect after HDR processing, realizes real-time HDR.

Description of the drawings

Fig. 1 is a kind of configuration diagram of Android operation system provided in an embodiment of the present invention;

Fig. 2 is one of high dynamic range images method for previewing flow chart provided in an embodiment of the present invention;

Fig. 3 is the two of high dynamic range images method for previewing flow chart provided in an embodiment of the present invention;

Fig. 4 is the three of high dynamic range images method for previewing flow chart provided in an embodiment of the present invention;

Fig. 5 is the four of high dynamic range images method for previewing flow chart provided in an embodiment of the present invention;

Fig. 6 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention;

Fig. 7 is a kind of hardware architecture diagram of terminal device provided in an embodiment of the present invention.

Specific implementation mode

Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, shall fall within the protection scope of the present invention.

Term " first " and " second " in the specification and claims of the embodiment of the present invention etc. are for distinguishing not Same object, rather than for the particular order of description object.For example, the first brightness value and the second brightness value etc. are for distinguishing Different brightness values, rather than the particular order for describing brightness value.In the description of the embodiment of the present invention, unless otherwise saying Bright, the meaning of " plurality " is refer to two or more.

The terms "and/or" is a kind of incidence relation of description affiliated partner, indicates may exist three kinds of relationships, For example, A and/or B, can indicate:Individualism A exists simultaneously A and B, these three situations of individualism B.Symbol herein "/" indicates that affiliated partner is relationship such as A/B expressions A or B either.

In embodiments of the present invention, " illustrative " or " such as " etc. words for indicate make example, illustration or explanation.This Be described as in inventive embodiments " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as comparing Other embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purport Related notion is being presented in specific ways.

A kind of high dynamic range images method for previewing of offer of the embodiment of the present invention and terminal device, can be applied to terminal and set The standby process that initial preview image is shown in preview interface.

Terminal device in the embodiment of the present invention can be the terminal device with operating system.The operating system can be Android (Android) operating system can be ios operating systems, can also be other possible operating systems, and the present invention is implemented Example is not especially limited.

Below by taking Android operation system as an example, high dynamic range images preview side provided in an embodiment of the present invention is introduced The software environment that method is applied.

As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming In 1, the framework of Android operation system includes 4 layers, respectively:Application layer, application framework layer, system operation library layer and Inner nuclear layer (is specifically as follows Linux inner core).

Wherein, application layer includes each application program (including system application and in Android operation system Tripartite's application program).

Application framework layer is the frame of application program, and developer can be in the exploitation of the frame in accordance with application program In the case of principle, some application programs are developed based on application framework layer.

System operation library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour All kinds of resources needed for it are provided as system.Android operation system running environment is used to provide software loop for Android operation system Border.

Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.

By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1 The software journey of high dynamic range images method for previewing provided in an embodiment of the present invention is realized in the system architecture of operating system, exploitation Sequence, so that the high dynamic range images method for previewing can be run based on Android operation system as shown in Figure 1.Handle Device or terminal device can realize height provided in an embodiment of the present invention by running the software program in Android operation system Dynamic image method for previewing.

In the first embodiment of the present invention, Fig. 2 shows a kind of high dynamic range figures provided in an embodiment of the present invention As method for previewing, this method can be applied to the terminal device for the Android operation system for having as shown in Figure 1.As shown in Fig. 2, should High dynamic range images method for previewing includes step 201- steps 204:

Step 201, terminal device obtain the initial preview image of imaging sensor output during shooting preview.

Illustratively, in the embodiment of the present invention, user can by " camera " of terminal device application click/by Press operation opens " camera ", shows shooting preview interface with triggering terminal equipment, and obtain by the imaging sensor of terminal device Take initial preview image so that terminal device shows the initial preview image of acquisition in shooting preview interface.

Optionally, in the embodiment of the present invention, the shooting preview interface of terminal device can be the shooting under HDR screening-modes Preview interface.

In the embodiment of the present invention, after user opens a terminal " camera " of equipment, user can be by terminal device It shoots and carries out the first input on interface, shooting preview interface is shown under HDR screening-modes with triggering terminal equipment.

Illustratively, user can carry out the first input by " HDR " icon on the shooting interface to the terminal device, With triggering terminal equipment shooting preview interface is shown under HDR screening-modes.

Optionally, in the embodiment of the present invention, above-mentioned first input can be that user grasps click/pressing of terminal device Make, which can be the operation etc. clicked or double-clicked, and the embodiment of the present invention does not do any restrictions herein.

In the embodiment of the present invention, terminal device shows shooting preview interface under HDR screening-modes, and passes through terminal device Camera obtain initial preview image so that at the beginning of terminal device show in the shooting preview interface under the HDR screening-modes Beginning preview image.

Step 202, terminal device obtain N number of target light exposure gain.

Wherein, N number of target light exposure gain is used to adjust the exposure gain of initial preview image, and N is the integer more than 2.

In the embodiment of the present invention, when terminal device, which detects, shows initial preview image in shooting preview interface, eventually End equipment can get N number of target light exposure gain, to change the exposure gain of the initial preview image.

Optionally, in the embodiment of the present invention, terminal device can obtain N number of target light exposure gain by three kinds of modes.

It should be noted that in the embodiment of the present invention, above-mentioned " obtaining N number of target light exposure gain " can be by different sides Formula is realized.(example the first possible realization method, second of possible reality described as follows in such a way that three kinds possible separately below Existing mode and the third possible realization method) for, to the mistake provided in an embodiment of the present invention for obtaining N number of target light exposure gain Journey is specifically described.

Optionally, the embodiment of the present invention, in the first possible implementation, in conjunction with Fig. 2, as shown in figure 3, above-mentioned step Rapid 202 can specifically be realized by step 202a:

Step 202a, terminal device obtains pre-stored N number of target light exposure gain in terminal device.

Wherein, the value of each target light exposure gain in N number of target light exposure gain is different.

Illustratively, when terminal device is after getting the initial preview image of imaging sensor output, terminal device can Pre-stored N number of target light exposure gain to be determined as adjusting the N number of of the use when exposure gain of the initial preview image Target light exposure gain.

For example, a target light exposure gains of the pre-stored N of terminal device (N=3) are respectively 0 ,+2 and -2, terminal device will N number of target light exposure gain of use when exposure gain 0 ,+2 and -2 is determined as adjusting the exposure gain of the initial preview image.

Optionally, in the embodiment of the present invention, in second of possible realization method, Integer N can be strange more than 2 Number, in the case of N=3, in conjunction with Fig. 2, as shown in figure 4, above-mentioned steps 202 can specifically pass through step 202b- steps 202d It realizes:

Step 202b, terminal device obtains trizonal three brightness values in initial preview image.

Wherein, three brightness values include first brightness value in first kind region and two second brightness in the second class region Value, three regions are corresponded with three brightness values.First kind region is the brightness value in three regions in the first preset range Interior region, the second class region include clear zone and dark space, which is brightness value in three regions in the second preset range Region, the dark space are region of the brightness value in third preset range in three regions;Value in first preset range is all higher than Value in third preset range, the value in the first preset range are respectively less than the value in the second preset range.

In the embodiment of the present invention, terminal device can obtain the brightness in each region in three regions in initial preview image Value, to obtain three brightness values.

Illustratively, brightness value is indicated with m, and the first preset range can be j1≤m≤k1, the second preset range k2<m≤ P, third preset range i≤m<J2, wherein j2≤j1, k2 >=k1.

Optionally, in the embodiment of the present invention, first kind region can be that (i.e. brightness value is first in three regions in normal area Region in preset range).

Illustratively, terminal device detects the brightness value m=x in first region in initial preview image, and j1≤x ≤ k1, terminal device then determine that first region is normal area, i.e., the brightness value in the normal area in initial preview image is x; Terminal device detects the brightness value m=y of the Two Areas in initial preview image, and i≤y<J2, terminal device then determine The region is dark space, i.e., the brightness value of the dark space in the initial preview image is y;Terminal device detects in initial preview image Trizonal brightness value m=z, and k2<Z≤p, terminal device then determine that the region is clear zone, i.e. the initial preview figure The brightness value in the clear zone as in is z;Terminal device can obtain three brightness values (i.e. x, y and z).

In the embodiment of the present invention, the first brightness value is the brightness value x in the normal area in three brightness values.Two the second brightness Value is respectively the brightness value z of the brightness value y and a clear zone of a dark space.

It is understood that in the embodiment of the present invention, the first brightness value is a reference brightness value, the reference brightness value pair The exposure gain answered is 0, i.e. the corresponding exposure gain of the first brightness value is 0.

Step 202c, for the second brightness value of each of two second brightness values, terminal device is according to the first brightness value With the second brightness value, target light exposure gain is determined, to obtain two target light exposure gains.

Illustratively, terminal device can be according to the brightness value y of brightness value x (i.e. first brightness value) and dark space in normal area (i.e. second brightness value) determines a target light exposure gain a;Terminal device can be according to the brightness value x in normal area and bright The brightness value z (i.e. second brightness value) in area, determines a target light exposure gain b, to obtain two target light exposure gains (i.e. A and b).

For example, as shown in table 1, a kind of three regions provided in an embodiment of the present invention are provided in a manner of table (i.e. just Normal area, dark space and clear zone) in each region brightness value and target light exposure gain between correspondence table example.

Table 1

Optionally, in the embodiment of the present invention, above-mentioned steps 202c can specifically pass through step 202c ' realizations:

Step 202c ', for the second brightness value of each of two second brightness values, terminal device by the first brightness value and The corresponding exposure gain of difference between second brightness value is determined as target light exposure gain, to obtain two target light exposure gains.

In the embodiment of the present invention, second brightness value can be adjusted to used when the first brightness value by terminal device Exposure gain is determined as a target light exposure gain.

Illustratively, the brightness value y of dark space can be adjusted to used exposure when the brightness value x in normal area by terminal device The gain of light is determined as a target light exposure gain a;The brightness value z in clear zone can be adjusted to the brightness value in normal area by terminal device Used exposure gain is determined as a target light exposure gain b when x.

Illustratively, as in table 1, terminal device can be by the difference between the brightness value x in normal area and the brightness value y of dark space The corresponding exposure gains of value x-y are determined as a target light exposure gain a;Terminal device can be by the brightness value x in normal area and bright The corresponding exposure gains of difference x-z between the brightness value z in area are determined as a target light exposure gain b, to obtain two targets Exposure gain (i.e. a and b).

For example, it is assumed that the brightness value x in normal area is 6, the brightness value y of dark space is 4, and the brightness value z in clear zone is 8.Terminal is set It is standby the corresponding exposure gains of x-y=6-4=2+2 to be determined as a target light exposure gain a (i.e. a=+2);Terminal device The corresponding exposure gains of x-z=6-8=-2-2 can be determined as a target light exposure gain b (i.e. b=-2).

Step 202d, the corresponding exposure gain of the first brightness value and two target light exposure gains are determined as N by terminal device A target light exposure gain.

Illustratively, terminal device can be by 0, target light exposure gain a of the corresponding exposure gain of the first brightness value (such as A=+2) and a target light exposure gain b (such as b=-2), it is determined as three target light exposure gains.

Optionally, in the embodiment of the present invention, in the third possible realization method, in conjunction with Fig. 2, as shown in figure 5, above-mentioned Step 202 can specifically be realized by step 202e and step 202f:

Step 202e, terminal device receives the N-1 target light exposure gain that user is inputted based on default exposure gain.

Illustratively, after user's triggering terminal equipment shows shooting preview interface under HDR screening-modes, user can be with N-1 target light exposure gain is inputted based on default exposure gain in the shooting preview interface.

Optionally, in the embodiment of the present invention, default exposure gain can be 0.

Illustratively, it is illustrated so that user inputs two target light exposure gains as an example.User is in shooting preview interface Input one is more than the target light exposure gain (such as+2) of default exposure gain 0, then inputs one in shooting preview interface again Less than the target light exposure gain of default exposure gain 0 (such as -2).

Step 202f, default exposure gain and N-1 target light exposure gain are determined as N number of target light exposure increasing by terminal device Benefit.

Illustratively, user is after inputting two target light exposure gains (such as+2 and -2) based on default exposure gain, terminal 0 ,+2 and -2 can be determined as three target light exposure gains by equipment according to the input of user.

Step 203, terminal device control each image processor in N number of image processor and are exposed respectively according to N number of target A target light exposure gain in the gain of light adjusts the exposure gain of initial preview image, generates preview image among N frames.

In the embodiment of the present invention, terminal device can pass through each target light exposure gain pair in N number of target light exposure gain The image processor answered adjusts the exposure gain of initial preview image, to obtain preview image among N frames.

Illustratively, N number of target light exposure gain be three target light exposure gains (such as 0 ,+2, -2) for illustrate.Such as Shown in table 2, a kind of target light exposure gain, image processor and centre provided in an embodiment of the present invention are provided in a manner of table Correspondence table example between preview image.

Table 2

As shown in Table 2, terminal device adjusts initial preview by 0 corresponding first image processor of target light exposure gain The exposure gain of image is adjusted the frame initial preview image after exposure gain, i.e. centre preview image 1;Terminal device By+2 corresponding second image processor of target light exposure gain, the exposure gain of initial preview image is adjusted, exposure is adjusted A frame initial preview image after the gain of light, i.e. centre preview image 2;Terminal device passes through target light exposure gain -2 corresponding Three image processors adjust the exposure gain of initial preview image, are adjusted the frame initial preview image after exposure gain, Preview image 3 among i.e..

It is understood that in the embodiment of the present invention, terminal device can pass through N number of image procossing of terminal device first Device carries out the processing such as auto-focusing, automatic exposure, automatic white balance to initial preview image respectively, then controls at N number of image Each image processor of device is managed respectively according to a target light exposure gain in N number of target light exposure gain, is adjusted to the processing The exposure gain of initial preview image afterwards.

Step 204, terminal device carry out image procossing to preview image among N frames, generate high dynamic range images, and defeated Go out to shooting preview interface.

In the embodiment of the present invention, terminal device can carry out mosaic, sharpening, noise reduction, color to preview image among N frames Conversion, synthesis, compression, obtain high dynamic range images.

Illustratively, terminal device can carry out intermediate preview image 1, intermediate preview image 2, intermediate preview image 3 The processing such as mosaic, sharpening, noise reduction, color conversion, synthesis, compression obtain a vertical frame dimension dynamic image.

Illustratively, terminal device can carry out mosaic, sharpening, noise reduction, color conversion etc. to preview image among N frames Processing, obtains the intermediate preview image of N frame yuv formats, and then terminal device uses preset algorithm (such as HDR algorithms) by N frames YUV The intermediate preview image of format synthesizes the intermediate preview image of a frame yuv format, and is converted and encoded using preset format and calculated The intermediate preview image of the one frame yuv format is converted to a frame Joint Photographic Experts Group (Joint Photographic by method Experts Group, JPEG) format intermediate preview image.

In the embodiment of the present invention, terminal device is exported by high dynamic range images to shooting preview interface, and terminal is set It is standby that the initial preview image update that shooting preview interface is shown is shown as high dynamic range images.

In the embodiment of the present invention, the high dynamic range images that terminal device obtains are the image with HDR effects, and terminal is set It is standby that the initial preview image update that shooting preview interface is shown is shown as the image with HDR effects.

The embodiment of the present invention provides a kind of high dynamic range images method for previewing, due to terminal device shooting preview process In, each image processor in N number of image processor can be controlled respectively according to a target in N number of target light exposure gain Exposure gain adjusts the exposure gain of initial preview image, ultimately generates high dynamic range images, and export to shooting preview circle Face realizes that each frame image for being output to preview interface all carries the effect after HDR processing, realizes real-time HDR.

Further, since the image that the shooting preview interface of terminal device is shown is the image with HDR effects, For a user, the experience of user is improved.

In second of embodiment of the present invention, Fig. 6 shows one kind of the terminal device involved in the embodiment of the present invention Possible structural schematic diagram, as shown in fig. 6, the terminal device 60 may include:Acquiring unit 61, control unit 62 and processing are single Member 63.

Wherein, acquiring unit 61, for during shooting preview, obtaining the initial preview figure of imaging sensor output Picture.Acquiring unit 61 is additionally operable to obtain N number of target light exposure gain.Control unit 62, for controlling in N number of image processor Each image processor according to a target light exposure gain in N number of target light exposure gain of the acquisition of acquiring unit 61, is adjusted respectively The exposure gain of whole initial preview image generates preview image among N frames.Processing unit 63, for being obtained to control unit 62 N frames among preview image carry out image procossing, generate high dynamic range images, and export to shooting preview interface.Wherein, from The initial preview image of imaging sensor output is transmitted separately to each image processor, and N number of target light exposure gain is for adjusting The exposure gain of initial preview image, N are the integer more than 2.

In one possible implementation, acquiring unit 61 are specifically used for:Obtain pre-stored N in terminal device A target light exposure gain, wherein the value of each target light exposure gain in N number of target light exposure gain is different.

In one possible implementation, in the case of N=3, acquiring unit 61 is specifically used for:It obtains initial pre- Look at trizonal three brightness values in image, which includes the first brightness value and the class two zone in first kind region Two second brightness values in domain;For the second brightness value of each of two second brightness values, according to the first brightness value and second Brightness value determines mesh exposure gain, obtains two target light exposure gains;By the corresponding exposure gain of the first brightness value and two mesh Mark exposure gain is determined as N number of target light exposure gain.Wherein, three regions are corresponded with three brightness values;First kind region For region of the brightness value in three regions in the first preset range, the second class region includes clear zone and dark space, which is N Region of the brightness value in the second preset range in a region, the dark space are brightness value in N number of region in third preset range Region;Value in first preset range is all higher than the value in third preset range, and the value in the first preset range is respectively less than Value in two preset ranges.

In one possible implementation, acquiring unit 61 are specifically used for:By the first brightness value and second brightness The corresponding exposure gain of difference between value is determined as target light exposure gain.

In one possible implementation, acquiring unit 61 are specifically used for:It is defeated based on default exposure gain to receive user Enter N-1 target light exposure gain;Default exposure gain and N-1 target light exposure gain are determined as N number of target light exposure gain.

Terminal device 60 provided in an embodiment of the present invention can realize that terminal device is realized each in above method embodiment A process, to avoid repeating, which is not described herein again for detailed description and advantageous effect.

In the third embodiment of the present invention, a kind of Fig. 7 terminal devices of each embodiment to realize the present invention it is hard Part structural schematic diagram, the terminal device 100 include but not limited to:Radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, The components such as processor 110 and power supply 111.

It should be noted that it will be understood by those skilled in the art that terminal device structure shown in Fig. 7 is not constituted pair The restriction of terminal device, terminal device may include either combining certain components or not than illustrating more or fewer components Same component arrangement.In embodiments of the present invention, terminal device includes but not limited to mobile phone, tablet computer, laptop, the palm Upper computer, car-mounted terminal, wearable device and pedometer etc..

Wherein, processor 110, for during shooting preview, obtaining the initial preview image of imaging sensor output; Obtain N number of target light exposure gain;The each image processor controlled in N number of image processor increases according to N number of target light exposure respectively A target light exposure gain in benefit adjusts the exposure gain of initial preview image, generates preview image among N frames;To in N frames Between preview image carry out image procossing, generate high dynamic range images, and export to shooting preview interface;Wherein, it is passed from image The initial preview image of sensor output is transmitted separately to each image processor, and N number of target light exposure gain is initial pre- for adjusting Look at the exposure gain of image, N is the integer more than 2.

Terminal device 100 provided in an embodiment of the present invention can realize that terminal device is realized each in above method embodiment A process, to avoid repeating, which is not described herein again for detailed description and advantageous effect.

It should be understood that the embodiment of the present application in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 101 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by radio communication system and network and other set Standby communication.

Terminal device has provided wireless broadband internet to the user by network module 102 and has accessed, and such as user is helped to receive Send e-mails, browse webpage and access streaming video etc..

It is that audio output unit 103 can receive radio frequency unit 101 or network module 102 or in memory 109 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end The relevant audio output of specific function that end equipment 100 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 103 includes loud speaker, buzzer and receiver etc..

Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor (Graphics Process ing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 in video to capturing mould The image data of the static images or video that are obtained by image capture apparatus (such as camera) in formula or image capture mode carries out Processing.Treated, and picture frame may be displayed on display unit 106.It can be with through treated the picture frame of graphics processor 1041 It is stored in memory 109 (or other storage mediums) or is sent via radio frequency unit 101 or network module 102.Wheat Gram wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be with The format output of mobile communication base station can be sent to via radio frequency unit 101 by being converted in the case of telephone calling model.

Terminal device 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when terminal device 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify terminal device posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.

Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.

User input unit 107 can be used for receiving the number or character information of input, and generate the use with terminal device Family is arranged and the related key signals input of function control.Specifically, user input unit 107 include touch panel 1071 and Other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving area It manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating lever, details are not described herein.

Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touch The type for touching event provides corresponding visual output on display panel 1061.Although in the figure 7, touch panel 1071 and display Panel 1061 is to realize the function that outputs and inputs of terminal device as two independent components, but in some embodiments In, can be integrated by touch panel 1071 and display panel 1061 and realize the function that outputs and inputs of terminal device, it is specific this Place does not limit.

Interface unit 108 is the interface that external device (ED) is connect with terminal device 100.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in terminal device 100 or can be used in 100 He of terminal device Transmission data between external device (ED).

Memory 109 can be used for storing software program and various data.Memory 109 can include mainly storing program area And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.

Processor 110 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.

Terminal device 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.

In addition, terminal device 100 includes some unshowned function modules, details are not described herein.

Preferably, the embodiment of the present application also provides a kind of terminal device, including processor 110, and memory 109 is stored in On memory 109 and the computer program that can be run on the processor 110, the computer program are executed by processor 110 Each process of Shi Shixian above method embodiments, and identical technique effect can be reached, it is no longer superfluous here to avoid repeating It states.

The embodiment of the present application also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, realizes each process of above method embodiment when which is executed by processor, and can reach identical Technique effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disc Or CD etc..

It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements include not only those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this There is also other identical elements in the process of element, method, article or device.

Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.

The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within the protection of the present invention.

Claims (12)

1. a kind of high dynamic range images method for previewing, which is characterized in that the method includes:
During shooting preview, the initial preview image of imaging sensor output is obtained;
Obtain N number of target light exposure gain;
Each image processor in N number of image processor is controlled respectively according to a mesh in N number of target light exposure gain Exposure gain is marked, the exposure gain of the initial preview image is adjusted, generates preview image among N frames;
Image procossing is carried out to preview image among the N frames, generates high dynamic range images, and export to shooting preview circle Face;
Wherein, the initial preview image exported from described image sensor is transmitted separately to each image processor, N number of mesh Mark exposure gain is used to adjust the exposure gain of the initial preview image, and N is the integer more than 2.
2. according to the method described in claim 1, it is characterized in that, described obtain N number of target light exposure gain, including:
Obtain pre-stored N number of target light exposure gain;
Wherein, the value of each target light exposure gain in N number of target light exposure gain is different.
3. according to the method described in claim 1, it is characterized in that, in the case of N=3, the N number of target light exposure of acquisition increases Benefit, including:
Trizonal three brightness values in the initial preview image are obtained, three brightness values include first kind region Two the second brightness values of the first brightness value and the second class region;
For the second brightness value of each of described two second brightness values, according to first brightness value and second brightness Value, determines mesh exposure gain, obtains two target light exposure gains;
The corresponding exposure gain of first brightness value and described two target light exposure gains are determined as N number of target light exposure Gain;
Wherein, three regions are corresponded with three brightness values;The first kind region is in three regions Region of the brightness value in the first preset range, second class region includes clear zone and dark space, and the clear zone is described three Region of the brightness value in the second preset range in a region, the dark space are that brightness value is default in third in three regions Region in range;Value in first preset range is all higher than the value in the third preset range, and described first is default Value in range is respectively less than the value in second preset range.
4. according to the method described in claim 3, it is characterized in that, described according to first brightness value and second brightness Value, determines target light exposure gain, including:
The corresponding exposure gain of difference between first brightness value and second brightness value is determined as the target to expose The gain of light.
5. according to the method described in claim 1, it is characterized in that, described obtain N number of target light exposure gain, including:
Receive the N-1 target light exposure gain that user is inputted based on default exposure gain;
The default exposure gain and the N-1 target light exposure gain are determined as N number of target light exposure gain.
6. a kind of terminal device, which is characterized in that the terminal device includes:
Acquiring unit, for during shooting preview, obtaining the initial preview image of imaging sensor output;
The acquiring unit is additionally operable to obtain N number of target light exposure gain;
Control unit is obtained according to the acquiring unit respectively for controlling each image processor in N number of image processor N number of target light exposure gain in a target light exposure gain, adjust the exposure gain of the initial preview image, generate Preview image among N frames;
Processing unit, the N frames centre preview image for being obtained to described control unit carry out image procossing, generate high dynamic State range image, and export to shooting preview interface;
Wherein, the initial preview image exported from described image sensor is transmitted separately to each image processor, N number of mesh Mark exposure gain is used to adjust the exposure gain of the initial preview image, and N is the integer more than 2.
7. terminal device according to claim 6, which is characterized in that the acquiring unit is specifically used for:
Obtain pre-stored N number of target light exposure gain;
Wherein, the value of each target light exposure gain in N number of target light exposure gain is different.
8. terminal device according to claim 6, which is characterized in that in the case of N=3, the acquiring unit, specifically For:
Trizonal three brightness values in the initial preview image are obtained, three brightness values include first kind region Two the second brightness values of the first brightness value and the second class region;
For the second brightness value of each of described two second brightness values, according to first brightness value and second brightness Value, determines mesh exposure gain, obtains two target light exposure gains;
The corresponding exposure gain of first brightness value and described two target light exposure gains are determined as N number of target light exposure Gain;
Wherein, three regions are corresponded with three brightness values;The first kind region is in three regions Region of the brightness value in the first preset range, second class region includes clear zone and dark space, and the clear zone is described three Region of the brightness value in the second preset range in a region, the dark space are that brightness value is default in third in three regions Region in range;Value in first preset range is all higher than the value in the third preset range, and described first is default Value in range is respectively less than the value in second preset range.
9. terminal device according to claim 8, which is characterized in that the acquiring unit is specifically used for:
The corresponding exposure gain of difference between first brightness value and second brightness value is determined as the target to expose The gain of light.
10. terminal device according to claim 6, which is characterized in that the acquiring unit is specifically used for:
Receive the N-1 target light exposure gain that user is inputted based on default exposure gain;
The default exposure gain and the N-1 target light exposure gain are determined as N number of target light exposure gain.
11. a kind of terminal device, which is characterized in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor Any one of described in high dynamic range images method for previewing the step of.
12. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence realizes the high dynamic range images as described in any one of claim 1 to 5 when the computer program is executed by processor The step of method for previewing.
CN201810040716.2A 2018-01-16 2018-01-16 High dynamic range image preview method and terminal equipment CN108307109B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810040716.2A CN108307109B (en) 2018-01-16 2018-01-16 High dynamic range image preview method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810040716.2A CN108307109B (en) 2018-01-16 2018-01-16 High dynamic range image preview method and terminal equipment

Publications (2)

Publication Number Publication Date
CN108307109A true CN108307109A (en) 2018-07-20
CN108307109B CN108307109B (en) 2020-04-17

Family

ID=62869150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810040716.2A CN108307109B (en) 2018-01-16 2018-01-16 High dynamic range image preview method and terminal equipment

Country Status (1)

Country Link
CN (1) CN108307109B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218626A (en) * 2018-11-23 2019-01-15 维沃移动通信有限公司 A kind of photographic method and terminal
CN109729269A (en) * 2018-12-28 2019-05-07 维沃移动通信有限公司 A kind of image processing method, terminal device and computer readable storage medium
WO2020073957A1 (en) * 2018-10-11 2020-04-16 华为技术有限公司 Image capturing method and terminal device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100259636A1 (en) * 2009-04-08 2010-10-14 Zoran Corporation Exposure control for high dynamic range image capture
CN104869297A (en) * 2015-06-15 2015-08-26 联想(北京)有限公司 Image processing method and electronic equipment
CN105578068A (en) * 2015-12-21 2016-05-11 广东欧珀移动通信有限公司 High-dynamic-range image generation method, device and mobile terminal
CN105827971A (en) * 2016-03-31 2016-08-03 维沃移动通信有限公司 Image processing method and mobile terminal
CN107566739A (en) * 2017-10-18 2018-01-09 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN107566748A (en) * 2017-09-22 2018-01-09 维沃移动通信有限公司 A kind of image processing method, mobile terminal and computer-readable recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100259636A1 (en) * 2009-04-08 2010-10-14 Zoran Corporation Exposure control for high dynamic range image capture
CN104869297A (en) * 2015-06-15 2015-08-26 联想(北京)有限公司 Image processing method and electronic equipment
CN105578068A (en) * 2015-12-21 2016-05-11 广东欧珀移动通信有限公司 High-dynamic-range image generation method, device and mobile terminal
CN105827971A (en) * 2016-03-31 2016-08-03 维沃移动通信有限公司 Image processing method and mobile terminal
CN107566748A (en) * 2017-09-22 2018-01-09 维沃移动通信有限公司 A kind of image processing method, mobile terminal and computer-readable recording medium
CN107566739A (en) * 2017-10-18 2018-01-09 维沃移动通信有限公司 A kind of photographic method and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020073957A1 (en) * 2018-10-11 2020-04-16 华为技术有限公司 Image capturing method and terminal device
CN109218626A (en) * 2018-11-23 2019-01-15 维沃移动通信有限公司 A kind of photographic method and terminal
CN109729269A (en) * 2018-12-28 2019-05-07 维沃移动通信有限公司 A kind of image processing method, terminal device and computer readable storage medium

Also Published As

Publication number Publication date
CN108307109B (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN107786817B (en) A kind of photographic method and mobile terminal
CN107957839A (en) A kind of display control method and mobile terminal
CN106331502A (en) Terminal and its filter photographing method and device
CN107770438B (en) A kind of photographic method and mobile terminal
CN107197094A (en) One kind shooting display methods, terminal and computer-readable recording medium
CN107995395A (en) Mobile terminal and the image acquiring method for the mobile terminal
CN107566730B (en) A kind of panoramic picture image pickup method and mobile terminal
CN107483836B (en) A kind of image pickup method and mobile terminal
CN107566748A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN107845057A (en) One kind is taken pictures method for previewing and mobile terminal
CN108984059A (en) A kind of information display method and mobile terminal
CN107707827A (en) A kind of high-dynamics image image pickup method and mobile terminal
CN107888728A (en) A kind of mobile terminal and the image pickup method based on the mobile terminal
CN108628515A (en) A kind of operating method and mobile terminal of multimedia content
CN108881733A (en) A kind of panorama shooting method and mobile terminal
CN108182019A (en) A kind of suspension control display processing method and mobile terminal
CN107580184B (en) A kind of image pickup method and mobile terminal
CN108255378A (en) A kind of display control method and mobile terminal
CN107820022A (en) A kind of photographic method and mobile terminal
CN108712577A (en) A kind of call mode switching method and terminal device
CN108391007A (en) A kind of the volume setting method and mobile terminal of application program
CN108307109B (en) High dynamic range image preview method and terminal equipment
CN107886321A (en) A kind of method of payment and mobile terminal
CN107682639B (en) A kind of image processing method, device and mobile terminal
CN109151180A (en) A kind of object identifying method and mobile terminal

Legal Events

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