CN106303214B - A kind of focusing method and device - Google Patents

A kind of focusing method and device Download PDF

Info

Publication number
CN106303214B
CN106303214B CN201610589541.1A CN201610589541A CN106303214B CN 106303214 B CN106303214 B CN 106303214B CN 201610589541 A CN201610589541 A CN 201610589541A CN 106303214 B CN106303214 B CN 106303214B
Authority
CN
China
Prior art keywords
ultrasonic wave
distance
time
target
reference object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610589541.1A
Other languages
Chinese (zh)
Other versions
CN106303214A (en
Inventor
王建永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610589541.1A priority Critical patent/CN106303214B/en
Publication of CN106303214A publication Critical patent/CN106303214A/en
Application granted granted Critical
Publication of CN106303214B publication Critical patent/CN106303214B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S15/00Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
    • G01S15/02Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
    • G01S15/06Systems determining the position data of a target
    • G01S15/08Systems for measuring distance only

Abstract

The present invention provides a kind of focusing method and device.The method, comprising: send ultrasonic wave to preset range;Receive the ultrasonic wave reflected in the preset range by target reference object;According to ultrasound examination parameter and ultrasonic transmission speed, target reference object and the distance between the camera lens for shooting the target reference object are calculated;It is focused according to the distance between target reference object and camera lens;The ultrasound examination parameter includes that ultrasonic wave is sent to the time of target reference object and receives the time difference for the time that target reference object reflects ultrasonic wave;The target reference object includes the object for needing to focus.Described device includes ultrasonic wave sending module, ultrasonic wave receiving module, distance calculation module, Focusing module.The method and device can have better focus effects.

Description

A kind of focusing method and device
Technical field
The present invention relates to computer software fields more particularly to a kind of focusing methods and device.
Background technique
As smart phone is universal and is widely applied, the function of intelligent mobile terminal is stronger and stronger, and people are to camera shooting Experience requirements are also higher and higher.
Mobile terminal is commonly provided with front and rear camera, and function is by rear camera AF (Auto Focus, auto-focusing) As generic configuration.With user to the prevalence of shooting demand for experience, especially self-timer, front camera is (automatic right configured with AF It is burnt) function has become a kind of trend.
Front camera is commonly used in self-timer, is fixed by camera shooting object and distance is shorter, and there are time responses for tradition focusing Slowly, environment influences it bigger, and under than darker or brighter environment, often focusing is inaccurate, there is the photograph taken It is unintelligible.
Camera focusing in the prior art all uses contrast formula to focus, and this focusing reaction time is slow, and cannot be primary Focus successfully, to focus repeatedly and find best focus position and could focus success, environment it is influenced it is very big, than darker or When brighter, focusing is inaccurate, and it is poor to take pictures or image the quality occurred.
Summary of the invention
In view of this, the present invention provides a kind of focusing method and device, there are better focus effects.
Based on above-mentioned purpose focusing method provided by the invention, comprising:
It is sent to target area ultrasonic wave;
Receive the ultrasonic wave reflected in the target area by target reference object;
According to ultrasound examination parameter and ultrasonic transmission speed, calculates target reference object and be used to shoot the target The distance between camera lens of reference object;
It is focused according to the distance between target reference object and camera lens;
The ultrasound examination parameter includes that ultrasonic wave is sent to the time of target reference object and receives target shooting The time difference of the time of object reflection ultrasonic wave.
Optionally, described to calculate between the target reference object and camera lens for shooting the target reference object Apart from the step of before, further includes:
Receive the ultrasonic wave of the object of reference reflection in the target area;
The ultrasound examination parameter further includes that ultrasonic wave is sent to the time of the object of reference and receives the reference The time difference for the time that object reflects ultrasonic wave;
The step of the distance between camera lens for calculating target reference object and being used to shoot the target reference object It specifically includes:
It calculates the ultrasonic wave and is sent to the time of the object of reference and the ultrasonic wave for receiving the object of reference reflection The reference time of time is poor;
Reference distance is calculated according to the object of reference time difference and ultrasonic velocity;
According to the distance of the ultrasonic wave launch point recorded in advance to the object of reference and ultrasonic wave receiving point to the ginseng According to the distance of object, the reference distance is corrected, calculates correction parameter;
According to the ultrasonic transmission time meter between the correction parameter and the target reference object and the camera lens The target reference object is calculated the distance between to camera lens.
Optionally, the method is applied to mobile communication terminal;The ultrasonic wave launch point be located at mobile communication terminal by Talk about device;The object of reference is mobile communication terminal outer casing inner wall corresponding with the speaker position.
It is optionally, described to be sent to target area before ultrasonic wave further include:
Target reference object is received apart from detection instruction;
According to the target reference object apart from detection instruction, into described the step of being sent to target area ultrasonic wave.
Optionally, it is described receive reflected by target reference object ultrasonic wave the step of after, the calculatings target shoot Before the step of the distance between object and camera lens, further includes:
It issues ultrasonic wave and receives notice;
It receives ultrasonic wave and receives notice;
The ultrasound examination parameter is calculated according to the notification received receiving time of the ultrasonic wave.
Optionally, before the step of the distance between calculating target reference object and camera lens, further includes:
Ultrasonic transmission speed is calculated according to the real time temperature of detection environment and ultrasonic wave reference transmission speed.
Meanwhile the present invention also provides a kind of focusing mechanisms, comprising:
Ultrasonic wave sending module: for being sent to target area ultrasonic wave;
First ultrasonic wave receiving module: for receiving the ultrasonic wave reflected in the target area by target reference object;
Distance calculation module: for calculating target reference object according to ultrasound examination parameter and ultrasonic transmission speed With the distance between the camera lens for shooting the target reference object;
Focusing module: for being focused according to the distance between target reference object and camera lens;
The ultrasound examination parameter includes that ultrasonic wave is sent to the time of target reference object and receives target shooting The time difference of the time of object reflection ultrasonic wave.
Optionally, described device further include:
Second ultrasonic wave receiving module: for receiving the ultrasonic wave of the reflection of the object of reference in the target area;
The ultrasound examination parameter further includes that ultrasonic wave is sent to the time of the object of reference and receives the reference The time difference for the time that object reflects ultrasonic wave;
The step of the distance between camera lens for calculating target reference object and being used to shoot the target reference object It specifically includes:
Referring to transmission time computing module: being sent to time of the object of reference to receiving for calculating the ultrasonic wave The reference time of the time of the ultrasonic wave of the object of reference reflection is poor;
Reference distance computing module: for calculating reference distance according to the object of reference time difference and ultrasonic velocity;
Calculating parameter calibration module: for according to the distance of the ultrasonic wave launch point recorded in advance to the object of reference and Ultrasonic wave receiving point is corrected the reference distance to the distance of the object of reference, calculates correction parameter;
Institute is calculated according to the correction parameter and target reference object to the ultrasonic transmission time between the camera lens Target reference object is stated the distance between to camera lens.
Optionally, described device is applied to mobile communication terminal;The ultrasonic wave launch point be located at mobile communication terminal by Talk about device;The object of reference is mobile communication terminal outer casing inner wall corresponding with the speaker position.
Optionally, described device further include:
Apart from detection instruction receiving module: for receiving target reference object apart from detection instruction;
Ultrasonic wave sending module trigger module: for according to the target reference object apart from detection instruction, into described The step of being sent to target area ultrasonic wave.
Optionally, described device further include:
Ultrasonic reception notice issues module: receiving notice for issuing ultrasonic wave;
Ultrasonic reception notifies receiving module: receiving notice for receiving ultrasonic wave;
Ultrasound examination parameter calculating module: described super for being calculated according to the notification received receiving time of the ultrasonic wave Sonic detection parameter.
Optionally, described device further include:
Ultrasonic wave actual transmission speed computing module: for the real time temperature and ultrasonic wave reference transmission according to detection environment Speed calculates ultrasonic transmission speed.
From the above it can be seen that focusing method provided by the invention and device, can clap target using ultrasonic wave The distance between the camera lens of object that object and shooting needs focus is taken the photograph, measurement accuracy is improved.Due to ultrasonic transmission speed Degree is very fast, thus ultrasound examination parameter can be also quickly obtained when shooting, to improve focusing speed;In addition, by It can accurately be carried out in a short time apart from detection in using ultrasonic wave, therefore can be improved focus effects, focus effects are not By such environmental effects.
Detailed description of the invention
Fig. 1 is focusing method schematic diagram provided in an embodiment of the present invention;
Fig. 2 is the time of the embodiment of the present invention to calculate schematic diagram;
Fig. 3 is that the focal length of the embodiment of the present invention calculates schematic diagram;
Fig. 4 is the focusing mechanism schematic diagram of the embodiment of the present invention.
Specific embodiment
To keep the technical problem to be solved in the present invention, technical solution and advantage clearer, below in conjunction with attached drawing and tool Body embodiment is described in detail.
Present invention firstly provides a kind of focusing methods, as shown in Figure 1, including the following steps:
Step 101: being sent to target area ultrasonic wave;
Step 102: receiving the ultrasonic wave reflected in the target area by target reference object;
Step 103: according to ultrasound examination parameter and ultrasonic transmission speed, calculating target reference object and be used to shoot The distance between the camera lens of the target reference object;
Step 104: being focused according to the distance between target reference object and camera lens;
The ultrasound examination parameter includes that ultrasonic wave is sent to the time of target reference object and receives target shooting The time difference of the time of object reflection ultrasonic wave.
From the above it can be seen that focusing method provided by the present invention, it can be using ultrasonic wave to target shooting pair As the distance between the camera lens with photographic subjects reference object, measurement accuracy is improved.Very due to ultrasonic transmission speed Fastly, thus ultrasound examination parameter can be also quickly obtained when shooting, to improve focusing speed;Further, since using Ultrasonic wave can be carried out relatively accurately apart from detection, therefore can be improved focus effects, and focus effects are not by environmental factor shadow It rings.
In the specific embodiment of the invention, the setting range can be the side of camera lens institute face.
In the specific embodiment of the invention, as shown in figure 3, the relationship of object distance u, focal length w, focal length f are 1/u+1/v=1/f.
In some embodiment of the invention, described to calculate the target reference object and be used to shoot the target shooting pair Before the step of the distance between camera lens of elephant, further includes:
Receive the ultrasonic wave of the object of reference reflection in the target area;
The ultrasound examination parameter further includes that ultrasonic wave is sent to the time of the object of reference and receives the reference The time difference for the time that object reflects ultrasonic wave;
The step of the distance between camera lens for calculating target reference object and being used to shoot the target reference object It specifically includes:
It calculates the ultrasonic wave and is sent to the time of the object of reference and the ultrasonic wave for receiving the object of reference reflection The reference time of time is poor;
Reference distance is calculated according to the object of reference time difference and ultrasonic velocity;
According to the distance of the ultrasonic wave launch point recorded in advance to the object of reference and ultrasonic wave receiving point to the ginseng According to the distance of object, the reference distance is corrected, calculates correction parameter;
Institute is calculated according to the correction parameter and target reference object to the ultrasonic transmission time between the camera lens Target reference object is stated the distance between to camera lens.
Since the distance between object of reference and the camera lens are relatively fixed, can with the pre-recorded lower object of reference with Practical relative distance between the camera lens is compared when calculating by actual range and real-time measurement calculated result, is counted Calculate correction parameter.The correction parameter can be used for being corrected the speed of practical ultrasonic wave, since the speed of ultrasonic wave may Due to hardware factors such as environmental factor, ultrasonic transmitters with theoretical velocity difference, when actually calculating, if Be corrected using a fixed range, then can guarantee the distance between target reference object and camera lens calculated result have compared with High accuracy.
In some embodiment of the invention, the method is applied to mobile communication terminal;The ultrasonic wave launch point is located at Mobile communication terminal receiver;The object of reference is mobile communication terminal outer casing inner wall corresponding with the speaker position;Institute Stating ultrasonic wave receiving point is mobile communication terminal microphone.
Since receiver and microphone distance are closer to, when method is applied to mobile communication terminal, camera distance Relatively, therefore object distance approximate can be calculated using formula u=VT6/2 for receiver and microphone, wherein V is ultrasound Wave transmission speed, T6 are time difference of the ultrasonic wave sending time to the ultrasonic wave for receiving the object reflection for needing to focus.
The mobile communication terminal can be mobile phone, tablet computer or other Portable movable products.Due to for most For several mobile terminals, other components are not provided with inside the mobile terminal case around receiver, disturbing factor is low, therefore can incite somebody to action Outer casing inner wall around the receiver is as object of reference.
When the mobile communication terminal is that the communication with front camera such as mobile phone, tablet computer, laptop is whole When end, since front camera is commonly used in self-timer, is fixed by camera shooting object and distance is shorter.It can be by receiver, that is, audio headsets Sound frequency range is set as comprising supersonic band, thus ultrasonic wave transmitting module can be multiplexed receiver;Ultrasonic wave receiving module It can be shared with de-noising microphone possessed by mobile communication terminal.Receiver is multiplexed with ultrasonic wave transmitting module and issues ultrasonic wave Detection object, microphone be multiplexed with ultrasonic wave receiving module and carry out received ultrasonic signal, using ultrasound examination to object away from From rear, focal length is adjusted by the distance of detection and realizes focusing.The method focusing speed is fast, once focuses successfully, and to not by Environment influences.
It is in some embodiment of the invention, described to be sent to target area before ultrasonic wave further include:
Target reference object is received apart from detection instruction;
According to the target reference object apart from detection instruction, into described the step of being sent to target area ultrasonic wave.
In some embodiment of the invention, it is described receive reflected by target reference object ultrasonic wave the step of after, institute Before the step of stating calculating the distance between target reference object and camera lens, further includes:
It issues ultrasonic wave and receives notice;
It receives ultrasonic wave and receives notice;
The ultrasound examination parameter is calculated according to the notification received receiving time of the ultrasonic wave.
In a kind of specific embodiment of the present invention, the method is applied to mobile communication terminal;The ultrasound examination ginseng Several calculating process is referring to shown in Fig. 2:
Ultrasonic wave is sent from commander sender and sends instructions to receiver, and described instruction transmitter is to emit with ultrasonic wave The element of function, the ultrasonic wave send the instruction that instruction can be ultrasound modalities;
After receiver, which receives ultrasonic wave, sends instruction, the ultrasonic wave sending module by being set to receiver sends ultrasound Wave;The object of reference is the neighbouring mobile communication terminal inner wall of the receiver;
After object of reference is by ultrasonic reflections, the ultrasonic wave receiving module by being set to microphone receives the ultrasound of reflection Wave;
It sends the first ultrasonic wave and receives notice to notice receiver, the notice receiver receives second ultrasonic wave Notice is responded;First ultrasonic wave receives the notification message that notice can be ultrasound modalities;
After needing the object focused by ultrasonic reflections, the ultrasonic wave receiving module by being set to microphone receives again To the ultrasonic wave of reflection;
It sends the second ultrasonic wave and receives notice to notice receiver, the notice receiver receives second ultrasonic wave Notice is responded;Second ultrasonic wave receives the notification message that notice can be ultrasound modalities.
Referring still to Fig. 2, T0 is to send ultrasonic wave from commander sender to send instructions to receiver response sending ultrasonic wave Time interval.T1 is to send instruction from ultrasonic wave described in receiver response to issue ultrasonic wave to the inner wall by mobile communication terminal Reflect ultrasonic wave the actual transmissions time.T2, T5 are the response time that the ultrasonic wave receiving module receives system after ultrasonic wave, The ultrasonic wave that inner wall reflects namely, which is received, from ultrasonic wave receiving module receives the reception of the first ultrasonic wave to notice receiver The time of notice and the ultrasonic wave for needing the object that focuses to reflect is received from ultrasonic wave receiving module connect to notice receiver Receive the second ultrasonic wave notification received time.T4 is anti-to target reference object to launch ultrasonic wave from ultrasonic wave transmitting module The ultrasonic wave receiving module that the ultrasonic wave penetrated is arranged at microphone receives the time of ultrasonic wave.T6 is that notice receiver receives Notice to notice receiver is received to the first ultrasonic wave and receives the second ultrasonic wave notification received time difference, that is, is responded from mobile phone The time difference for the ultrasonic wave that the ultrasonic wave and response that inner wall reflects are reflected from target reference object.
T1 mainly determines by the distance of object of reference to microphone and receiver, due to ultrasonic wave receiving module may be disposed at by It talks about near device, while shell distance microphone and receiver are relatively, and the T1 time is close to zero.T2=T5 releases T4-T1= The time difference for the ultrasonic wave that the ultrasonic wave and response that T6, i.e. response are reflected from mobile phone inner wall are reflected from target reference object. If the distance between microphone and the notice receiver and the distance between receiver and described instruction transmitter have been set It is fixed, then it can be according to ultrasonic wave transmission instruction sending time, the first ultrasonic wave receive notice receiving time, the second ultrasonic wave receives and leads to Know that receiving time calculates T1, T4, is received with the object of reference actually recorded to ultrasonic wave sending module and ultrasonic wave according to T1 value The distance value of module is corrected to used ultrasonic velocity angle value is calculated, then according to the ultrasonic velocity after T4 and correction It can calculate and need the object that focuses the distance between to receiver, thus can be with according to the distance between receiver and camera lens It calculates or estimation needs the object that focuses the distance between to camera lens.
In some embodiment of the invention, before the step of the distance between calculating target reference object and camera lens, Further include:
Ultrasonic transmission speed is calculated according to the real time temperature of detection environment and ultrasonic wave reference transmission speed.
Ultrasonic wave spread speed V=331.4+0.6t in air, t are the temperature in air, by degree Celsius as unit of.t Detection can be realized by being placed in the temp-sensitive sensor of mobile phone.
Meanwhile the present invention provides a kind of focusing mechanism, structure is as shown in Figure 4, comprising:
Ultrasonic wave sending module 401: for being sent to target area ultrasonic wave;
First ultrasonic wave receiving module 402: for receiving the ultrasound reflected in the target area by target reference object Wave;
Distance calculation module 403: for calculating target shooting pair according to ultrasound examination parameter and ultrasonic transmission speed As with the distance between the camera lens for shooting the target reference object;
Focusing module 404: for being focused according to the distance between target reference object and camera lens;
The ultrasound examination parameter includes the time of the ultrasonic wave of the target reference object reflection received, ultrasonic wave hair Penetrate the distance between time, ultrasonic wave launch point and camera lens;.
In some embodiment of the invention,
Described device further include:
Second ultrasonic wave receiving module: for receiving the ultrasonic wave of the reflection of the object of reference in the target area;
The ultrasound examination parameter further includes that ultrasonic wave is sent to the time of the object of reference and receives the reference The time difference for the time that object reflects ultrasonic wave;
The step of the distance between camera lens for calculating target reference object and being used to shoot the target reference object It specifically includes:
Referring to transmission time computing module: for calculating object of reference to the ultrasonic transmission time between the camera lens;
Reference distance computing module: for being calculated according to the object of reference to the ultrasonic transmission time between the camera lens Object of reference is the distance between to the camera lens;
Calculating parameter calibration module: for according to the object of reference recorded in advance between the camera lens actually away from From, the reference distance is corrected, calculate correction parameter;
Institute is calculated according to the correction parameter and target reference object to the ultrasonic transmission time between the camera lens Target reference object is stated the distance between to camera lens.
In some embodiment of the invention, described device is applied to mobile communication terminal;The ultrasonic wave launch point is located at Mobile communication terminal receiver;The object of reference is mobile communication terminal outer casing inner wall corresponding with the speaker position.
In some embodiment of the invention, described device further include:
Apart from detection instruction receiving module: for receiving target reference object apart from detection instruction;
Ultrasonic wave sending module trigger module: for according to the target reference object apart from detection instruction, into described The step of being sent to target area ultrasonic wave.
In some embodiment of the invention, described device further include:
Ultrasonic reception notice issues module: receiving notice for issuing ultrasonic wave;
Ultrasonic reception notifies receiving module: receiving notice for receiving ultrasonic wave;
Ultrasound examination parameter calculating module: described super for being calculated according to the notification received receiving time of the ultrasonic wave Sonic detection parameter.
In some embodiment of the invention, described device further include:
Ultrasonic wave actual transmission speed computing module: for the real time temperature and ultrasonic wave reference transmission according to detection environment Speed calculates ultrasonic transmission speed.
From the above it can be seen that focusing method provided by the invention and device, can clap target using ultrasonic wave The distance between the camera lens of object that object and shooting needs focus is taken the photograph, measurement accuracy is improved.Due to ultrasonic transmission speed Degree is very fast, thus ultrasound examination parameter can be also quickly obtained when shooting, to improve focusing speed;In addition, by It can accurately be carried out in a short time apart from detection in using ultrasonic wave, therefore can be improved focus effects, focus effects are not By such environmental effects.
It should be appreciated that multiple embodiments described in this specification are merely to illustrate and explain the present invention, it is not used to limit The fixed present invention.And in the absence of conflict, the features in the embodiments and the embodiments of the present application can be combined with each other.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (8)

1. a kind of focusing method, the method is applied to mobile communication terminal characterized by comprising
The receiver of the mobile communication terminal is sent to target area ultrasonic wave;
The microphone of the mobile communication terminal receives the ultrasonic wave of the reflection of the target reference object in the target area;
Wherein, the microphone is set near receiver;
According to ultrasound examination parameter and ultrasonic transmission speed and the receiver and for shooting the target shooting pair The distance between camera lens of elephant calculates between the target reference object and camera lens for shooting the target reference object Distance;
It is focused according to the distance between the target reference object and the camera lens;
The ultrasound examination parameter includes that ultrasonic wave is sent to the time of target reference object and receives target reference object The time difference of the time reflected ultrasonic wave;
The step of the distance between camera lens for calculating the target reference object and being used to shoot the target reference object Before, further includes:
Receive the ultrasonic wave of the object of reference reflection in the target area;
The object of reference is mobile communication terminal outer casing inner wall corresponding with mobile communication terminal speaker position.
2. calculating the target reference object the method according to claim 1, wherein described and being used to shoot institute Before the step of stating the distance between the camera lens of target reference object, further includes:
The ultrasound examination parameter further includes that ultrasonic wave is sent to the time of the object of reference and to receive the object of reference anti- Penetrate the time difference of the time of ultrasonic wave;
The step of calculating target reference object is with the distance between the camera lens for being used to shoot the target reference object is specific Include:
Calculate time and the time for the ultrasonic wave for receiving the object of reference reflection that the ultrasonic wave is sent to the object of reference Reference time it is poor;
Reference distance is calculated according to the object of reference time difference and ultrasonic velocity;
According to the distance of the ultrasonic wave launch point recorded in advance to the object of reference and ultrasonic wave receiving point to the object of reference Distance, the reference distance is corrected, calculate correction parameter;
Institute is calculated according to the ultrasonic transmission time between the correction parameter and the target reference object and the camera lens Target reference object is stated the distance between to camera lens.
3. the method according to claim 1, wherein described be sent to target area before ultrasonic wave further include:
Target reference object is received apart from detection instruction;
According to the target reference object apart from detection instruction, into described the step of being sent to target area ultrasonic wave;
After described the step of receiving the ultrasonic wave reflected by target reference object, the calculating target reference object and camera lens it Between apart from the step of before, further includes:
It issues ultrasonic wave and receives notice;
It receives ultrasonic wave and receives notice;
The ultrasound examination parameter is calculated according to the notification received receiving time of the ultrasonic wave.
4. the method according to claim 1, wherein the distance between the calculating target reference object and camera lens The step of before, further includes:
Ultrasonic transmission speed is calculated according to the real time temperature of detection environment and ultrasonic wave reference transmission speed.
5. a kind of focusing mechanism, described device is applied to mobile communication terminal characterized by comprising
Ultrasonic wave sending module: for being sent to target area ultrasonic wave;
First ultrasonic wave receiving module: for receiving the ultrasonic wave reflected in the target area by target reference object;
Wherein, the ultrasonic wave sending module is the receiver of the mobile communication terminal, the first ultrasonic wave receiving module For the microphone of the mobile communication terminal, wherein the microphone is set near receiver;
Distance calculation module: for according to ultrasound examination parameter and ultrasonic transmission speed and the receiver be used for The distance between the camera lens of the target reference object is shot, target reference object is calculated and is used to shoot the target shooting pair The distance between camera lens of elephant;
Focusing module: for being focused according to the distance between target reference object and camera lens;
Second ultrasonic wave receiving module: for receiving the ultrasonic wave of the reflection of the object of reference in the target area;
The ultrasound examination parameter includes that ultrasonic wave is sent to the time of target reference object and receives target reference object The time difference of the time reflected ultrasonic wave;
The object of reference is mobile communication terminal outer casing inner wall corresponding with mobile communication terminal speaker position.
6. device according to claim 5, which is characterized in that described device further include:
The ultrasound examination parameter further includes that ultrasonic wave is sent to the time of the object of reference and to receive the object of reference anti- Penetrate the time difference of the time of ultrasonic wave;
The step of calculating target reference object is with the distance between the camera lens for being used to shoot the target reference object is specific Include:
Referring to transmission time computing module: being sent to time of the object of reference to described in receiving for calculating the ultrasonic wave The reference time of the time of the ultrasonic wave of object of reference reflection is poor;
Reference distance computing module: for calculating reference distance according to the object of reference time difference and ultrasonic velocity;
Calculating parameter calibration module: for the distance and ultrasound according to the ultrasonic wave launch point recorded in advance to the object of reference Wave receiving point is corrected the reference distance to the distance of the object of reference, calculates correction parameter;
The mesh is calculated according to the correction parameter and target reference object to the ultrasonic transmission time between the camera lens Reference object is marked the distance between to camera lens.
7. device according to claim 5, which is characterized in that described device further include:
Apart from detection instruction receiving module: for receiving target reference object apart from detection instruction;
Ultrasonic wave sending module trigger module: it is used for according to the target reference object detection instruction, into described to target area Domain sends the step of ultrasonic wave;
Described device further include:
Ultrasonic reception notice issues module: receiving notice for issuing ultrasonic wave;
Ultrasonic reception notifies receiving module: receiving notice for receiving ultrasonic wave;
Ultrasound examination parameter calculating module: for calculating the ultrasonic wave according to the notification received receiving time of the ultrasonic wave Detection parameters.
8. device according to claim 5, which is characterized in that described device further include:
Ultrasonic wave actual transmission speed computing module: for the real time temperature and ultrasonic wave reference transmission speed according to detection environment Calculate ultrasonic transmission speed.
CN201610589541.1A 2016-07-25 2016-07-25 A kind of focusing method and device Active CN106303214B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610589541.1A CN106303214B (en) 2016-07-25 2016-07-25 A kind of focusing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610589541.1A CN106303214B (en) 2016-07-25 2016-07-25 A kind of focusing method and device

Publications (2)

Publication Number Publication Date
CN106303214A CN106303214A (en) 2017-01-04
CN106303214B true CN106303214B (en) 2019-09-27

Family

ID=57652270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610589541.1A Active CN106303214B (en) 2016-07-25 2016-07-25 A kind of focusing method and device

Country Status (1)

Country Link
CN (1) CN106303214B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112135034A (en) * 2019-06-24 2020-12-25 Oppo广东移动通信有限公司 Photographing method and device based on ultrasonic waves, electronic equipment and storage medium
CN111314602B (en) * 2020-02-17 2021-09-17 浙江大华技术股份有限公司 Target object focusing method, target object focusing device, storage medium and electronic device
CN112543284B (en) * 2020-11-27 2022-04-19 维沃移动通信有限公司 Focusing system, method and device
CN113542597B (en) * 2021-07-01 2023-08-29 Oppo广东移动通信有限公司 Focusing method and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202025082U (en) * 2011-02-23 2011-11-02 山东交通学院 High-precision ultrasonic ranging device
CN103616692A (en) * 2013-11-21 2014-03-05 上海海洋大学 Portable multifunctional ultrasonic ranging system based on Android mobile terminal
CN104811613A (en) * 2015-04-10 2015-07-29 深圳市金立通信设备有限公司 Camera focusing method
CN105204270A (en) * 2015-10-15 2015-12-30 广东欧珀移动通信有限公司 Adjusting method and device for focusing distance of photographing terminal
CN105208287A (en) * 2015-10-15 2015-12-30 广东欧珀移动通信有限公司 Photographing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202025082U (en) * 2011-02-23 2011-11-02 山东交通学院 High-precision ultrasonic ranging device
CN103616692A (en) * 2013-11-21 2014-03-05 上海海洋大学 Portable multifunctional ultrasonic ranging system based on Android mobile terminal
CN104811613A (en) * 2015-04-10 2015-07-29 深圳市金立通信设备有限公司 Camera focusing method
CN105204270A (en) * 2015-10-15 2015-12-30 广东欧珀移动通信有限公司 Adjusting method and device for focusing distance of photographing terminal
CN105208287A (en) * 2015-10-15 2015-12-30 广东欧珀移动通信有限公司 Photographing method and device

Also Published As

Publication number Publication date
CN106303214A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106303214B (en) A kind of focusing method and device
CN111314597B (en) Terminal, focusing method and device
JP4296197B2 (en) Arrangement and method for sound source tracking
WO2017020408A1 (en) Video recording method and device
CN105208287B (en) A kind of image pickup method and device
WO2021037129A1 (en) Sound collection method and apparatus
CN108766457B (en) Audio signal processing method, audio signal processing device, electronic equipment and storage medium
US20110211035A1 (en) Voice communication apparatus and voice communication method
CN108833795B (en) Focusing method and device of image acquisition equipment
CN105245811B (en) A kind of kinescope method and device
CN109714533B (en) Electronic device
CN104811613A (en) Camera focusing method
CN108989687A (en) camera focusing method and device
JP2017118375A (en) Electronic equipment and sound output control method
CN105657253B (en) A kind of focusing method and electronic equipment
CN111896961A (en) Position determination method and device, electronic equipment and computer readable storage medium
CN111007462A (en) Positioning method, positioning device, positioning equipment and electronic equipment
CN105323480A (en) Ultrasonic-based photographing method and device
CN104811612A (en) Terminal
CN106357348B (en) Adjust the method and device of ultrasonic wave transmission power
US10104489B2 (en) Method for using a mobile device equipped with at least two microphones for determining the direction of loudspeakers in a setup of a surround sound system
CN107462967A (en) A kind of laser ranging focuses method and system
CN110225247B (en) Image processing method and electronic equipment
EP3240266A1 (en) An apparatus, electronic device, system and method for capturing audio signals
US11902754B2 (en) Audio processing method, apparatus, electronic device and storage medium

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