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

A kind of method and terminal taken pictures Download PDF

Info

Publication number
CN107852455A
CN107852455A CN201680017675.4A CN201680017675A CN107852455A CN 107852455 A CN107852455 A CN 107852455A CN 201680017675 A CN201680017675 A CN 201680017675A CN 107852455 A CN107852455 A CN 107852455A
Authority
CN
China
Prior art keywords
time
exposure
terminal
sensitivity
longest
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201680017675.4A
Other languages
Chinese (zh)
Other versions
CN107852455B (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:Calculated to obtain the first time for exposure and the first sensitivity (S101) according to current environment light intensity;Obtaining user maintains when taking pictures terminal at steady state most long to keep steady the time (S102);Then judge most to grow whether time that keeps steady is more than the first time for exposure (S103);If the most long time that keeps steady was more than for the first time for exposure, the time for exposure taken pictures and sensitivity are adjusted, 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.So can according to user's individual difference, adaptively adjustment be taken pictures parameter, lifting terminal is taken 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., very big help can be provided for people's lives, work, study and amusement.Especially at aspect of taking pictures, quickly, for camera, terminal is generally configured with better portability for the performance boost of terminal.Therefore, under most of scenes, user prefers using terminal and takes pictures.The quality of photo depends not only on the performance of taking pictures of terminal, also closely bound up with the parameter of taking pictures of use.For example, time for exposure and sensitivity etc..Wherein, the time for exposure is the time to be opened of shutter in order to project light on the photosurface of sensitive photographic material.Depending on the sensitivity of sensitive photographic material and to the illumination on photosurface.Shutter is the device for being used to control the light irradiation photosensitive element time in apparatus for making a video recording.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, and manufactures the standard of film speed in egative film industry.Quantization regulation has been done to sensitivity by International Organization for standardization (International Standardization Organization, abbreviation ISO).It to compared with low sensitivity egative film, that is, lower egative film of sensitivity, 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.The higher egative film of egative film, that is, sensitivity compared with high sensitive is known as quick egative film.Since the higher egative film of sensitivity is generally configured with thicker egative film particle or higher image noise; therefore either numerical digit or egative film are photographed; it is more compared with the noise that the egative film of high sensitivity normally results in photo in order to reduce time for exposure relative usage, it is second-rate.
Since user is when handheld terminal is taken pictures, hand is not stable always.Blurred image will be taken when handshaking.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 it is handshaking influenced it is bigger, it is easier to take blurred image.At this moment, the time for exposure generally is reduced by promoting ISO value, avoids blurring of photos.But photographic quality will be reduced in this way.In fact, it is had differences between user's individual, as old man, child and a middle-aged person compare, or ordinary user and Professional Photography fan comparison etc., the stable time can be kept to be different when their handheld terminals, therefore, parameter of taking pictures identical for all user settings is taken pictures, and is unable to get the photo for the better quality that active user can shoot.
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.It is taken pictures with solving terminal parameter of taking pictures identical for all user settings, 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, 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 first sensitivity.
The longest of terminal at steady state is maintained to keep steady the time by obtaining user, and longest is kept steady into the time compared with the first time for exposure that terminal under current environment light intensity is calculated, the time for exposure taken pictures and sensitivity are adjusted when the former is greater than the latter, are taken pictures using the second bigger time for exposure and smaller second sensitivity.The individual character of active user can sufficiently be matched to adjust parameter of taking pictures, promote the effect of taking pictures of terminal, and it can be compatible with optical anti-vibration function used in existing terminal, extend the function and applicability of terminal, the experience of taking pictures of user is improved, the photo for meeting the better quality of self-condition is taken conducive to different users.
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 taken pictures using first time for exposure and first sensitivity.
When longest keeps steady the time less than the first time for exposure, it can be used that terminal initial was calculated for the first time for exposure and the first sensitivity is calculated, 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 the longest of terminal at steady state to keep 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 the longest of stable state and keeps steady the time.
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 it is good embody terminal shake obtain 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, adjusts second time for exposure and keeps steady the time equal to the longest;
Second sensitivity is obtained according to the product of first time for exposure and first sensitivity, then divided by longest time that keeps steady.
It is kept steady the time by the way that the second time for exposure was adjusted to maximum, and the second sensitivity is calculated 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, the photo for the better quality that available 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 the 4th kind of possible implementation of first aspect, 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, keep steady the time conducive to accurate maximum is obtained, conducive to clear photograph is taken.
With reference to first aspect, in the 5th kind of possible implementation of first aspect, the longest of terminal at steady state is maintained to keep steady before the time obtaining user, 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, longest time that keeps steady with user identity is associated and is saved;
When taking pictures next time, authentication calls corresponding longest to keep steady the time compared with first time for exposure after passing through.
By the step of combining authentication, the demand that multi-user's using terminal is taken pictures can satisfy, different longests is got for different user keep steady and the time and be saved in order to subsequent calls and directly use, can further promote the applicability of terminal 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 is adjusted the time for exposure taken pictures and sensitivity, is taken pictures using the second time for exposure and the second sensitivity if keeping steady the time greater than first time for exposure for the longest;
Wherein, second time for exposure is not more than first time for exposure, and second sensitivity is not less than 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 each possible embodiment and brought beneficial effect of above-mentioned first aspect and first aspect, therefore the implementation of the terminal may refer to the implementation of method, and 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, memory, camera, acceleration transducer, display screen is connected by the bus with interface circuit and completes mutual communication, wherein, the camera is for taking pictures, the acceleration transducer is used to incude shake when user holds the terminal, and it acquires shake receipt and is sent to the processor, the display screen is for human-computer interaction and display shooting picture, the memory is used to store a set of program code, the processor is for calling the program code stored in the memory, execute following operation:
Environment light intensity is incuded by the camera, 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, 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 first sensitivity.
The scheme in method design that the processor calls the instruction of storage in the memory to realize above-mentioned first aspect, the embodiment and beneficial effect solved the problems, such as due to the terminal may refer to each possible embodiment and beneficial effect of above-mentioned first aspect and first aspect, therefore the implementation of the terminal may refer to the implementation of method, and overlaps will not be repeated.
Fourth aspect, the embodiment of the invention provides a kind of computer storage medium, the computer storage is situated between Matter includes batch processing code, for executing the method as described in first aspect of the embodiment of the present invention and first aspect and first aspect each possible embodiment.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, the drawings to be used in the embodiments are briefly described below, apparently, drawings in the following description are only some embodiments of the invention, for those of ordinary skill in the art, without creative efforts, it is also possible to obtain other drawings based on these 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 scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, every other embodiment obtained by those of ordinary skill in the art without making creative efforts, 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), mobile station (Mobile Station, MS), mobile terminal (Mobile Terminal, MT), computer, microcomputer etc..The terminal can be through wireless access network (Radio Access Network, RAN it) is communicated with one or more core net, such as, terminal can be mobile phone (or being " honeycomb " phone), computer with mobile terminal etc., such as, terminal can also be portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device, they exchange voice and/or data with wireless access network.The present invention does not limit this, such as terminal further includes having the terminal of the access in radio of multiple-bearer feature.Description and claims of this specification and term " first " in above-mentioned attached drawing, " second " and " third " etc. are for distinguishing different objects, not for description particular order.In addition, term " includes " and " having " and their any deformations, it is intended that cover and non-exclusive include.Such as contain series of steps Or the process, method, system, product or equipment of unit are not limited to listed step or unit, but optionally further comprising the step of not listing or unit, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referring to FIG. 1, a kind of flow diagram of method taken pictures provided by the invention.In the present embodiment, which comprises
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, the time for exposure is usually long under half-light environment, sensitivity is also relatively high, and obtained photograph quality is poor, and under the preferable environment of light, the time for exposure can shorten, and sensitivity can also be lower, the available preferable photo of quality.Therefore, when user opens camera applications, when Yao Jinhang takes pictures, terminal the first time for exposure and the first sensitivity under suitable current environment light intensity can be calculated using preset algorithm according to the difference of current environment light intensity.For example, relatively common 3A digital imaging technology, that is, auto-focusing (AF), automatic exposure (AE) and automatic white balance (AWB).It makes use of AF auto-focusing algorithm, AE automatic exposure algorithm and AWB automatic white balance algorithms to realize maximum picture contrast, improvement main body subject overexposure or under-exposed situation, compensate color difference of the picture under the irradiation of different light, so that the image information compared with high image quality be presented.It can be good at ensureing image accurately color rendition degree using the camera of 3A digital imaging technology, effect of preferably taking pictures be presented.Wherein.Calculating the time for exposure is exactly AE algorithm among these, the corresponding relationship of ambient light intensity Yu time for exposure and sensitivity can be specifically preset in memory, after getting ambient light intensity, by inquiring preset corresponding relationship, time for exposure and the sensitivity of matching current environment light intensity are obtained.
Time for exposure herein also is understood as aperture time or shutter number.It, can also be by the user for having certain professional knowledge that takes pictures be configured or be adjusted for the first time for exposure and the first sensitivity in alternatively possible implementation.
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 the state within certain amplitude to terminal within a certain period of time.The parameter setting of time and amplitude can be configured or be customized by the user by manufacturer terminal.And longest keeps steady the 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 keep steady the time;Alternatively, this step can also carry out individual longest and keep steady according to user's operation Time test opens test for example, terminal can receive user's test initiation command, obtains longest and keeps steady the time.Specifically in test, it can carry out being averaged after repeatedly testing removal exceptional value.Exceptional value herein refers to the data significantly greater or significantly smaller relative to most of test datas.Before test, since terminal may be used by multiple users, therefore authentication and identity record first can also be carried out to test user, and the result of test is subjected to corresponding association and storage with user identity, when taking pictures so as to different user using terminal, 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 not more than first sensitivity.
I.e., if longest keeps steady, the time was greater than for the first time for exposure, then illustrate that active user can compare long-time ensures that terminal is in stable state, therefore, the first time for exposure obtained relative to initial calculation, real exposure time can extend, meanwhile, without using original higher first sensitivity.In this way, for may insure user that the terminal long period is under stable state photographic quality can be promoted by adjusting time for exposure and sensitivity.Such as, the first time for exposure, that is, aperture time of initial calculation is 250 milliseconds under current environment, first ISO is 800, but due to the maximum of active user keep steady the time be 500 milliseconds, 250-500 milliseconds of the second time for exposure then can be used, while being adaptively calculated or matching the 2nd ISO lower than 800 according to the second time for exposure.
In alternatively possible implementation, if the longest keeps steady, the time is less than first time for exposure, is taken pictures using first time for exposure and first sensitivity.First time for exposure and the first sensitivity are to be calculated by terminal according to current environment light intensity, meet 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 longest keep steady the time be 250.1 milliseconds, first time for exposure was 250 milliseconds, the second time for exposure and the second sensitivity can be set in strict accordance with aforesaid way, alternatively, also can be directly used for the first time for exposure and the first sensitivity is taken pictures, the permission difference " being slightly larger than " herein can based on experience value or simulation result is defined.
It should be noted that in another possible implementation, for longest keep steady the time be far smaller than for the first time for exposure the case where namely active user maintain the time of terminal at steady state extremely short, just General older elder user may occur that due to physical reason under normal mode of operation, then can further reduce the time for exposure at this time and come, sacrifice photographic quality to improve image definition.
In addition, the optical anti-vibration technology being commonly used when taking pictures for existing terminal, mainly passing through the gyroscope in camera lens detects small movement for it, and signal can be reached to microprocessor and calculate the displacement for needing to compensate immediately, then pass through compensation lens set, it is compensated according to the jitter direction of camera lens and displacement, thus the image blur for effectively overcoming the vibration because of camera to generate.But its device for needing to configure optical anti-vibration first, this will increase the cost of camera, completely not universal;Secondly optical anti-vibration can not be fully solved stabilization problem, and the time for exposure is more than the problem of certain time length also will appear blurring of photos.And the technical solution of the application does not conflict with optical anti-vibration technology, the technical solution of the application can be in conjunction with optical anti-vibration technology 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 longest is kept steady into the time compared with the first time for exposure that terminal under current environment light intensity is calculated, the time for exposure taken pictures and sensitivity are adjusted when the former is greater than the latter, are taken pictures using second time for exposure bigger than the first time for exposure and smaller second sensitivity of the first sensitivity than being calculated.The individual character of active user can sufficiently be matched to adjust parameter of taking pictures, promote the effect of taking pictures of terminal, and it can be compatible with optical anti-vibration function used in existing terminal, extend the function and applicability of terminal, the experience of taking pictures of user is improved, the photo for meeting the better quality of self-condition is taken conducive to different users.
Referring to FIG. 2, the flow diagram for the method that another kind provided by the invention is taken pictures.In the present embodiment, which comprises
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 maximal jitter amplitude of the terminal within the unit time.It is also possible to angular speed of the terminal within the unit time.The specific size of unit time can be arranged or be customized by the user by manufacturer terminal, and the embodiment of the present invention is not limited in any way.And jitter amplitude can be measured in real time and be acquired by the acceleration transducer in terminal.When any direction generation shake of user's handheld terminal on solid space causes terminal to be subjected to displacement variation in the unit time, acceleration transducer can detecte displacement variable and the deviation angle or Oscillation Amplitude of terminal be calculated, The deviation angle or Oscillation Amplitude of using terminal characterize the jitter amplitude of user.For example, vertical or horizontal shifting distance can be considered as Oscillation Amplitude for characterizing the jitter amplitude of user, and when end level or vertical rotary up and down when terminal is taken pictures, then it can be considered as deviation angle for characterizing the jitter amplitude of user.Alternatively, the angular speed of terminal can also be detected by acceleration transducer, by angular speed of the terminal within the unit time as the shake data of user.
When the displacement variable that acceleration transducer detects is 0, terminal does not have any offset, in stable state, but in practical application, small displacement variable is minimum to influential effect of taking pictures, therefore, reduced jitter amplitude caused by small change in displacement can be ignored, still it is considered that terminal is in stable state.For example, can be set as 50 milliseconds the unit time, the jitter amplitude of acceleration transducer acquisition terminal can be passed through in 50 milliseconds.When user's handheld terminal is taken pictures, if maximal jitter amplitude of the terminal within the unit time is smaller, image definition is influenced smaller.Maximal jitter amplitude is less than 0.5 degree such as in 50 milliseconds, then illustrates that user keeps steady terminal within the unit time, terminal is in stable state;If maximal jitter amplitude of the terminal within the unit time is larger, it is affected to image definition.Maximal jitter amplitude is greater than 3 degree such as in 50 milliseconds, then illustrates that user does not keep steady terminal within the unit time, terminal is in unsteady state.
It is alternatively possible to which the acquisition shake data when user takes pictures are averaged, exceptional value herein refers to the data significantly greater or significantly smaller relative to most of test datas to improve accuracy after can removing exceptional value with multi collect.Collection process can also be completed by independent process, such as configure test application, prompt user tests shake data after user opens test application, and 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, can also be customized by the user.Such as, when it is 1.8 degree/50 milliseconds that preset threshold, which is arranged, if the maximal jitter amplitude for collecting terminal in 50 milliseconds is 1.6 degree, 1.6 degree/50 milliseconds are less than preset threshold, if the maximal jitter amplitude of collected terminal is 2 degree in 50 milliseconds, 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 terminal and is in the longest of stable state and keeps steady the time.
For example, keeping steady within first 50 milliseconds of the time when starting to obtain longest, collected shake data are 1.6 degree/50 milliseconds, and preset threshold is 1.8 degree/50 milliseconds, then illustrate in first 50 milliseconds, The maximal jitter amplitude of terminal is 1.6 degree, less than 1.8 degree, is influenced on image definition smaller, it is believed that terminal is in stable state in this 50 milliseconds, is considered as the time that keeps steady for this 50 milliseconds.Then continue to judge in second 50 milliseconds, if second 50 milliseconds are also at stable state, then illustrate that this continuous 100 milliseconds are the time that keeps steady, continuous judgement is accumulative until terminal is in unsteady state in 50 milliseconds of n-th, N is 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 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 will be shaken compared with preset threshold, it can determine that terminal is in stable state when shaking data and being lower than preset threshold, the longest that it is under stable state is counted to keep steady the time, statistical result is more accurate, can it is good embody terminal shake, conducive to the subsequent adjustment to time for exposure and sensitivity, the photo of better quality is obtained.
Referring to FIG. 3, the flow diagram of another method taken pictures provided by the invention.In the present embodiment, which comprises
S301 prompts the user to keep steady the terminal when the user takes a.
By prompt, 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, keep steady the time conducive to accurate maximum is obtained, 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, S307-S309 is thened follow the steps, 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 within time for exposure that terminal is calculated under current environment light intensity, user can keep terminal to be in stable state, in order to improve photographic quality, lower sensitivity can be used to take pictures, prolonging exposure time is needed at this time, and optimal time for exposure, that is, user can keep the longest of terminal steady state to keep steady the time.
S308, according to the product of first time for exposure and first sensitivity, then divided by the longest Time that keeps steady obtains the second sensitivity.
For example, the first time for exposure be 250 milliseconds, ISO 800, user's maximum keep steady the time be 500 milliseconds, then can calculate the second sensitivity be (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, it is kept steady the time by the way that the second time for exposure was adjusted to maximum, and the second sensitivity is calculated 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, the photo for the better quality that available current environment active user can shoot.
Referring to FIG. 4, being a kind of composition schematic diagram of terminal provided in an embodiment of the present invention, in the present embodiment, the 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 is adjusted the time for exposure taken pictures and sensitivity, is taken pictures using the second time for exposure and the second sensitivity if keeping steady the time greater than first time for exposure for the longest;
Wherein, second time for exposure is not more than first time for exposure, and second sensitivity is not less than first sensitivity.
Optionally, if the longest keeps steady, the time is less than first time for exposure, and the photographing unit 400 is taken pictures using first time for exposure and first sensitivity.
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 the terminal and is in the longest of stable state and keeps steady the time.
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 and keeps steady the time equal to the longest;
According to the product of first time for exposure and first sensitivity, then when keeping steady divided by the longest Between obtain second sensitivity.
Referring to FIG. 5, for the composition schematic diagram of another terminal provided in an embodiment of the present invention, in embodiments of the present invention, 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 individually present, also it can integrate setting, and computing unit 100, acquiring unit 200, judging unit 300 or photographing unit 400 can be separately provided independently of the processor of terminal in the form of hardware in the above terminal embodiment, and form is arranged and can be the form of microprocessor;It can also be embedded in the form of hardware in the processor of terminal, it can also be stored in a software form in the memory of terminal, execute the above computing unit 100, acquiring unit 200, judging unit 300 and the corresponding operation of photographing unit 400 in order to which the processor of terminal calls.
Such as, in the second embodiment (embodiment shown in fig. 5) of terminal of the present invention, photographing unit 400 can be the processor of terminal, 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 independently of processor, it can also be stored in memory, achieve its function by call from the processor in the form of software.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 embodiments of the present invention, 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 are connected by the bus 1107 and complete mutual communication, wherein, the camera 1103 is for taking pictures, the acceleration transducer 1104 is used to incude shake when user holds the terminal, and it acquires shake receipt and is sent to the processor 1101, the display screen 1105 is for human-computer interaction and display shooting picture, the memory 1102 is used to store a set of program code, the processor 1101 is for calling The program code stored in the memory 1102 executes following operation:
Environment light intensity is incuded by the camera 1103, 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, 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 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 is specifically used for:
The user, which is acquired, by the acceleration transducer 1104 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 the longest of stable state and keeps steady the time.
Optionally, if the longest keeps steady, the time is greater than first time for exposure, and the processor 1101 is specifically used for:
Adjusting second time for exposure keeps steady the time equal to the longest;
Second sensitivity is obtained according to the product of first time for exposure and first sensitivity, then divided by longest time that keeps steady.
Optionally, when the user takes pictures, the processor 1101 is also used to prompt the user to keep steady the terminal by the display screen 1105.
It should be noted that processor 1101 here can be a processor, it is also possible to the general designation of multiple processing elements.Such as, 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 it is arranged to implement one or more integrated circuits of the embodiment of the present invention, 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, it 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 It mainly include store instruction area and storage data area.Wherein, store instruction area can storage program area, the instruction that can be executed by processor 1101 etc.;Storage data area can be used for storing the longest that gets and keep steady time and the preset threshold etc. that is compared with collected shake data.Bus 1106 can be industry 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..Only to be indicated with a thick line in Fig. 6, it is not intended that an only bus or a type of bus convenient for indicating.
It should be noted that all the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are 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, the relevent part can refer to the partial explaination of embodiments of method.
Description through the foregoing embodiment, the embodiment of the present invention maintains the longest of terminal at steady state to keep steady the time by obtaining user, and longest is kept steady into the time compared with the first time for exposure that terminal under current environment light intensity is calculated, the time for exposure taken pictures and sensitivity are adjusted when the former is greater than the latter, are taken pictures using second time for exposure bigger than the first time for exposure and the second sensitivity more smaller than the first sensitivity.The individual character of active user can sufficiently be matched to adjust parameter of taking pictures, promote the effect of taking pictures of terminal, and it can be compatible with optical anti-vibration function used in existing terminal, extend the function and applicability of terminal, the experience of taking pictures of user is improved, the photo for meeting the better quality of self-condition is taken conducive to different users.By the way that data will be shaken compared with preset threshold, it can determine that terminal is in stable state when shaking data and being lower than preset threshold, the longest that it is under stable state is counted to keep steady the time, statistical result is more accurate, can it is good embody terminal shake, conducive to the subsequent adjustment to time for exposure and sensitivity, the photo of better quality is obtained.It is kept steady the time by the way that the second time for exposure was adjusted to maximum, and the second sensitivity is calculated 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, the photo for the better quality that available current environment active user can shoot.
Those of ordinary skill in the art will appreciate that: realizing all or part of the steps of above method embodiment, this can be accomplished by hardware associated with program instructions, program above-mentioned can be stored in a computer readable storage medium, the program when being executed, executes step including the steps of the foregoing method embodiments;And storage medium above-mentioned includes: the various media that can store program code such as ROM, RAM, magnetic or disk.
It is provided for the embodiments of the invention a kind of method taken pictures above and terminal is described in detail, used herein a specific example illustrates the principle and implementation of the invention, and the above description of the embodiment is only used to help understand the method for the present invention and its core ideas;At the same time, for those skilled in the art, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion the contents of this specification are not to be construed as limiting the invention.

Claims (16)

  1. A method of it takes 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, 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 not more than first sensitivity.
  2. The method according to claim 1, wherein if the longest keeps steady, the time is less than first time for exposure, is taken pictures using first time for exposure and first sensitivity.
  3. The method according to claim 1, wherein the acquisition user maintains the longest of terminal at steady state to keep 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 the longest of stable state and 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 and keeps steady the time equal to the longest;
    Second sensitivity is obtained according to the product of first time for exposure and first sensitivity, then divided by longest time that keeps steady.
  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 is adjusted the time for exposure taken pictures and sensitivity, is taken pictures using the second time for exposure and the second sensitivity if keeping steady the time greater than first time for exposure for the longest;
    Wherein, second time for exposure is not more than first time for exposure, and second sensitivity is not less than first sensitivity.
  7. Terminal according to claim 6, which is characterized in that the time is less than first time for exposure if the longest keeps steady, and 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 the longest of stable state and 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 and keeps steady the time equal to the longest;
    Second sensitivity is obtained according to the product of first time for exposure and first sensitivity, then divided by longest time that keeps steady.
  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, memory, camera, acceleration transducer, display screen is connected by the bus with interface circuit and completes mutual communication, wherein, the camera is for taking pictures, the acceleration transducer is used to incude shake when user holds the terminal, and it acquires shake receipt and is sent to the processor, the display screen is for human-computer interaction and display shooting picture, the memory is used to store a set of program code, the processor is for calling the program code stored in the memory, execute following operation:
    Environment light intensity is incuded by the camera, 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, 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 first sensitivity.
  12. Terminal according to claim 11, which is characterized in that the time is less than first time for exposure if the longest keeps steady, and the processor is also used to indicate that the camera is taken pictures using first time for exposure and first sensitivity.
  13. Terminal according to claim 11, which is characterized in that obtain user maintain the longest of terminal at steady state 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 the longest of stable state and keeps steady the time.
  14. Terminal according to claim 11, which is characterized in that the time is greater than first time for exposure if the longest keeps steady, and the processor is specifically used for:
    Adjusting second time for exposure keeps steady the time equal to the longest;
    Second sensitivity is obtained according to the product of first time for exposure and first sensitivity, then divided by longest time that keeps steady.
  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 storing one or more programs, which is characterized in that one or more of programs include instruction, and 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, 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 not more than 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 true CN107852455A (en) 2018-03-27
CN107852455B 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
CN107852455B (en) 2019-07-19
WO2017214977A1 (en) 2017-12-21

Similar Documents

Publication Publication Date Title
JP7371081B2 (en) Night view photography methods, devices, electronic devices and storage media
KR102381713B1 (en) Photographic method, photographic apparatus, and mobile terminal
US11368615B2 (en) Modifying image parameters using wearable device input
CN104205804B (en) Image processing apparatus, filming apparatus and image processing method
CN110191291B (en) Image processing method and device based on multi-frame images
WO2017096866A1 (en) Method and apparatus for generating high dynamic range image
JP6267502B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM
WO2019149099A1 (en) Electronic device, human face recognition method, and relevant product
CN109218627A (en) Image processing method, device, electronic equipment and storage medium
CN109194882A (en) Image processing method, device, electronic equipment and storage medium
WO2014155814A1 (en) Image capturing apparatus, calibration method, program, and recording medium
CN113411498B (en) Image shooting method, mobile terminal and storage medium
CN104469001A (en) Mobile phone with photographing stabilization function and stabilization method in photographing process of mobile phone
US20130314507A1 (en) Image capturing device and data processing method
CN104104870B (en) Filming control method, imaging control device and capture apparatus
EP3301906A1 (en) Method for processing image and electronic device supporting the same
US20220053121A1 (en) A method, software product, camera device and system for determining artificial lighting and camera settings
CN111314593A (en) Terminal device, image shooting method and device and storage medium
CN111970437B (en) Text shooting method, wearable device and storage medium
CN106303243A (en) A kind of photographic method, device and terminal
JP2014103643A (en) Imaging device and subject recognition method
CN112351197B (en) Shooting parameter adjusting method and device, storage medium and electronic equipment
KR20170011876A (en) Image processing apparatus and method for operating thereof
CN107852455B (en) A kind of method and terminal taken pictures
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