CN105827944B - A kind of focusing method and mobile terminal - Google Patents
A kind of focusing method and mobile terminal Download PDFInfo
- Publication number
- CN105827944B CN105827944B CN201510833262.0A CN201510833262A CN105827944B CN 105827944 B CN105827944 B CN 105827944B CN 201510833262 A CN201510833262 A CN 201510833262A CN 105827944 B CN105827944 B CN 105827944B
- Authority
- CN
- China
- Prior art keywords
- motor
- object pixel
- focusing
- pixel size
- motor position
- 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
Links
Landscapes
- Studio Devices (AREA)
- Automatic Focus Adjustment (AREA)
- Lens Barrels (AREA)
Abstract
The present invention provides a kind of focusing method, which includes: the object pixel size obtained focused when completing every time and motor position and save;According to object pixel size and motor position, the matching relationship function of motor position and object pixel size is generated;Obtain the first object Pixel Dimensions focused next time;According to matching relationship function, it is calculated and first object Pixel Dimensions matched first motor calculating position;According to the first motor calculating position, motor position is adjusted, this focusing is completed.The present invention also provides a kind of corresponding mobile terminals.Focusing method provided by the invention, the matching relationship function for generating motor position and object pixel size is fitted based on object pixel size and motor position, to directly obtain the first motor calculating position by matching relationship function in focus process next time, focusing speed when shooting the same target object or same type objects is improved, user experience is improved.
Description
Technical field
The present invention relates to fields of communication technology, and more particularly, to a kind of focusing method and mobile terminal.
Background technique
Current mobile terminal camera, which is taken pictures, increasingly pursues ultimate attainment user experience, and wherein quickly captures and clap with moving object
Taking the photograph is extremely common scene.
Current mobile terminal camera is after unlatching, and with the variation of photographed scene, focus process is very frequent, focusing speed
Low, the prior art generallys use a kind of mode based on contrast focusing, needs to search out most on entire motor stroke space
Motor position when good focusing needs repeatedly the continuous contrast attempted mobile motor position and calculate image sampling point, consumption
When and power consumption it is all larger;Focusing mode (the Phase Detection Auto based on phase that another kind is widely used
Focus, PDAF), there is the case where damaging image quality and cannot settling at one go, on the basis of the initial focusing position of PDAF, together
Sample is needed to be adjusted motor position based on contrast and completes focusing;Depth finding focusing based on multi-cam stereo vision, is deposited
Needing to increase additional camera, system complexity, cost and power consumption all dramatically increase.
Summary of the invention
The embodiment of the present invention provides a kind of focusing method and mobile terminal, is needed in a manner of the focusing for solving the prior art more
The position of secondary mobile motor leads to the problem of time-consuming and power consumption.
In a first aspect, the embodiment of the present invention provides a kind of focusing method, it is applied to a mobile terminal, the mobile terminal packet
Camera module is included, the camera module includes the motor for focusing, and the focusing method includes:
It obtains the object pixel size and motor position when focusing is completed every time and saves;
Object pixel size and motor position when being completed according to each focusing of the preservation, and utilize preset algorithm
It is fitted operation, generates the matching relationship function of motor position and object pixel size;
Obtain the first object Pixel Dimensions focused next time;
According to the matching relationship function of the generation, it is calculated matched with the first object Pixel Dimensions of the acquisition
First motor calculating position;
According to the first motor calculating position being calculated, motor position is adjusted, this focusing is completed.
On the other hand, the embodiment of the present invention also provides a kind of mobile terminal, including camera module, the camera module
Including the motor for focusing, the mobile terminal includes:
Processing module, for obtaining each object pixel size focused when completing and motor position and saving;
Fitting module, object pixel size and horse when each focusing for being saved according to the processing module is completed
It is fitted operation up to position, and using preset algorithm, generates the matching relationship function of motor position and object pixel size;
Module is obtained, for obtaining the first object Pixel Dimensions focused next time;
Computing module, the matching relationship function for being generated according to the fitting module, is calculated and the acquisition
First object Pixel Dimensions matched first motor calculating position;
Module is adjusted, the first motor calculating position for being calculated according to the computing module adjusts motor position,
Complete this focusing.
In this way, object pixel size and motor in the focusing method of the embodiment of the present invention, when being completed based on each focusing
Position is fitted the matching relationship function generated between motor position and object pixel size, thus in focus process next time
In, the first motor calculating position is calculated according to the first object Pixel Dimensions of the secondary focusing, adjusts motor position, completion pair
It is burnt.It solves the problems, such as that the focusing mode of the prior art needs repeatedly the position of mobile motor to lead to time-consuming and power consumption, is promoted
Focusing speed when the shooting same target object or same type objects, improves user experience.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
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 any creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 shows the flow charts for the focusing method that the first embodiment of the present invention provides;
Fig. 2 indicates the flow chart for the focusing method that the second embodiment of the present invention provides;
Fig. 3 indicates the basic composite structural diagram for the mobile terminal that the third embodiment of the present invention provides;
Fig. 4 indicates the concrete structure diagram for another mobile terminal that the third embodiment of the present invention provides;
Fig. 5 indicates the concrete structure diagram for another mobile terminal that the third embodiment of the present invention provides;
Fig. 6 indicates the composite structural diagram for the mobile terminal that the fourth embodiment of the present invention provides;
Fig. 7 indicates the composite structural diagram for the mobile terminal that the fifth embodiment of the present invention provides.
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 some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
First embodiment
As shown in Figure 1, the first embodiment of the present invention provides a kind of focusing method, it is applied to a mobile terminal, the shifting
Dynamic terminal includes camera module, and the camera module includes the motor for focusing, and the focusing method includes:
Step 101, the object pixel size and motor position when focusing is completed every time are obtained and is saved.
In this step, when focusing is completed when the success of shooting photo, after camera module is opened, camera module is taken the photograph
As head will start, camera be towards position the camera module shooting area, camera module can be automatically in shooting area
Focusing area is determined in domain, and focus target is determined out of described focusing area;The focus target can be with appointing in focusing area
One object, such as face, automobile etc., are not specifically limited herein.It is focused after determining focus target by automatic center region
Or manual touch-control focusing focuses to realize focusing and completes simultaneously successfully to shoot photo, then obtain the target of focus target in this photo
The motor position of Pixel Dimensions and camera module.
In the embodiment of the present invention, the motor position of camera module is indicated with its driving current, i.e., by changing driving
The size of electric current changes the position of motor to realize.
The condition setting saved to data (object pixel size and motor position) is as follows: when this focusing is completed,
Motor position is compared with all motor positions saved, if the motor position completed of this acquired focusing with
The motor position of preservation is identical or very close, then does not save motor position and object pixel size that this is taken pictures.Specifically,
The total stroke for remembering motor is [0, J], and carrying out K equal part to [0, J], (value of K is big according to specific camera module motor stroke
Depending on small), such as obtain NHV (the nearest history motor of position in present motor position and the motor position saved
Positional value), and the absolute value of present motor positional value and the difference of NHV is calculated, then obtain the absolute value and motor stroke range
The ratio r atio of value, if ratio less than a preset value ST, shows that new motor position is very close or identical with NHV, then
The motor position and object pixel size that this is taken pictures are not saved.Ratio r atio=(the mo-NHV)/J;Wherein, mo is new
Motor position do not save the motor position and object pixel size that this is taken pictures if ratio < (J/K) (preset value).
Step 102, object pixel size and motor position when being completed according to each focusing of the preservation, and utilize
Preset algorithm is fitted operation, generates the matching relationship function of motor position and object pixel size.
In this step, object pixel size and motor position as data to saving, i.e., object pixel size with
Motor position saves correspondingly.The purpose of this step is to obtain multiple discrete data continuously to operation is fitted
Matching relationship function.
The fit approach of the matching relationship function of the embodiment of the present invention, the focus target suitable for any classification.One
It is associated with a kind of target with relation function, such as the matching relationship function is to obtain based on the focus target that classification is " face ",
Then the matching relationship function is matched for " face ";Such as the matching relationship function is the focusing mesh for being " XX object " based on classification
What mark obtained, then the matching relationship function is matched for " XX object ".
Step 103, the first object Pixel Dimensions focused next time are obtained.
In this step, focusing refers to any primary focusing after determining matching relationship function, the first object next time
Pixel Dimensions are the object pixel size for determining any any one focus target once focused after matching relationship function.
Step 104, according to the matching relationship function of the generation, the first object pixel ruler with the acquisition is calculated
Very little matched first motor calculating position.
In this step, first object Pixel Dimensions are substituted into the matching relationship function, to obtain and first object
Pixel Dimensions matched first motor calculating position.
Step 105, according to the first motor calculating position being calculated, motor position is adjusted, this focusing is completed.
In this step, motor is moved directly into the first motor calculating position first, the first motor calculating position is this
The initial focusing position of the motor of focusing, but since the first motor calculating position is certain inclined with the presence of actual motor focusing position
Difference also needs adjustment motor position at this time, so that the clarity of the focus target of this focusing meets predetermined condition, to realize this
Secondary focusing.
In the embodiment of the present invention, after the completion of matching relationship Function Fitting, it is possible to realize that a step is focused, i.e., move motor
It moves to after the first motor calculating position, this focusing can be completed, no longer need to carry out focusing adjustment.Due to depositing for such situation
In the first embodiment of the present invention, after the first motor is moved to the first motor calculating position, current focusing need to obtained
The clarity of target;If its clarity meets preset condition, without carrying out focusing adjustment, this focusing is completed;If it is clear
Degree is unsatisfactory for preset condition, then carries out focusing adjustment, until the clarity of focus target meets predetermined condition, this has been focused
At.
Of the invention first passes through the matching relationship function that fitting generates motor position and object pixel size in implementing, from
And the first motor calculating position can be quickly determined in focus process next time, and according to the first motor calculating position, adjust horse
It realizes and focuses up to position, the focusing mode for solving the prior art needs repeatedly the position of mobile motor to lead to time-consuming and power consumption
Focusing low efficiency the problem of, have improve focusing speed, realize rapid focus.
Further, in the first embodiment of the present invention, step 102 is specifically included:
By the number of the object pixel size of the preservation and the data pair of motor position with to the unknown of fitting function
Several number N are compared, and the value of the N is according to selected to fitting function prototype and the first motor calculating position
Depending on precision;
When the number of data pair is more than or equal to N, meet the formation condition of matching relationship function, then according to pre- imputation
Method carries out least square fitting operation, obtains the value of each unknown number to fitting function;
According to the value of obtained each unknown number to fitting function, motor position and object pixel size are generated
Matching relationship function.
The step 105 specifically includes:
By the first motor calculating position being calculated towards the nearly burnt mobile preset safe distance S in direction, and will
Unidirectionally locally focusing direction is determined as remote Jiao Fangxiang to motor, adjusts motor position, completes this focusing, the value foundation of the S
Depending on camera module characteristic commissioning.
In the first embodiment of the present invention, fortune is fitted to object pixel size and motor position using preset algorithm
It before calculation, need to first determine one to fitting function, it is preferred that for example determine one to fitting function (using the form of Taylor expansion)
Are as follows: f (x)=a+b (x-a)+c (x-a)2+d(x-a)3+e(x-a)4;Wherein, x indicates object pixel size when focusing is completed;f
(x) calculated first motor calculating position is indicated.Such as should be 5 to the number N value of unknown number in fitting function, respectively
a,b,c,d,e;Then according to mathematical logic, 5 unknown numbers of demand then at least need 5 data pair, i.e., the number that ought have only saved
According to pair number be more than or equal to 5 when, just meet fitting generate matching relationship function condition.
Its specific approximating method is, according at least five data pair, is fitted operation using least square method, respectively
Obtain the occurrence of a, b, c, d, e;To which the occurrence of a, b, c, d, e are substituted into above-mentioned f (x)=a+b (x-a)+c (x-a)2+d
(x-a)3+e(x-a)4In, the matching relationship function of motor position Yu object pixel size can be obtained.
Further, after obtaining the first motor calculating position according to matching relationship function, for the first motor calculating position
The case where not being the final motor position of this focusing, the step of motor position is adjusted in step 105 specifically: by motor from the
One motor position towards the mobile default safe distance S in nearly burnt direction, safe distance S according to camera module characteristic commissioning and
It is fixed, do not make the restriction of occurrence herein.I.e. first by motor towards the nearly burnt mobile S in direction, then to remote burnt direction movement, to realize this
Secondary focusing.Such as first motor position be 5, S be equal to 0.5, then be reduced to 4.5 for 5 first, then tune up, prevent toning.
Fit procedure is described in detail in the first embodiment of the present invention, the least square method that is directed to, Taylor
Expansion is presently preferred embodiments of the present invention, is not used in the protection scope of limitation the application;Other volume approximating methods are equally suitable
For the application, will not repeat them here.
Being increasing with the number of data pair in the first embodiment of the present invention, motor position and object pixel size
Matching relationship Function Fitting after the completion of, need not continue to save focusing complete when motor position and object pixel size,
Motor position directly is obtained using the matching relationship function that fitting is completed in subsequent focus process.As well as matching
Relation function has been fitted completion, then the motor position and object pixel size saved is no in all senses, in order to save movement
The motor position saved and object pixel size are then deleted, and terminate fit procedure by the memory space of terminal.
In the embodiment of the present invention, specifically judge the method whether matching relationship function terminates to be fitted are as follows: according to fitting
Matching relationship function f (x), object pixel size matched first motor calculating position f when completing with focusing is calculated
(xi);By the first motor calculating position f (xi) with focusing complete when object pixel size actual motor position PiIt (has saved
Focusing complete when all motor positions) compared one by one, obtain absolute difference: Δ xi=abs (f (xi)-Pi);Statistics
All motor position f (x being calculatedi) and actual motor position PiThe average value of absolute difference:(wherein: m
The number of motor position data when focusing to have saved is completed), ifThen terminate to be fitted, and deletes
Except all data for fitting, wherein δ is the threshold value of a system intialization, whole stroke of the specific value according to focusing motor
Range [0, J] is fixed.
In the embodiment of the present invention, by the motor position and object pixel that save camera module when completing of focusing every time
Size has all determined an independent variable of the functional relation and the discrete respective value of functional value when focusing is completed every time.According to existing
Some Function Fitting technologies, to linear or nonlinear functional relation is fitted, work as discrete data using the discrete data of preservation
Pair number when meeting certain requirements, the Function Fitting of single independent variable can obtain optimal fitting effect.
In the embodiment of the present invention, in order to save the memory space of mobile terminal, can periodically clear up it is a part of for a long time not by
The data reused, such as user remove snow mountain, shoot the photo of a snow mountain, then can be stored with each pixel ruler of snow mountain
The very little corresponding relationship with best focusing position.And the even longer time of this latter year, 2 years, it is taken the photograph with this is not reused per family
As head mould group shot snow mountain, therefore user can delete its data about snow mountain manually, to guarantee the memory space of mobile terminal
Abundance.Others, can also by for each focus target image be arranged a timing aging device come be arranged the corresponding period come
Achieve the purpose that delete and does not have to data.
Object pixel size and motor position when in the first embodiment of the present invention by completing each focusing are intended
Symphysis is at matching relationship function, to can directly determine motor position according to the Pixel Dimensions of focus target when focusing next time
It sets, then realizes the purpose of focusing by adjusting motor position, the focusing mode for solving the prior art needs repeatedly to move horse
The position reached leads to the problem of time-consuming and power consumption, according to the matching relationship function generated is fitted, can quickly be calculated
Motor position improves focusing speed when shooting the same target object or same type objects, improves user experience.
To sum up, the first embodiment of the present invention mainly for can be fitted generate matching relationship function application scenarios, and
For without generating matching relationship function or can not temporarily generate the application scenarios of matching relationship function, the embodiment of the present invention is also mentioned
For a second embodiment.
Second embodiment
As shown in Fig. 2, the second embodiment of the present invention provides a kind of focusing method, it is applied to a mobile terminal, the shifting
Dynamic terminal includes camera module, and the camera module includes the motor for focusing, which is applied to save
Object pixel size and the number of data pair of motor position the case where being less than number N to the unknown number of fitting function or
The object pixel size and motor position that person's second embodiment is applied to without fitting function according only to preservation obtain the
The case where one motor calculating position.
Specifically, focusing method described in the second embodiment of the present invention includes:
Step 201, the object pixel size and motor position when focusing is completed every time are obtained and is saved.
In this step, when focusing is completed when the success of shooting photo, after camera module is opened, camera module is taken the photograph
As head will start, camera be towards position the camera module shooting area, camera module can be automatically in shooting area
Focusing area is determined in domain, and focus target is determined out of described focusing area;The focus target can be with appointing in focusing area
One object, such as face, automobile etc., are not specifically limited herein.It is focused after determining focus target by automatic center region
Or manual touch-control focusing focuses to realize focusing and completes simultaneously successfully to shoot photo, then obtain the target of focus target in this photo
The motor position of Pixel Dimensions and camera module.
In the embodiment of the present invention, the motor position of camera module is indicated with its driving current, i.e., by changing driving
The size of electric current changes the position of motor to realize.
In the embodiment of the present invention, for the application scenarios without carrying out Function Fitting, if when being completed to all focusings
Object pixel size and motor position are saved, and the data volume that will lead to preservation is very big, and there are a large amount of repetitions or close
Data, lead to the waste of data.In the embodiment of the present invention, for new primary focusing, when focusing is completed, by motor position
It is compared with all motor positions saved, if new motor position is identical as the motor position saved or unusual phase
Closely, then the motor position and object pixel size that this is taken pictures are not saved.Specifically, total stroke of note motor is [0, J], it is right
[0, J] K equal part (depending on the value of K is according to specific camera module motor stroke size) is carried out, such as obtains present motor position
NHV (a nearest history motor position value of position) in the motor position set and saved, and calculate present motor position
The difference of value and NHV, then obtains the ratio r atio of the difference Yu motor stroke range value, if ratio less than a preset value ST,
Then show that new motor position is very close or identical with NHV, does not then save motor position and object pixel ruler that this is taken pictures
It is very little.That is ratio r atio=(mo-NHV)/J;Wherein, mo is new motor position, if ratio < (J/K) (preset value), is not protected
Deposit the motor position and object pixel size that this is taken pictures.
Step 202, the first object Pixel Dimensions focused next time are obtained.
Step 203, according to the object pixel size and motor position of the preservation, by default computation rule obtain with
The first object Pixel Dimensions matched first motor calculating position of the acquisition.
Matching relationship function is generated due to not being fitted in the second embodiment of the present invention, then the first motor calculating position can not
According to matching relationship function, then the second embodiment obtains the first motor calculating position by step 203, that is, passes through discrete number
According to calculating the first motor calculating position.
Step 204, according to the first motor calculating position being calculated, motor position is adjusted, this focusing is completed.
Specifically, four kinds of situations are broadly divided into come the method that calculates the first motor calculating position by discrete data,
These four situations are described in detail separately below:
Situation one: the step 203 specifically includes:
The first object Pixel Dimensions of the acquisition are compared with all object pixel sizes of the preservation, work as institute
The the second object pixel size stated in the first object Pixel Dimensions of acquisition and all object pixel sizes of the preservation is identical
When, it will be with matched second motor position of the second object pixel size as the first motor calculating position.
The situation once, one in object pixel size that first object Pixel Dimensions have exactly equal to saved, then with
The equal corresponding motor position of the object pixel size of preservation of first object Pixel Dimensions is then and first object Pixel Dimensions
Corresponding first motor calculating position.
Preferably, the step 204 specifically includes:
By the first motor calculating position being calculated towards the nearly burnt mobile preset safe distance S in direction, and will
Unidirectionally locally focusing direction is determined as remote Jiao Fangxiang to the motor, adjusts motor position, completes this focusing, the value of the S
According to depending on camera module characteristic commissioning.
In this step, after obtaining the first motor calculating position according to step 203, it is not for the first motor calculating position
The case where final motor position of this focusing, the step of motor position is adjusted in step 205 specifically: by motor from the first horse
Move a default safe distance S along nearly burnt direction up to position, safe distance S according to depending on camera module characteristic commissioning,
The restriction of occurrence is not made herein.I.e. first by motor towards the nearly burnt mobile S in direction, then to remote burnt direction movement, to realize this
Focusing.Such as first motor position be 5, S be equal to 0.5, then be reduced to 4.5 for 5 first, then tune up, prevent toning.
Situation two: the step 203 specifically includes:
The first object Pixel Dimensions of the acquisition are compared with all object pixel sizes of the preservation, work as institute
It, will be with when stating the first object Pixel Dimensions of acquisition and being less than the minimum target Pixel Dimensions in the object pixel size of the preservation
The minimum motor position of the minimum target pixel matching is as the first motor calculating position.
In the situation two, first object Pixel Dimensions and any one in the object pixel size saved not phase
Deng, and the first object Pixel Dimensions are less than the minimum target Pixel Dimensions in the object pixel size of the preservation, then it will most
The corresponding minimum motor position of Small object Pixel Dimensions as with first object Pixel Dimensions matched first motor calculating position.
Preferably, the step 204 specifically includes:
By the first motor calculating position being calculated towards the nearly burnt mobile preset safe distance S in direction, and will
Unidirectionally locally focusing direction is determined as remote Jiao Fangxiang to motor, adjusts motor position, completes this focusing, the value foundation of the S
Depending on camera module characteristic commissioning.
In this step, after obtaining the first motor calculating position according to step 203, it is not for the first motor calculating position
The case where final motor position of this focusing, the step of motor position is adjusted in step 205 specifically: by motor from the first horse
Move a default safe distance S along nearly burnt direction up to position, safe distance S according to depending on camera module characteristic commissioning,
The restriction of occurrence is not made herein.I.e. first by motor towards the nearly burnt mobile S in direction, then to remote burnt direction movement, to realize this
Focusing.Such as first motor position be 5, S be equal to 0.5, then be reduced to 4.5 for 5 first, then tune up, prevent toning.
Situation three: the step 203 specifically includes:
The first object Pixel Dimensions of the acquisition are compared with all object pixel sizes of the preservation, work as institute
It, will be with when stating the first object Pixel Dimensions of acquisition and being greater than the maximum target Pixel Dimensions in the object pixel size of the preservation
The maximum motor position of the maximum target pixel matching is as the first motor calculating position.
In the situation three, first object Pixel Dimensions and any one in the object pixel size saved not phase
Deng, and the first object Pixel Dimensions are greater than the maximum target Pixel Dimensions in the object pixel size of the preservation, then it will most
The corresponding maximum motor position of big object pixel size as with first object Pixel Dimensions matched first motor calculating position.
Preferably, the step 204 specifically includes:
By the first motor calculating position being calculated towards the remote burnt mobile preset safe distance S in direction, and will
Unidirectionally locally focusing direction is determined as nearly Jiao Fangxiang to motor, adjusts motor position, completes this focusing, the value foundation of the S
Depending on camera module characteristic commissioning.
In this step, after obtaining the first motor calculating position according to step 203, it is not for the first motor calculating position
The case where final motor position of this focusing, the step of motor position is adjusted in step 205 specifically: by motor from the first horse
Move a default safe distance S along remote burnt direction up to position, safe distance S according to depending on camera module characteristic commissioning,
The restriction of occurrence is not made herein.I.e. first by motor towards the remote burnt mobile S in direction, then to nearly burnt direction movement, to realize this
Focusing.Such as first motor position be 5, S be equal to 0.5, then increase to 5.5 for 5 first, then turn down, prevent toning.
Situation four: the step 203 specifically includes:
The first object Pixel Dimensions of the acquisition are compared with all object pixel sizes of the preservation, work as institute
The first object Pixel Dimensions of acquisition are stated greater than the third object pixel size in the object pixel size of the preservation, and are less than
It, will be with the third object pixel size matched when the 4th object pixel size in the object pixel size of the preservation
Three motor positions are as the first motor calculating position.
In the situation four, first object Pixel Dimensions and any one in the object pixel size saved not phase
Deng, and the first object Pixel Dimensions are placed exactly between third object pixel size and the 4th object pixel size, then at this time
It is calculated using the corresponding third motor position of third object pixel size as with matched first motor of first object Pixel Dimensions
Position;Or using corresponding 4th motor position of the 4th object pixel size as with first object Pixel Dimensions matched first
Motor calculating position.
In the embodiment of the present invention, using the corresponding third motor position of third object pixel size as with first object pixel
When the matched first motor calculating position of size, the step 204 is specifically included:
By the first motor calculating position being calculated towards the remote burnt mobile preset safe distance S in direction, and will
Unidirectionally locally focusing direction is determined as nearly Jiao Fangxiang to motor, adjusts motor position, completes this focusing, the value foundation of the S
Depending on camera module characteristic commissioning.
In this step, after obtaining the first motor calculating position according to step 203, it is not for the first motor calculating position
The case where final motor position of this focusing, the step of motor position is adjusted in step 204 specifically: by motor from the first horse
Move a default safe distance S along remote burnt direction up to position, safe distance S according to depending on camera module characteristic commissioning,
The restriction of occurrence is not made herein.I.e. first by motor towards the remote burnt mobile S in direction, then to nearly burnt direction movement, to realize this
Focusing.Such as first motor position be 5, S be equal to 0.5, then increase to 5.5 for 5 first, then turn down, prevent toning.
In the embodiment of the present invention, using corresponding 4th motor position of the 4th object pixel size as with first object pixel
When the matched first motor calculating position of size, step 204 includes:
The motor is moved into a preset safety towards nearly burnt direction from the first motor calculating position being calculated
Distance S, and by motor, unidirectionally locally focusing direction is determined as remote Jiao Fangxiang, adjusts motor position, completes this focusing, the S
Value according to depending on camera module characteristic commissioning.
In this step, after obtaining the first motor calculating position according to step 203, it is not for the first motor calculating position
The case where final motor position of this focusing, the step of motor position is adjusted in step 204 specifically: by motor from the first horse
Move a default safe distance S along nearly burnt direction up to position, safe distance S according to depending on camera module characteristic commissioning,
The restriction of occurrence is not made herein.I.e. first by motor towards the nearly burnt mobile S in direction, then to remote burnt direction movement, to realize this
Focusing.Such as first motor position be 5, S be equal to 0.5, then be reduced to 4.5 for 5 first, then tune up, prevent toning.
The number that the second embodiment of the present invention is applicable not only to data pair is unsatisfactory for the application scenarios of the condition of fitting, also
Suitable for the application scenarios without carrying out Function Fitting, specifically, as follows without the application scenarios for carrying out Function Fitting:
It obtains the object pixel size and motor position when focusing is completed every time and saves, directly acquire later next time
The first object Pixel Dimensions of focusing, then accordingly any situation into situation four determines and the first mesh
Mark Pixel Dimensions corresponding first motor calculating position;Finally according to the first motor calculating position, motor position is adjusted, completes this
Secondary focusing.
The above-mentioned application scenarios without carrying out Function Fitting, eliminate fit procedure, reduce calculation amount, from another point of view
Accelerate the process of taking pictures.
To sum up, process of specifically taking pictures of the invention is as follows: receiving the photographing instruction of user, the photographing instruction of user can lead to
The modes such as virtual key, physical button, gesture, sound are crossed to input;Detect the object pixel size saved and motor position
The number for the data pair set;Judge whether the number M of the data pair is more than or equal to N;If the number of data pair be greater than or
Person is equal to N, then shows that matching relationship Function Fitting is completed, and the first motor is calculated according to the matching relationship function and calculates position
It sets;If the number M of data pair is less than N, show that matching relationship function is not fitted completion, then the first motor of interpolation calculation calculates position
It sets;Specifically, M=0 (numbers of data pair), does not do any operation, keeps the current state of motor;If 0 < M < N (N=5), root
According to the object pixel size in current preview frame, and the data centering target picture of object pixel size and motor position saved
Plain size compares, and an initial motor position is arranged according to comparative situation and present motor position.
Such as: save two groups of object pixel size-motor position data pair: (t1-m1) and (t2-m2), and t1 < t2.
Object pixel size=t0 divides three kinds of situations then the motor position of lens module voice coil motor is arranged in current preview frame:
When a.t0 > t2, motor position=m2+deta is sett, wherein detatIt is 2 one safe adjustment spaces (default), because not
A fixed value depending on same lens module motor current value value range.And adjust motor position to small value direction;(5 first
5.5 are added to, then is turned down, toning is prevented)
When b.t1 < t0 < t2, motor position=t1-deta is sett, and adjust motor position to big value direction;
When c.t0 < t1, motor position=t1+deta is sett, and adjust motor position to small value direction.
After motor is finally moved to the first motor calculating position, motor position is adjusted, realizes this focusing.
The number of object pixel size and motor position when the second embodiment of the present invention is completed by saving each focusing
According to right, so that the first object pixel ruler of the secondary focusing be calculated according to default computation rule in focus process next time
Very little corresponding first motor calculating position adjusts motor position, completes focusing.Solve the prior art focusing mode need it is more
The position of secondary mobile motor leads to the problem of time-consuming and power consumption, according to default computation rule, can quickly obtain motor position,
The process for eliminating fitting adaptation function has further speeded up the speed of focusing, has improved user experience.
3rd embodiment
As shown in figure 3, third embodiment of the invention provides a kind of mobile terminal 300, including camera module, the camera shooting
Head mould group includes the motor for focusing, and the mobile terminal 300 includes:
Processing module 301, for obtaining each object pixel size focused when completing and motor position and saving.
Fitting module 302, object pixel size when each focusing for being saved according to the processing module 301 is completed
And motor position, and it is fitted operation using preset algorithm, generate the matching relationship of motor position and object pixel size
Function.
Module 303 is obtained, for obtaining the first object Pixel Dimensions focused next time.
Computing module 304, the matching relationship function for being generated according to the fitting module 302, be calculated with it is described
The first object Pixel Dimensions matched first motor calculating position of acquisition.
Module 305 is adjusted, the first motor calculating position for being calculated according to the computing module 304 adjusts horse
Up to position, this focusing is completed.
Further, as shown in figure 4, the fitting module 302 specifically includes:
Third is fitted submodule 3021, for by the data pair of the object pixel size of the preservation and motor position
Number is compared with the number N of the unknown number to fitting function, and the value of the N is according to selected to fitting function prototype
And first motor calculating position precision depending on.
4th fitting submodule 3022, for meeting matching relationship function when the number of data pair is more than or equal to N
Formation condition, then least square fitting operation is carried out according to preset algorithm, obtains each unknown number to fitting function
Value.
5th fitting submodule 3023 is generated for the value of each unknown number to fitting function obtained according to
The matching relationship function of motor position and object pixel size.
Preferably, the adjustment module 305 specifically includes:
5th adjusting submodule 3051, for the first motor calculating position being calculated is mobile towards nearly burnt direction
One preset safe distance S, and by motor, unidirectionally locally focusing direction is determined as remote Jiao Fangxiang, adjusts motor position, completes this
Secondary focusing, the value of the S is according to depending on camera module characteristic commissioning.
The third embodiment of the present invention generates the matching relationship function of motor position and object pixel size by fitting, from
And the first motor calculating position is directly calculated by matching relationship function in focus process next time, and by adjusting motor
Focusing is completed in position, and solving the focusing mode of the prior art, to need the position of repeatedly mobile motor to cause time-consuming and power consumption
Problem has and improves focusing speed, realizes rapid focus, improves the candid photograph experience of user.
Mobile terminal shown in Fig. 4 is the mobile terminal of the focusing method provided using above-mentioned first embodiment, then above-mentioned
All embodiments for the focusing method that first embodiment provides are suitable for the mobile terminal.
Further, as shown in figure 5, the 3rd embodiment of the embodiment of the present invention also provides another mobile terminal 400, packet
It includes:
Processing module 401, for obtaining each object pixel size focused when completing and motor position and saving.
Fitting module 402, object pixel size when each focusing for being saved according to the processing module 401 is completed
And motor position, and it is fitted operation using preset algorithm, generate the matching relationship of motor position and object pixel size
Function.
Module 403 is obtained, for obtaining the first object Pixel Dimensions focused next time.
Computing module 404, the matching relationship function for being generated according to the fitting module 402, be calculated with it is described
The first object Pixel Dimensions matched first motor calculating position of acquisition.
Module 405 is adjusted, the first motor calculating position for being calculated according to the computing module 404 adjusts horse
Up to position, this focusing is completed.
Preferably, the fitting module 402 specifically includes:
First fitting submodule 4021, object pixel size and motor position for saving the processing module 401
The number for the data pair set is compared with the number N of the unknown number to fitting function, the value of the N according to it is selected to
Depending on the precision of fitting function and the first motor calculating position.
Second fitting submodule 4022, for not meeting the generation of matching relationship function when the number of data pair is less than N
Condition.
Then the computing module 404 includes:
First computational submodule 4041, object pixel size and motor for being saved according to the processing module 401
Position is calculated by default computation rule and calculates position with matched first motor of the first object Pixel Dimensions of the acquisition
It sets.
Preferably, first computational submodule 4041 specifically includes:
First position determination unit 40411, first object Pixel Dimensions and institute for obtaining the acquisition module 403
All object pixel sizes for stating preservation are compared, when the first object Pixel Dimensions of the acquisition and owning for the preservation
It, will be with matched second motor of the second object pixel size when the second object pixel size in object pixel size is identical
Position is as the first motor calculating position.
Preferably, the adjustment module 405 specifically includes:
The first adjustment submodule 4051, for the first motor calculating position being calculated is mobile towards nearly burnt direction
One preset safe distance S, and by the motor, unidirectionally locally focusing direction is determined as remote Jiao Fangxiang, adjusts motor position, it is complete
At this focusing, the value of the S is according to depending on camera module characteristic commissioning.
Preferably, first computational submodule 4041 specifically includes:
Second position determination unit 40412, first object Pixel Dimensions and institute for obtaining the acquisition module 403
All object pixel sizes for stating preservation are compared, when the first object Pixel Dimensions of the acquisition are less than the mesh of the preservation
When marking the minimum target Pixel Dimensions in Pixel Dimensions, using with the minimum motor position of the minimum target pixel matching as the
One motor calculating position.
Preferably, the adjustment module 405 specifically includes:
Second adjustment submodule 4052, for the first motor calculating position being calculated is mobile towards nearly burnt direction
One preset safe distance S, and by motor, unidirectionally locally focusing direction is determined as remote Jiao Fangxiang, adjusts motor position, completes this
Secondary focusing, the value of the S is according to depending on camera module characteristic commissioning.
Preferably, first computational submodule 4041 specifically includes:
The third place determination unit 40413, first object Pixel Dimensions and institute for obtaining the acquisition module 403
All object pixel sizes for stating preservation are compared, when the first object Pixel Dimensions of the acquisition are greater than the mesh of the preservation
When marking the maximum target Pixel Dimensions in Pixel Dimensions, using with the maximum motor position of the maximum target pixel matching as the
One motor calculating position.
Preferably, the adjustment module 405 specifically includes:
Third adjusting submodule 4053, for the first motor calculating position being calculated is mobile towards remote burnt direction
One preset safe distance S, and by motor, unidirectionally locally focusing direction is determined as nearly Jiao Fangxiang, adjusts motor position, completes this
Secondary focusing, the value of the S is according to depending on camera module characteristic commissioning.
Preferably, first computational submodule 4041 specifically includes:
4th position determination unit 40414, first object Pixel Dimensions and institute for obtaining the acquisition module 403
All object pixel sizes for stating preservation are compared, when the first object Pixel Dimensions of the acquisition are greater than the mesh of the preservation
Mark the third object pixel size in Pixel Dimensions, and the 4th object pixel ruler being less than in the object pixel size of the preservation
It, will be with the matched third motor position of the third object pixel size as the first motor calculating position when very little.
Preferably, the adjustment module 405 specifically includes:
4th adjusting submodule 4054, for the first motor calculating position being calculated is mobile towards nearly burnt direction
One preset safe distance S, and by motor, unidirectionally locally focusing direction is determined as remote Jiao Fangxiang, adjusts motor position, completes this
Secondary focusing, the value of the S is according to depending on camera module characteristic commissioning.
Another mobile terminal that the third embodiment of the present invention provides is the focusing provided using above-mentioned second embodiment
All embodiments of the mobile terminal of method, the then focusing method that above-mentioned second embodiment provides are suitable for the mobile terminal.
The mobile terminal of the embodiment of the present invention can be realized mobile terminal in the embodiment of the method for Fig. 1 to Fig. 2 realize it is each
A process, to avoid repeating, which is not described herein again.The mobile terminal of the embodiment of the present invention is by above-mentioned module, according to target picture
Plain size and motor position fitting generate matching relationship function or default computation rule, can be according to right when focusing next time
The Pixel Dimensions of burnt target directly determine motor position, then the purpose of focusing is realized by adjusting motor position, solve existing
There is the problem of focusing mode of technology needs the position of repeatedly mobile motor to lead to time-consuming and power consumption, according to be fitted generation
Motor position can be quickly calculated in matching relationship function, improve and shoot the same target object or same type objects
When focusing speed, improve user experience.
Fourth embodiment
Further, be as shown in Figure 6 fourth embodiment of the invention mobile terminal block diagram.It is shown in fig. 6 mobile whole
End 500 includes: at least one processor 501, memory 502, at least one network interface 504 and other users interface 503.It moves
Various components in dynamic terminal 500 are coupled by bus system 505.It is understood that bus system 505 is for realizing these
Connection communication between component.Bus system 505 further includes power bus, control bus and shape in addition to including data/address bus
State signal bus.But for the sake of clear explanation, various buses are all designated as bus system 505 in Fig. 6.
Wherein, user interface 503 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen, camera module etc., the camera module include the motor for focusing.
It is appreciated that the memory 502 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.And memory 502 is for saving object pixel size and motor position
Set and the number N, preset safe distance S etc. of the unknown number to fitting function preservation in need value and constant.Its
In, nonvolatile memory can be read-only memory (Read-Only Memory, ROM), programmable read only memory
(Programmable ROM, PROM), Erasable Programmable Read Only Memory EPROM (Erasable PROM, EPROM), electric erasable
Programmable read only memory (Electrically EPROM, EEPROM) or flash memory.Volatile memory can be arbitrary access
Memory (Random Access Memory, RAM) is used as External Cache.By exemplary but be not restricted theory
Bright, the RAM of many forms is available, such as static random access memory (Static RAM, SRAM), dynamic random access memory
Device (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data
Rate synchronization dynamic random access memory (Double Data Rate SDRAM, DDRSDRAM), enhanced synchronous dynamic with
Machine accesses memory (Enhanced SDRAM, ESDRAM), synchronized links dynamic random access memory (Synchlink
DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The present invention is implemented
The memory 502 of the system and method for example description is intended to include but is not limited to the memory of these and any other suitable type.
In some embodiments, memory 502 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 5021 and application program 5022.Memory 502 is also used to store
The number N, preset safe distance S of unknown number for saving object pixel size and motor position and to fitting function
Deng preservation in need value and constant.
Wherein, operating system 5021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 5022 includes various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 5022.
In embodiments of the present invention, by the program or instruction of calling memory 502 to store, specifically, can be application
The program or instruction stored in program 5022, the camera module in user interface 503 are used to obtain when focusing is completed every time
Object pixel size and motor position are simultaneously saved to memory 502;Processor 501 is according to saving in the memory 502
Object pixel size and motor position when focusing is completed every time, and it is fitted operation using preset algorithm, generate motor
The matching relationship function of position and object pixel size;Camera module in user interface 503 obtains the to focus next time
One object pixel size;The first mesh with the acquisition is calculated according to the matching relationship function of the generation in processor 501
Mark Pixel Dimensions matched first motor calculating position;The camera module of user interface 503 be calculated according to
One motor calculating position adjusts motor position, completes this focusing.
The method that the embodiments of the present invention disclose can be applied in processor 501, or be realized by processor 501.
Processor 501 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 501 or the instruction of software form.Above-mentioned processing
Device 501 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 502, processor 501 reads the information in memory 502, completes the above method in conjunction with its hardware.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware,
Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits
(Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal
Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable
Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general place
It manages in device, controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, can by execute the embodiment of the present invention described in function module (such as process, function etc.) come
Realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can
With portion realizes in the processor or outside the processor.
Optionally, as another embodiment, processor 501 is also used to the object pixel ruler for saving the memory 502
The number of very little and motor position data pair is compared with the number N of the unknown number to fitting function, the value root of the N
According to it is selected to fitting function prototype and the precision of the first motor calculating position depending on;When the number of data pair is less than N,
The formation condition of matching relationship function is not met, then according to the object pixel size and motor position of the preservation, by pre-
If computation rule obtains the first object Pixel Dimensions matched first motor calculating position with the acquisition.
Optionally, as another embodiment, processor 501 is also used to the object pixel for saving the memory 502
The number of size and the data pair of motor position is compared with the number N of the unknown number to fitting function, the value of the N
According to it is selected to the precision of fitting function and the first motor calculating position depending on;When the number of data pair is greater than or waits
When N, least square fitting operation is carried out according to preset algorithm, obtains the value of each unknown number to fitting function;Root
According to the value of obtained each unknown number to fitting function, the matching relationship letter of motor position and object pixel size is generated
Number;The camera module of user interface 503 is one mobile towards nearly burnt direction by the first motor calculating position being calculated
Preset safe distance S, and by motor, unidirectionally locally focusing direction is determined as remote Jiao Fangxiang, adjusts motor position, it is right to complete this
Coke, the value of the S is according to depending on camera module characteristic commissioning.
Optionally, as another embodiment, processor 501 is also used to the camera module of the user interface 503
The first object Pixel Dimensions of acquisition are compared with all object pixel sizes that the memory 502 saves, and obtain when described
The first object Pixel Dimensions taken be less than the preservation object pixel size in minimum target Pixel Dimensions when, will with it is described
The minimum motor position of minimum target pixel matching is as the first motor calculating position;The camera module of user interface 503 will
The first motor calculating position being calculated is towards the mobile preset safe distance S in nearly burnt direction, and by the unidirectional office of motor
Portion focusing direction is determined as remote Jiao Fangxiang, adjusts motor position, completes this focusing, the value of the S is according to camera module
Depending on characteristic commissioning.
Optionally, as another embodiment, processor 501 is also used to the camera module of the user interface 503
The first object Pixel Dimensions of acquisition are compared with all object pixel sizes that the memory 502 saves, and obtain when described
The first object Pixel Dimensions taken be greater than the preservation object pixel size in maximum target Pixel Dimensions when, will with it is described
The maximum motor position of maximum target pixel matching is as the first motor calculating position;The camera module of user interface 503 will
The first motor calculating position being calculated is towards the mobile preset safe distance S in remote burnt direction, and by the unidirectional office of motor
Portion focusing direction is determined as nearly Jiao Fangxiang, adjusts motor position, completes this focusing, the value of the S is according to camera module
Depending on characteristic commissioning.
Optionally, as another embodiment, processor 501 is also used to the camera module of the user interface 503
The first object Pixel Dimensions of acquisition are compared with all object pixel sizes that the memory 502 saves, and obtain when described
The first object Pixel Dimensions taken are greater than the third object pixel size in the object pixel size of the preservation, and are less than described
It, will be with the matched third horse of the third object pixel size when the 4th object pixel size in the object pixel size of preservation
Up to position as the first motor calculating position;The camera module of user interface 503 is by the first motor meter being calculated
Position is calculated towards the nearly burnt mobile preset safe distance S in direction, and unidirectionally locally focusing direction is determined as remote Jiao Fangxiang by motor,
Motor position is adjusted, completes this focusing, the value of the S is according to depending on camera module characteristic commissioning.
Optionally, as another embodiment, processor 501 is also used to the object pixel for saving the memory 502
The number of size and the data pair of motor position is compared with the number N of the unknown number to fitting function, the value of the N
According to it is selected to fitting function prototype and the precision of the first motor calculating position depending on;Be greater than when the number of data pair or
When person is equal to N, meet the formation condition of matching relationship function, then least square fitting operation is carried out according to preset algorithm, obtained
The value of each unknown number to fitting function;According to the value of obtained each unknown number to fitting function, generate
The matching relationship function of motor position and object pixel size;The camera module of user interface 503 is calculated described
First motor calculating position is towards the nearly burnt mobile preset safe distance S in direction, and unidirectionally locally focusing direction determines by motor
For remote Jiao Fangxiang, motor position is adjusted, completes this focusing, the value of the S is according to depending on camera module characteristic commissioning.
Mobile terminal 500 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.The mobile terminal of the embodiment of the present invention is fitted by above-mentioned module according to object pixel size and motor position
Matching relationship function or default computation rule are generated, it can be directly true according to the Pixel Dimensions of focus target when focusing next time
Determine motor position, then realize the purpose of focusing by adjusting motor position, solve the prior art focusing mode need it is more
The position of secondary mobile motor leads to the problem of time-consuming and power consumption, can be quick according to the matching relationship function generated is fitted
Motor position is calculated, improves focusing speed when shooting the same target object or same type objects, improves use
Family experience.
5th embodiment
As shown in fig. 7, mobile terminal 600 can be mobile phone, tablet computer, personal digital assistant (Personal
Digital Assistant, PDA) or the communication equipment with RF circuit 610 such as vehicle-mounted computer.
Mobile terminal 600 in Fig. 7 includes radio frequency (Radio Frequency, RF) circuit 610, memory 620, input
Unit 630, display unit 640, camera module 650, processor 660, voicefrequency circuit 670, WiFi (Wireless
Fidelity) module 680 and power supply 690.
Wherein, input unit 630 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 600 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 631.Touch panel 631, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses the operations of any suitable object or attachment on touch panel 631 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.Optionally, touch panel 631 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
The processor 660 is given again, and can be received order that processor 660 is sent and be executed.Furthermore, it is possible to using resistance-type,
The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 631.In addition to touch panel 631, input unit
630 can also include other input equipments 632, other input equipments 632 can include but is not limited to physical keyboard, function key
One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 640 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal 600.Display unit 640 may include display panel 641, optionally, can use LCD or organic hair
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 641.
In embodiments of the present invention, by call store the first memory 621 in software program and/or module and/
Or the data in the second memory 622, first memory 621 and/or second memory 622 are for saving object pixel size
And the number N, preset safe distance S etc. of motor position and the unknown number to fitting function preservation in need value with
And constant.Camera module 650 is used to obtain the object pixel size and motor position when focusing is completed every time and saves;Place
Reason device 660 is used for object pixel size and motor position when completing according to each focusing of the preservation, and utilizes default
Algorithm is fitted operation, generates the matching relationship function of motor position and object pixel size;Obtain the to focus next time
One object pixel size;According to the matching relationship function of the generation, the first object pixel ruler with the acquisition is calculated
Very little matched first motor calculating position;According to the first motor calculating position being calculated, motor position is adjusted, is completed
This focusing.
Optionally, as another embodiment, processor 660 is also used to the object pixel size and motor of the preservation
The number of the data pair of position is compared with the number N of the unknown number to fitting function, and the value of the N is according to selected
Depending on fitting function prototype and the precision of the first motor calculating position;When the number of data pair is less than N, matching is not met
The formation condition of relation function, then according to the object pixel size and motor position of the preservation, by presetting computation rule
Obtain the first object Pixel Dimensions matched first motor calculating position with the acquisition.
Optionally, as another embodiment, processor 660 is also used to the object pixel size of the preservation and horse
The number of data pair up to position is compared with the number N of the unknown number to fitting function, and the value of the N is according to selected by
To depending on the precision of fitting function and the first motor calculating position;When the number of data pair is more than or equal to N, according to
Preset algorithm carries out least square fitting operation, obtains the value of each unknown number to fitting function;It is obtained according to described
Each unknown number to fitting function value, generate motor position and object pixel size matching relationship function;Camera
Mould group 650 by the first motor calculating position being calculated towards the mobile preset safe distance S in nearly burnt direction, and by horse
It is determined as remote Jiao Fangxiang up to unidirectional part focusing direction, adjusts motor position, complete this focusing, the value foundation of the S is taken the photograph
As depending on head mould group characteristic commissioning.
Optionally, as another embodiment, processor 660 be also used to by the first object Pixel Dimensions of the acquisition with
All object pixel sizes of the preservation are compared, when the first object Pixel Dimensions of the acquisition are less than the preservation
When minimum target Pixel Dimensions in object pixel size, using with the minimum motor position of the minimum target pixel matching as
First motor calculating position;Camera module 650 is mobile towards nearly burnt direction by the first motor calculating position being calculated
One preset safe distance S, and by motor, unidirectionally locally focusing direction is determined as remote Jiao Fangxiang, adjusts motor position, completes this
Secondary focusing, the value of the S is according to depending on camera module characteristic commissioning.
Optionally, as another embodiment, processor 660 be also used to by the first object Pixel Dimensions of the acquisition with
All object pixel sizes of the preservation are compared, when the first object Pixel Dimensions of the acquisition are greater than the preservation
When maximum target Pixel Dimensions in object pixel size, using with the maximum motor position of the maximum target pixel matching as
First motor calculating position;Camera module 650 is mobile towards remote burnt direction by the first motor calculating position being calculated
One preset safe distance S, and by motor, unidirectionally locally focusing direction is determined as nearly Jiao Fangxiang, adjusts motor position, completes this
Secondary focusing, the value of the S is according to depending on camera module characteristic commissioning.
Optionally, as another embodiment, processor 660 be also used to by the first object Pixel Dimensions of the acquisition with
All object pixel sizes of the preservation are compared, when the first object Pixel Dimensions of the acquisition are greater than the preservation
Third object pixel size in object pixel size, and the 4th object pixel being less than in the object pixel size of the preservation
It, will be with the matched third motor position of the third object pixel size as the first motor calculating position when size;Camera
Mould group 650 by the first motor calculating position being calculated towards the mobile preset safe distance S in nearly burnt direction, and by horse
It is determined as remote Jiao Fangxiang up to unidirectional part focusing direction, adjusts motor position, complete this focusing, the value foundation of the S is taken the photograph
As depending on head mould group characteristic commissioning.
Optionally, as another embodiment, processor 660 is also used to the object pixel size of the preservation and horse
The number of data pair up to position is compared with the number N of the unknown number to fitting function, and the value of the N is according to selected by
To fitting function prototype and the precision of the first motor calculating position depending on;When the number of data pair is more than or equal to N,
Meet the formation condition of matching relationship function, then least square fitting operation is carried out according to preset algorithm, obtains described wait be fitted
The value of each unknown number of function;According to the value of obtained each unknown number to fitting function, generate motor position with
The matching relationship function of object pixel size;Camera module 650 is by the first motor calculating position being calculated towards close
The mobile preset safe distance S in burnt direction, and by motor, unidirectionally locally focusing direction is determined as remote Jiao Fangxiang, adjusts motor position
It sets, completes this focusing, the value of the S is according to depending on camera module characteristic commissioning.
It should be noted that touch panel 631 can cover display panel 641, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 660 is sent to determine the type of touch event, is followed by subsequent processing device
660 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 660 is the control centre of mobile terminal 600, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or executing the software program and/or module that are stored in first memory 621, and calling storage
Data in second memory 622 execute the various functions and processing data of mobile terminal 600, thus to mobile terminal 600
Carry out integral monitoring.Optionally, processor 660 may include one or more processing units.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each
Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.This hair
The mobile terminal of bright embodiment generates matching relationship letter by above-mentioned module, according to object pixel size and motor position fitting
Several or default computation rule can directly determine motor position according to the Pixel Dimensions of focus target when focusing next time, then
The purpose that focusing is realized by adjusting motor position, the focusing mode for solving the prior art need repeatedly the position of mobile motor
The problem of leading to time-consuming and power consumption is set, according to the matching relationship function generated is fitted, motor position can quickly be calculated
It sets, improves focusing speed when shooting the same target object or same type objects, improve user experience.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (12)
1. a kind of focusing method is applied to a mobile terminal, the mobile terminal includes camera module, the camera module
Including the motor for focusing, which is characterized in that the focusing method includes:
It obtains the object pixel size and motor position when focusing is completed every time and saves;
Object pixel size and motor position when being completed according to each focusing of the preservation, and carried out using preset algorithm
Fitting operation generates the matching relationship function of motor position and object pixel size;
Obtain the first object Pixel Dimensions focused next time;
According to the matching relationship function of the generation, the first object Pixel Dimensions matched first with the acquisition are calculated
Motor calculating position;
According to the first motor calculating position being calculated, motor position is adjusted, this focusing is completed;
Wherein, each object pixel size and motor position focused when completing according to the preservation, and using in advance
The step of imputation method is fitted operation, generates motor position and the matching relationship function of object pixel size, comprising:
By the number of the object pixel size of the preservation and the data pair of motor position and the unknown number to fitting function
Number N is compared, and the value of the N is according to selected to fitting function prototype and the precision of the first motor calculating position
Depending on;
When the number of data pair is less than N, the formation condition of matching relationship function is not met;
When the number of data pair be more than or equal to N when, meet the formation condition of matching relationship function, then according to preset algorithm into
Row least square fitting operation obtains the value of each unknown number to fitting function;According to the obtained letter to be fitted
The value of several each unknown numbers generates the matching relationship function of motor position and object pixel size;
In the case where the number of data pair does not meet the formation condition of matching relationship function, the matching according to the generation
Relation function, the step of the first motor calculating position matched with the first object Pixel Dimensions of the acquisition is calculated are as follows:
According to the object pixel size and motor position of the preservation, it is calculated and the acquisition by default computation rule
First object Pixel Dimensions matched first motor calculating position;
It is wherein, described to obtain each object pixel size focused when completing and motor position and save, comprising:
When focusing is completed every time, a ratio r atio is calculated using the first formula;
Wherein, the first formula are as follows: ratio=(mo-NHV)/J;Mo is motor position when focusing is completed every time;NHV is distance
The motor position saved of motor position recently when this focusing is completed;J is the total kilometres of motor;
If the ratio r atio is less than J/K, the object pixel size and motor position when this focusing is completed are not saved;It is no
Then, the object pixel size and motor position when this focusing is completed are saved;The wherein total kilometres phase of the value of K and motor
It closes.
2. focusing method according to claim 1, which is characterized in that the object pixel size according to the preservation with
And motor position, it is calculated and matched first motor of the first object Pixel Dimensions of the acquisition by default computation rule
The step of calculating position, comprising:
The first object Pixel Dimensions of the acquisition are compared with all object pixel sizes of the preservation, are obtained when described
It, will when the first object Pixel Dimensions taken are identical as the second object pixel size in all object pixel sizes of the preservation
With matched second motor position of the second object pixel size as the first motor calculating position;
The step of first motor calculating position being calculated according to adjusts motor position, completes this focusing packet
It includes:
By the first motor calculating position being calculated towards the nearly burnt mobile preset safe distance S in direction, and will be described
Unidirectionally locally focusing direction is determined as remote Jiao Fangxiang to motor, adjusts motor position, completes this focusing, the value foundation of the S
Depending on camera module characteristic commissioning.
3. focusing method according to claim 1, which is characterized in that the object pixel size according to the preservation with
And motor position, it is calculated and matched first motor of the first object Pixel Dimensions of the acquisition by default computation rule
The step of calculating position, comprising:
The first object Pixel Dimensions of the acquisition are compared with all object pixel sizes of the preservation, are obtained when described
The first object Pixel Dimensions taken be less than the preservation object pixel size in minimum target Pixel Dimensions when, will with it is described
The minimum motor position of minimum target pixel matching is as the first motor calculating position;
The step of first motor calculating position being calculated according to adjusts motor position, completes this focusing packet
It includes:
By the first motor calculating position being calculated towards the mobile preset safe distance S in nearly burnt direction, and by motor
Unidirectional part focusing direction is determined as remote Jiao Fangxiang, adjusts motor position, completes this focusing, the value of the S is according to camera shooting
Depending on head mould group characteristic commissioning.
4. focusing method according to claim 1, which is characterized in that the object pixel size according to the preservation with
And motor position, it is calculated and matched first motor of the first object Pixel Dimensions of the acquisition by default computation rule
The step of calculating position, comprising:
The first object Pixel Dimensions of the acquisition are compared with all object pixel sizes of the preservation, are obtained when described
The first object Pixel Dimensions taken be greater than the preservation object pixel size in maximum target Pixel Dimensions when, will with it is described
The maximum motor position of maximum target pixel matching is as the first motor calculating position;
The step of first motor calculating position being calculated according to adjusts motor position, completes this focusing packet
It includes:
By the first motor calculating position being calculated towards the mobile preset safe distance S in remote burnt direction, and by motor
Unidirectional part focusing direction is determined as nearly Jiao Fangxiang, adjusts motor position, completes this focusing, the value of the S is according to camera shooting
Depending on head mould group characteristic commissioning.
5. focusing method according to claim 1, which is characterized in that the object pixel size according to the preservation with
And motor position, it is calculated and matched first motor of the first object Pixel Dimensions of the acquisition by default computation rule
The step of calculating position, comprising:
The first object Pixel Dimensions of the acquisition are compared with all object pixel sizes of the preservation, are obtained when described
The first object Pixel Dimensions taken are greater than the third object pixel size in the object pixel size of the preservation, and are less than described
It, will be with the matched third horse of the third object pixel size when the 4th object pixel size in the object pixel size of preservation
Up to position as the first motor calculating position;
The step of first motor calculating position being calculated according to adjusts motor position, completes this focusing packet
It includes:
By the first motor calculating position being calculated towards the mobile preset safe distance S in remote burnt direction, and by motor
Unidirectional part focusing direction is determined as nearly Jiao Fangxiang, adjusts motor position, completes this focusing, the value of the S is according to camera shooting
Depending on head mould group characteristic commissioning.
6. focusing method according to claim 1, which is characterized in that
In the case where the number of data pair meets the formation condition of matching relationship function, be calculated according to
One motor calculating position adjusts motor position, and the step of completing this focusing includes:
By the first motor calculating position being calculated towards the mobile preset safe distance S in nearly burnt direction, and by motor
Unidirectional part focusing direction is determined as remote Jiao Fangxiang, adjusts motor position, completes this focusing, the value of the S is according to camera shooting
Depending on head mould group characteristic commissioning.
7. a kind of mobile terminal, including camera module, the camera module includes the motor for focusing, and feature exists
In the mobile terminal includes:
Processing module, for obtaining each object pixel size focused when completing and motor position and saving;
Fitting module, object pixel size and motor position when each focusing for being saved according to the processing module is completed
It sets, and is fitted operation using preset algorithm, generate the matching relationship function of motor position and object pixel size;
Module is obtained, for obtaining the first object Pixel Dimensions focused next time;
Computing module, the matching relationship function for being generated according to the fitting module, is calculated first with the acquisition
Object pixel size matched first motor calculating position;
Module is adjusted, the first motor calculating position for being calculated according to the computing module adjusts motor position, completes
This focusing;
Wherein, the fitting module includes:
First fitting submodule, the data pair of object pixel size and motor position for saving the processing module
Number is compared with the number N of the unknown number to fitting function, the value of the N according to it is selected to fitting function and
Depending on the precision of first motor calculating position;
Second fitting submodule, for not meeting the formation condition of matching relationship function when the number of data pair is less than N;
The fitting module further include:
4th fitting submodule, for meeting the generation item of matching relationship function when the number of data pair is more than or equal to N
Part then carries out least square fitting operation according to preset algorithm, obtains the value of each unknown number to fitting function;
5th is fitted submodule, each unknown number to fitting function for being obtained according to the 4th fitting submodule
Value generates the matching relationship function of motor position and object pixel size;
The computing module includes:
First computational submodule, in the case where not meeting the formation condition of matching relationship function for the number in data pair, root
The object pixel size and motor position saved according to the processing module is calculated by default computation rule and is obtained with described
The first object Pixel Dimensions matched first motor calculating position taken;
Wherein, the processing module is further used for:
When each focusing is completed, a ratio r atio is calculated using the first formula;
Wherein, the first formula are as follows: ratio=(mo-NHV)/J;Mo is motor position when focusing is completed every time;NHV is distance
The motor position saved of motor position recently when this focusing is completed;J is the total kilometres of motor;
If the ratio r atio is less than J/K, the object pixel size and motor position when this focusing is completed are not saved;It is no
Then, the object pixel size and motor position when this focusing is completed are saved;The wherein total kilometres phase of the value of K and motor
It closes.
8. mobile terminal according to claim 7, which is characterized in that first computational submodule includes:
First position determination unit, first object Pixel Dimensions and the preservation for obtaining the acquisition module it is all
Object pixel size is compared, when the first object Pixel Dimensions of the acquisition and all object pixel sizes of the preservation
In the second object pixel size it is identical when, will be with matched second motor position of the second object pixel size as first
Motor calculating position;
The adjustment module includes:
The first adjustment submodule, the first motor calculating position for the first position determination unit to be calculated is towards nearly coke
A preset safe distance S is moved in direction, and by the motor, unidirectionally locally focusing direction is determined as remote Jiao Fangxiang, adjusts motor
This focusing is completed in position, and the value of the S is according to depending on camera module characteristic commissioning.
9. mobile terminal according to claim 7, which is characterized in that first computational submodule includes:
Second position determination unit, first object Pixel Dimensions and the preservation for obtaining the acquisition module it is all
Object pixel size is compared, when the first object Pixel Dimensions of the acquisition are less than in the object pixel size of the preservation
Minimum target Pixel Dimensions when, using with the minimum motor position of the minimum target pixel matching as the first motor calculate position
It sets;
The adjustment module includes:
Second adjustment submodule, the first motor calculating position for the second position determination unit to be calculated is towards nearly coke
A preset safe distance S is moved in direction, and by motor, unidirectionally locally focusing direction is determined as remote Jiao Fangxiang, adjusts motor position
It sets, completes this focusing, the value of the S is according to depending on camera module characteristic commissioning.
10. mobile terminal according to claim 7, which is characterized in that first computational submodule includes:
The third place determination unit, first object Pixel Dimensions and the preservation for obtaining the acquisition module it is all
Object pixel size is compared, when the first object Pixel Dimensions of the acquisition are greater than in the object pixel size of the preservation
Maximum target Pixel Dimensions when, using with the maximum motor position of the maximum target pixel matching as the first motor calculate position
It sets;
The adjustment module includes:
Third adjusting submodule, the first motor calculating position for the third place determination unit to be calculated is towards remote coke
A preset safe distance S is moved in direction, and by motor, unidirectionally locally focusing direction is determined as nearly Jiao Fangxiang, adjusts motor position
It sets, completes this focusing, the value of the S is according to depending on camera module characteristic commissioning.
11. mobile terminal according to claim 7, which is characterized in that first computational submodule includes:
4th position determination unit, first object Pixel Dimensions and the preservation for obtaining the acquisition module it is all
Object pixel size is compared, when the first object Pixel Dimensions of the acquisition are greater than in the object pixel size of the preservation
Third object pixel size, and be less than the preservation object pixel size in the 4th object pixel size when, will be with institute
The matched third motor position of third object pixel size is stated as the first motor calculating position;
The adjustment module includes:
4th adjusting submodule, the first motor calculating position for the 4th position determination unit to be calculated is towards remote coke
A preset safe distance S is moved in direction, and by motor, unidirectionally locally focusing direction is determined as nearly Jiao Fangxiang, adjusts motor position
It sets, completes this focusing, the value of the S is according to depending on camera module characteristic commissioning.
12. mobile terminal according to claim 7, which is characterized in that
The adjustment module includes:
5th adjusting submodule, in the case where meeting the formation condition of matching relationship function for the number in data pair, by institute
The first motor calculating position that computing module is calculated is stated towards the nearly burnt mobile preset safe distance S in direction, and by motor
Unidirectional part focusing direction is determined as remote Jiao Fangxiang, adjusts motor position, completes this focusing, the value of the S is according to camera shooting
Depending on head mould group characteristic commissioning.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510833262.0A CN105827944B (en) | 2015-11-25 | 2015-11-25 | A kind of focusing method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510833262.0A CN105827944B (en) | 2015-11-25 | 2015-11-25 | A kind of focusing method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105827944A CN105827944A (en) | 2016-08-03 |
CN105827944B true CN105827944B (en) | 2019-05-17 |
Family
ID=56514661
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510833262.0A Active CN105827944B (en) | 2015-11-25 | 2015-11-25 | A kind of focusing method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105827944B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106488137A (en) | 2016-11-29 | 2017-03-08 | 广东欧珀移动通信有限公司 | Dual camera focusing method, device and terminal unit |
CN107179596B (en) | 2017-05-24 | 2019-09-17 | Oppo广东移动通信有限公司 | Focusing method and Related product |
CN108429884A (en) * | 2018-06-05 | 2018-08-21 | 昆山丘钛微电子科技有限公司 | A kind of focusing method, device, equipment and medium |
WO2020020148A1 (en) | 2018-07-23 | 2020-01-30 | 深圳市真迈生物科技有限公司 | Imaging method, device and system |
CN112291469A (en) * | 2018-07-23 | 2021-01-29 | 深圳市真迈生物科技有限公司 | Imaging method, device and system |
CN118158524A (en) * | 2018-07-23 | 2024-06-07 | 深圳市真迈生物科技有限公司 | Imaging method, device and system |
WO2020024214A1 (en) * | 2018-08-02 | 2020-02-06 | 深圳市大疆创新科技有限公司 | Aperture control method and apparatus, aperture device, and photographic device |
CN109151326A (en) * | 2018-10-26 | 2019-01-04 | 深圳鳍源科技有限公司 | A kind of moving camera focusing method, device, moving camera and storage medium |
CN109803090B (en) * | 2019-01-25 | 2021-09-28 | 睿魔智能科技(深圳)有限公司 | Automatic zooming method and system for unmanned shooting, unmanned camera and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101086598A (en) * | 2006-06-09 | 2007-12-12 | 索尼株式会社 | Imaging apparatus, control method of imaging apparatus, and computer program |
JP2008052225A (en) * | 2006-08-28 | 2008-03-06 | Olympus Imaging Corp | Camera, focus control method, and program |
CN101339349A (en) * | 2007-07-04 | 2009-01-07 | 三洋电机株式会社 | Imaging apparatus and automatic focus control method |
CN104883502A (en) * | 2015-05-19 | 2015-09-02 | 广东欧珀移动通信有限公司 | Focusing method and apparatus for mobile terminal |
-
2015
- 2015-11-25 CN CN201510833262.0A patent/CN105827944B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101086598A (en) * | 2006-06-09 | 2007-12-12 | 索尼株式会社 | Imaging apparatus, control method of imaging apparatus, and computer program |
JP2008052225A (en) * | 2006-08-28 | 2008-03-06 | Olympus Imaging Corp | Camera, focus control method, and program |
CN101339349A (en) * | 2007-07-04 | 2009-01-07 | 三洋电机株式会社 | Imaging apparatus and automatic focus control method |
CN104883502A (en) * | 2015-05-19 | 2015-09-02 | 广东欧珀移动通信有限公司 | Focusing method and apparatus for mobile terminal |
Non-Patent Citations (1)
Title |
---|
插值与曲线拟合;韩艳丽等;《中国西部科技》;20090610(第11期);第1、2章 |
Also Published As
Publication number | Publication date |
---|---|
CN105827944A (en) | 2016-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105827944B (en) | A kind of focusing method and mobile terminal | |
US11704771B2 (en) | Training super-resolution convolutional neural network model using a high-definition training image, a low-definition training image, and a mask image | |
CN106027900A (en) | Photographing method and mobile terminal | |
CN106170058B (en) | A kind of exposure method and mobile terminal | |
CN105847674A (en) | Preview image processing method based on mobile terminal, and mobile terminal therein | |
CN107155064B (en) | A kind of image pickup method and mobile terminal | |
CN104333700A (en) | Image blurring method and image blurring device | |
CN107509030B (en) | focusing method and mobile terminal | |
CN107172346B (en) | Virtualization method and mobile terminal | |
CN105827952A (en) | Photographing method for removing specified object and mobile terminal | |
CN106126108B (en) | A kind of generation method and mobile terminal of thumbnail | |
CN112954199B (en) | Video recording method and device | |
CN106101569A (en) | A kind of method of light filling of taking pictures and mobile terminal | |
CN107026982B (en) | A kind of photographic method and mobile terminal of mobile terminal | |
CN105827951A (en) | Moving object photographing method and mobile terminal | |
CN106454086A (en) | Image processing method and mobile terminal | |
CN105827963B (en) | Scene-change detecting method and mobile terminal during one kind is taken pictures | |
CN107592458B (en) | Shooting method and mobile terminal | |
CN107222737B (en) | A kind of processing method and mobile terminal of depth image data | |
CN113141450A (en) | Shooting method, shooting device, electronic equipment and medium | |
CN105677731A (en) | Method, device, terminal and server for displaying picture previews | |
CN112738401B (en) | Zooming method and device and electronic equipment | |
CN107071282B (en) | Photo processing method and mobile terminal | |
US9456136B2 (en) | Apparatus and method for generating image data in portable terminal | |
CN105120153A (en) | Image photographing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |