CN107852455B - A kind of method and terminal taken pictures - Google Patents

A kind of method and terminal taken pictures Download PDF

Info

Publication number
CN107852455B
CN107852455B CN201680017675.4A CN201680017675A CN107852455B CN 107852455 B CN107852455 B CN 107852455B CN 201680017675 A CN201680017675 A CN 201680017675A CN 107852455 B CN107852455 B CN 107852455B
Authority
CN
China
Prior art keywords
time
exposure
terminal
sensitivity
steady
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201680017675.4A
Other languages
Chinese (zh)
Other versions
CN107852455A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN107852455A publication Critical patent/CN107852455A/en
Application granted granted Critical
Publication of CN107852455B publication Critical patent/CN107852455B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

A kind of method and terminal taken pictures, method include: to be calculated to obtain the first time for exposure and the first sensitivity (S101) according to current environment light intensity;It obtains and the longest of terminal at steady state is maintained to keep steady the time (S102) when user takes pictures;Then judge whether longest time that keeps steady is greater than the first time for exposure (S103);If longest keeps steady, the time was greater than for the first time for exposure, adjusts the time for exposure taken pictures and sensitivity, is taken pictures (S104) using the second time for exposure and the second sensitivity;Wherein, the second time for exposure was not more than for the first time for exposure, and the second sensitivity is not less than the first sensitivity.It can adaptively adjust parameter of taking pictures according to user's individual difference in this way, promote terminal and take pictures effect.

Description

A kind of method and terminal taken pictures
Technical field
The present invention relates to field of terminal technology more particularly to a kind of methods and terminal taken pictures.
Background technique
With the intelligent development of terminal such as mobile phone, plate etc., can be provided for people's lives, work, study and amusement Very big help.Especially at aspect of taking pictures, quickly, for camera, terminal is generally configured with more for the performance boost of terminal Good portability.Therefore, under most of scenes, user prefers using terminal and takes pictures.The quality of photo not only depends on It is also closely bound up with the parameter of taking pictures of use in the performance of taking pictures of terminal.For example, time for exposure and sensitivity etc..Wherein, it exposes Time is the time to be opened of shutter in order to project light on the photosurface of sensitive photographic material.Depending on sensitive photographic material Sensitivity and to the illumination on photosurface depending on.Shutter is to be used to control the light irradiation photosensitive element time in apparatus for making a video recording Device.Time for exposure is the time interval that closing is opened to from shutter.Sensitivity is then chemical reaction velocity of the egative film to light, It is also the standard of film speed in manufacture egative film industry.International Organization for standardization (International Standardization Organization, abbreviation ISO) quantization regulation has been done to sensitivity.To compared with low sensitivity egative film, that is, lower egative film of sensitivity, It needs to expose the longer time to reach with imaging identical compared with high sensitive egative film, therefore is commonly known as egative film at a slow speed.Compared with The higher egative film of egative film, that is, sensitivity of high sensitive is known as quick egative film.Since the higher egative film of sensitivity is generally configured with relatively slightly Egative film particle or higher image noise, therefore either numerical digit or egative film photography, it is opposite in order to reduce the time for exposure The noise for normally resulting in photo using the egative film compared with high sensitivity is more, second-rate.
Since user is when handheld terminal is taken pictures, hand is not stable always.It will be taken when handshaking fuzzy Photo.Under half-light scene, such as at dusk, the time for exposure for needs of taking pictures is usually longer than daytime.Time is longer, by Handshaking influence is bigger, easier to take blurred image.At this moment, the time for exposure generally is reduced by promoting ISO value, kept away Exempt from blurring of photos.But photographic quality will be reduced in this way.In fact, being had differences between user's individual, such as old man, child With a middle-aged person's comparison or ordinary user and Professional Photography fan comparison etc., whens their handheld terminals, can keep the stable time It is different, therefore, parameter of taking pictures identical for all user settings is taken pictures, and is unable to get what active user can shoot The photo of better quality.
Summary of the invention
The technical problem to be solved by the embodiment of the invention is that providing a kind of method and terminal taken pictures.To solve eventually Parameter of taking pictures identical for all user settings is held to take pictures, the poor problem of photographic quality.
In a first aspect, the embodiment of the invention provides a kind of methods taken pictures, comprising:
It is calculated to obtain the first time for exposure and the first sensitivity according to current environment light intensity;
Obtaining user maintains the longest of terminal at steady state to keep steady the time;
Judge whether longest time that keeps steady is greater than first time for exposure;
If the longest keeps steady, the time is greater than first time for exposure, adjusts the time for exposure taken pictures and sensitivity, It is taken pictures using the second time for exposure and the second sensitivity;
Wherein, second time for exposure is not more than first time for exposure, and second sensitivity is not less than described First sensitivity.
It maintains the longest of terminal at steady state to keep steady the time by obtaining user, and longest is kept steady time and current The first time for exposure that terminal is calculated under ambient light intensity compares, when adjusting the exposure taken pictures when the former is greater than the latter Between and sensitivity, taken pictures using the second bigger time for exposure and smaller second sensitivity.It can sufficiently match current The individual character of user adjusts parameter of taking pictures, and promotes the effect of taking pictures of terminal, and can be with optics used in existing terminal Stabilization function is compatible, extends the function and applicability of terminal, improves the experience of taking pictures of user, take conducive to different users Meet the photo of the better quality of self-condition.
With reference to first aspect, in a first possible implementation of that first aspect, if the longest keeps steady, the time is less than First time for exposure is then taken pictures using first time for exposure and first sensitivity.
When longest keeps steady the time less than the first time for exposure, terminal initial can be used and be calculated for the first time for exposure It is calculated with the first sensitivity, without being adjusted the photo that can obtain better quality to parameter of taking pictures.
With reference to first aspect, in a second possible implementation of that first aspect, the acquisition user maintains terminal to exist Longest under stable state keeps steady the time, comprising:
It acquires the user and carries out focusing to the shake data for pressing shutter using the terminal;
The shake data are compared with preset threshold;
When the shake data are lower than the preset threshold, the terminal is in stable state, counts at the terminal It keeps steady the time in the longest of stable state.
By the way that data will be shaken compared with preset threshold, can determine at terminal when shaking data and being lower than preset threshold In stable state, counts the longest that it is under stable state and keep steady the time, statistical result is more accurate, can be good The shake for embodying terminal obtains the photo of better quality conducive to the subsequent adjustment to time for exposure and sensitivity.
With reference to first aspect, in first aspect in the third possible implementation, if the longest keeps steady, the time is greater than First time for exposure, then adjusting second time for exposure keeps steady the time equal to the longest;
It is obtained according to the product of first time for exposure and first sensitivity, then divided by longest time that keeps steady Second sensitivity.
Kept steady the time by the way that the second time for exposure was adjusted to maximum, and according to the first time for exposure, the first sensitivity and Maximum keep steady the time calculate the second sensitivity so that finally take pictures use take pictures parameter be most suitable for active user, it is available The photo for the better quality that current environment active user can shoot.
With reference to first aspect, or with reference to first aspect first to the third any possible implementation, in first aspect In 4th kind of possible implementation, when the user takes pictures, the user is prompted to keep steady the terminal.
By reminding, it can prompt the user for lacking professional knowledge of taking pictures that terminal is kept to be in stable state as far as possible, be conducive to It keeps steady the time to accurate maximum, conducive to clear photograph is taken.
With reference to first aspect, in the 5th kind of possible implementation of first aspect, maintain terminal steady obtaining user Determine the longest under state to keep steady before the time, further includes:
User's input numerical ciphers, gesture password or biometrics password is prompted to carry out authentication;
When get the user maintain the longest of terminal at steady state keep steady the time after, the longest is kept steady Time is associated and saves with user identity;
When taking pictures next time, authentication calls corresponding longest to keep steady time and first time for exposure after passing through Compare.
By the step of combining authentication, the demand that multi-user's using terminal is taken pictures can satisfy, for different user It gets different longests and keeps steady and the time and be saved in order to subsequent calls and directly use, can further promote being applicable in for terminal Property and the speed taken pictures.
Second aspect, the embodiment of the invention provides a kind of terminals, comprising:
Computing unit obtains the first time for exposure and the first sensitivity for calculating according to current environment light intensity;
Acquiring unit maintains the longest of terminal at steady state to keep steady the time for obtaining user;
Judging unit, for judging whether longest time that keeps steady is greater than first time for exposure;
Photographing unit adjusts the exposure taken pictures if keeping steady the time greater than first time for exposure for the longest Time and sensitivity are taken pictures using the second time for exposure and the second sensitivity;
Wherein, second time for exposure is not more than first time for exposure, and second sensitivity is not less than described First sensitivity.
Based on the same inventive concept, the principle and beneficial effect solved the problems, such as due to the terminal may refer to above-mentioned first Each possible embodiment and brought beneficial effect of aspect and first aspect, therefore the implementation of the terminal may refer to The implementation of method, overlaps will not be repeated.
The third aspect, the embodiment of the invention provides a kind of terminals, comprising:
Processor, memory, camera, acceleration transducer, display screen, interface circuit and bus, the processor are deposited Reservoir, camera, acceleration transducer, display screen and interface circuit connect by the bus and complete mutual communication, Wherein, for taking pictures, the acceleration transducer is used to incude shake when user holds the terminal camera, and adopts Collection shake receipt is sent to the processor, and the display screen is used for human-computer interaction and display shooting picture, the memory In storage batch processing code, the processor is for calling the program code stored in the memory, the following operation of execution:
Environment light intensity is incuded by the camera, when calculating to obtain the first exposure according to current environment light intensity Between and the first sensitivity;
Obtaining user maintains the longest of terminal at steady state to keep steady the time;
Judge whether longest time that keeps steady is greater than first time for exposure;
If the longest keeps steady, the time is greater than first time for exposure, adjusts the time for exposure taken pictures and sensitivity, It is taken pictures using the second time for exposure and the second sensitivity;
Wherein, second time for exposure is not more than first time for exposure, and second sensitivity is not less than described First sensitivity.
In the method design that the processor calls the instruction of storage in the memory to realize above-mentioned first aspect Scheme, the embodiment and beneficial effect solved the problems, such as due to the terminal may refer to above-mentioned first aspect and first aspect Each possible embodiment and beneficial effect, therefore the implementation of the terminal may refer to the implementation of method, repeat place not It repeats again.
Fourth aspect, the embodiment of the invention provides a kind of computer storage medium, the computer storage medium includes Batch processing code, it is such as first aspect of the embodiment of the present invention and first aspect and first aspect each possible for executing Method described in embodiment.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below will be to institute in embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow diagram for the method taken pictures provided by the invention;
Fig. 2 is the flow diagram for the method that another kind provided by the invention is taken pictures;
Fig. 3 is the flow diagram of another method taken pictures provided by the invention;
Fig. 4 is a kind of composition schematic diagram of terminal provided by the invention;
Fig. 5 is the composition schematic diagram of another terminal provided by the invention;
Fig. 6 is the composition schematic diagram of another terminal provided by the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
It should be understood that in embodiments of the present invention, terminal can be referred to as user equipment (User Equipment, UE), movement Platform (Mobile Station, MS), mobile terminal (Mobile Terminal, MT), computer, microcomputer etc..The terminal can be through Wireless access network (Radio Access Network, RAN) is communicated with one or more core nets, for example, terminal can be with Mobile phone (or for " honeycomb " phone), computer with mobile terminal etc., for example, terminal can also be it is portable, Pocket, hand-held, built-in computer or vehicle-mounted mobile device, they exchange voice and/or number with wireless access network According to.The present invention does not limit this, such as terminal further includes having the terminal of the access in radio of multiple-bearer feature.Of the invention says Bright book and claims and term " first " in above-mentioned attached drawing, " second " and " third " etc. be for distinguishing different objects, Not for description particular order.In addition, term " includes " and " having " and their any deformations, it is intended that covering is not arranged His includes.Such as it contains the process, method, system, product or equipment of a series of steps or units and is not limited to arrange Out the step of or unit, but optionally further comprising the step of not listing or unit, or optionally further comprising for these mistakes The intrinsic other step or units of journey, method, product or equipment.
Referring to FIG. 1, a kind of flow diagram of method taken pictures provided by the invention.In the present embodiment, the side Method includes:
S101 calculates to obtain the first time for exposure and the first sensitivity according to current environment light intensity.
Under different ambient light intensity, the time for exposure and sensitivity that terminal is calculated are different.For example, Under half-light environment, the time for exposure is usually long, and sensitivity is also relatively high, and obtained photograph quality is poor, and light is preferable Under environment, the time for exposure can shorten, and sensitivity can also be lower, the available preferable photo of quality.Therefore, when user opens Camera applications are opened, when Yao Jinhang takes pictures, terminal can be calculated according to the difference of current environment light intensity using preset algorithm The first time for exposure and the first sensitivity under to suitable current environment light intensity.For example, relatively common 3A digital imagery Technology, that is, auto-focusing (AF), automatic exposure (AE) and automatic white balance (AWB).It makes use of AF auto-focusing algorithm, AE certainly Exposure algorithm and AWB automatic white balance algorithm are moved to realize that picture contrast is maximum, improves the overexposure of main body subject or exposure Insufficient situation compensates color difference of the picture under the irradiation of different light, so that the image information compared with high image quality be presented.Using The camera of 3A digital imaging technology can be good at ensureing image accurately color rendition degree, and the effect of preferably taking pictures is presented Fruit.Wherein.Calculating the time for exposure is exactly AE algorithm among these, can specifically preset ambient light intensity in memory and expose Between light time and the corresponding relationship of sensitivity, after getting ambient light intensity, by inquiring preset corresponding relationship, obtain Time for exposure and sensitivity with current environment light intensity.
Time for exposure herein also is understood as aperture time or shutter number.It is right in alternatively possible implementation It can also be by the user for having certain professional knowledge that takes pictures be configured or be adjusted in the first time for exposure and the first sensitivity.
S102 obtains user and the longest of terminal at steady state is maintained to keep steady the time.
Stable state herein, when referring to user's handheld terminal, jitter amplitude maintains one to terminal within a certain period of time State within tentering degree.The parameter setting of time and amplitude can be configured or be customized by the user by manufacturer terminal.And longest is held The steady time, then it represents that user can be always maintained at terminal within this section of continuous time and be in stable state.
This step can the progress when user takes pictures, for example, user start camera applications after, terminal just start obtain longest It keeps steady the time;Alternatively, this step can also carry out individual longest and keep steady time test, for example, terminal can according to user's operation User's test initiation command is received, test is opened, longest is obtained and keeps steady the time.Specifically in test, can repeatedly it be tested It is averaged after removal exceptional value.Exceptional value herein refers to significantly greater or significantly smaller relative to most of test datas Data.Before test, since terminal may be used by multiple users, identity first can also be carried out to test user and tested Card and identity record, and the result of test is subjected to corresponding association and storage with user identity, so as to different user using terminal When taking pictures, the data of the corresponding user is called take pictures the adjustment of parameter.
S103, judges whether longest time that keeps steady is greater than first time for exposure.If so, thening follow the steps S104。
S104 adjusts the time for exposure taken pictures and sensitivity, is taken pictures using the second time for exposure and the second sensitivity.
Wherein, second time for exposure is not less than first time for exposure, and second sensitivity is no more than described First sensitivity.
That is, if longest keeps steady, the time was greater than for the first time for exposure, illustrated that active user can compare for a long time really It protects terminal and is in stable state, accordingly, with respect to the first time for exposure that initial calculation obtains, real exposure time can prolong It is long, meanwhile, without using original higher first sensitivity.In this way, stablizing for may insure that the terminal long period is in User under state can promote photographic quality by adjusting time for exposure and sensitivity.For example, initially being counted under current environment The the first time for exposure, that is, aperture time calculated is 250 milliseconds, and the first ISO is 800, but when being kept steady due to the maximum of active user Between be 500 milliseconds, then 250-500 milliseconds of the second time for exposure can be used, while adaptively according to the second time for exposure Calculate or match the 2nd ISO lower than 800.
In alternatively possible implementation, if the longest keeps steady, the time is less than first time for exposure, makes It is taken pictures with first time for exposure and first sensitivity.First time for exposure and the first sensitivity are by terminal root It is calculated according to current environment light intensity, meets the demand of taking pictures under current environment.
In alternatively possible implementation, when keeping steady the time slightly larger than the first time for exposure for longest, such as most The long time that keeps steady is 250.1 milliseconds, and the first time for exposure was 250 milliseconds, and the second exposure can be arranged in strict accordance with aforesaid way Time and the second sensitivity " are slightly larger than " herein alternatively, also can be directly used for the first time for exposure and the first sensitivity is taken pictures Permission difference can based on experience value or simulation result is defined.
It should be noted that in another possible implementation, the first exposure is far smaller than for longest time that keeps steady The case where between light time namely active user maintain the time of terminal at steady state extremely short, under normal operating condition generally Older elder user is since physical reason may occur that, when then can further reduce exposure at this time Between, photographic quality is sacrificed to improve image definition.
The optical anti-vibration technology being commonly used when in addition, taking pictures for existing terminal mainly passes through the top in camera lens Spiral shell instrument detects small movement, and signal can be reached to microprocessor and calculate the displacement for needing to compensate immediately, then passes through Lens set is compensated, is compensated according to the jitter direction of camera lens and displacement, to effectively overcome the vibration generation because of camera Image blur.But its device for needing to configure optical anti-vibration first, this will increase the cost of camera, completely general And;Secondly optical anti-vibration can not be fully solved stabilization problem, and the time for exposure is more than that certain time length also will appear photo mould The problem of paste.And the technical solution of the application does not conflict with optical anti-vibration technology, the technical solution of the application can combine light Stabilization technology is learned using improving photographic quality.
In the present embodiment, the longest of terminal at steady state is maintained to keep steady the time by obtaining user, and by longest The time keep steady compared with the first time for exposure that terminal under current environment light intensity is calculated, the tune when the former is greater than the latter The time for exposure and sensitivity that beat shines use second time for exposure bigger than the first time for exposure and the than being calculated Smaller second sensitivity of one sensitivity is taken pictures.The individual character of active user can be matched sufficiently to adjust ginseng of taking pictures Number, promotes the effect of taking pictures of terminal, and can be compatible with optical anti-vibration function used in existing terminal, extends the function of terminal Energy and applicability, improve the experience of taking pictures of user, the photograph for meeting the better quality of self-condition are taken conducive to different users Piece.
Referring to FIG. 2, the flow diagram for the method that another kind provided by the invention is taken pictures.In the present embodiment, described Method includes:
S201 calculates to obtain the first time for exposure and the first sensitivity according to current environment light intensity.
Following steps S202-S204 is discussed in detail acquisition user and the longest of terminal at steady state is maintained to keep steady the time;
S202 acquires the user using the terminal and carries out focusing to the shake data for pressing shutter.
Specifically, shake data can be the ratio of jitter amplitude and time, can be used for characterizing terminal in unit Interior maximal jitter amplitude.It is also possible to angular speed of the terminal within the unit time.The specific size of unit time can be by Manufacturer terminal is arranged or is customized by the user, and the embodiment of the present invention is not limited in any way.And jitter amplitude can be by terminal Acceleration transducer be measured in real time and acquire.As any side of user's handheld terminal on solid space in the unit time When causing terminal to be subjected to displacement variation to generation shake, acceleration transducer can detecte displacement variable and end be calculated The deviation angle or Oscillation Amplitude at end, the deviation angle or Oscillation Amplitude of using terminal characterize the jitter amplitude of user.For example, When terminal is taken pictures, vertical or horizontal shifting distance can be considered as Oscillation Amplitude for characterizing the shake width of user up and down Degree, and when end level or vertical rotary, then it can be considered as deviation angle for characterizing the jitter amplitude of user.Alternatively, can also To detect the angular speed of terminal by acceleration transducer, by angular speed of the terminal within the unit time as the shake of user Data.
When the displacement variable that acceleration transducer detects is 0, terminal does not have any offset, is in stable state, But in practical application, small displacement variable is minimum to influential effect of taking pictures, therefore, small change in displacement is caused Reduced jitter amplitude can ignore, still it is considered that terminal is in stable state.For example, can be set as 50 millis the unit time Second, the jitter amplitude of acceleration transducer acquisition terminal can be passed through in 50 milliseconds.When user's handheld terminal is taken pictures, if eventually It holds the maximal jitter amplitude within the unit time smaller, image definition is influenced smaller.The maximum jitter width such as in 50 milliseconds Degree then illustrates that user keeps steady terminal within the unit time, terminal is in stable state less than 0.5 degree;If terminal is in unit Maximal jitter amplitude in time is larger, is affected to image definition.Maximal jitter amplitude is greater than 3 such as in 50 milliseconds Degree then illustrates that user does not keep steady terminal within the unit time, and terminal is in unsteady state.
It is alternatively possible to which acquisition shake data can be removed to improve accuracy when user takes pictures with multi collect It is averaged after exceptional value, exceptional value herein refers to the number significantly greater or significantly smaller relative to most of test datas According to.Collection process can also be completed by independent process, such as configure test application, and user prompts user after opening test application Test shake data, repeatedly removal exceptional value is averaged after test, using the average value as the shake data of the user.
The shake data are compared by S203 with preset threshold.
Preset threshold herein can be arranged by manufacturer terminal such as can be set to 1.8 degree/50 milliseconds or other numerical value, It can be customized by the user.For example, when it is 1.8 degree/50 milliseconds that preset threshold, which is arranged, if collecting terminal in 50 milliseconds Maximal jitter amplitude is 1.6 degree, then 1.6 degree/50 milliseconds are less than preset threshold, if the maximum of collected terminal is trembled in 50 milliseconds Dynamic amplitude is 2 degree, then 2 degree/50 milliseconds are greater than preset threshold.
S204, when the shake data are lower than the preset threshold, the terminal is in stable state, counts the end End keeps steady the time in the longest of stable state.
For example, keeping steady within first 50 milliseconds of the time when start to obtain longest, collected shake data are 1.6 / 50 milliseconds of degree, preset threshold are 1.8 degree/50 milliseconds, then in first 50 milliseconds, the maximal jitter amplitude of terminal is explanation 1.6 degree, less than 1.8 degree, image definition is influenced smaller, it is believed that terminal is in stable state in this 50 milliseconds, by this 50 milliseconds are considered as the time that keeps steady.Then continue to judge in second 50 milliseconds, if second 50 milliseconds are also at stable state, Illustrate that this continuous 100 milliseconds are the time that keeps steady, continuous judgement is accumulative until terminal is in unstable in 50 milliseconds of n-th State, N are the integer more than or equal to 1, and the longest that * 50 milliseconds of final available (N-1) keeps steady the time.
S205 judges whether longest time that keeps steady is greater than first time for exposure.If so, S206 is thened follow the steps, It is no to then follow the steps S207.
S206 adjusts the time for exposure taken pictures and sensitivity, is taken pictures using the second time for exposure and the second sensitivity.
Wherein, second time for exposure is greater than first time for exposure, and second sensitivity is less than described first Sensitivity.
S207 is taken pictures using first time for exposure and first sensitivity.
In the present embodiment, it has been described in detail and obtains longest and keep steady the mode of time, by the way that data and default threshold will be shaken Value compares, and can determine that terminal is in stable state when shaking data and being lower than preset threshold, count it and be in stable state Under longest keep steady the time, statistical result is more accurate, can it is good embody terminal shake, be conducive to it is subsequent to exposure The adjustment of time and sensitivity obtain the photo of better quality.
Referring to FIG. 3, the flow diagram of another method taken pictures provided by the invention.In the present embodiment, described Method includes:
S301 prompts the user to keep steady the terminal when the user takes a.
It by prompt, can prompt the user for lacking professional knowledge of taking pictures that terminal is kept to be in stable state as far as possible, be conducive to It keeps steady the time to accurate maximum, conducive to clear photograph is taken.
Step S302-S305 may refer to step S201-S204, and details are not described herein again.
S306, judges whether longest time that keeps steady is greater than first time for exposure.If so, thening follow the steps S307-S309, it is no to then follow the steps S310.
S307, the second time for exposure of adjusting are equal to the longest and keep steady the time.
Since the longest of active user keeps steady the time greater than the first time for exposure, illustrate terminal in current environment light intensity Under within time for exposure for being calculated, user can keep terminal to be in stable state, in order to improve photographic quality, can make It is taken pictures with lower sensitivity, needs prolonging exposure time at this time, and optimal time for exposure, that is, user can keep eventually The longest of end stable state keeps steady the time.
S308, according to the product of first time for exposure and first sensitivity, then when keeping steady divided by the longest Between obtain the second sensitivity.
For example, the first time for exposure was 250 milliseconds, ISO 800, user's maximum time that keeps steady is 500 milliseconds, then can be with Calculating the second sensitivity is (250*800)/500=400.
S309 is taken pictures using second time for exposure and the second sensitivity.
S310 is taken pictures using first time for exposure and first sensitivity.
In the present embodiment, the mode for adjusting time for exposure and sensitivity has been described in detail, by by the second time for exposure It is adjusted to maximum to keep steady the time, and calculates the second sensitivity according to the first time for exposure, the first sensitivity and maximum time that keeps steady, So that the parameter of taking pictures used of finally taking pictures is most suitable for active user, what available current environment active user can shoot The photo of better quality.
Referring to FIG. 4, be a kind of composition schematic diagram of terminal provided in an embodiment of the present invention, it is in the present embodiment, described Terminal includes:
Computing unit 100 obtains the first time for exposure and the first sensitivity for calculating according to current environment light intensity;
Acquiring unit 200 maintains the longest of terminal at steady state to keep steady the time for obtaining user;
Judging unit 300, for judging whether longest time that keeps steady is greater than first time for exposure;
Photographing unit 400 adjusts the exposure taken pictures if keeping steady the time greater than first time for exposure for the longest Between light time and sensitivity, taken pictures using the second time for exposure and the second sensitivity;
Wherein, second time for exposure is not more than first time for exposure, and second sensitivity is not less than described First sensitivity.
Optionally, if the longest keeps steady, the time is less than first time for exposure, and the photographing unit 400 uses institute It stated for the first time for exposure and first sensitivity is taken pictures.
Optionally, the acquiring unit 200 is specifically used for:
It acquires the user and carries out focusing to the shake data for pressing shutter using the terminal;
The shake data are compared with preset threshold;
When the shake data are lower than the preset threshold, the terminal is in stable state, counts at the terminal It keeps steady the time in the longest of stable state.
Optionally, the photographing unit 400 is specifically used for:
If the longest keeps steady, the time is greater than first time for exposure, adjusts second time for exposure equal to described Longest keeps steady the time;
It is obtained according to the product of first time for exposure and first sensitivity, then divided by longest time that keeps steady Second sensitivity.
Referring to FIG. 5, for the composition schematic diagram of another terminal provided in an embodiment of the present invention, in the embodiment of the present invention In, compared with embodiment illustrated in fig. 6, the terminal further include:
Prompt unit 500, for when the user takes pictures, prompting the user to keep steady the terminal.
It should be noted that the above computing unit 100, acquiring unit 200, judging unit 300 and photographing unit 400 can be with It is individually present, also can integrate setting, and computing unit 100, acquiring unit 200, judging unit 300 in the above terminal embodiment Or photographing unit 400 can be separately provided independently of the processor of terminal in the form of hardware, and form is arranged and can be micro- place Manage the form of device;It can also be embedded in the form of hardware in the processor of terminal, terminal can also be stored in a software form In memory, in order to the processor of terminal call execute above computing unit 100, acquiring unit 200, judging unit 300 and The corresponding operation of photographing unit 400.
For example, photographing unit 400 can be for eventually in the second embodiment (embodiment shown in fig. 5) of terminal of the present invention The processor at end, and the function of computing unit 100, acquiring unit 200 and judging unit 300 can be embedded in the processor, It can also be separately provided, can also be stored in memory in the form of software independently of processor, be called and realized by processor Its function.The above processor can be central processing unit (CPU), microprocessor, single-chip microcontroller etc..
Fig. 6 is please referred to, is the composition schematic diagram of another terminal provided in an embodiment of the present invention, in the embodiment of the present invention In, the terminal includes:
Processor 1101, memory 1102, camera 1103, acceleration transducer 1104, display screen 1105, interface circuit 1106 and bus 1107, the processor 1101, memory 1102, camera 1103, acceleration transducer 1104, display screen 1105 and interface circuit 1106 connected by the bus 1107 and complete mutual communication, wherein the camera 1103 For taking pictures, the acceleration transducer 1104 is used to incude shake when user holds the terminal, and acquires shake receipt It is sent to the processor 1101, the display screen 1105 is for human-computer interaction and display shooting picture, the memory 1102 It is used to store a set of program code, the processor 1101 is held for calling the program code stored in the memory 1102 The following operation of row:
Environment light intensity is incuded by the camera 1103, is calculated to obtain the first exposure according to current environment light intensity Between light time and the first sensitivity;
Obtaining user maintains the longest of terminal at steady state to keep steady the time;
Judge whether longest time that keeps steady is greater than first time for exposure;
If the longest keeps steady, the time is greater than first time for exposure, adjusts the time for exposure taken pictures and sensitivity, It is taken pictures using the second time for exposure and the second sensitivity;
Wherein, second time for exposure is greater than first time for exposure, and second sensitivity is less than described first Sensitivity.
Optionally, if the longest keeps steady, the time is less than first time for exposure, and the processor 1101 is also used to Indicate that the camera 1103 is taken pictures using first time for exposure and first sensitivity.
Optionally, obtain user maintain the longest of terminal at steady state keep steady the time when, the processor 1101 It is specifically used for:
The user, which is acquired, by the acceleration transducer 1104 carries out focusing to pressing shutter using the terminal Shake data;
The shake data are compared with preset threshold;
When the shake data are lower than the preset threshold, the terminal is in stable state, counts at the terminal It keeps steady the time in the longest of stable state.
Optionally, if the longest keeps steady, the time is greater than first time for exposure, and the processor 1101 is specifically used In:
Adjusting second time for exposure keeps steady the time equal to the longest;
It is obtained according to the product of first time for exposure and first sensitivity, then divided by longest time that keeps steady Second sensitivity.
Optionally, when the user takes pictures, the processor 1101 is also used to prompt institute by the display screen 1105 User is stated to keep steady the terminal.
It should be noted that processor 1101 here can be a processor, it is also possible to multiple processing elements It is referred to as.For example, the processor can be central processing unit (Central Processing Unit, CPU), it is also possible to specific Integrated circuit (Application Specific Integrated Circuit, ASIC), or be arranged to implement this hair One or more integrated circuits of bright embodiment, such as: one or more microprocessors (digital signal Processor, DSP), or, one or more field programmable gate array (Field Programmable Gate Array, FPGA)。
It should be noted that memory 1102 can be a storage device, it is also possible to the general designation of multiple memory elements, And may include random access memory (RAM), it also may include nonvolatile memory (non-volatile memory), such as Magnetic disk storage, flash memory (Flash) etc..Memory 1102 can mainly include store instruction area and storage data area.Wherein, it stores It instruction area can storage program area, the instruction that can be executed by processor 1101 etc.;Storage data area can be used for what storage was got Longest keep steady the time and with the collected preset threshold etc. that is compared of shake data.Bus 1106 can be industrial standard Architecture (Industry Standard Architecture, ISA) bus, external equipment interconnection (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc..The bus 1107 can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, Fig. 6, it is not intended that an only bus or a type of bus.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is all differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place referring to The part of embodiment of the method illustrates.
Description through the foregoing embodiment, the embodiment of the present invention maintain terminal at steady state most by obtaining user Length keeps steady the time, and longest is kept steady the first time for exposure ratio that terminal under time and current environment light intensity is calculated Compared with the time for exposure and sensitivity that adjusting is taken pictures when the former is greater than the latter use second exposure bigger than the first time for exposure It takes pictures between light time with the second sensitivity more smaller than the first sensitivity.The individual character that active user can sufficiently be matched comes Adjusting is taken pictures parameter, promotes the effect of taking pictures of terminal, and can be compatible with optical anti-vibration function used in existing terminal, is extended The function and applicability of terminal, improve the experience of taking pictures of user, taken conducive to different users meet self-condition compared with The photo of good quality.By the way that data will be shaken compared with preset threshold, can determine when shaking data and being lower than preset threshold Terminal is in stable state, counts the longest that it is under stable state and keeps steady the time, and statistical result is more accurate, can be with The good shake for embodying terminal obtains the photo of better quality conducive to the subsequent adjustment to time for exposure and sensitivity.Pass through Second time for exposure was adjusted to maximum to keep steady the time, and is kept steady the time according to the first time for exposure, the first sensitivity and maximum The second sensitivity is calculated, so that the parameter of taking pictures used of finally taking pictures is most suitable for active user, available current environment is current The photo for the better quality that user can shoot.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
It is provided for the embodiments of the invention a kind of method taken pictures above and terminal is described in detail, answers herein With a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to help to manage Solve method and its core concept of the invention;At the same time, for those skilled in the art, according to the thought of the present invention, There will be changes in specific embodiment and application range, in conclusion the content of the present specification should not be construed as to this hair Bright limitation.

Claims (16)

1. a kind of method taken pictures characterized by comprising
It is calculated to obtain the first time for exposure and the first sensitivity according to current environment light intensity;
Obtaining user maintains the longest of terminal at steady state to keep steady the time;
Judge whether longest time that keeps steady is greater than first time for exposure;
If the longest keeps steady, the time is greater than first time for exposure, adjusts the time for exposure taken pictures and sensitivity, uses Second time for exposure and the second sensitivity are taken pictures;
Wherein, second time for exposure is not less than first time for exposure, and second sensitivity is not more than described first Sensitivity.
2. the method according to claim 1, wherein when if the longest keeps steady, the time is less than the described first exposure Between, then it is taken pictures using first time for exposure and first sensitivity.
3. the method according to claim 1, wherein the acquisition user maintains terminal at steady state most Length keeps steady the time, comprising:
It acquires the user and carries out focusing to the shake data for pressing shutter using the terminal;
The shake data are compared with preset threshold;
When the shake data are lower than the preset threshold, the terminal is in stable state, counts the terminal and is in steady The longest for determining state keeps steady the time.
4. the method according to claim 1, wherein
If the longest keeps steady, the time is greater than first time for exposure, adjusts second time for exposure equal to the longest It keeps steady the time;
According to the product of first time for exposure and first sensitivity, then divided by the longest keep steady the time obtain it is described Second sensitivity.
5. method according to claim 1-4, which is characterized in that further include:
When the user takes pictures, the user is prompted to keep steady the terminal.
6. a kind of terminal characterized by comprising
Computing unit obtains the first time for exposure and the first sensitivity for calculating according to current environment light intensity;
Acquiring unit maintains the longest of terminal at steady state to keep steady the time for obtaining user;
Judging unit, for judging whether longest time that keeps steady is greater than first time for exposure;
Photographing unit adjusts the time for exposure taken pictures if keeping steady the time greater than first time for exposure for the longest And sensitivity, it is taken pictures using the second time for exposure and the second sensitivity;
Wherein, second time for exposure is not more than first time for exposure, and second sensitivity is not less than described first Sensitivity.
7. terminal according to claim 6, which is characterized in that when if the longest keeps steady, the time is less than the described first exposure Between, then the photographing unit is taken pictures using first time for exposure and first sensitivity.
8. terminal according to claim 6, which is characterized in that the acquiring unit is specifically used for:
It acquires the user and carries out focusing to the shake data for pressing shutter using the terminal;
The shake data are compared with preset threshold;
When the shake data are lower than the preset threshold, the terminal is in stable state, counts the terminal and is in steady The longest for determining state keeps steady the time.
9. terminal according to claim 6, which is characterized in that the photographing unit is specifically used for:
If the longest keeps steady, the time is greater than first time for exposure, adjusts second time for exposure equal to the longest It keeps steady the time;
According to the product of first time for exposure and first sensitivity, then divided by the longest keep steady the time obtain it is described Second sensitivity.
10. according to the described in any item terminals of claim 6-9, which is characterized in that the terminal further include:
Prompt unit, for when the user takes pictures, prompting the user to keep steady the terminal.
11. a kind of terminal characterized by comprising
Processor, memory, camera, acceleration transducer, display screen, interface circuit and bus, the processor, storage Device, camera, acceleration transducer, display screen and interface circuit connect by the bus and complete mutual communication, In, for taking pictures, the acceleration transducer is used to incude shake when user holds the terminal camera, and acquires Shake receipt is sent to the processor, and the display screen is used for for human-computer interaction and display shooting picture, the memory Batch processing code is stored, the processor is for calling the program code stored in the memory, the following operation of execution:
Incude environment light intensity by the camera, according to current environment light intensity calculate to obtain the first time for exposure and First sensitivity;
Obtaining user maintains the longest of terminal at steady state to keep steady the time;
Judge whether longest time that keeps steady is greater than first time for exposure;
If the longest keeps steady, the time is greater than first time for exposure, adjusts the time for exposure taken pictures and sensitivity, uses Second time for exposure and the second sensitivity are taken pictures;
Wherein, second time for exposure is not more than first time for exposure, and second sensitivity is not less than described first Sensitivity.
12. terminal according to claim 11, which is characterized in that if the longest keeps steady, the time is less than first exposure Time, then the processor is also used to indicate that the camera is carried out using first time for exposure and first sensitivity It takes pictures.
13. terminal according to claim 11, which is characterized in that maintain terminal at steady state most obtaining user It is long keep steady the time when, the processor is specifically used for:
The user, which is acquired, by the acceleration transducer carries out focusing to the shake data for pressing shutter using the terminal;
The shake data are compared with preset threshold;
When the shake data are lower than the preset threshold, the terminal is in stable state, counts the terminal and is in steady The longest for determining state keeps steady the time.
14. terminal according to claim 11, which is characterized in that if the longest keeps steady, the time is greater than first exposure Time, then the processor is specifically used for:
Adjusting second time for exposure keeps steady the time equal to the longest;
According to the product of first time for exposure and first sensitivity, then divided by the longest keep steady the time obtain it is described Second sensitivity.
15. the described in any item terminals of 1-14 according to claim 1, which is characterized in that
When the user takes pictures, the processor is also used to the terminal that keeps steady by the display screen prompt user.
16. a kind of non-volatile computer readable storage medium storing program for executing for storing one or more programs, which is characterized in that one Or multiple programs include instruction, described instruction makes the processor execute following event when being executed by a processor:
It is calculated to obtain the first time for exposure and the first sensitivity according to current environment light intensity;
Obtaining user maintains the longest of terminal at steady state to keep steady the time;
Judge whether longest time that keeps steady is greater than first time for exposure;
If the longest keeps steady, the time is greater than first time for exposure, adjusts the time for exposure taken pictures and sensitivity, uses Second time for exposure and the second sensitivity are taken pictures;
Wherein, second time for exposure is not less than first time for exposure, and second sensitivity is not more than described first Sensitivity.
CN201680017675.4A 2016-06-17 2016-06-17 A kind of method and terminal taken pictures Active CN107852455B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/086230 WO2017214977A1 (en) 2016-06-17 2016-06-17 Photographing method and terminal

Publications (2)

Publication Number Publication Date
CN107852455A CN107852455A (en) 2018-03-27
CN107852455B true CN107852455B (en) 2019-07-19

Family

ID=60662835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680017675.4A Active CN107852455B (en) 2016-06-17 2016-06-17 A kind of method and terminal taken pictures

Country Status (2)

Country Link
CN (1) CN107852455B (en)
WO (1) WO2017214977A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114449164B (en) * 2021-12-27 2023-07-18 广州极飞科技股份有限公司 Photographing method and device, unmanned equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241294A (en) * 2007-02-06 2008-08-13 亚洲光学股份有限公司 Camera shooting control method and its device
CN102457675A (en) * 2010-10-27 2012-05-16 展讯通信(上海)有限公司 Image shooting anti-shaking manner for handheld camera equipment
CN102801915A (en) * 2012-08-28 2012-11-28 广东欧珀移动通信有限公司 Automatic photo-taking method of handheld device
CN104601882A (en) * 2014-12-30 2015-05-06 广东欧珀移动通信有限公司 Panorama-shot method and terminal
CN105657273A (en) * 2016-02-19 2016-06-08 广东欧珀移动通信有限公司 Method for setting safety shutter time, device and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101417816B1 (en) * 2008-03-06 2014-07-09 삼성전자주식회사 Apparatus for Photographing Digital Images, Method of Controlling Exposure, Method of Photographing Digital Images, and Computer Readable Recording Medium Storing Program for the Same Method of Photographing
CN101895783A (en) * 2009-05-18 2010-11-24 华晶科技股份有限公司 Detection device for stability of digital video camera and digital video camera
CN102055899B (en) * 2009-11-11 2012-09-19 华晶科技股份有限公司 Digital image device and personalized safe shutter value setting method thereof
CN103051841B (en) * 2013-01-05 2016-07-06 小米科技有限责任公司 The control method of time of exposure and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241294A (en) * 2007-02-06 2008-08-13 亚洲光学股份有限公司 Camera shooting control method and its device
CN102457675A (en) * 2010-10-27 2012-05-16 展讯通信(上海)有限公司 Image shooting anti-shaking manner for handheld camera equipment
CN102801915A (en) * 2012-08-28 2012-11-28 广东欧珀移动通信有限公司 Automatic photo-taking method of handheld device
CN104601882A (en) * 2014-12-30 2015-05-06 广东欧珀移动通信有限公司 Panorama-shot method and terminal
CN105657273A (en) * 2016-02-19 2016-06-08 广东欧珀移动通信有限公司 Method for setting safety shutter time, device and mobile terminal

Also Published As

Publication number Publication date
CN107852455A (en) 2018-03-27
WO2017214977A1 (en) 2017-12-21

Similar Documents

Publication Publication Date Title
JP7371081B2 (en) Night view photography methods, devices, electronic devices and storage media
RU2769759C1 (en) Mobile photography terminal
CN109218628B (en) Image processing method, image processing device, electronic equipment and storage medium
WO2020038109A1 (en) Photographing method and device, terminal, and computer-readable storage medium
CN108933899B (en) Panorama shooting method, device, terminal and computer readable storage medium
US11368615B2 (en) Modifying image parameters using wearable device input
CN110191291B (en) Image processing method and device based on multi-frame images
CN109194882B (en) Image processing method, image processing device, electronic equipment and storage medium
CN104702824B (en) The control method of camera device and camera device
WO2017096866A1 (en) Method and apparatus for generating high dynamic range image
CN109218627A (en) Image processing method, device, electronic equipment and storage medium
CN113411498B (en) Image shooting method, mobile terminal and storage medium
CN105516611A (en) An imaging device and a shooting method
CN109361853B (en) Image processing method, image processing device, electronic equipment and storage medium
CN104104870B (en) Filming control method, imaging control device and capture apparatus
CN105391940B (en) A kind of image recommendation method and device
EP3301906A1 (en) Method for processing image and electronic device supporting the same
CN106303243A (en) A kind of photographic method, device and terminal
CN108683859A (en) It takes pictures optimization method, device, storage medium and terminal device
CN107852455B (en) A kind of method and terminal taken pictures
CN112351197B (en) Shooting parameter adjusting method and device, storage medium and electronic equipment
JP2014103643A (en) Imaging device and subject recognition method
CN107736009A (en) Operation method, operation program and filming apparatus
KR20170011876A (en) Image processing apparatus and method for operating thereof
US9930267B2 (en) Image pickup apparatus that automatically generates time-lapse moving image, moving image generation method, and storage medium

Legal Events

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