CN107257437B - Method and device for accelerating AEC convergence and terminal equipment - Google Patents

Method and device for accelerating AEC convergence and terminal equipment Download PDF

Info

Publication number
CN107257437B
CN107257437B CN201710558351.8A CN201710558351A CN107257437B CN 107257437 B CN107257437 B CN 107257437B CN 201710558351 A CN201710558351 A CN 201710558351A CN 107257437 B CN107257437 B CN 107257437B
Authority
CN
China
Prior art keywords
aec
aec value
value
target
brightness information
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.)
Expired - Fee Related
Application number
CN201710558351.8A
Other languages
Chinese (zh)
Other versions
CN107257437A (en
Inventor
袁全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710558351.8A priority Critical patent/CN107257437B/en
Publication of CN107257437A publication Critical patent/CN107257437A/en
Application granted granted Critical
Publication of CN107257437B publication Critical patent/CN107257437B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • 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

Landscapes

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

Abstract

The invention provides a method and a device for accelerating AEC convergence and terminal equipment, wherein the method comprises the following steps: acquiring brightness information of an environment where the terminal equipment is located; acquiring a target zoom multiple for which the camera tries to switch; and acquiring a target AEC value corresponding to the target zoom multiple according to the brightness information. According to the method, the illumination condition of the environment where the terminal equipment is located is collected in real time, the AEC value corresponding to the target zoom multiple is determined according to the collected brightness information, the AEC convergence is accelerated when the zoom multiple is switched, and the problem that in the prior art, when the zoom multiple is switched, the camera starts to converge from the default value, and the AEC convergence speed is low is solved.

Description

Method and device for accelerating AEC convergence and terminal equipment
Technical Field
The invention relates to the field of electronic equipment, in particular to a method and a device for accelerating AEC convergence and terminal equipment.
Background
At present, when the zoom factor of a camera is switched or when the shooting environment of the camera is changed, for example, the camera is changed from a relatively strong environment to a weak environment, the Automatic Exposure Control (AEC) of the camera may flash and then gradually become dark.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the invention provides a method for accelerating AEC convergence, which is used for determining an AEC value corresponding to a target zoom multiple according to brightness information of an environment where a terminal device is located and solving the problem that the AEC convergence speed is slow as an image pickup device starts to converge from a default value when the zoom multiple is switched in the prior art.
The invention provides a device for accelerating AEC convergence.
The invention provides a terminal device.
The invention provides a non-transitory computer-readable storage medium.
An embodiment of a first aspect of the present invention provides a method for accelerating AEC convergence, including: acquiring brightness information of an environment where the terminal equipment is located; acquiring a target zoom multiple for which the camera tries to switch; and acquiring a target AEC value corresponding to the target zoom multiple according to the brightness information.
As an optional implementation manner in the embodiment of the first aspect, obtaining, according to the brightness information, a target AEC value corresponding to the target zoom multiple includes:
inquiring the corresponding relation between the brightness and the AEC value according to the brightness information, and acquiring the AEC value corresponding to the brightness information;
taking the AEC value corresponding to the brightness information as an initial AEC value of the image pickup device;
the image pickup apparatus is controlled to converge from the AEC value, and a target AEC value of the image pickup apparatus is obtained.
As an optional implementation manner of the embodiment of the first aspect, after obtaining the AEC value corresponding to the luminance information, the method further includes:
acquiring an AEC value adopted by a camera device in the last shooting;
acquiring a difference value between an AEC value corresponding to the brightness information and an AEC value adopted in the last shooting;
if the difference exceeds a preset threshold value, using an AEC value corresponding to the brightness information as an initial AEC value of the image pickup device, and controlling the image pickup device to converge from the AEC value to obtain a target AEC value of the image pickup device;
and if the difference does not exceed the preset threshold, using the AEC value adopted in the last shooting as the initial AEC value of the image pickup device, and controlling the image pickup device to converge from the AEC value to obtain the target AEC value of the image pickup device.
As an optional implementation manner in an embodiment of the first aspect, the method further includes: monitoring an exit instruction for exiting from a shooting state of the camera device;
when the exit instruction is snooped, the target AEC value is cached in a specified cache unit in place of the AEC value employed at the time of the last shooting.
As an alternative implementation manner of the embodiment of the first aspect, acquiring the target zoom multiple that the image capturing apparatus attempts to switch includes:
monitoring a switching instruction for switching zoom multiples; the switching instruction carries the current zoom multiple and the switched target zoom multiple;
and after the switching instruction is monitored, extracting the target zoom multiple from the switching instruction.
According to the method for accelerating AEC convergence, the brightness information of the environment where the terminal equipment is located is acquired, the target zoom multiple which the camera device tries to switch is acquired, and the target AEC value corresponding to the target zoom multiple is acquired according to the brightness information. In this embodiment, the illumination condition of the environment where the terminal device is located is collected in real time by the brightness sensor, and the AEC value corresponding to the target zoom multiple is determined according to the collected brightness information. The AEC value determined based on the current brightness of the environment is closer to the real illumination environment than the default AEC value of the camera device, so that the AEC value acquired based on the brightness information is used as the initial AEC value of the camera device, the probability of flicker can be reduced, the AEC value corresponding to the brightness information is closer to the real illumination environment, the camera device converges based on the AEC value, the convergence can be realized quickly, the time consumed by convergence from the default value is shorter than the time consumed by convergence from the default value, the AEC convergence is accelerated when the zoom multiple is switched, and the problems that when the zoom multiple is switched in the prior art, the camera device converges from the default value, and the AEC convergence speed is slow are solved.
The embodiment of the second aspect of the present invention provides an apparatus for accelerating AEC convergence, including: the acquisition module is used for acquiring the brightness information of the environment where the terminal equipment is located; the first acquisition module is used for acquiring a target zoom multiple for which the camera tries to switch; and the second acquisition module is used for acquiring a target AEC value corresponding to the target zoom multiple according to the brightness information.
As an optional implementation manner of the embodiment of the second aspect, the second obtaining module includes:
the query acquisition unit is used for querying the corresponding relation between the brightness and the AEC value according to the brightness information and acquiring the AEC value corresponding to the brightness information;
and a determination unit for controlling the image pickup device to converge from the AEC value to obtain a target AEC value of the image pickup device by using the AEC value corresponding to the brightness information as an initial AEC value of the image pickup device.
As an optional implementation manner of the embodiment of the second aspect, the second obtaining module further includes:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring an AEC value adopted by the camera device when shooting last time;
the difference value calculation unit is used for acquiring the difference value between the AEC value corresponding to the brightness information and the AEC value adopted in the last shooting;
and the determining unit is specifically configured to use the AEC value corresponding to the brightness information as an initial AEC value of the image pickup apparatus if the difference exceeds a preset threshold, control the image pickup apparatus to converge from the AEC value to obtain a target AEC value of the image pickup apparatus, and use the AEC value adopted in the last shooting as the initial AEC value of the image pickup apparatus if the difference does not exceed the preset threshold, control the image pickup apparatus to converge from the AEC value to obtain the target AEC value of the image pickup apparatus.
As an optional implementation manner of the embodiment of the second aspect, the apparatus further includes: the replacing module is used for monitoring an exit instruction of the camera device exiting from the shooting state; when the exit instruction is snooped, the target AEC value is cached in a specified cache unit in place of the AEC value employed at the time of the last shooting.
As an optional implementation manner of the second aspect, the first obtaining module is specifically configured to: monitoring a switching instruction for switching zoom multiples; the switching instruction carries the current zoom multiple and the switched target zoom multiple;
and after the switching instruction is monitored, extracting the target zoom multiple from the switching instruction.
According to the device for accelerating AEC convergence, the brightness information of the environment where the terminal equipment is located is acquired, the target zoom multiple which the camera device tries to switch is acquired, and the target AEC value corresponding to the target zoom multiple is acquired according to the brightness information. In this embodiment, the illumination condition of the environment where the terminal device is located is collected in real time by the brightness sensor, and the AEC value corresponding to the target zoom multiple is determined according to the collected brightness information. The AEC value determined based on the current brightness of the environment is closer to the real illumination environment than the default AEC value of the camera device, so that the AEC value acquired based on the brightness information is used as the initial AEC value of the camera device, the probability of flicker can be reduced, the AEC value corresponding to the brightness information is closer to the real illumination environment, the camera device converges based on the AEC value, the convergence can be realized quickly, the time consumed by convergence from the default value is shorter than the time consumed by convergence from the default value, the AEC convergence is accelerated when the zoom multiple is switched, and the problems that when the zoom multiple is switched in the prior art, the camera device converges from the default value, and the AEC convergence speed is slow are solved.
An embodiment of a third aspect of the present invention provides a terminal device, including one or more of the following components: the device comprises a shell, and a processor, a memory and a camera module which are positioned in the shell, wherein the processor runs a program corresponding to executable program codes by reading the executable program codes stored in the memory, so as to realize the method for accelerating AEC convergence.
A fourth aspect of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for accelerating AEC convergence according to the first aspect.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart of a method for accelerating AEC convergence according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another method for accelerating AEC convergence according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for accelerating AEC convergence according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another apparatus for accelerating AEC convergence according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of another apparatus for accelerating AEC convergence according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of another apparatus for accelerating AEC convergence according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The following describes a method, an apparatus, and a terminal device for accelerating AEC convergence according to an embodiment of the present invention with reference to the accompanying drawings.
At present, the aperture value and the shutter speed can be automatically controlled through AEC, and the light-entering quantity is controlled so as to adjust the overall brightness of a shot scene and improve the shooting quality. When the zoom factor of the camera is switched, AEC needs to be adjusted to adjust the amount of light entering.
However, when the camera zoom factor is switched or when the shooting scene of the camera is changed, for example, when the environment with relatively strong light is changed into the environment with weak light, the AEC of the camera may blink and gradually converge to a stable state, and the AEC convergence speed is slow.
To solve the problem, an embodiment of the present invention provides a method for accelerating AEC convergence, so as to achieve obtaining a target AEC value according to luminance information of an environment where a terminal device is located, and accelerate AEC convergence.
Fig. 1 is a schematic flow chart of a method for accelerating AEC convergence according to an embodiment of the present invention.
As shown in fig. 1, the method for accelerating AEC convergence includes the following steps:
step 101, acquiring brightness information of an environment where the terminal equipment is located.
Because the light intensity of the shooting environment has great influence on the shooting quality, the brightness information of the environment where the terminal equipment is located can be collected in real time in order to better control the light entering amount through AEC. The brightness information may include, among other things, the intensity of light (typically represented by the illumination).
In this embodiment, the luminance sensor on the accessible terminal equipment gathers the luminance information of environment to acquire the light intensity of shooting environment.
Step 102, acquiring a target zoom multiple for which the camera tries to switch.
For example, after a close scene is photographed by a camera on a terminal device such as a mobile phone, a tablet computer, etc., the zoom factor of the camera is increased to photograph a distant scene. At this time, the target zoom factor at which the image pickup apparatus attempts to switch can be acquired.
When the zoom multiple of the camera device is switched, for example, from 1 time to 2 times, a switching instruction is sent, and the switching instruction may include the current zoom multiple, the switched target zoom multiple, and the like. In this embodiment, a listener may be configured to monitor a switching instruction of the zoom multiple, and when the switching instruction is monitored, the target zoom multiple is extracted from the switching instruction.
As an example, an icon for switching the zoom magnification may be provided on the photographing interface, and the user may switch the zoom magnification by clicking the icon. For example, one icon may be provided for each zoom factor, or two icons may be provided, one icon for increasing the zoom factor and one icon for decreasing the zoom factor, and the zoom factor is changed by clicking one of the icons.
And 103, acquiring a target AEC value corresponding to the target zoom multiple according to the brightness information.
In this embodiment, a correspondence between the brightness and the AEC value may be established in advance, and after the brightness information of the shooting scene is acquired, the correspondence between the brightness and the AEC value is queried according to the acquired brightness information, so as to acquire the AEC value corresponding to the brightness information of the current shooting scene. Then, the AEC value corresponding to the luminance information is set as an initial AEC value of the imaging apparatus, and the imaging apparatus is controlled to converge from the AEC value, thereby obtaining a target AEC value matching the target zoom magnification of the imaging apparatus.
For example, the acquired illuminance of the current shooting scene is 200 lux, the AEC value corresponding to 200 lux is 20 by searching for the correspondence between the illuminance and the AEC value, and the imaging apparatus is made to converge from 20 using 20 as the initial AEC value of the imaging apparatus, so that the target AEC value matching the target zoom multiple is obtained.
In general, because the difference between the brightness sensed by the brightness sensor to the environment where the terminal device is located and the actual environment is not large, the AEC value corresponding to the brightness information can be directly used as the initial AEC value of the image pickup device, and the image pickup device can converge from the AEC value to obtain the target AEC value matched with the target zoom multiple. Because the AEC value determined based on the current brightness of the environment is closer to the real illumination environment than the default AEC value of the camera device, the camera device converges based on the AEC value, and faster convergence can be realized.
In the method for accelerating AEC convergence provided in this embodiment, the illumination condition of the environment where the terminal device is located is collected in real time by the brightness sensor, and the AEC value corresponding to the target zoom multiple is determined according to the collected brightness information. The AEC value determined based on the current brightness of the environment is closer to the real illumination environment than the default AEC value of the camera device, so that the AEC value acquired based on the brightness information is used as the initial AEC value of the camera device, the probability of flicker can be reduced, the AEC value corresponding to the brightness information is closer to the real illumination environment, the camera device converges based on the AEC value, faster convergence can be realized, and the time consumed by convergence is shorter than the time consumed by convergence from the default value.
In the actual shooting process, the shooting environment is usually changed, for example, the shooting is performed by moving from a space without object shielding to a tree shadow, and at this time, AEC gradually converges to a steady state after shining, and the convergence speed is slow. The method for accelerating AEC convergence proposed by the embodiment of the present invention is described below by another embodiment.
As shown in fig. 2, the method for accelerating AEC convergence includes:
step 201, acquiring brightness information of an environment where the terminal device is located.
In step 202, a target zoom multiple for which the imaging apparatus attempts to switch is obtained.
Since steps 201-202 are similar to steps 101-102 in the above embodiments, they are not described herein again.
Step 203, acquiring an AEC value corresponding to the brightness information according to the brightness information.
After the brightness information of the current shooting scene is obtained, the corresponding relation between the brightness and the AEC value which is established in advance is inquired according to the brightness information, and the AEC value corresponding to the brightness information is obtained.
And step 204, acquiring an AEC value adopted by the imaging device in the last shooting.
In this embodiment, the AEC value used in the last shooting may be cached in the caching unit of the terminal device at the end of the last shooting. Specifically, during the last shooting, the image pickup apparatus needs to receive an exit instruction to exit from the shooting state.
As an example, when the user performs a click operation on a return button on the camera interface, or when the user performs an operation of switching the camera interface, such as switching from the camera interface to another interface, an exit instruction may be triggered, and the camera device exits from the camera state after receiving the exit instruction.
In this embodiment, the exit instruction may be snooped by a snooper. When an exit instruction sent out when the shooting of the camera device is finished exiting is monitored, the AEC value adopted by the shooting can be recorded and cached in the cache unit.
When the image pickup apparatus is turned on again, the AEC value employed at the time of the last shooting can be read from the buffer unit.
In step 205, the difference between the AEC value corresponding to the luminance information and the AEC value used in the last shooting is obtained.
In order to further improve the convergence speed of the AEC value, whether the illumination environment of the current shooting scene is close to the illumination environment of the last shooting scene or not can be judged, if so, the AEC value adopted in the last shooting can be used for convergence on the basis of the AEC value adopted in the last shooting, so that the convergence speed can be further improved, and the time consumption of the convergence process can be reduced.
Specifically, after the AEC value adopted in the last shooting is obtained, the AEC value corresponding to the luminance information of the current shooting scene is differentiated from the AEC value adopted in the last shooting.
For example, the AEC value used in the previous shooting is 160, the AEC value corresponding to the luminance information of the current shooting scene is 50, and the difference between the two values is 110.
In step 206, it is determined whether the difference exceeds a predetermined threshold.
If the difference between the AEC value corresponding to the luminance information and the AEC value used in the last shooting exceeds the preset threshold, step 207 is executed. Otherwise, step 208 is performed. The preset threshold may be set according to actual needs, which is not limited in the present invention.
Step 207, using the AEC value corresponding to the luminance information as the initial AEC value of the imaging apparatus, controls the imaging apparatus to converge from the AEC value, and obtains the target AEC value of the imaging apparatus.
And if the difference value between the AEC value corresponding to the brightness information of the current shooting scene and the AEC value adopted in the last shooting exceeds a preset threshold value, which indicates that the difference between the illumination environment of the current shooting scene and the illumination environment in the last shooting is larger, taking the AEC value corresponding to the brightness information of the current shooting scene as the initial AEC value of the image pickup device, so that the image pickup device converges from the AEC value to obtain the target AEC value of the image pickup device.
For example, the AEC value corresponding to the luminance information of the current shot scene is 180, the AEC value used at the time of the previous shot is 140, and the preset threshold value is 20. Since the difference value between the luminance information and the AEC value is 40 and exceeds the preset threshold value 20, which indicates that the difference between the illumination environment of the current shooting scene and the illumination environment at the last shooting is large, the AEC value 180 corresponding to the luminance information of the current shooting scene is used as the initial AEC value of the image pickup apparatus, so that the image pickup apparatus converges from 180 to obtain the target AEC value of the image pickup apparatus.
In step 208, the AEC value used in the previous shooting is used as the initial AEC value of the imaging apparatus, and the imaging apparatus is controlled to converge from the AEC value to obtain the target AEC value of the imaging apparatus.
And if the difference value between the AEC value corresponding to the brightness information of the current shooting scene and the AEC value adopted in the last shooting does not exceed the preset threshold value, indicating that the illumination environment of the current shooting scene is closer to the illumination environment in the last shooting, taking the AEC value adopted in the last shooting as the initial AEC value of the image pickup device, controlling the image pickup device to converge from the AEC value, and obtaining a target AEC value matched with the target zoom multiple of the image pickup device.
In this embodiment, when a quit instruction that the image capturing apparatus quits from the current image capturing state is monitored by the listener, the target AEC value is cached in a specified cache unit instead of the AEC value used in the last shooting, so that the target AEC value in the current shooting is acquired in the next shooting.
Alternatively, the brightness information of the current shooting scene may be compared with the brightness information of the shooting scene at the last shooting. When the difference value between the brightness information of the current shooting scene and the brightness information of the shooting scene in the last shooting does not exceed a preset threshold value, taking an AEC value corresponding to the brightness information of the shooting scene in the last shooting as an initial AEC value of the image pickup device; and when the difference value between the brightness information of the current shooting scene and the brightness information of the shooting scene at the last shooting exceeds a preset threshold value, taking the AEC value corresponding to the brightness information of the current shooting scene as the initial AEC value of the image pickup device.
In this embodiment, the difference between the AEC value corresponding to the luminance information of the current shooting scene and the AEC value adopted in the last shooting is compared with a preset threshold value to determine whether the difference between the illumination scene of the current shooting scene and the illumination scene in the last shooting is large, so that the initial AEC value of the image pickup apparatus is determined according to the comparison result, the image pickup apparatus starts to converge from the AEC value, the target AEC value of the image pickup apparatus is obtained, and the convergence rate is further increased.
According to the method for accelerating AEC convergence, the brightness information of the environment where the terminal equipment is located is acquired, the target zoom multiple which the camera device tries to switch is acquired, and the target AEC value corresponding to the target zoom multiple is acquired according to the brightness information. In this embodiment, the illumination condition of the environment where the terminal device is located is collected in real time by the brightness sensor, and the AEC value corresponding to the target zoom multiple is determined according to the collected brightness information. The AEC value determined based on the current brightness of the environment is closer to the real illumination environment than the default AEC value of the camera device, so that the AEC value acquired based on the brightness information is used as the initial AEC value, the probability of flicker can be reduced, and the AEC value corresponding to the brightness information is closer to the real illumination environment.
In order to implement the above embodiments, the present invention provides an apparatus for accelerating AEC convergence.
As shown in fig. 3, the apparatus for accelerating AEC convergence includes: an acquisition module 310, a first acquisition module 320, and a second acquisition module 330.
The collecting module 310 is configured to collect brightness information of an environment where the terminal device is located.
The first obtaining module 320 is used for obtaining a target zoom multiple for which the camera tries to switch.
The second obtaining module 330 is configured to obtain a target AEC value corresponding to the target zoom multiple according to the brightness information.
In a possible implementation manner of this embodiment, as shown in fig. 4, the second obtaining module 330 includes: query acquisition unit 331, determination unit 332.
The query obtaining unit 331 is configured to query a correspondence between the luminance and the AEC value according to the luminance information, and obtain the AEC value corresponding to the luminance information.
The determination unit 332 is configured to use the AEC value corresponding to the luminance information as an initial AEC value of the imaging apparatus, and control the imaging apparatus to converge from the AEC value to obtain a target AEC value of the imaging apparatus.
In another possible implementation manner of this embodiment, as shown in fig. 5, the second obtaining module 330 further includes: an acquisition unit 333 and a difference calculation unit 334.
The acquisition unit 333 is used to acquire an AEC value employed when the image pickup apparatus has captured the last time.
The difference value calculation unit 334 is configured to obtain a difference value between the AEC value corresponding to the luminance information and the AEC value used in the last shooting.
The determining unit 332 is specifically configured to use the AEC value corresponding to the luminance information as the initial AEC value of the image capturing apparatus if the difference exceeds the preset threshold, control the image capturing apparatus to converge from the AEC value to obtain a target AEC value of the image capturing apparatus, and use the AEC value used in the last shooting as the initial AEC value of the image capturing apparatus if the difference does not exceed the preset threshold, control the image capturing apparatus to converge from the AEC value to obtain the target AEC value of the image capturing apparatus.
In a possible implementation manner of this embodiment, as shown in fig. 6, the apparatus for accelerating AEC convergence further includes: the module 340 is replaced.
The replacing module 340 is configured to monitor an exit instruction for exiting from the shooting state of the camera device; when the exit instruction is snooped, the target AEC value is cached in a specified cache unit in place of the AEC value employed at the time of the last shooting.
In a possible implementation manner of this embodiment, the first obtaining module 320 is specifically configured to:
monitoring a switching instruction for switching zoom multiples; the switching instruction carries the current zoom multiple and the switched target zoom multiple;
and after the switching instruction is monitored, extracting the target zoom multiple from the switching instruction.
It should be noted that the foregoing explanation of the embodiment of the method for accelerating AEC convergence is also applicable to the apparatus for accelerating AEC convergence in this embodiment, and is not repeated herein.
According to the device for accelerating AEC convergence, the brightness information of the environment where the terminal equipment is located is acquired, the target zoom multiple which the camera device tries to switch is acquired, and the target AEC value corresponding to the target zoom multiple is acquired according to the brightness information. In this embodiment, the illumination condition of the environment where the terminal device is located is collected in real time by the brightness sensor, and the AEC value corresponding to the target zoom multiple is determined according to the collected brightness information. The AEC value determined based on the current brightness of the environment is closer to the real illumination environment than the default AEC value of the camera device, so that the AEC value acquired based on the brightness information is used as the initial AEC value of the camera device, the probability of flicker can be reduced, the AEC value corresponding to the brightness information is closer to the real illumination environment, the camera device converges based on the AEC value, the convergence can be realized quickly, the time consumed by convergence from the default value is shorter than the time consumed by convergence from the default value, the AEC convergence is accelerated when the zoom multiple is switched, and the problems that when the zoom multiple is switched in the prior art, the camera device converges from the default value, and the AEC convergence speed is slow are solved.
The invention also provides the terminal equipment. As shown in fig. 7, the terminal device includes one or more of the following components: a housing 710, and a processor 720, a memory 730, and a camera module 740 located within the housing 710.
The processor 720 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 730, so as to implement the method for accelerating AEC convergence as described in the foregoing embodiments.
The present invention also proposes a non-transitory computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, is capable of implementing the method of accelerating AEC convergence as described in the preceding embodiments.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (6)

1. A method for accelerating AEC convergence, comprising:
acquiring brightness information of an environment where the terminal equipment is located;
acquiring a target zoom multiple which is tried to be switched by a camera device of the terminal equipment;
inquiring the corresponding relation between the brightness and the AEC value according to the brightness information, and acquiring the AEC value corresponding to the brightness information;
acquiring an AEC value cached to a cache unit of the terminal equipment by the camera when the last shooting is finished;
acquiring a difference value between the AEC value corresponding to the brightness information and the AEC value cached in a cache unit of the terminal equipment when the last shooting is finished;
if the difference exceeds a preset threshold value, using an AEC value corresponding to the brightness information as a first initial AEC value of the image pickup device, and controlling the image pickup device to converge from the first initial AEC value to obtain a target AEC value matched with the target zoom multiple of the image pickup device;
and if the difference does not exceed a preset threshold value, using the AEC value cached in a caching unit of the terminal equipment at the end of the last shooting as a second initial AEC value of the image pickup device, and controlling the image pickup device to converge from the second initial AEC value to obtain a target AEC value matched with the target zoom multiple of the image pickup device.
2. The method of claim 1, further comprising:
monitoring an exit instruction for exiting from a shooting state of the camera device;
and when the quit instruction is monitored, replacing the AEC value cached in the cache unit of the terminal equipment when the last shooting is finished with the target AEC value.
3. The method according to claim 1, wherein the obtaining the target zoom factor that the camera device attempts to switch comprises:
monitoring a switching instruction for switching zoom multiples; the switching instruction carries the current zoom multiple and the switched target zoom multiple;
and after the switching instruction is monitored, extracting the target zoom multiple from the switching instruction.
4. An apparatus for accelerating AEC convergence, comprising:
the acquisition module is used for acquiring the brightness information of the environment where the terminal equipment is located;
the first acquisition module is used for acquiring a target zoom multiple which is tried to be switched by a camera device of the terminal equipment;
the second acquisition module is used for acquiring a target AEC value corresponding to the target zoom multiple according to the brightness information;
wherein, the second acquisition module includes:
the query acquisition unit is used for querying the corresponding relation between the brightness and the AEC value according to the brightness information and acquiring the AEC value corresponding to the brightness information;
the acquisition unit is used for acquiring the AEC value cached in the caching unit of the terminal equipment when the last shooting of the camera device is finished;
a difference value calculating unit, configured to obtain a difference value between the AEC value corresponding to the luminance information and the AEC value cached in the caching unit of the terminal device when the last shooting is finished;
and a determining unit, configured to, if the difference exceeds a preset threshold, use an AEC value corresponding to the brightness information as a first initial AEC value of the image capturing apparatus, control the image capturing apparatus to converge from the first initial AEC value to obtain a target AEC value that matches the target zoom multiple of the image capturing apparatus, and if the difference does not exceed the preset threshold, use an AEC value that is buffered in a buffer unit of a terminal device at the end of the last shooting as a second initial AEC value of the image capturing apparatus, and control the image capturing apparatus to converge from the second initial AEC value to obtain a target AEC value that matches the target zoom multiple of the image capturing apparatus.
5. A terminal device, comprising: the device comprises a shell and a processor, a memory and a camera module which are positioned in the shell, wherein the processor runs a program corresponding to executable program codes by reading the executable program codes stored in the memory so as to realize the method for accelerating AEC convergence according to any one of claims 1-3.
6. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a method of accelerating AEC convergence according to any of claims 1-3.
CN201710558351.8A 2017-07-10 2017-07-10 Method and device for accelerating AEC convergence and terminal equipment Expired - Fee Related CN107257437B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710558351.8A CN107257437B (en) 2017-07-10 2017-07-10 Method and device for accelerating AEC convergence and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710558351.8A CN107257437B (en) 2017-07-10 2017-07-10 Method and device for accelerating AEC convergence and terminal equipment

Publications (2)

Publication Number Publication Date
CN107257437A CN107257437A (en) 2017-10-17
CN107257437B true CN107257437B (en) 2020-02-18

Family

ID=60025961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710558351.8A Expired - Fee Related CN107257437B (en) 2017-07-10 2017-07-10 Method and device for accelerating AEC convergence and terminal equipment

Country Status (1)

Country Link
CN (1) CN107257437B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4231630A4 (en) * 2020-11-20 2024-03-06 Huawei Technologies Co., Ltd. Display method and terminal

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117061731B (en) * 2023-10-12 2024-04-12 荣耀终端有限公司 Zoom performance detection method and device, electronic equipment and medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102369723A (en) * 2011-08-29 2012-03-07 华为终端有限公司 Auto exposure method and device, and imaging device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102369723A (en) * 2011-08-29 2012-03-07 华为终端有限公司 Auto exposure method and device, and imaging device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4231630A4 (en) * 2020-11-20 2024-03-06 Huawei Technologies Co., Ltd. Display method and terminal

Also Published As

Publication number Publication date
CN107257437A (en) 2017-10-17

Similar Documents

Publication Publication Date Title
CN110351490B (en) Exposure method, exposure device and image pickup equipment
CN109218628B (en) Image processing method, image processing device, electronic equipment and storage medium
EP3565236B1 (en) Control method, control apparatus, mobile terminal and computer-readable storage medium
CN108322646B (en) Image processing method, image processing device, storage medium and electronic equipment
CN107465856B (en) Image pickup method and device and terminal equipment
CN107343155B (en) Inhibit method and device, the terminal device of AEC jump
CN101655649B (en) Image acquisition device and flash control method thereof
CN108833781B (en) Image preview method, device, terminal and computer readable storage medium
CN109361853B (en) Image processing method, image processing device, electronic equipment and storage medium
CN110708463B (en) Focusing method, focusing device, storage medium and electronic equipment
CN106506973B (en) Focusing control method and device, electronic equipment and terminal equipment
CN108040204B (en) Image shooting method and device based on multiple cameras and storage medium
CN109714539B (en) Image acquisition method and device based on gesture recognition and electronic equipment
CN107257437B (en) Method and device for accelerating AEC convergence and terminal equipment
JP2005184508A (en) Imaging device and control method therefor
US20220053121A1 (en) A method, software product, camera device and system for determining artificial lighting and camera settings
EP3249462A1 (en) Flash unit and emitted light amount control method
CN105391940A (en) Image recommendation method and apparatus
CN110677580B (en) Shooting method, shooting device, storage medium and terminal
CN106791458B (en) Shooting method and terminal
JP2022003376A (en) Focus detection device and focus detection method
CN111654618A (en) Camera focusing sensitivity control method and device
CN108833780B (en) Image parameter adjusting method, image parameter adjusting device and mobile terminal
CN108337448B (en) High dynamic range image acquisition method and device, terminal equipment and storage medium
CN110519526A (en) Exposure time control method, device, storage medium and electronic equipment

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
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200218

CF01 Termination of patent right due to non-payment of annual fee