CN108234894A - A kind of exposure adjustment method and terminal device - Google Patents

A kind of exposure adjustment method and terminal device Download PDF

Info

Publication number
CN108234894A
CN108234894A CN201810036951.2A CN201810036951A CN108234894A CN 108234894 A CN108234894 A CN 108234894A CN 201810036951 A CN201810036951 A CN 201810036951A CN 108234894 A CN108234894 A CN 108234894A
Authority
CN
China
Prior art keywords
value
convergence rate
terminal device
brightness value
display cycle
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
CN201810036951.2A
Other languages
Chinese (zh)
Other versions
CN108234894B (en
Inventor
林广超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810036951.2A priority Critical patent/CN108234894B/en
Publication of CN108234894A publication Critical patent/CN108234894A/en
Application granted granted Critical
Publication of CN108234894B publication Critical patent/CN108234894B/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/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of exposure adjustment method and terminal devices, it is related to field of communication technology, mobile phone can be solved when changing the brightness value of mobile phone shooting picture using the convergent modes of AE, if bigger variation occurs suddenly for the brightness value of the shooting picture at this time, so shooting picture is it is possible that the phenomenon that flicker, the problem of causing the display effect of the shooting picture poor.Concrete scheme is:In the case where the real-time luminosity value variable quantity of the shooting preview interface of terminal device is greater than or equal to the first predetermined threshold value, the current first movement speed of present intensity value, target brightness value and the terminal device of shooting preview interface is obtained;According to present intensity value, target brightness value and first movement speed, the first convergence rate is determined;According to the first convergence rate, present intensity value is adjusted to target brightness value.Exposure adjustment method and terminal device provided in an embodiment of the present invention, can be applied to adjustment shooting preview interface brightness value during.

Description

A kind of exposure adjustment method and terminal device
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of exposure adjustment methods and terminal device.
Background technology
User is when using terminal equipment (such as mobile phone) is shot, it may appear that the brightness of shooting environmental differs, such as some shootings Environment is brighter, some shooting environmentals are than dark situation;At present mobile phone may be used automatic exposure (Auto Exposure, AE mode) is shot, i.e., is shot the brightness regulation of mobile phone shooting picture to suitable brightness according to the brightness of shooting environmental.
Wherein, AE corresponds to a preset exposure meter, each index corresponds to an exposure combination in the exposure meter, each Exposure combination includes a light exposure and a time for exposure.When mobile phone is shot using AE modes, mobile phone can be treated by statistics The target brightness value of shooting picture, and select one in the exposure meter to index according to the target brightness value, then reuse this Index the present intensity value that corresponding exposure combination changes the shooting picture.Specifically, mobile phone is changing working as the shooting picture During preceding brightness value, the convergent modes of AE may be used, the present intensity value of the shooting picture is gradually converged into target brightness value. For example, it is assumed that the corresponding index of the present intensity value of the shooting picture is i, the corresponding index of target brightness value is j, then mobile phone is first First change the present intensity value of the shooting picture using index i and the corresponding exposure combinations of an index k indexed between j, so Reselection index k and the corresponding exposure combination of an index indexed between j continue to change the present intensity of the shooting picture afterwards Value, and so on, until mobile phone is changed the present intensity value of the shooting picture finally using the corresponding exposure combinations of index j For target brightness value.
But mobile phone using the convergent modes of AE change the brightness value of mobile phone shooting picture when, if the shooting at this time Bigger variation (such as the variable quantity of the brightness value is more than some predetermined threshold value) occurs suddenly for the brightness value of picture, then should For shooting picture it is possible that the phenomenon that flickering, the display effect for leading to the shooting picture is poor.
Invention content
The embodiment of the present invention provides a kind of exposure adjustment method and terminal device, and the convergent sides of AE are being used to solve mobile phone When formula changes the brightness value of mobile phone shooting picture, if bigger variation occurs suddenly for the brightness value of the shooting picture at this time, So shooting picture is it is possible that the phenomenon that flicker, the problem of causing the display effect of the shooting picture poor.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
In a first aspect, providing a kind of exposure adjustment method, terminal device is can be applied to, which includes: In the case where the real-time luminosity value variable quantity of the shooting preview interface of terminal device is greater than or equal to the first predetermined threshold value, obtain The present intensity value of shooting preview interface, target brightness value and the current first movement speed of terminal device;According to present intensity Value, target brightness value and first movement speed, determine the first convergence rate;According to the first convergence rate, by present intensity value tune Whole is target brightness value.Wherein, the first predetermined threshold value is used to represent that the real-time luminosity value variable quantity of shooting preview interface becomes The degree of change;First convergence rate is the speed for the brightness value that shooting preview interface is adjusted using automatic exposure mode.
Second aspect provides a kind of terminal device, which includes:Acquiring unit, determination unit and adjustment unit. Wherein, acquiring unit, it is pre- for being greater than or equal to first in the real-time luminosity value variable quantity of the shooting preview interface of terminal device If in the case of threshold value, obtain the first current shifting of present intensity value, target brightness value and the terminal device of shooting preview interface Dynamic speed.Determination unit, for according to present intensity value, target brightness value and first movement speed, determining the first convergence rate. Adjustment unit, for according to the first convergence rate, present intensity value to be adjusted to target brightness value.Wherein, the first predetermined threshold value For representing the changed degree of real-time luminosity value variable quantity of shooting preview interface;First convergence rate is to be exposed using automatic Light mode adjusts the speed of the brightness value of shooting preview interface.
The third aspect provides a kind of terminal device, which includes processor, memory and storage on a memory And the computer program that can be run on a processor, it is realized as described in relation to the first aspect when which is executed by processor The step of exposure adjustment method.
Fourth aspect provides a kind of computer readable storage medium, and computer is stored on the computer readable storage medium Program, the step of exposure adjustment method as described in relation to the first aspect is realized when which is executed by processor.
In embodiments of the present invention, present intensity value can be adjusted to target by terminal device according to the first convergence rate Brightness value;Since the first convergence rate is present intensity value, target brightness value and end of the terminal device according to shooting preview interface The current first movement speed of end equipment determines that the determining of first convergence rate considers the current mobile speed of terminal device Degree, i.e. a first movement speed correspond to first convergence rate;Therefore, terminal device is incited somebody to action according to the first convergence rate When present intensity value is adjusted to target brightness value, the phenomenon that shooting preview interface being avoided to flicker, so that shooting Preview interface has preferable display effect.
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 exposure adjustment method flow chart provided in an embodiment of the present invention;
Fig. 3 is the two of exposure adjustment method flow chart provided in an embodiment of the present invention;
Fig. 4 is the three of exposure adjustment method flow chart provided in an embodiment of the present invention;
Fig. 5 is a kind of example schematic of first convergence rate provided in an embodiment of the present invention;
The four of Fig. 6 exposure adjustment method flow charts provided in an embodiment of the present invention;
A kind of Fig. 7 example schematics left picture and enter picture provided in an embodiment of the present invention;
The five of Fig. 8 exposure adjustment method flow charts provided in an embodiment of the present invention;
Fig. 9 is a kind of structure diagram of terminal device provided in an embodiment of the present invention;
Figure 10 is a kind of hardware architecture diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment 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 the particular order for description object.For example, the first predetermined threshold value and the second predetermined threshold value etc. are to be used for Distinguish different predetermined threshold values rather than the particular order for describing predetermined threshold value.In the description of the embodiment of the present invention, remove Non- to be otherwise noted, the meaning of " multiple " refers to two or more.
In embodiments of the present invention, " illustrative " or " such as " etc. words for represent make example, illustration or explanation.This Be described as in inventive embodiments " illustrative " or " such as " any embodiment or designing scheme be not necessarily to be construed as comparing Other embodiments or designing scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purport Related notion is being presented in specific ways.
The embodiment of the present invention provides a kind of exposure adjustment method and terminal device, can be applied to adjustment shooting preview interface Brightness value during.Specifically, terminal device is can be applied to by the present intensity of the shooting preview interface of terminal device During value is adjusted to the target brightness value of the shooting 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, introduce what exposure adjustment method provided in an embodiment of the present invention was applied Software environment.
As shown in Figure 1, for 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 in Android operation system (including system application and the 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 program of exposure adjustment method provided in an embodiment of the present invention is realized in the system architecture of operating system, exploitation, so that The exposure adjustment method can be run based on Android operation system as shown in Figure 1.I.e. processor or terminal device can lead to It crosses and software program realization exposure adjustment method provided in an embodiment of the present invention is run in Android operation system.
In the first embodiment of the present invention, Fig. 2 shows a kind of exposure adjustment method provided in an embodiment of the present invention, This method can be applied to the terminal device with Android operation system as shown in Figure 1.As shown in Fig. 2, the exposure adjustment side Method includes step 201- steps 203:
Step 201, terminal device are greater than or equal in the real-time luminosity value variable quantity of the shooting preview interface of terminal device In the case of first predetermined threshold value, present intensity value, target brightness value and the terminal device for obtaining shooting preview interface are current First movement speed.
Wherein, the first predetermined threshold value is used to represent the changed journey of real-time luminosity value variable quantity of shooting preview interface Degree.First movement speed is that terminal device performs the current movement speed of the terminal device obtained during step 201.
In the embodiment of the present invention, terminal device in shooting process, the terminal device when moving, the shooting of terminal device The real-time luminosity value of preview interface can change;Terminal device detects the real-time luminosity of the shooting preview interface of the terminal device It is worth variable quantity, and judges whether the real-time luminosity value variable quantity is greater than or equal to the first predetermined threshold value, which is The whether bigger thresholding of the preset real-time luminosity value variable quantity for judging shooting preview interface of the terminal device.
Illustratively, the shooting preview interface of terminal device shows A pictures, and the present intensity values of A pictures is a, the terminal After equipment movement, the shooting preview interface of terminal device shows B picture at this time, and the present intensity value of B picture is b, terminal device Judge whether the absolute value of b-a is greater than or equal to the first predetermined threshold value x1;If the absolute value of b-a is greater than or equal to x1, then it represents that The shooting after bigger variation, such as terminal device movement has occurred in the real-time luminosity value of the shooting preview interface of terminal device There is non-be always on or very dark object in preview interface.
In the embodiment of the present invention, terminal device can be pre- to shooting by the acquisition of information for the frame for counting shooting preview interface Look at the present intensity value at interface;Terminal device occurs bigger in the real-time luminosity value for the shooting preview interface for determining terminal device Variation after, can it is pre- to be calculated using preset formula according to the present intensity value of the shooting preview interface of acquisition for shooting Look at the target brightness value at interface;Terminal device can get first by the current information of the gyro sensor of terminal device Movement speed.
Step 202, terminal device determine the first convergence according to present intensity value, target brightness value and first movement speed Speed.
Wherein, the first convergence rate adjusts the brightness value of shooting preview interface for terminal device using automatic exposure mode Speed.
Optionally, in the embodiment of the present invention, with reference to Fig. 2, as shown in figure 3, above-mentioned steps 202 can specifically pass through step 202a and step 202b is realized:
Step 202a, terminal device determines preset initial convergence speed according to present intensity value and target brightness value.
Wherein, terminal device can be according to the present intensity value of shooting preview interface and the object brightness of shooting preview interface Value determines initial convergence speed from preset exposure meter.
Illustratively, terminal device is bright according to the present intensity value a of shooting preview interface and the target of shooting preview interface Angle value b, the present intensity value a of the shooting preview interface found from preset exposure meter are corresponding to be indexed as i, shooting preview The corresponding indexes of target brightness value b at interface are j, and determining initial convergence speed is index i, index i ± Δs s1 is (as indexed K1), index k1 ± Δs s2 (such as index w1), index w1 ± Δs s3 (such as index j), Δ s1, Δ s2 and Δ s3 are all higher than 0.Its In, work as i>During j, oeprator " ± " takes "-", works as i<During j, oeprator " ± " takes "+".
For example, as shown in table 1, a kind of initial convergence speed provided in an embodiment of the present invention is provided in a manner of table Example.
Table 1
Initial convergence speed Index i Index k1 Index w1 Index j
Initial convergence speed 1 Index 10 Index 15 Index 18 Index 20
Initial convergence speed 2 Index 22 Index 17 Index 13 Index 10
Assuming that the corresponding indexes of the present intensity value a of shooting preview interface are 10, the target brightness value b of shooting preview interface Corresponding index is 20, and the initial convergence speed 1 that terminal device determines is index 10, index 15, index 18, index 20, i.e., eventually End equipment converges to index 15 from index 10 first, then converges to index 18 from index 15, is finally converged to again from index 18 Index 20.
Step 202b, terminal device determines the first convergence rate according to first movement speed and initial convergence speed.
Optionally, in the embodiment of the present invention, with reference to Fig. 3, as shown in figure 4, above-mentioned steps 202b can specifically pass through step 202b1, step 202b2 or step 202b3 are realized:
Step 202b1, in the case where first movement speed is less than or equal to the second predetermined threshold value, terminal device is by first Default convergence rate is determined as the first convergence rate.
Wherein, the first default convergence rate is less than initial convergence speed.
Illustratively, as shown in (1) in Fig. 5, the initial convergence speed that terminal device determines is index i, indexes k1, rope Draw w1, index j.When terminal device slowly move or slight jitter (i.e. it is default that first movement speed v1 is less than or equal to second Threshold value x2) when, as shown in (2) in Fig. 5, terminal device is rope according to the first default convergence rate that initial convergence speed determines Draw i, index i and index any index (such as index k2, i between k1<k2<K1 it), indexes k1 and indexes any rope between w1 Draw (such as index w2, k1<w2<W1) and index j, and will index i, index k2, index w2 and index j be determined as the first convergence speed Degree.
For example, it is assumed that the corresponding index of the present intensity value of shooting preview interface is 10, the target of shooting preview interface is bright The corresponding index of angle value is 20.The initial convergence speed 1 that terminal device determines is index 10, index 15, index 18, index 20. As v1≤x2, terminal device is index 10, index 13, rope according to the first default convergence rate that initial convergence speed 1 determines Draw 16, index 20, which is less than initial convergence speed 1.
Step 202b2, in the case where first movement speed is more than the second predetermined threshold value and is less than third predetermined threshold value, eventually Initial convergence speed is determined as the first convergence rate by end equipment.
Wherein, the second predetermined threshold value is less than third predetermined threshold value.
Illustratively, when terminal device is moved with normal speed, (i.e. first movement speed v1 is more than the second predetermined threshold value x2 And less than third predetermined threshold value x3) when, terminal device can by as shown in (1) in Fig. 5 initial convergence speed (i.e. index i, Index k1, index w1, index j) are determined as the first convergence rate.
Step 202b3, in the case where first movement speed is greater than or equal to third predetermined threshold value, terminal device is by first Default convergence rate or initial convergence speed are determined as the first convergence rate.
Illustratively, as v1 >=x3, represent that terminal device is in the state quickly moved, and the shooting of the terminal device The image that preview interface is shown also does not stablize (i.e. the image of terminal device is also changing).At this point, terminal device can incite somebody to action Initial convergence speed or the first default convergence rate less than initial convergence speed are determined as the first convergence rate.
For example, as v1 >=x3, terminal device can by as shown in (1) in Fig. 5 initial convergence speed (index i, Index k1, index w1, index j) are determined as the first convergence rate;Alternatively, terminal device can will be as shown in (2) in Fig. 5 First default convergence rate (indexing i, index k2, index w2, index j) is determined as the first convergence rate.
Optionally, in the embodiment of the present invention, when first movement speed is greater than or equal to third predetermined threshold value, terminal device It can continue the current movement speed of detection terminal equipment, corresponding convergence rate is determined as the first convergence rate.Specifically , in the embodiment of the present invention, after above-mentioned steps 202b3, the exposure adjustment method of the embodiment of the present invention can also include step Rapid 202b4- steps 202b6:
Step 202b4, terminal device obtains the second current movement speed of terminal device.
Wherein, the mobile speed of the terminal device obtained when the second movement speed performs step 202b4 for terminal device currently Degree, i.e., in the case where first movement speed is greater than or equal to third predetermined threshold value, by the first default convergence rate or initially After convergence rate is determined as the first convergence rate, the current movement speed of terminal device that terminal device obtains.
Illustratively, terminal device can get the second shifting by the current information of the gyro sensor of terminal device Dynamic speed v2.
Step 202b5, in the case where the second movement speed is less than third predetermined threshold value, terminal device obtains shooting preview The N frame images that interface continuously displays.
Illustratively, when the first movement speed v1 (v1 >=x3) of terminal device is decreased to the second movement speed v2 (v2< When x3), terminal device obtains the N frame images that shooting preview interface continuously displays.
Optionally, in the embodiment of the present invention, the N frames that the shooting preview interface of terminal device continuously displays can be from terminal Equipment current point in time starts forward N frames or the N frames since terminal device current point in time backward, can be with Be since terminal device current point in time forward first part's frame and since terminal device current point in time backward The sum of number of two partial frames, first part's frame and second part frame is N.
Step 202b6, in the case that shooting preview interface continuously displays M frame images in N frame images, the second movement speed Less than or equal to the 4th predetermined threshold value, the second default convergence rate is determined as the first convergence rate by terminal device.
Wherein, the second default convergence rate is more than initial convergence speed, and the 4th predetermined threshold value is less than third predetermined threshold value, M It is the positive integer more than 1 with N, and M<N.
Illustratively, in the case that shooting preview interface continuously displays M frame images in N frame images, and v2≤x4, it represents Terminal device is stationary state from the state change quickly moved, and terminal device can will be greater than the of initial convergence speed at this time Two default convergence rates are determined as the first convergence rate.
For example, it is assumed that the initial convergence speed as shown in (1) in Fig. 5 (is indexed i, index k1, index by terminal device W1, index j) are determined as the first convergence rate.When shooting preview interface continuously displays M frame images, and v2≤x4 in N frame images When, as shown in (3) in Fig. 5, the second default convergence rate that terminal device determines is between index i, index k1 and index w1 Any index (as index k3, k1<k3<W1 it), indexes w1 and indexes any index (such as index w3, w1 between j<w3<J) and J is indexed, and index i, index k3, index w3 and index j are determined as the first convergence rate.
Optionally, in the embodiment of the present invention, after above-mentioned steps 202b6, the exposure adjustment method of the embodiment of the present invention It can also include step 202b7:
Step 202b7, in the case that shooting preview interface continuously displays M frame images in N frame images, the second movement speed More than the 4th predetermined threshold value and less than third predetermined threshold value, initial convergence speed is determined as the first convergence rate by terminal device.
Illustratively, when in N frame images shooting preview interface continuously display M frame images, and x4<v2<During x3, terminal is represented Equipment is moved with normal speed, and initial convergence speed can be determined as the first convergence rate by terminal device at this time.
For example, working as shooting preview interface in N frame images continuously displays M frame images, and x4<v2<During x3, terminal device can be with Initial convergence speed (indexing i, index k1, index w1, index j) as shown in (1) in Fig. 5 is determined as the first convergence speed Degree.
Present intensity value is adjusted to target brightness value by step 203, terminal device according to the first convergence rate.
Illustratively, terminal device can according to the first convergence rate, using in exposure meter with first convergence rate pair The exposure combination (each exposure combination include a light exposure and a time for exposure) answered, gradually working as shooting preview interface Preceding brightness value a is adjusted to the target brightness value b of shooting preview interface.
For example, it is assumed that the first convergence rate that terminal device determines is index i, index k3, indexes w3 and index j.Terminal Equipment uses first convergence rate, uses exposure combination 1 corresponding with index k3 first, corresponding with index i will shoot pre- The present intensity value a at interface of looking at is adjusted to a1;Then exposure combination 2 corresponding with index w3 is used, a1 is adjusted to a2;Make again With exposure combination 3 corresponding with index j, a2 is adjusted to the target brightness value b of shooting preview interface.
Illustratively, when terminal device is in state that is quick mobile or slowly moving, if according to as in Fig. 5 (1) the present intensity value of shooting preview interface is adjusted to the object brightness of shooting preview interface by the initial convergence speed shown in Value, shooting preview interface is then it is possible that the phenomenon that flickering;Due to terminal device determine as shown in (2) or (3) in Fig. 5 The first convergence rate take into account the current movement speed of terminal device (i.e. first movement speed and/or second movement speed Degree), i.e., after the current movement speed of terminal device changes, the first determining convergence rate also occurs to change accordingly, because The present intensity value of shooting preview interface is being adjusted to clap by this according to the first convergence rate as shown in (2) or (3) in Fig. 5 When taking the photograph the target brightness value of preview interface, the phenomenon that being flickered to avoid shooting preview interface.
The embodiment of the present invention provides a kind of exposure adjustment method, and terminal device can be according to the first convergence rate, will be current Brightness value is adjusted to target brightness value;Since the first convergence rate is present intensity of the terminal device according to shooting preview interface What value, target brightness value and the current first movement speed of terminal device determined, the determining of first convergence rate considers end The current movement speed of end equipment, i.e. a first movement speed correspond to first convergence rate;Therefore, terminal device by According to the first convergence rate, when present intensity value is adjusted to target brightness value, shooting preview interface can be avoided to occur what is flickered Phenomenon, so that shooting preview interface has preferable display effect.
Optionally, in the embodiment of the present invention, with reference to Fig. 2, as shown in fig. 6, step 202 can also specifically pass through step 601- Step 604 is realized:
Step 601, first movement speed be less than or equal to the second predetermined threshold value in the case of, terminal device obtain Q- In 1 display cycle in P frame images X frame image leave picture brightness value and X in P frame images in the Q display cycle Frame image enters picture brightness value.
Wherein, the shooting preview interface of terminal device shows the image of T display cycle, and each display cycle includes P frames Image;For the Q display cycle in T display cycle, the present intensity value of shooting preview interface is the Q display cycle First present intensity value of X frame image in middle P frames image, the target brightness value of shooting preview interface is the Q display cycle The target brightness value of X frame image in middle P frames image;Wherein, T is the integer more than 1, and P is the integer more than or equal to 1, and Q is Integer more than 1 and less than or equal to T, 1≤X≤P, and X are integer.
Illustratively, as v1≤x2, X frame image in P frame images in terminal device the Q-1 display cycle of acquisition It leaves picture brightness value L1 and X frame image enters picture brightness value L2 in P frame images in the Q display cycle.
Illustratively, it is assumed that T=3, P=3.As shown in table 2, it is provided in a manner of table provided in an embodiment of the present invention A kind of display cycle of shooting preview interface and the example of the correspondence of frame image.
Table 2
Referring to table 2, work as X=2, during Q=2, the present intensity value of shooting preview interface is 3 frame figures in the 2nd display cycle The first present intensity value of the 2nd frame image (i.e. 4 image of frame) as in, the target brightness value of shooting preview interface is 4 image of frame Target brightness value.What terminal device obtained in the 1st display cycle the 2nd frame image (i.e. 1 image of frame) in 3 frame images leaves picture 4 image of brightness value L 1 and frame enters picture brightness value L2.
For example, as shown in (1) in Fig. 7, the picture that leaves of 1 image of frame (including first part d1 and second part d2) is Second part d2;As shown in (2) in Fig. 7, the picture that enters of 4 image of frame (including Part III d3 and Part IV d4) is the Three parts d3.The brightness value for leaving picture d2 for 1 image of frame that terminal device obtains for L1,4 image of frame into picture d3's Brightness value is L2, and the brightness value of the d4 of 4 image of frame is L3, the first present intensity value of 4 image of frame (i.e. shooting preview interface ought Preceding brightness value) it is L2+L3.
Step 602 is preset in the difference left picture brightness value and entered between picture brightness value more than or equal to the 5th In the case of threshold value, terminal device determines the first median luminance value according to leaving picture brightness value and entering picture brightness value.
Wherein, the first median luminance value for terminal device according to leave picture brightness value and enter picture brightness value, use What preset formula obtained after recalculating enters picture brightness value.
Illustratively, as | L1-L2 | during more than or equal to the 5th predetermined threshold value x5, terminal device can according to L1 and L2, A brightness value between L1 and L2 is determined as the first median luminance value L4, which is by the bright of the Part III d3 in Fig. 7 The brightness value of Part III d3 after angle value L2 changes.
For example, it is assumed that the brightness value L 1 for the second part d2 that terminal device obtains is 10, the brightness value L 2 of Part III d3 It is 20.When | L1-L2 | during >=x5, terminal device uses preset formulaIt is calculated And being determined as the first median luminance value by 15, i.e., the brightness value of Part III d3 at this time is 15.
Step 603, terminal device determine in the Q display cycle X frame in P frame images according to the first median luminance value Second present intensity value of image.
Illustratively, terminal device calculates the Part IV d4 in L4 and Fig. 7 after the first median luminance value L4 is got The sum of brightness value L 3, the L4+L3 of calculating is determined as to the second present intensity value of 4 image of frame.
For example, it is assumed that the brightness value L 1 of second part d2 is 10, the brightness value L 2 of Part III d3 is 20, Part IV d4 Brightness value L 3 for 10, the first median luminance value L4 that terminal device determines is 15.First present intensity value of 4 image of frame is L2 + L3=20+10=30, the second present intensity value of 4 image of frame is L4+L3=15+10=25.
Step 604, terminal device are according to the second present intensity value of X frame image in P frame images in the Q display cycle With the target brightness value of X frame image in P frame images in the Q display cycle, the first convergence rate is determined.
Illustratively, terminal device can be according to the target of 4 image of the second present intensity value L4+L3 and frame of 4 image of frame Brightness value L 5, the first convergence rate determined from preset exposure meter is index i1, index k4, indexes w4 and index j.
For example, the first present intensity value L2+L3 of 4 image of frame is 30, the target brightness value L5 of 4 image of frame is 40.Terminal When equipment adjusts the first present intensity value 30 of 4 image of frame to the target brightness value 40 of 4 image of frame, determine that convergence rate 1 is Index 12, index 13, index 16, index 20, terminal device, will be with indexing 12 corresponding 4 images of frame according to the convergence rate 1 First present intensity value 30 is adjusted to indexing 13 corresponding brightness values 31, and brightness value 31 then is adjusted to corresponding with index 16 Brightness value 35, then by brightness value 35 be adjusted to index 20 corresponding 4 images of frame target brightness value 40.
For example, the second present intensity value L4+L3 of 4 image of frame is 25, the target brightness value L5 of 4 image of frame is 40.Terminal The first convergence rate that equipment determines is index 10, index 13, index 16, index 20;Terminal device can be according to first receipts Speed is held back, will be adjusted to indexing the second present intensity value 25 of 10 corresponding 4 images of frame with indexing 13 corresponding brightness values 31, Then brightness value 31 is adjusted to indexing 16 corresponding brightness values 35, then brightness value 35 is adjusted to indexing 20 corresponding frames The target brightness value 40 of 4 images.
In the embodiment of the present invention, it is compared to terminal device and adjusts the first present intensity value 30 of 4 image of frame to 4 figure of frame The convergence rate 1 used during the target brightness value 40 of picture, terminal device adjust the first present intensity value 25 of 4 image of frame to frame During the target brightness value 40 of 4 images, the first convergence rate of use is less than convergence rate 1.
Due to when first movement speed is less than or equal to the second predetermined threshold value, if according to convergence rate 1 by shooting preview The present intensity value at interface is adjusted to the target brightness value of shooting preview interface, and shooting preview interface is then it is possible that flicker Phenomenon;In the embodiment of the present invention, terminal device uses the first convergence rate (first i.e. in step 604 less than convergence rate 1 Convergence rate), it, can be to avoid when the present intensity value of shooting preview interface is adjusted to the target brightness value of shooting preview interface The phenomenon that shooting preview interface flickers.
Optionally, in the embodiment of the present invention, with reference to Fig. 2, as shown in figure 8, step 202 specifically can also be by step 605 It is realized with step 606:
Step 605, first movement speed be greater than or equal to third predetermined threshold value in the case of, terminal device is according to Q First present intensity value of X frame image and X frame in P frame images in the Q display cycle in P frames image in a display cycle The target brightness value of image determines the first median luminance value.
Wherein, shooting preview interface shows the image of T display cycle, and each display cycle includes P frame images;For T The Q display cycle in a display cycle, the present intensity value of shooting preview interface is P frame images in the Q display cycle First present intensity value of middle X frame image, the target brightness value of shooting preview interface is P frame images in the Q display cycle The target brightness value of middle X frame image;Wherein, T is the integer more than 1, and P is the integer more than or equal to 1, and Q is more than 0 and small In or equal to T integer, 1≤X≤P, and X be integer.
Wherein, the first median luminance value is terminal device according to X frame image in P frame images in the Q display cycle First present intensity value and in the Q display cycle in P frame images X frame image target brightness value, using preset formula In the Q display cycle obtained after recalculating in P frame images X frame image the first present intensity value.
Illustratively, as v1 >=x3, terminal device is according to of X frame image in P frame images in the Q display cycle One present intensity value L2+L3 and in the Q display cycle in P frame images X frame image target brightness value L5, determine in first Between brightness value L 4.
Illustratively, referring to table 2, work as X=2, during Q=2, terminal device is according to the first present intensity value L2+ of 4 image of frame The target brightness value L5 of 4 image of L3 and frame, determines the first median luminance value L4.
For example, it is assumed that the first present intensity value L2+L3 of 4 image of frame is 30, the target brightness value L5 of 4 image of frame is 40. As v1 >=x3, terminal device uses preset formulaIt is calculatedIt and will 35 are determined as the first median luminance value, i.e., the first present intensity value of 4 image of frame at this time is 35.
Third corresponding with the first median luminance value is preset convergence rate and is determined as the first receipts by step 606, terminal device Hold back speed.
Illustratively, as v1 >=x3, terminal device can be pre- by determining third corresponding with the first median luminance value If convergence rate is determined as the first convergence rate (such as index i2, index k5, index w5 and index j);Terminal device will shot When the present intensity value of preview interface is adjusted to the target brightness value of shooting preview interface, according to first convergence rate, gradually The first median luminance value corresponding with index i2 is adjusted to the target brightness value of shooting preview interface corresponding with index j.
Since when first movement speed is greater than or equal to third predetermined threshold value, terminal device is according to the in step 606 One convergence rate, when the present intensity value of shooting preview interface is adjusted to the target brightness value of shooting preview interface, be by First median luminance value is gradually adjusted to the target brightness value of shooting preview interface, and the first median luminance value is less than Q and shows Show the first present intensity value of X frame image in P frames image in the period, then the first convergence rate in step 606 is less than Q In display cycle in P frames image X frame image the corresponding convergence rate of the first present intensity value, therefore can be pre- to avoid shooting Look at interface the phenomenon that flickering.
Optionally, in the embodiment of the present invention, after above-mentioned steps 606, exposure adjustment method provided by the invention may be used also To include step 607- steps 609:
Step 607, terminal device obtain the second current movement speed of terminal device.
Step 608, the second movement speed be less than third predetermined threshold value in the case of, terminal device determine the Q show First present intensity value of X frame image and X frame image in P frame images in the Q display cycle in P frames image in period Difference between target brightness value.
Illustratively, work as v2<During x3, terminal device determines 4 image of the first present intensity value L2+L3 and frame of 4 image of frame Target brightness value L5 between difference, i.e., | L2+L3-L5 |.
The 4th default convergence rate corresponding with the second median luminance value is determined as the first receipts by step 609, terminal device Hold back speed.
Wherein, first present intensity of second median luminance value for X frame image in P frame images in the Q display cycle The product of difference and default weight in value and the Q display cycle in P frame images between the target brightness value of X frame image, The default weight is more than 1.
Illustratively, work as v2<During x3, the first present intensity value of 4 image of frame that terminal device determines and the mesh of 4 image of frame Mark brightness value difference be | L2+L3-L5 |, terminal device calculate | L2+L3-L5 | with default weight G (G>1) product, and will | L2+L3-L5 | the 4th default convergence rate corresponding with the product of G is determined as the first convergence rate.
Illustratively, work as v2<During x3, terminal device can will determine with the second median luminance value (i.e. | L2+L3-L5 | With the product of G) corresponding 4th default convergence rate is determined as the first convergence (such as index i3, index k6, index w6 and index j) Speed;Terminal device is pressed when the present intensity value of shooting preview interface is adjusted to the target brightness value of shooting preview interface According to first convergence rate, gradually the present intensity value of shooting preview interface corresponding with index i3 is adjusted to indexing j pairs The target brightness value for the shooting preview interface answered.
Due to first present intensity value of second median luminance value for X frame image in P frame images in the Q display cycle And the difference in the Q display cycle in P frame images between the target brightness value of X frame image (presets weight with default weight More than product 1), then the second median luminance value is more than in the Q display cycle first of X frame image in P frame images currently Brightness value, the first convergence rate in step 609 are more than in the Q display cycle first of X frame image in P frame images currently The corresponding convergence rate of brightness value, therefore terminal device is according to the first convergence rate in step 609, by shooting preview interface Present intensity value when being adjusted to the target brightness value of shooting preview interface, can occur flickering to avoid shooting preview interface shows As.
In second of embodiment of the present invention, Fig. 9 shows one kind of the terminal device involved in the embodiment of the present invention Possible structure diagram, as shown in figure 9, the terminal device 90 can include:Acquiring unit 91, determination unit 92 and adjustment are single Member 93.
Wherein, acquiring unit 91, for being more than in the real-time luminosity value variable quantity of the shooting preview interface of terminal device or In the case of equal to the first predetermined threshold value, the present intensity value, target brightness value and the terminal device that obtain shooting preview interface are worked as Preceding first movement speed, first predetermined threshold value are used to represent that the real-time luminosity value variable quantity of shooting preview interface changes Degree.Determination unit 92, for according to shooting preview interface present intensity value, the target brightness value of the shooting preview interface With first movement speed, the first convergence rate is determined, which is to adjust shooting preview using automatic exposure mode The speed of the brightness value at interface.Adjustment unit 93, for according to the first convergence rate, by the present intensity value of shooting preview interface It is adjusted to the target brightness value of the shooting preview interface.
In a kind of possible realization method, determination unit 92 is specifically used for:According to the present intensity of shooting preview interface The target brightness value of value and shooting preview interface, determines preset initial convergence speed;According to first movement speed and initial receipts Speed is held back, determines the first convergence rate.
In a kind of possible realization method, determination unit 92 is specifically used for:It is less than or equal to the in first movement speed In the case of two predetermined threshold values, the first default convergence rate is determined as the first convergence rate, the first default convergence rate is small In initial convergence speed.
In a kind of possible realization method, determination unit 92 is specifically used for:It is default to be more than second in first movement speed Threshold value and less than in the case of third predetermined threshold value, is determined as the first convergence rate, the second predetermined threshold value by initial convergence speed Less than third predetermined threshold value.
In a kind of possible realization method, determination unit 92 is specifically used for:It is greater than or equal to the in first movement speed In the case of three predetermined threshold values, the first default convergence rate or initial convergence speed are determined as the first convergence rate, this One default convergence rate is less than initial convergence speed.
In a kind of possible realization method in the case where first movement speed is greater than or equal to third predetermined threshold value, Acquiring unit 91 is additionally operable to that first default convergence rate or initial convergence speed are determined as the first convergence in determination unit 92 After speed, the second current movement speed of terminal device is obtained;Acquiring unit 91 is additionally operable to be less than the in the second movement speed In the case of three predetermined threshold values, the N frame images that shooting preview interface continuously displays are obtained;Determination unit 92 is additionally operable in N frame figures In the case that shooting preview interface continuously displays M frame images as in, the second movement speed is less than or equal to the 4th predetermined threshold value, will Second default convergence rate is determined as the first convergence rate;Wherein, the second default convergence rate be more than initial convergence speed, the 4th Predetermined threshold value is less than third predetermined threshold value, and M and N are the integer more than 1, and M<N.
In a kind of possible realization method, determination unit 92 is additionally operable to obtain shooting preview interface in acquiring unit 91 After the N frame images continuously displayed, in the case that shooting preview interface continuously displays M frame images in N frame images, the second movement Speed is more than the 4th predetermined threshold value and less than third predetermined threshold value, and initial convergence speed is determined as the first convergence rate.
In a kind of possible realization method, shooting preview interface shows the image of T display cycle, each display cycle Including P frame images;For the Q display cycle in T display cycle, the present intensity value of shooting preview interface is Q In display cycle in P frames image X frame image the first present intensity value, the target brightness value of shooting preview interface is Q In display cycle in P frames image X frame image target brightness value;Wherein, T is the integer more than 1, and P is more than or equal to 1 Integer, Q are that the integer more than 1 and less than or equal to T, 1≤X≤P, and X are integer.Correspondingly, determination unit 92, specific to use In:In the case where first movement speed is less than or equal to the second predetermined threshold value, P frame images in the Q-1 display cycle are obtained Middle X frame image leave picture brightness value and in the Q display cycle in P frame images X frame image enter picture brightness Value;In the case where the difference left picture brightness value and entered between picture brightness value is greater than or equal to the 5th predetermined threshold value, According to leaving picture brightness value and entering picture brightness value, the first median luminance value is determined;According to the first median luminance value, determine In the Q display cycle in P frame images X frame image the second present intensity value;According to P frame images in the Q display cycle Second present intensity value of middle X frame image and in the Q display cycle in P frame images X frame image target brightness value, really Fixed first convergence rate.
In a kind of possible realization method, shooting preview interface shows the image of T display cycle, each display cycle Including P frame images;For the Q display cycle in T display cycle, the present intensity value of shooting preview interface is Q In display cycle in P frames image X frame image the first present intensity value, the target brightness value of shooting preview interface is Q In display cycle in P frames image X frame image target brightness value;Wherein, T is the integer more than 1, and P is more than or equal to 1 Integer, Q be the integer more than 0 and less than or equal to T, 1≤X≤P, and X be integer correspondingly, determination unit 92, it is specific to use In:In the case where first movement speed is greater than or equal to third predetermined threshold value, according in P frame images in the Q display cycle First present intensity value of X frame image and in the Q display cycle in P frame images X frame image target brightness value, determine First median luminance value;Third corresponding with the first median luminance value is preset into convergence rate and is determined as the first convergence rate.
In a kind of possible realization method, acquiring unit 91, being additionally operable to will be with the first intermediate luminance in determination unit 92 It is worth corresponding third and presets convergence rate and be determined as after the first convergence rate, obtains the second current movement speed of terminal device Degree;Determination unit 92 is additionally operable to, in the case where the second movement speed is less than third predetermined threshold value, determine the Q display cycle In middle P frames image the first present intensity value of X frame image and in the Q display cycle in P frame images X frame image target Difference between brightness value;Determination unit 92 is additionally operable to the 4th default convergence rate corresponding with the second median luminance value is true It is set to the first convergence rate, which works as first of X frame image in P frame images in the Q display cycle Preceding brightness value and the difference in the Q display cycle in P frame images between the target brightness value of X frame image and default weight Product, the default weight are more than 1.
Terminal device 90 provided in an embodiment of the present invention can realize that terminal device is realized each in above method embodiment A process is repeated to avoid, and which is not described herein again for detailed description and advantageous effect.
In the third embodiment of the present invention, a kind of Figure 10 terminal devices of each embodiment to realize the present invention it is hard Part structure diagram, the terminal device 100 include but not limited to:Radio frequency unit 101, network module 102, audio output unit 103rd, 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 will be understood by those skilled in the art that the terminal device structure shown in Figure 10 is simultaneously The restriction to terminal device is not formed, and terminal device can be included than illustrating more or fewer components or combining certain portions Part or different components arrangement.In embodiments of the present invention, terminal device includes but not limited to mobile phone, tablet computer, notes This computer, palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 110, for being more than or waiting in the real-time luminosity value variable quantity of the shooting preview interface of terminal device In the case of the first predetermined threshold value, present intensity value, target brightness value and the terminal device for obtaining shooting preview interface are current First movement speed;According to present intensity value, target brightness value and first movement speed, the first convergence rate is determined;According to Present intensity value is adjusted to target brightness value by the first convergence rate;Wherein, the first predetermined threshold value is used to represent shooting preview circle The changed degree of real-time luminosity value variable quantity in face;First convergence rate is to adjust shooting preview using automatic exposure mode The speed of the brightness value at interface.
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 is repeated to avoid, and which is not described herein again for detailed description and advantageous effect.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receive and send messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, handled to processor 110;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 It sends 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 as sound.Moreover, audio output unit 103 can also provide and end The relevant audio output of specific function that end equipment 100 performs 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 used to receive audio or video signal.Input unit 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the image data of video obtained in image capture mode by image capture apparatus (such as camera) carry out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.Mike Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The form 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 one 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 ray sensor etc. are spent, details are not described herein.
Display unit 106 is used to show by information input by user or be 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 Display panel 1061 is configured in forms such as (Organic Light-Emitting Diode, OLED).
User input unit 107 can be used for receiving the number inputted or character information and generation and the use of terminal device The key signals input that family is set and function control is related.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 such as finger, stylus or attachment 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 performed.It is 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 to processor 110 with determine touch event type, 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 Fig. 10, touch panel 1071 is with showing Show that panel 1061 is the component independent as two to realize the function that outputs and inputs of terminal device, 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) can include Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, audio input/output (I/O) port, 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 One or more elements that the input received is transferred in terminal device 100 can be used in 100 He of terminal device Data are transmitted between external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include 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 can 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 is stored in storage by running or performing the software program being stored in memory 109 and/or module and call Data in device 109 perform the various functions of terminal device and processing data, so as 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 Device is managed, 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, so as 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 invention also provides a kind of terminal device, and including processor 110, memory 109 is stored in On memory 109 and the computer program that can be run on the processor 110, the computer program are performed by processor 110 Each process of Shi Shixian above method embodiments, and identical technique effect can be reached, it is repeated to avoid, it is no longer superfluous here It states.
The embodiment of the present invention 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 the above method embodiment when which is executed by processor, and can reach identical Technique effect, repeated to avoid, 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, term " comprising ", "comprising" 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 not only include those elements, and And it further includes other elements that are not explicitly listed or further includes intrinsic for this process, method, article or device institute Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are 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 such understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal (can be mobile phone, computer services Device, air conditioner or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned specific embodiment is only schematical rather than restricted, those of ordinary skill in the art Under the enlightenment of the present invention, present inventive concept and scope of the claimed protection are not being departed from, can also made very much Form is belonged within the protection of the present invention.

Claims (16)

1. a kind of exposure adjustment method, applied to terminal device, which is characterized in that the method includes:
In the case where the real-time luminosity value variable quantity of the shooting preview interface of terminal device is greater than or equal to the first predetermined threshold value, Obtain the current first movement speed of present intensity value, target brightness value and the terminal device of shooting preview interface;
According to the present intensity value, the target brightness value and the first movement speed, the first convergence rate is determined;
According to first convergence rate, the present intensity value is adjusted to the target brightness value;
Wherein, first predetermined threshold value is used to represent the changed journey of real-time luminosity value variable quantity of shooting preview interface Degree;First convergence rate is the speed for the brightness value that shooting preview interface is adjusted using automatic exposure mode.
It is 2. according to the method described in claim 1, it is characterized in that, described according to the present intensity value, the object brightness Value and the first movement speed, determine the first convergence rate, including:
According to the present intensity value and the target brightness value, preset initial convergence speed is determined;
According to the first movement speed and the initial convergence speed, first convergence rate is determined.
It is 3. according to the method described in claim 2, it is characterized in that, described according to the first movement speed and the initial receipts Speed is held back, determines first convergence rate, including:
In the case where the first movement speed is less than or equal to the second predetermined threshold value, the first default convergence rate is determined as First convergence rate;
In the case where the first movement speed is more than the second predetermined threshold value and is less than third predetermined threshold value, by the initial receipts It holds back speed and is determined as first convergence rate;
In the case where the first movement speed is greater than or equal to third predetermined threshold value, by the first default convergence rate or institute It states initial convergence speed and is determined as first convergence rate;
Wherein, the described first default convergence rate is less than initial convergence speed, and it is pre- that second predetermined threshold value is less than the third If threshold value, the first default convergence rate is less than the initial convergence speed.
4. it according to the method described in claim 3, it is characterized in that, is preset in the first movement speed more than or equal to third It is described that first default convergence rate or the initial convergence speed are determined as first convergence rate in the case of threshold value Later, the method further includes:
Obtain the second current movement speed of the terminal device;
In the case where second movement speed is less than the third predetermined threshold value, obtain what shooting preview interface continuously displayed N frame images;
In the case that shooting preview interface continuously displays M frame images in the N frames image, second movement speed be less than or Equal to the 4th predetermined threshold value, the second default convergence rate is determined as first convergence rate;
Wherein, the described second default convergence rate is more than the initial convergence speed, and the 4th predetermined threshold value is less than described the Three predetermined threshold values, M and N are the integer more than 1, and M<N.
5. the according to the method described in claim 4, it is characterized in that, N frame figures for obtaining shooting preview interface and continuously displaying As after, the method further includes:
In the case that shooting preview interface continuously displays M frame images in the N frames image, second movement speed is more than institute It states the 4th predetermined threshold value and less than the third predetermined threshold value, the initial convergence speed is determined as the first convergence speed Degree.
6. according to the method described in claim 1, it is characterized in that, shooting preview interface shows the image of T display cycle, often A display cycle includes P frame images;For the Q display cycle in the T display cycle, the present intensity value is institute The first present intensity value of X frame image in P frame images in the Q display cycle is stated, the target brightness value is the Q In display cycle in P frames image X frame image target brightness value;Wherein, T is the integer more than 1, and P is more than or equal to 1 Integer, Q are that the integer more than 1 and less than or equal to T, 1≤X≤P, and X are integer;
It is described that first convergence rate is determined according to the present intensity value, the target brightness value and the first movement speed, Including:
In the case where the first movement speed is less than or equal to the second predetermined threshold value, P frames in the Q-1 display cycle are obtained In image X frame image leave picture brightness value and in the Q display cycle in P frame images X frame image entrance Picture brightness value;
It is greater than or equal to the 5th predetermined threshold value in the difference left between picture brightness value and the value into picture brightness In the case of, picture brightness value and the entrance picture brightness value are left according to described, determines the first median luminance value;
According to first median luminance value, determine in the Q display cycle in P frame images that the second of X frame image works as Preceding brightness value;
According to the second present intensity value of X frame image in P frame images in the Q display cycle and the Q display In period in P frames image X frame image target brightness value, determine first convergence rate.
7. according to the method described in claim 1, it is characterized in that, shooting preview interface shows the image of T display cycle, often A display cycle includes P frame images;For the Q display cycle in the T display cycle, the present intensity value is institute The first present intensity value of X frame image in P frame images in the Q display cycle is stated, the target brightness value is the Q In display cycle in P frames image X frame image target brightness value;Wherein, T is the integer more than 1, and P is more than or equal to 1 Integer, Q are that the integer more than 0 and less than or equal to T, 1≤X≤P, and X are integer;
It is described that first convergence rate is determined according to the present intensity value, the target brightness value and the first movement speed, Including:
In the case where the first movement speed is greater than or equal to third predetermined threshold value, according to P in the Q display cycle In frame image the first present intensity value of X frame image and in the Q display cycle in P frame images X frame image mesh Brightness value is marked, determines the first median luminance value;
Third corresponding with first median luminance value is preset into convergence rate and is determined as first convergence rate.
8. the method according to the description of claim 7 is characterized in that described will third corresponding with first median luminance value Default convergence rate is determined as after first convergence rate, and the method further includes:
Obtain the second current movement speed of the terminal device;
In the case where second movement speed is less than the third predetermined threshold value, P frames in the Q display cycle are determined In image the first present intensity value of X frame image and in the Q display cycle in P frame images X frame image target Difference between brightness value;
The 4th default convergence rate corresponding with the second median luminance value is determined as first convergence rate;
Wherein, product of second median luminance value for the difference and default weight, the default weight are more than 1.
9. a kind of terminal device, which is characterized in that the terminal device includes:
Acquiring unit, it is default for being greater than or equal to first in the real-time luminosity value variable quantity of the shooting preview interface of terminal device In the case of threshold value, the current first movement of present intensity value, target brightness value and the terminal device of shooting preview interface is obtained Speed;
Determination unit, for according to the present intensity value, the target brightness value and the first movement speed, determining first Convergence rate;
Adjustment unit, for according to first convergence rate, the present intensity value to be adjusted to the target brightness value;
Wherein, first predetermined threshold value is used to represent the changed journey of real-time luminosity value variable quantity of shooting preview interface Degree;First convergence rate is the speed for the brightness value that shooting preview interface is adjusted using automatic exposure mode.
10. terminal device according to claim 9, which is characterized in that the determination unit is specifically used for:
According to the present intensity value and the target brightness value, preset initial convergence speed is determined;
According to the first movement speed and the initial convergence speed, first convergence rate is determined.
11. terminal device according to claim 10, which is characterized in that the determination unit is specifically used for:
In the case where the first movement speed is less than or equal to the second predetermined threshold value, the first default convergence rate is determined as First convergence rate;
In the case where the first movement speed is more than the second predetermined threshold value and is less than third predetermined threshold value, by the initial receipts It holds back speed and is determined as first convergence rate;
In the case where the first movement speed is greater than or equal to third predetermined threshold value, by the first default convergence rate or institute It states initial convergence speed and is determined as first convergence rate;
Wherein, the described first default convergence rate is less than initial convergence speed, and it is pre- that second predetermined threshold value is less than the third If threshold value, the first default convergence rate is less than the initial convergence speed.
12. terminal device according to claim 11, which is characterized in that be greater than or equal to the in the first movement speed In the case of three predetermined threshold values, the acquiring unit, be additionally operable to the determination unit by the described first default convergence rate or Initial convergence speed described in person is determined as after first convergence rate, obtains the second current movement speed of the terminal device Degree;
The acquiring unit is additionally operable to, in the case where second movement speed is less than the third predetermined threshold value, obtain and clap Take the photograph the N frame images that preview interface continuously displays;
The determination unit is additionally operable in the case that shooting preview interface continuously displays M frame images in the N frames image, institute The second movement speed is stated less than or equal to the 4th predetermined threshold value, the second default convergence rate is determined as the first convergence speed Degree;
Wherein, the described second default convergence rate is more than the initial convergence speed, and the 4th predetermined threshold value is less than described the Three predetermined threshold values, M and N are the integer more than 1, and M<N.
13. terminal device according to claim 12, which is characterized in that the determination unit is additionally operable in the acquisition After unit obtains the N frame images that shooting preview interface continuously displays, shooting preview interface continuously displays in the N frames image In the case of M frame images, second movement speed is more than the 4th predetermined threshold value and less than the third predetermined threshold value, will The initial convergence speed is determined as first convergence rate.
14. terminal device according to claim 9, which is characterized in that shooting preview interface shows the figure of T display cycle Picture, each display cycle include P frame images;For the Q display cycle in the T display cycle, the present intensity It is worth the first present intensity value for X frame image in P frame images in the Q display cycle, the target brightness value is institute State the target brightness value of X frame image in P frame images in the Q display cycle;Wherein, T is integer more than 1, P to be more than or Integer equal to 1, Q are that the integer more than 1 and less than or equal to T, 1≤X≤P, and X are integer;
The determination unit, is specifically used for:
In the case where the first movement speed is less than or equal to the second predetermined threshold value, P frames in the Q-1 display cycle are obtained In image X frame image leave picture brightness value and in the Q display cycle in P frame images X frame image entrance Picture brightness value;
It is greater than or equal to the 5th predetermined threshold value in the difference left between picture brightness value and the value into picture brightness In the case of, picture brightness value and the entrance picture brightness value are left according to described, determines the first median luminance value;
According to first median luminance value, determine in the Q display cycle in P frame images that the second of X frame image works as Preceding brightness value;
According to the second present intensity value of X frame image in P frame images in the Q display cycle and the Q display In period in P frames image X frame image target brightness value, determine first convergence rate.
15. terminal device according to claim 9, which is characterized in that shooting preview interface shows the figure of T display cycle Picture, each display cycle include P frame images;For the Q display cycle in the T display cycle, the present intensity It is worth the first present intensity value for X frame image in P frame images in the Q display cycle, the target brightness value is institute State the target brightness value of X frame image in P frame images in the Q display cycle;Wherein, T is integer more than 1, P to be more than or Integer equal to 1, Q are that the integer more than 0 and less than or equal to T, 1≤X≤P, and X are integer;
The determination unit, is specifically used for:
In the case where the first movement speed is greater than or equal to third predetermined threshold value, according to P in the Q display cycle In frame image the first present intensity value of X frame image and in the Q display cycle in P frame images X frame image mesh Brightness value is marked, determines the first median luminance value;
Third corresponding with first median luminance value is preset into convergence rate and is determined as first convergence rate.
16. terminal device according to claim 15, which is characterized in that the acquiring unit is additionally operable to determine described Third corresponding with first median luminance value is preset convergence rate and is determined as after first convergence rate by unit, obtains The second movement speed for taking the terminal device current;
The determination unit is additionally operable to, in the case where second movement speed is less than the third predetermined threshold value, determine institute State in the Q display cycle the first present intensity value of X frame image and P frame figures in the Q display cycle in P frame images Difference as between the target brightness value of X frame image;
The determination unit is additionally operable to the 4th default convergence rate corresponding with the second median luminance value being determined as described first Convergence rate;
Wherein, product of second median luminance value for the difference and default weight, the default weight are more than 1.
CN201810036951.2A 2018-01-15 2018-01-15 Exposure adjusting method and terminal equipment Active CN108234894B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810036951.2A CN108234894B (en) 2018-01-15 2018-01-15 Exposure adjusting method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810036951.2A CN108234894B (en) 2018-01-15 2018-01-15 Exposure adjusting method and terminal equipment

Publications (2)

Publication Number Publication Date
CN108234894A true CN108234894A (en) 2018-06-29
CN108234894B CN108234894B (en) 2020-06-09

Family

ID=62641439

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810036951.2A Active CN108234894B (en) 2018-01-15 2018-01-15 Exposure adjusting method and terminal equipment

Country Status (1)

Country Link
CN (1) CN108234894B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109089054A (en) * 2018-08-10 2018-12-25 上海安翰医疗技术有限公司 Automatic exposure control method, storage medium and endoscope
CN111031257A (en) * 2019-12-24 2020-04-17 Oppo广东移动通信有限公司 Exposure control method, terminal and storage medium
CN111064891A (en) * 2019-12-25 2020-04-24 维沃移动通信有限公司 Shooting control method and electronic equipment
CN111601031A (en) * 2020-04-02 2020-08-28 维沃移动通信有限公司 Shooting parameter adjusting method and device
WO2021226990A1 (en) * 2020-05-15 2021-11-18 深圳市大疆创新科技有限公司 Photographic device and photographing method applicable to photographing extreme scenario
CN115484384A (en) * 2021-09-13 2022-12-16 华为技术有限公司 Method and device for controlling exposure and electronic equipment
CN116389885A (en) * 2023-02-27 2023-07-04 荣耀终端有限公司 Shooting method, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1504823A (en) * 2002-12-05 2004-06-16 ӡ�����Ƽ��ɷ����޹�˾ Rapid convergence method for correct exposure value
US20050271379A1 (en) * 2004-06-07 2005-12-08 Hyung-Guen Lee Method and apparatus for controlling automatic exposure in a camera
CN101262567A (en) * 2008-04-07 2008-09-10 北京中星微电子有限公司 Automatic exposure method and device
JP2012100236A (en) * 2010-11-03 2012-05-24 Kazumoto Suzuki High-speed exposure control
CN104702851A (en) * 2013-12-06 2015-06-10 英特尔公司 Robust automatic exposure control using embedded data
CN105791679A (en) * 2016-02-29 2016-07-20 广东欧珀移动通信有限公司 Method and device for reducing camera power consumption, and mobile terminal
CN106657805A (en) * 2017-01-13 2017-05-10 广东欧珀移动通信有限公司 Shooting method in movement and mobile terminal
CN107343158A (en) * 2017-07-25 2017-11-10 广东欧珀移动通信有限公司 Accelerate the convergent method and devices of AEC, terminal device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1504823A (en) * 2002-12-05 2004-06-16 ӡ�����Ƽ��ɷ����޹�˾ Rapid convergence method for correct exposure value
US20050271379A1 (en) * 2004-06-07 2005-12-08 Hyung-Guen Lee Method and apparatus for controlling automatic exposure in a camera
CN101262567A (en) * 2008-04-07 2008-09-10 北京中星微电子有限公司 Automatic exposure method and device
JP2012100236A (en) * 2010-11-03 2012-05-24 Kazumoto Suzuki High-speed exposure control
CN104702851A (en) * 2013-12-06 2015-06-10 英特尔公司 Robust automatic exposure control using embedded data
CN105791679A (en) * 2016-02-29 2016-07-20 广东欧珀移动通信有限公司 Method and device for reducing camera power consumption, and mobile terminal
CN106657805A (en) * 2017-01-13 2017-05-10 广东欧珀移动通信有限公司 Shooting method in movement and mobile terminal
CN107343158A (en) * 2017-07-25 2017-11-10 广东欧珀移动通信有限公司 Accelerate the convergent method and devices of AEC, terminal device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109089054A (en) * 2018-08-10 2018-12-25 上海安翰医疗技术有限公司 Automatic exposure control method, storage medium and endoscope
CN109089054B (en) * 2018-08-10 2020-12-15 上海安翰医疗技术有限公司 Automatic exposure control method, storage medium, and endoscope
CN111031257A (en) * 2019-12-24 2020-04-17 Oppo广东移动通信有限公司 Exposure control method, terminal and storage medium
CN111064891A (en) * 2019-12-25 2020-04-24 维沃移动通信有限公司 Shooting control method and electronic equipment
CN111601031A (en) * 2020-04-02 2020-08-28 维沃移动通信有限公司 Shooting parameter adjusting method and device
CN111601031B (en) * 2020-04-02 2022-02-01 维沃移动通信有限公司 Shooting parameter adjusting method and device
WO2021226990A1 (en) * 2020-05-15 2021-11-18 深圳市大疆创新科技有限公司 Photographic device and photographing method applicable to photographing extreme scenario
CN113950821A (en) * 2020-05-15 2022-01-18 深圳市大疆创新科技有限公司 Camera device and shooting method suitable for shooting limit scene
CN115484384A (en) * 2021-09-13 2022-12-16 华为技术有限公司 Method and device for controlling exposure and electronic equipment
CN115484384B (en) * 2021-09-13 2023-12-01 华为技术有限公司 Method and device for controlling exposure and electronic equipment
CN116389885A (en) * 2023-02-27 2023-07-04 荣耀终端有限公司 Shooting method, electronic equipment and storage medium
CN116389885B (en) * 2023-02-27 2024-03-26 荣耀终端有限公司 Shooting method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108234894B (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN108234894A (en) A kind of exposure adjustment method and terminal device
CN108540724A (en) A kind of image pickup method and mobile terminal
CN108495029A (en) A kind of photographic method and mobile terminal
CN107707827A (en) A kind of high-dynamics image image pickup method and mobile terminal
CN107592466A (en) A kind of photographic method and mobile terminal
CN107483836B (en) A kind of image pickup method and mobile terminal
CN108307109A (en) A kind of high dynamic range images method for previewing and terminal device
CN110099213A (en) A kind of image display control method and terminal
CN107682639B (en) A kind of image processing method, device and mobile terminal
CN108492246A (en) A kind of image processing method, device and mobile terminal
CN108833709A (en) A kind of the starting method and mobile terminal of camera
CN107506732A (en) Method, equipment, mobile terminal and the computer-readable storage medium of textures
CN107734260A (en) A kind of image processing method and mobile terminal
CN108320263A (en) A kind of method, device and mobile terminal of image procossing
CN106101810B (en) Interface subject transform method, device and smart television for smart television
CN108174109A (en) A kind of photographic method and mobile terminal
CN108513067A (en) A kind of filming control method and mobile terminal
CN109558046A (en) A kind of information display method and terminal device
CN108881719A (en) A kind of method and terminal device switching style of shooting
CN108718389A (en) A kind of screening-mode selection method and mobile terminal
CN107959755A (en) A kind of photographic method and mobile terminal
CN108174081A (en) A kind of image pickup method and mobile terminal
CN108317992A (en) A kind of object distance measurement method and terminal device
CN108174110A (en) A kind of photographic method and flexible screen terminal
CN108063861A (en) The method, apparatus and mobile terminal that a kind of state is reminded

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