CN108646384A - A kind of focusing method, device and mobile terminal - Google Patents
A kind of focusing method, device and mobile terminal Download PDFInfo
- Publication number
- CN108646384A CN108646384A CN201810333389.XA CN201810333389A CN108646384A CN 108646384 A CN108646384 A CN 108646384A CN 201810333389 A CN201810333389 A CN 201810333389A CN 108646384 A CN108646384 A CN 108646384A
- Authority
- CN
- China
- Prior art keywords
- camera lens
- distance
- constant interval
- sensitive chip
- default
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G02—OPTICS
- G02B—OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G02B7/00—Mountings, adjusting means, or light-tight connections, for optical elements
- G02B7/28—Systems for automatic generation of focusing signals
- G02B7/282—Autofocusing of zoom lenses
-
- G—PHYSICS
- G02—OPTICS
- G02B—OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G02B7/00—Mountings, adjusting means, or light-tight connections, for optical elements
- G02B7/28—Systems for automatic generation of focusing signals
- G02B7/36—Systems for automatic generation of focusing signals using image sharpness techniques, e.g. image processing techniques for generating autofocus signals
Abstract
The invention discloses a kind of focusing method, device and mobile terminals, for solving the problems, such as that camera lens is too high or too low for temperature so that lens focus changes and then the photo for causing camera lens to shoot is unsharp in the prior art.This method includes:Obtain the distance between preset time period inner lens and sensitive chip;Determine that the distance is equal to the second accounting of the distance of the minimum value of the default constant interval equal to the first accounting of the distance of the maximum value of default constant interval and the distance;If first accounting is greater than or equal to the first default value, increase the maximum value of the constant interval of the distance between the camera lens and the sensitive chip;If second accounting is greater than or equal to the second default value, reduce the minimum value of the constant interval of the distance between the camera lens and the sensitive chip.
Description
Technical field
The present invention relates to a kind of field of computer technology more particularly to focusing method, device and mobile terminals.
Background technology
With the constantly improve of mobile terminal function, camera function has become one of basic function of mobile terminal, mobile
The autofocus system of the camera module of terminal is mainly made of following device:Camera lens, motor and its driving and photosensitive
Chip.Wherein camera lens and sensitive chip are the main devices of imaging, and motor and its driving are the main devices of auto-focusing.It is existing
Camera in the state of distant view and close shot the principle of camera focusing be that according to different object distances, motor pushes camera lens, changes
Become the relative distance between camera lens and sensitive chip, so that the reflection light of object is focused and be imaged on chip, it is most clear to reach imaging
Clear state.
As shown in Figure 1, the focusing range of auto-focusing module is the distant view from close shot to infinite point, camera lens and photosensitive core
The relative position of piece can also change, in simple terms, be exactly when object is when respectively in close shot and distant view, it is corresponding at
Image position is different, and needs the distance for adjusting camera lens and sensitive chip so that can be obtained always clearly on sensitive chip
Imaging effect.For the camera module on mobile terminal, lens location is motionless, mainly drives camera lens to move by motor
It is dynamic to realize.
In the prior art, in order to improve the efficiency taken pictures, user is avoided to clap the overlong time of a pictures and influence user
Experience, often previously according to camera lens and motor characteristic and auto-focusing algorithm, set under distant view and close shot state,
The distance between camera lens and sensitive chip range, and in the state of detecting distant view or close shot, camera lens is driven by motor, is adjusted
The distance between whole camera lens and sensitive chip so that shoot clear photograph.
However when to be in temperature excessively high (for example mobile terminal then can cause camera lens temperature excessively high after long times) for camera lens
Or in too low environment when (such as in the outdoor environment in winter, temperature is often below zero degree), the focal length of camera lens can then become
Change, after change has occurred in the focal length of camera lens, if motor preset displacement distance promotion camera lens movement before also pressing, can lead
It causes the image of camera capture not clear enough, influences user experience.
Invention content
A kind of focusing method of offer of the embodiment of the present invention, device and mobile terminal, to solve camera lens temperature in the prior art
The too high or too low unsharp problem of photo for lens focus being changed and then camera lens is caused to shoot.
In order to solve the above-mentioned technical problem, the invention is realized in this way:In a first aspect, an embodiment of the present invention provides one
Kind focusing method, including:
Obtain the distance between preset time period inner lens and sensitive chip;
Determine that the distance between the preset time period inner lens and sensitive chip are equal to the maximum value of default constant interval
Distance the first accounting and the distance between the preset time period inner lens and sensitive chip be equal to the default variation
Second accounting of the distance of the minimum value in section;
If first accounting is greater than or equal to the first default value, increase between the camera lens and the sensitive chip
Distance constant interval maximum value;
If second accounting is greater than or equal to the second default value, reduce between the camera lens and the sensitive chip
Distance constant interval minimum value;
Wherein, the default constant interval is the default variation zone of the distance between the camera lens and described sensitive chip
Between.
Second aspect, the embodiment of the present invention also provide a kind of focusing mechanism, including:
Acquiring unit, for obtaining the distance between preset time period inner lens and sensitive chip;
Determination unit, for determining that the distance between the preset time period inner lens and sensitive chip are equal to default variation
First accounting of the distance of the maximum value in section and the distance between the preset time period inner lens and sensitive chip are equal to
The accounting of the distance of the minimum value of the default constant interval;
Increasing unit increases the camera lens and institute if being greater than or equal to the first default value for first accounting
State the maximum value of the constant interval of the distance between sensitive chip;
Reduction unit reduces the camera lens and institute if being greater than or equal to the second default value for second accounting
State the minimum value of the constant interval of the distance between sensitive chip;
Wherein, the default constant interval is the default variation zone of the distance between the camera lens and described sensitive chip
Between.
The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, including:Memory, processor and it is stored in institute
The computer program that can be run on memory and on the processor is stated, when the computer program is executed by the processor
It realizes such as the step of focusing method.
In embodiments of the present invention, by obtaining the distance between preset time period inner lens and sensitive chip, due to mirror
For head during normal take pictures, the distance between camera lens and sensitive chip are the default change of the distance between camera lens and sensitive chip
Change section the probability being most worth it is often smaller, once and the environment temperature where camera lens is too high or too low, focal length can then occur
Variation, in this case, the motor in auto-focusing module then very may be used to push camera lens to find the articulation point of reference object
Camera lens can be pushed to the maximum value or minimum value of default constant interval, this may result in the maximum value of distance in distance record
And/or the probability that minimum value occurs is larger, is accounted in first that the distance apart from the maximum value for being equal to default constant interval is determined
When than being greater than or equal to the first default value, the maximum of the constant interval of the distance between camera lens and sensitive chip can be increased
Value, when the second accounting that the distance apart from the minimum value for being equal to default constant interval is determined is greater than or equal to the second default value
When, the minimum value of the constant interval of the distance between camera lens and sensitive chip can be reduced, so that auto-focusing module
Clear photograph is shot in constant interval that can be after the adjustment.
Description of the drawings
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 present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is the distant view of auto-focusing module and the schematic diagram of close-range imaging in the embodiment of the present invention;
Fig. 2 is a kind of specific implementation flow diagram of focusing method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of focusing mechanism provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention.
Specific implementation mode
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 describes, 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.
The technical solution provided below in conjunction with attached drawing, each embodiment that the present invention will be described in detail.
To solve the problems of the prior art, the present invention provides a kind of focusing method, the executive agent of this method, can with but
Being not limited to mobile phone, tablet computer, wearable device etc. can be configured as executing this method user provided in an embodiment of the present invention
At least one of terminal.
For ease of description, hereafter executive agent in this way is to be able to carry out for the mobile terminal of this method, to this
The embodiment of method is introduced.It is appreciated that it is that one kind is illustratively said that the executive agent of this method, which is mobile terminal,
It is bright, it is not construed as the restriction to this method.
Specifically, focusing method provided by the invention includes:First, obtain preset time period inner lens and sensitive chip it
Between distance record;Then, it is determined that the distance between preset time period inner lens and sensitive chip are equal to default constant interval most
The first accounting and the distance between preset time period inner lens and sensitive chip for the distance being worth greatly are equal to default constant interval
Minimum value distance the second accounting;If the first accounting is greater than or equal to the first default value, increase camera lens and photosensitive core
The corresponding maximum value of constant interval of the distance between piece;If the second accounting is greater than or equal to the second default value, reduce mirror
Head minimum value corresponding with the constant interval of the distance between sensitive chip, wherein default constant interval is camera lens and photosensitive core
The default constant interval of the distance between piece.
In embodiments of the present invention, by obtaining the distance between preset time period inner lens and sensitive chip, due to mirror
For head during normal take pictures, the distance between camera lens and sensitive chip are the default change of the distance between camera lens and sensitive chip
Change section the probability being most worth it is often smaller, once and the environment temperature where camera lens is too high or too low, focal length can then occur
Variation, in this case, the motor in auto-focusing module then very may be used to push camera lens to find the articulation point of reference object
Camera lens can be pushed to the maximum value or minimum value of default constant interval, this may result in the maximum value of distance in distance record
And/or the probability that minimum value occurs is larger, is accounted in first that the distance apart from the maximum value for being equal to default constant interval is determined
When than being greater than or equal to the first default value, the maximum of the constant interval of the distance between camera lens and sensitive chip can be increased
Value, when the second accounting that the distance apart from the minimum value for being equal to default constant interval is determined is greater than or equal to the second default value
When, the minimum value of the constant interval of the distance between camera lens and sensitive chip can be reduced, so that auto-focusing module
Clear photograph is shot in constant interval that can be after the adjustment.
With reference to the specific implementation flow diagram of focusing method shown in Fig. 2, the implementation process of this method is carried out
It is discussed in detail, including:
Step 101, the distance between preset time period inner lens and sensitive chip are obtained;
As described in the background art, by taking the precision of motor driving is 10bit as an example, then the driving of this motor can be defeated
Go out 210=1024 different size of electric currents are to motor, so that motor drives camera lens to move corresponding 1024 different size of positions
It moves, it is clear that in practical applications, if it is all different size of according to 1024 by the motor in auto-focusing module to take pictures every time
Displacement drives camera lens to move successively, and the efficiency to obtain clear photograph can then influence the usage experience of user.It is clapped to improve
According to efficiency, the often characteristic based on camera lens, sensitive chip and motor and its driving is arranged between camera lens and sensitive chip
Distance default constant interval, that is, distant view (such as infinite point) and close shot (such as self-timer) the two limit shooting away from
From under the conditions of, the minimum value and maximum value of the distance between corresponding camera lens and sensitive chip.
In above-mentioned scene, when camera lens causes its focal length to change due to too high or too low for temperature, this will be straight
Connect the distance between preset camera lens and sensitive chip before causing default constant interval will no longer satisfy actual close shot and
The shooting demand of distant view, that is to say, that preset camera lens will be no longer corresponding close with the maximum value of the distance between sensitive chip before
The shooting distance of scape, camera lens also no longer correspond to the shooting distance of distant view with the minimum value of the distance between sensitive chip, exist in this way
It, then may be due between camera lens and sensitive chip when shooting close shot, distant view or object between close shot and distant view
The limitation of the default constant interval of distance and clear photograph can not be shot.
In order to solve this problem, the embodiment of the present invention is based on during actual photographed, and user uses automatic shooting module
When shooting photo, the object between close shot and distant view is typically shot, that is to say, that actual use auto-focusing module
When, the probability that the distance between camera lens and sensitive chip reach maximum value and minimum value the two limiting values is often smaller
This feature can obtain the distance between historical time section inner lens and sensitive chip, by determining that auto-focusing module exists
When focusing the maximum value and/or minimum value of camera lens and the distance between sensitive chip in historical time section at a distance from record
Accounting size, to judge whether the focal length of camera lens is changed, and it is big equal to the first accounting of the distance of maximum value in distance
When the first default value, increase camera lens maximum value corresponding with the constant interval of the distance between sensitive chip,
The second accounting that distance is equal to the distance of minimum value reduces when being greater than or equal to the second default value between camera lens and sensitive chip
Distance the corresponding minimum value of constant interval so that auto-focusing module shoots clear photograph.
It should be understood that step number (the step number here of the distance between camera lens and sensitive chip and the motor for pushing camera lens movement
For weigh motor movement distance unit) be it is one-to-one, in practical applications, can be in the electrically erasable of mobile terminal
Programmable read only memory (Electrically Erasable Programmable read only memory, EEPROM)
The step number record of motor is stored, therefore, the distance between preset time period inner lens and sensitive chip record is obtained, specifically comes
It says, the step number for the motor for pushing camera lens movement in preset time period can be obtained first;Then, it is based on preset time period inner motor
Step number, determine the distance between camera lens and sensitive chip.
Step 102, determine that the distance between preset time period inner lens and sensitive chip are equal to default constant interval most
The first accounting and the distance between preset time period inner lens and sensitive chip for the distance being worth greatly are equal to default constant interval
Minimum value distance the second accounting;
Wherein, the default constant interval that constant interval is the distance between camera lens and sensitive chip, that is, camera lens are preset
In the normal temperature range, camera lens and the distance between the sensitive chip determined based on the characteristic of camera lens and sensitive chip is preset
Constant interval.The default constant interval includes a maximum value and a minimum value, obtain preset time period inner lens with
After the distance between sensitive chip, it can determine that distance is equal to the distance of the maximum value of default constant interval in these distances
First number, and distance is equal to second number of the distance of the minimum value of default constant interval, and is based on preset time period
The total number of the distance between inner lens and sensitive chip and first number and second number, determine first number and total number
Ratio, that is, the distance between preset time period inner lens and sensitive chip be equal to the maximum value of default constant interval away from
From the first accounting and second number and total number ratio, that is, between preset time period inner lens and sensitive chip
Distance be equal to default constant interval minimum value distance the second accounting.
Step 103, if the first accounting be greater than or equal to the first default value, increase between camera lens and sensitive chip away from
From the corresponding maximum value of constant interval;
Specifically, since the change of the focal length of the camera lens in the embodiment of the present invention is often caused by the temperature residing for camera lens
Caused by too high or too low, on the one hand it can increase the distance between camera lens and sensitive chip according to preset adjustment gradient
Variation range so that the variation range of the distance between camera lens and sensitive chip disclosure satisfy that actual demand of taking pictures, that is,
The requirement of clarity;On the other hand it can be implanted into temperature sensor in automatic focusing camera module, and obtains not equality of temperature in advance
Between camera lens and sensitive chip therefore the constant interval of distance increases the distance between camera lens and sensitive chip under the conditions of degree
The corresponding maximum value of constant interval may include following two modes:
First way can increase camera lens and sensitive chip if the first accounting is greater than or equal to the first default value
The distance between the corresponding maximum value of constant interval, specifically, can be based on preset adjustment gradient, increase camera lens with sense
The corresponding maximum value of constant interval of the distance between optical chip, and then the variation for the distance between increasing camera lens and sensitive chip
Section.Based on preset adjustment gradient, after the variation range for increasing the distance between camera lens and sensitive chip, if automatically
The control terminal of focusing module determines that the picture of shooting is still not clear enough, then can be based on preset adjustment gradient, continue to increase
Camera lens maximum value corresponding with the constant interval of the distance between sensitive chip, until control terminal determine camera lens and sensitive chip it
Between the variation range of distance disclosure satisfy that the shooting demand of close shot and the reference object between distant view and close shot.
In practical applications, due to often storing the step number constant interval of motor in auto-focusing module, base
In preset adjustment gradient, increases camera lens maximum value corresponding with the constant interval of the distance between sensitive chip, can pass through
Increase the corresponding maximum value of step number constant interval for the motor for pushing camera lens movement to realize.
The second way increases if the first accounting is greater than or equal to the first default value between camera lens and sensitive chip
Distance the corresponding maximum value of constant interval, specifically, first, if the first accounting be greater than or equal to the first default value,
The environment temperature where camera lens can be then obtained, specifically then can be implanted into temperature sensor in automatic focusing camera module, is led to
Excess temperature sensor obtains the environment temperature where camera lens, and obtains under condition of different temperatures in advance, meets image-capturing resolution
Under the premise of the distance between camera lens and sensitive chip variation range;It is then possible to based on the environment temperature where camera lens, increase
Camera lens maximum value corresponding with the constant interval of the distance between sensitive chip.
Further, since often storing the constant interval of the step number of motor in auto-focusing module, passed by temperature
Sensor obtains after the environment temperature where camera lens, it may be determined that the step number constant interval of motor corresponding with the temperature,
In, there are one-to-one mapping relations for the step number constant interval of different temperature ranges motor corresponding with the temperature range;
It is finally based on the corresponding maximum value of step number constant interval of motor corresponding with the temperature, to increase between camera lens and sensitive chip
Distance the corresponding maximum value of constant interval.
Step 104, if the second accounting be greater than or equal to the second default value, reduce between camera lens and sensitive chip away from
From constant interval minimum value.
It is similar with step 103, if the second accounting is greater than or equal to the second default value, reduce camera lens and sensitive chip it
Between the minimum value of constant interval of distance can also include following two realization methods:
First way can reduce camera lens and sensitive chip if the second accounting is greater than or equal to the second default value
The distance between the corresponding minimum value of constant interval, specifically, can be based on preset adjustment gradient, reduce camera lens with sense
The corresponding minimum value of constant interval of the distance between optical chip, and then the variation for the distance between increasing camera lens and sensitive chip
Section.Based on preset adjustment gradient, reduce camera lens minimum value corresponding with the constant interval of the distance between sensitive chip
Later, if the control terminal of auto-focusing module determines that the picture of shooting is still not clear enough, preset adjustment ladder can be based on
Degree continues to reduce camera lens minimum value corresponding with the constant interval of the distance between sensitive chip, until control terminal determines camera lens
The variation range of the distance between sensitive chip disclosure satisfy that distant view and the reference object between distant view and close shot
Shooting demand.
In practical applications, due to often storing the step number constant interval of motor in auto-focusing module, base
In preset adjustment gradient, reduces camera lens minimum value corresponding with the constant interval of the distance between sensitive chip, can pass through
Reduce the corresponding minimum value of step number constant interval for the motor for pushing camera lens movement to realize.
The second way reduces if the second accounting is greater than or equal to the second default value between camera lens and sensitive chip
Distance the corresponding minimum value of constant interval, specifically, first, if the second accounting be greater than or equal to the second default value,
The environment temperature where camera lens can be then obtained, specifically then can be implanted into temperature sensor in automatic focusing camera module, is led to
Excess temperature sensor obtains the environment temperature where camera lens, and obtains under condition of different temperatures in advance, meets image-capturing resolution
Under the premise of the distance between camera lens and sensitive chip variation range;It is then possible to based on the environment temperature where camera lens, reduce
Camera lens minimum value corresponding with the constant interval of the distance between sensitive chip.
Further, since often storing the constant interval of the step number of motor in auto-focusing module, passed by temperature
Sensor obtains after the environment temperature where camera lens, it may be determined that the step number constant interval of motor corresponding with the temperature,
In, there are one-to-one mapping relations for the step number constant interval of different temperature ranges motor corresponding with the temperature range;
Be finally based on the corresponding minimum value of step number constant interval of motor corresponding with the temperature, come reduce the camera lens with it is described photosensitive
The corresponding minimum value of constant interval of the distance between chip.
And if above-mentioned first accounting be greater than or equal to the first default value, and the second accounting be greater than or equal to the second present count
Value, on the one hand, preset adjustment gradient can be based on, increase the maximum of the constant interval of the distance between camera lens and sensitive chip
Value, and reduce the minimum value of the constant interval of the distance between camera lens and sensitive chip;On the other hand, it can also be passed by temperature
Sensor obtains the environment temperature where camera lens, and based on the environment temperature where camera lens, obtains and the environment temperature where the camera lens
The constant interval for spending the distance between corresponding camera lens and sensitive chip, the environment temperature pair where with the camera lens based on acquisition
The constant interval of the camera lens and the distance between sensitive chip answered, to adjust the variation zone of the distance between camera lens and sensitive chip
Between, so that auto-focusing module can be shot clearly based on the constant interval of the distance between the camera lens and sensitive chip
Photo.
The embodiment of the present invention also provides a kind of embodiment, after implanting temperature sensor in auto-focusing module,
It can obtain under condition of different temperatures in advance, the constant interval of the distance between camera lens and sensitive chip, in this way when passing through temperature
After sensor determines the environment temperature where camera lens, it can be determined and the camera lens based on the environment temperature where the camera lens
The constant interval of the distance between the corresponding camera lens of environment temperature at place and sensitive chip or the motor for pushing camera lens movement
Step number constant interval, come directly adjust the distance between camera lens and sensitive chip constant interval or by adjusting push away
The constant interval of the step number of the motor of index glass head movement adjusts the constant interval of the distance between camera lens and sensitive chip.
In embodiments of the present invention, by obtaining the distance between preset time period inner lens and sensitive chip, due to mirror
For head during normal take pictures, the distance between camera lens and sensitive chip are the default change of the distance between camera lens and sensitive chip
Change section the probability being most worth it is often smaller, once and the environment temperature where camera lens is too high or too low, focal length can then occur
Variation, in this case, the motor in auto-focusing module then very may be used to push camera lens to find the articulation point of reference object
Camera lens can be pushed to the maximum value or minimum value of default constant interval, this may result in the maximum value of distance in distance record
And/or the probability that minimum value occurs is larger, is accounted in first that the distance apart from the maximum value for being equal to default constant interval is determined
When than being greater than or equal to the first default value, the maximum of the constant interval of the distance between camera lens and sensitive chip can be increased
Value, when the second accounting that the distance apart from the minimum value for being equal to default constant interval is determined is greater than or equal to the second default value
When, the minimum value of the constant interval of the distance between camera lens and sensitive chip can be reduced, so that auto-focusing module
Clear photograph is shot in constant interval that can be after the adjustment.
The embodiment of the present invention also provides a kind of focusing mechanism 200, as shown in figure 3, including following function unit:
Acquiring unit 201, for obtaining the distance between preset time period inner lens and sensitive chip;
Determination unit 202, for determining that it is default that the distance between the preset time period inner lens and sensitive chip are equal to
First accounting of the distance of the maximum value of constant interval and the distance between the preset time period inner lens and sensitive chip
Equal to the second accounting of the distance of the minimum value of the default constant interval;
Increasing unit 203, if for first accounting be greater than or equal to the first default value, increase the camera lens with
The maximum value of the constant interval of the distance between the sensitive chip;
Reduction unit 204 is greater than or equal to the second default value for second accounting, then reduces the camera lens and institute
State the minimum value of the constant interval of the distance between sensitive chip;
Wherein, the default constant interval is the default variation zone of the distance between the camera lens and described sensitive chip
Between.
In one embodiment, the increasing unit 203, is used for:
If first accounting is greater than or equal to the first default value, the environment temperature where the camera lens is obtained;
Based on the environment temperature where the camera lens, increase the variation of the distance between the camera lens and the sensitive chip
The corresponding maximum value in section.
In one embodiment, the increasing unit 203, is used for:
Based on the environment temperature where the camera lens, the motor for pushing the camera lens movement corresponding with the temperature is determined
Step number constant interval;
The corresponding maximum value of step number constant interval based on the motor, increases between the camera lens and the sensitive chip
Distance the corresponding maximum value of constant interval.
In one embodiment, the reduction unit 204, is used for:
If second accounting is greater than or equal to the first default value, the environment temperature where the camera lens is obtained;
Based on the environment temperature where the camera lens, reduce the variation of the distance between the camera lens and the sensitive chip
The corresponding minimum value in section.
In one embodiment, the reduction unit 204, is used for:
Based on the environment temperature where the camera lens, the motor for pushing the camera lens movement corresponding with the temperature is determined
Step number constant interval;
The corresponding minimum value of step number constant interval based on the motor, reduces between the camera lens and the sensitive chip
Distance the corresponding minimum value of constant interval.
Device provided in an embodiment of the present invention can realize each mistake that mobile terminal is realized in the embodiment of the method for Fig. 2
Journey, to avoid repeating, which is not described herein again.
A kind of hardware architecture diagram of Fig. 4 mobile terminals of each embodiment to realize the present invention,
The mobile terminal 300 includes but not limited to:It is radio frequency unit 301, network module 302, audio output unit 303, defeated
Enter unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, processor
The components such as 310 and power supply 311.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 4 is not constituted
Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, either combine certain components or
Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 310, for obtaining the distance between preset time period inner lens and sensitive chip;Described in determination
The distance between preset time period inner lens and sensitive chip are equal to the first accounting at a distance from the maximum value of default constant interval,
And the distance between the preset time period inner lens and sensitive chip be equal to the default constant interval minimum value away from
From the second accounting;If first accounting is greater than or equal to the first default value, increase the camera lens and the photosensitive core
The maximum value of the constant interval of the distance between piece;If second accounting is greater than or equal to the second default value, reduce institute
State the minimum value of the constant interval of the distance between camera lens and the sensitive chip;Wherein, the default constant interval is described
The default constant interval of the distance between camera lens and the sensitive chip.
In embodiments of the present invention, by obtaining the distance between preset time period inner lens and sensitive chip, due to mirror
For head during normal take pictures, the distance between camera lens and sensitive chip are the default change of the distance between camera lens and sensitive chip
Change section the probability being most worth it is often smaller, once and the environment temperature where camera lens is too high or too low, focal length can then occur
Variation, in this case, the motor in auto-focusing module then very may be used to push camera lens to find the articulation point of reference object
Camera lens can be pushed to the maximum value or minimum value of default constant interval, this may result in the maximum value of distance in distance record
And/or the probability that minimum value occurs is larger, is accounted in first that the distance apart from the maximum value for being equal to default constant interval is determined
When than being greater than or equal to the first default value, the maximum of the constant interval of the distance between camera lens and sensitive chip can be increased
Value, when the second accounting that the distance apart from the minimum value for being equal to default constant interval is determined is greater than or equal to the second default value
When, the minimum value of the constant interval of the distance between camera lens and sensitive chip can be reduced, so that auto-focusing module
Clear photograph is shot in constant interval that can be after the adjustment.
It should be understood that the embodiment of the present invention in, radio frequency unit 301 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 310 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 301 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 301 can also by radio communication system and network and other set
Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 302 and has accessed, and such as user is helped to receive
Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 303 can receive radio frequency unit 301 or network module 302 or in memory 309
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 303 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 300 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 303 includes loud speaker, buzzer and receiver etc..
Input unit 304 is for receiving audio or video signal.Input unit 304 may include graphics processor
(Graphics Processing Unit, GPU) 3041 and microphone 3042, graphics processor 3041 is in video acquisition mode
Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out
Reason.Treated, and picture frame may be displayed on display unit 306.Through graphics processor 3041, treated that picture frame can be deposited
Storage is sent in memory 309 (or other storage mediums) or via radio frequency unit 301 or network module 302.Mike
Wind 3042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output of mobile communication base station can be sent to via radio frequency unit 301 by being converted in the case of telephone calling model.
Mobile terminal 300 further includes at least one sensor 305, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 3061, and proximity sensor can close when mobile terminal 300 is moved in one's ear
Display panel 3061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 305 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 306 is for showing information input by user or being supplied to the information of user.Display unit 306 can wrap
Display panel 3061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 3061.
User input unit 307 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family is arranged and the related key signals input of function control.Specifically, user input unit 307 include touch panel 3071 and
Other input equipments 3072.Touch panel 3071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 3071 or in touch panel 3071
Neighbouring operation).Touch panel 3071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 310, receiving area
It manages the order that device 310 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch panel 3071.In addition to touch panel 3071, user input unit 307 can also include other input equipments
3072.Specifically, other input equipments 3072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 3071 can be covered on display panel 3061, when touch panel 3071 is detected at it
On or near touch operation after, send processor 310 to determine the type of touch event, be followed by subsequent processing device 310 according to touch
The type for touching event provides corresponding visual output on display panel 3061.Although in Fig. 4, touch panel 3071 and display
Panel 3061 is to realize the function that outputs and inputs of mobile terminal as two independent components, but in some embodiments
In, can be integrated by touch panel 3071 and display panel 3061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place does not limit.
Interface unit 308 is the interface that external device (ED) is connect with mobile terminal 300.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 308 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in mobile terminal 300 or can be used in 300 He of mobile terminal
Transmission data between external device (ED).
Memory 309 can be used for storing software program and various data.Memory 309 can include mainly storing program area
And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 309 may include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 310 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 309, and calls and is stored in storage
Data in device 309 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Reason device 310 may include one or more processing units;Preferably, processor 310 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 310.
Mobile terminal 300 can also include the power supply 311 (such as battery) powered to all parts, it is preferred that power supply 311
Can be logically contiguous by power-supply management system and processor 310, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 300 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 310, and memory 309 is stored in
On memory 309 and the computer program that can be run on the processor 310, the computer program are executed by processor 310
Each process of the above-mentioned focusing method embodiments of Shi Shixian, and identical technique effect can be reached, to avoid repeating, here no longer
It repeats.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned focusing method embodiment when being executed by processor, and can reach
Identical technique effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium is deposited Ru read-only
Reservoir (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM),
Magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within the protection of the present invention.
Claims (11)
1. a kind of focusing method, which is characterized in that including:
Obtain the distance between preset time period inner lens and sensitive chip;
Determine the distance between the preset time period inner lens and sensitive chip be equal to the maximum value of default constant interval away from
From the first accounting and the distance between the preset time period inner lens and sensitive chip be equal to the default constant interval
Minimum value distance the second accounting;
If first accounting be greater than or equal to the first default value, increase between the camera lens and the sensitive chip away from
From constant interval maximum value;
If second accounting be greater than or equal to the second default value, reduce between the camera lens and the sensitive chip away from
From constant interval minimum value;
Wherein, the default constant interval is the default constant interval of the distance between the camera lens and described sensitive chip.
2. the method as described in claim 1, which is characterized in that if first accounting is greater than or equal to the first default value,
Then increase the maximum value of the constant interval of the distance between the camera lens and the sensitive chip, including:
If first accounting is greater than or equal to the first default value, the environment temperature where the camera lens is obtained;
Based on the environment temperature where the camera lens, increase the constant interval of the distance between the camera lens and the sensitive chip
Corresponding maximum value.
3. method as claimed in claim 2, which is characterized in that based on the environment temperature where the camera lens, increase the mirror
Head maximum value corresponding with the constant interval of the distance between the sensitive chip, including:
Based on the environment temperature where the camera lens, the step of the motor for pushing the camera lens movement corresponding with the temperature is determined
Number constant interval;
The corresponding maximum value of step number constant interval based on the motor, increase between the camera lens and the sensitive chip away from
From the corresponding maximum value of constant interval.
4. the method as described in claim 1, which is characterized in that if second accounting is greater than or equal to the second default value,
Then reduce the minimum value of the constant interval of the distance between the camera lens and the sensitive chip, including:
If second accounting is greater than or equal to the first default value, the environment temperature where the camera lens is obtained;
Based on the environment temperature where the camera lens, reduce the constant interval of the distance between the camera lens and the sensitive chip
Corresponding minimum value.
5. method as claimed in claim 4, which is characterized in that based on the environment temperature where the camera lens, reduce the mirror
Head minimum value corresponding with the constant interval of the distance between the sensitive chip, including:
Based on the environment temperature where the camera lens, the step of the motor for pushing the camera lens movement corresponding with the temperature is determined
Number constant interval;
The corresponding minimum value of step number constant interval based on the motor, reduce between the camera lens and the sensitive chip away from
From the corresponding minimum value of constant interval.
6. a kind of focusing mechanism, which is characterized in that including:
Acquiring unit, for obtaining the distance between preset time period inner lens and sensitive chip;
Determination unit, for determining that the distance between the preset time period inner lens and sensitive chip are equal to default constant interval
Maximum value distance the first accounting and the distance between the preset time period inner lens and sensitive chip be equal to it is described
The accounting of the distance of the minimum value of default constant interval;
Increasing unit increases the camera lens and the sense if being greater than or equal to the first default value for first accounting
The maximum value of the constant interval of the distance between optical chip;
Reduction unit reduces the camera lens and the sense if being greater than or equal to the second default value for second accounting
The minimum value of the constant interval of the distance between optical chip;
Wherein, the default constant interval is the default constant interval of the distance between the camera lens and described sensitive chip.
7. device as claimed in claim 6, which is characterized in that the increasing unit is used for:
If first accounting is greater than or equal to the first default value, the environment temperature where the camera lens is obtained;
Based on the environment temperature where the camera lens, increase the constant interval of the distance between the camera lens and the sensitive chip
Corresponding maximum value.
8. device as claimed in claim 7, which is characterized in that the increasing unit is used for:
Based on the environment temperature where the camera lens, the step of the motor for pushing the camera lens movement corresponding with the temperature is determined
Number constant interval;
The corresponding maximum value of step number constant interval based on the motor, increase between the camera lens and the sensitive chip away from
From the corresponding maximum value of constant interval.
9. device as claimed in claim 6, which is characterized in that the reduction unit is used for:
If second accounting is greater than or equal to the first default value, the environment temperature where the camera lens is obtained;
Based on the environment temperature where the camera lens, reduce the constant interval of the distance between the camera lens and the sensitive chip
Corresponding minimum value.
10. device as claimed in claim 9, which is characterized in that the reduction unit is used for:
Based on the environment temperature where the camera lens, the step of the motor for pushing the camera lens movement corresponding with the temperature is determined
Number constant interval;
The corresponding minimum value of step number constant interval based on the motor, reduce between the camera lens and the sensitive chip away from
From the corresponding minimum value of constant interval.
11. a kind of mobile terminal, including:It memory, processor and is stored on the memory and can be on the processor
The computer program of operation is realized when the computer program is executed by the processor such as any one of claim 1-5 institutes
The step of focusing method stated.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810333389.XA CN108646384B (en) | 2018-04-13 | 2018-04-13 | Focusing method and device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810333389.XA CN108646384B (en) | 2018-04-13 | 2018-04-13 | Focusing method and device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108646384A true CN108646384A (en) | 2018-10-12 |
CN108646384B CN108646384B (en) | 2020-09-01 |
Family
ID=63746145
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810333389.XA Active CN108646384B (en) | 2018-04-13 | 2018-04-13 | Focusing method and device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108646384B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113031195A (en) * | 2021-03-10 | 2021-06-25 | 江苏金视传奇科技有限公司 | Infrared noninductive automatic focusing device |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4982216A (en) * | 1988-05-16 | 1991-01-01 | Minolta Camera Kabushiki Kaisha | Focusing device of a camera |
US6115480A (en) * | 1995-03-31 | 2000-09-05 | Canon Kabushiki Kaisha | Method and apparatus for processing visual information |
CN1505751A (en) * | 2001-03-27 | 2004-06-16 | ��ѧ�빤ҵ�о��� | A multi-fiber optic 2D-array device for sensing and localizing environment perturbation using speckle image processing |
CN101038414A (en) * | 2006-03-15 | 2007-09-19 | 亚洲光学股份有限公司 | Automatically focusing method and image picking up device thereof |
CN101103308A (en) * | 2004-08-25 | 2008-01-09 | 潘那维申影像股份有限公司 | Method and apparatus for controlling a lens, and camera module incorporating same |
CN101452108A (en) * | 2007-12-04 | 2009-06-10 | 鸿富锦精密工业(深圳)有限公司 | Focusing system and method for enhancing optical lens resolution |
JP2011075647A (en) * | 2009-09-29 | 2011-04-14 | Canon Inc | Imaging optical system having autofocus function, and photographing system of the same |
CN102455568A (en) * | 2010-10-28 | 2012-05-16 | 安讯士有限公司 | Method for focusing |
WO2015176888A1 (en) * | 2014-05-19 | 2015-11-26 | Carl Zeiss Industrielle Messtechnik Gmbh | Improved auto focus method for a coordinate measuring device |
CN105407343A (en) * | 2015-12-15 | 2016-03-16 | 瑞声声学科技(苏州)有限公司 | Camera lens and depth of field calibration method thereof |
US9383540B1 (en) * | 2012-10-30 | 2016-07-05 | Google Inc. | System and method for controlling the focus of a lens |
-
2018
- 2018-04-13 CN CN201810333389.XA patent/CN108646384B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4982216A (en) * | 1988-05-16 | 1991-01-01 | Minolta Camera Kabushiki Kaisha | Focusing device of a camera |
US6115480A (en) * | 1995-03-31 | 2000-09-05 | Canon Kabushiki Kaisha | Method and apparatus for processing visual information |
CN1505751A (en) * | 2001-03-27 | 2004-06-16 | ��ѧ�빤ҵ�о��� | A multi-fiber optic 2D-array device for sensing and localizing environment perturbation using speckle image processing |
CN101103308A (en) * | 2004-08-25 | 2008-01-09 | 潘那维申影像股份有限公司 | Method and apparatus for controlling a lens, and camera module incorporating same |
CN101038414A (en) * | 2006-03-15 | 2007-09-19 | 亚洲光学股份有限公司 | Automatically focusing method and image picking up device thereof |
CN101452108A (en) * | 2007-12-04 | 2009-06-10 | 鸿富锦精密工业(深圳)有限公司 | Focusing system and method for enhancing optical lens resolution |
JP2011075647A (en) * | 2009-09-29 | 2011-04-14 | Canon Inc | Imaging optical system having autofocus function, and photographing system of the same |
CN102455568A (en) * | 2010-10-28 | 2012-05-16 | 安讯士有限公司 | Method for focusing |
US9383540B1 (en) * | 2012-10-30 | 2016-07-05 | Google Inc. | System and method for controlling the focus of a lens |
WO2015176888A1 (en) * | 2014-05-19 | 2015-11-26 | Carl Zeiss Industrielle Messtechnik Gmbh | Improved auto focus method for a coordinate measuring device |
CN105407343A (en) * | 2015-12-15 | 2016-03-16 | 瑞声声学科技(苏州)有限公司 | Camera lens and depth of field calibration method thereof |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113031195A (en) * | 2021-03-10 | 2021-06-25 | 江苏金视传奇科技有限公司 | Infrared noninductive automatic focusing device |
Also Published As
Publication number | Publication date |
---|---|
CN108646384B (en) | 2020-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107800967A (en) | A kind of image pickup method and mobile terminal | |
CN109361865A (en) | A kind of image pickup method and terminal | |
CN110300267B (en) | Photographing method and terminal equipment | |
CN110266930A (en) | Light compensation method, mobile terminal and the light adjusting method of image taking | |
CN110099213A (en) | A kind of image display control method and terminal | |
CN110213484B (en) | Photographing method, terminal equipment and computer readable storage medium | |
CN107864336B (en) | A kind of image processing method, mobile terminal | |
CN110113528A (en) | A kind of parameter acquiring method and terminal device | |
CN107948505A (en) | A kind of panorama shooting method and mobile terminal | |
CN109905603A (en) | A kind of shooting processing method and mobile terminal | |
CN108449541A (en) | A kind of panoramic picture image pickup method and mobile terminal | |
CN109068116A (en) | Image processing method, device, mobile terminal and storage medium based on light filling | |
CN108920067A (en) | A kind of camera focusing method and mobile terminal | |
CN108063897B (en) | Camera assembly, focal length adjusting method and mobile terminal | |
CN108076294B (en) | A kind of image pickup method and mobile terminal | |
CN108881719A (en) | A kind of method and terminal device switching style of shooting | |
CN111064876B (en) | Electronic device, shooting control method and device, and computer-readable storage medium | |
CN110944114B (en) | Photographing method and electronic equipment | |
CN109688325A (en) | A kind of image display method and terminal device | |
CN108317992A (en) | A kind of object distance measurement method and terminal device | |
CN110519503A (en) | A kind of acquisition methods and mobile terminal of scan image | |
CN108111750A (en) | A kind of zooming adjustment method and mobile terminal | |
CN108307123A (en) | A kind of exposure adjustment method and mobile terminal | |
CN107770455A (en) | The method of adjustment and mobile terminal of a kind of flash lamp | |
CN109547700A (en) | Photographic method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |