CN108989687A - camera focusing method and device - Google Patents
camera focusing method and device Download PDFInfo
- Publication number
- CN108989687A CN108989687A CN201811045368.4A CN201811045368A CN108989687A CN 108989687 A CN108989687 A CN 108989687A CN 201811045368 A CN201811045368 A CN 201811045368A CN 108989687 A CN108989687 A CN 108989687A
- Authority
- CN
- China
- Prior art keywords
- target object
- ultrasonic signal
- ultrasonic
- signal
- shooting
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Abstract
The disclosure is directed to a kind of camera focusing method and devices.This method comprises: sending ultrasonic signal to target object to be captured by loudspeaker;It obtains at least one ultrasonic signal received by microphone and reflects ultrasonic wave signal by target object reflection;According to the sending time of ultrasonic signal and the receiving time for reflecting ultrasonic wave signal, the actual range between target object is obtained;The fixation focal distance of photographic subjects object is determined according to actual range.In the technical solution, terminal can send the sending time of ultrasonic signal according to loudspeaker, and receiving time of the ultrasonic signal when being received after target object surface reflects by microphone, determine the actual range between terminal and target object, and terminal is obtained according to the actual range and shoots the fixation focal distance of the target object in current location, shooting efficiency is improved, and then improves user experience.
Description
Technical field
This disclosure relates to terminal control technical field more particularly to a kind of camera focusing method and device.
Background technique
In order to leave fine memory to life, during some trips or party, user can be used terminal and set
Fine moment in life is all filmed by the camera set, in order to consult or watch later.
In the related technology, for terminal when indicating camera shooting, camera can be first against the object for needing shoot
Body is focused, and is shot after focusing is completed.Camera can be by the mesh that currently absorbs in the focus process
The sharpness for marking the image of object carries out Focussing, if the form or state of target object do not stop to change, terminal needs
When current location shoots the photo of multiple target object different shapes or different conditions, need to be repeated focusing, i.e., every bat
One photo is once focused, and greatly affected shooting efficiency, and if shoot when focusing not in time, may there is also
In multiple pictures the case where some blurring of photoss of some apparents, user experience is bad.
Summary of the invention
To overcome the problems in correlation technique, the embodiment of the present disclosure provides a kind of camera focusing method and device.
The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of camera focusing method is provided, comprising:
Ultrasonic signal is sent to target object to be captured by loudspeaker;
It obtains at least one ultrasonic signal received by microphone by the reflection of target object reflection
Ultrasonic signal;
According to the sending time of the ultrasonic signal and the receiving time for reflecting ultrasonic wave signal, obtain with it is described
Actual range between target object;
The fixation focal distance for shooting the target object is determined according to the actual range.
The technical scheme provided by this disclosed embodiment can include the following benefits: terminal can be sent out according to loudspeaker
When the sending time and the ultrasonic signal for sending ultrasonic signal are received after target object surface reflection by microphone
Receiving time determines the actual range between terminal and target object, and obtains terminal in current location according to the actual range
The fixation focal distance for shooting the target object is required to reacquire when avoiding the photo of each photographic subjects object of terminal
The larger situation of power consumption of terminal caused by focal distance, improves shooting efficiency, and then improve user experience.
In one embodiment, described to include: to target object transmission ultrasonic signal to be captured by loudspeaker
It is sent by the loudspeaker to the target object and meets the ultrasonic signal for presetting rule.
In one embodiment, described to obtain at least one ultrasonic signal received by microphone by described
Target object reflection the signal that reflects ultrasonic wave include:
It is matched in multiple ultrasonic signals that acquisition is received by microphone with the default rule and the sound intensity is maximum
Ultrasonic signal;
It will be matched with the default rule and the maximum ultrasonic signal of the sound intensity is determined as reflecting by the target object
Later reflect ultrasonic wave signal.
In one embodiment, the method also includes:
Shooting instruction is obtained, the shooting instruction instruction shoots the image of the target object;
According to the shooting instruction, is focused using the fixed focal distance and shoot the figure of the target object
Picture.
According to the second aspect of an embodiment of the present disclosure, a kind of camera focusing device is provided, comprising:
Sending module, for sending ultrasonic signal to target object to be captured by loudspeaker;
First obtains module, for obtaining at least one ultrasonic signal received by microphone by the mesh
Mark object reflection reflects ultrasonic wave signal;
Second obtains module, for according to the sending time of the ultrasonic signal and described reflecting ultrasonic wave connecing for signal
Between time receiving, the actual range between the target object is obtained;
Determining module, for determining the fixation focal distance for shooting the target object according to the actual range.
In one embodiment, the sending module includes:
Sending submodule meets the ultrasonic wave letter for presetting rule for sending by the loudspeaker to the target object
Number.
In one embodiment, the first acquisition module includes:
Acquisition submodule, for obtain in the multiple ultrasonic signals received by microphone with it is described it is default rule
Match and the maximum ultrasonic signal of the sound intensity;
Submodule is determined, for that will match with the default rule and the maximum ultrasonic signal of the sound intensity is determined as by institute
It states and reflects ultrasonic wave signal after target object reflects.
In one embodiment, described device further include:
Third obtains module, and for obtaining shooting instruction, the shooting instruction instruction shoots the image of the target object;
Shooting module, it is described for according to the shooting instruction, being focused and being shot using the fixed focal distance
The image of target object.
According to the third aspect of an embodiment of the present disclosure, a kind of camera focusing device is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Ultrasonic signal is sent to target object to be captured by loudspeaker;
It obtains at least one ultrasonic signal received by microphone by the reflection of target object reflection
Ultrasonic signal;
According to the sending time of the ultrasonic signal and the receiving time for reflecting ultrasonic wave signal, obtain with it is described
Actual range between target object;
The fixation focal distance for shooting the target object is determined according to the actual range.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with
Machine instruction, when which is executed by processor the step of realization first aspect any embodiment the method.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 a is the flow chart of camera focusing method shown according to an exemplary embodiment.
Fig. 1 b is the schematic diagram of measurement target object height shown according to an exemplary embodiment.
Fig. 2 is the flow chart of camera focusing method shown according to an exemplary embodiment.
Fig. 3 a is the structural schematic diagram of camera focusing device shown according to an exemplary embodiment.
Fig. 3 b is the structural schematic diagram of camera focusing device shown according to an exemplary embodiment.
Fig. 3 c is the structural schematic diagram of camera focusing device shown according to an exemplary embodiment.
Fig. 3 d is the structural schematic diagram of camera focusing device shown according to an exemplary embodiment.
Fig. 4 is the structural block diagram of camera focusing device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
The technical solution that the embodiment of the present disclosure provides is related to terminal, which can be mobile phone, tablet computer, notebook electricity
Brain and other equipment for being provided with camera, the embodiment of the present disclosure are not construed as limiting this.In the related technology, if target object
Form or state do not stop to change, and terminal needs to shoot multiple target object different shapes or different conditions in fixed position
It when photo, needs to be repeated focusing, i.e., often takes a picture and once focused, cause the power consumption of terminal larger, shooting effect
Rate is lower, and then causes user experience bad.In the technical scheme provided by this disclosed embodiment, terminal can be according to loudspeaker
When the sending time and the ultrasonic signal for sending ultrasonic signal are received after target object surface reflection by microphone
Receiving time, determine the actual range between terminal and target object, and terminal is obtained in present bit according to the actual range
The fixation focal distance for shooting the target object is set, is required to obtain again when avoiding the photo of each photographic subjects object of terminal
The situation for taking power consumption of terminal caused by focal distance larger improves shooting efficiency, and then improves user experience.
Fig. 1 a is a kind of flow chart of camera focusing method shown according to an exemplary embodiment, and this method is applied to
Terminal, as shown in Figure 1a, the camera focusing method include the following steps 101 to step 104:
In a step 101, ultrasonic signal is sent to target object to be captured by loudspeaker.
Exemplary, terminal is provided with distance measurement function, the ranging icon being arranged on the function interface of the distance measurement function and terminal
Association.User needs to shoot the pictures of multiple target objects determining, and when the form of the target object or state do not stop variation,
Instruction terminal the distance between target object can be measured first, user can click the ranging on terminal function interface at this time
Icon.For terminal when detecting that the ranging icon is clicked, confirmation gets distance measuring instruction, and terminal can indicate loudspeaker at this time
Ultrasonic signal is sent to target object.Specifically, user click terminal function interface on ranging icon when, can be by end
The loudspeaker at end is adjusted to the position of face target object to be guaranteed in this way when terminal instruction loudspeaker sends ultrasonic signal
The target object is located in the transmission direction of the ultrasonic signal.
Scene when optionally, due to user's using terminal is uncertain, it is possible to appear in user using outside when the terminal
The case where portion's environment is flooded with a variety of ultrasonic waves, therefore in order to avoid blurring, terminal can indicate that loudspeaker is sent and meet
The ultrasonic signal of rule is preset, for example, terminal can indicate that loudspeaker sends the ultrasonic signal according to predetermined period, i.e., should
Default rule is predetermined period;Or the terminal can indicate that loudspeaker sends ultrasonic wave letter according to preset strength rule change
Number, i.e., the default rule is preset strength rule change;Or the terminal can indicate that loudspeaker changes according to predeterminated frequency and advise
The ultrasonic signal is then sent, i.e., the default rule is predeterminated frequency rule change.In practical application, user can be according to reality
Situation is arranged or modifies the default rule, and the embodiment of the present disclosure is not construed as limiting this.
In a step 102, it obtains anti-by target object at least one ultrasonic signal received by microphone
That penetrates reflects ultrasonic wave signal.
Exemplary, if current environment is more spacious, and propagates without other ultrasonic waves, then microphone is only capable of receiving one
A ultrasonic signal, the ultrasonic signal be loudspeaker send by target object reflection reflect ultrasonic wave signal.
If current environment is more crowded, loudspeaker send ultrasonic signal by target object reflection after,
It is also possible to that the reflection of other objects can be passed through, therefore microphone can receive multiple ultrasonic signals.Due to ultrasonic signal with
The extension of propagation distance and increasing for order of reflection, the sound intensity can be gradually reduced, so the sound intensity that microphone receives is most
Big ultrasonic signal is that propagation distance is shorter and ultrasonic signal merely through target object primary event.Accordingly, terminal
The maximum ultrasonic signal of the sound intensity in multiple ultrasonic signals that the microphone receives can be obtained first, then by the sound intensity
Maximum ultrasonic signal reflects ultrasonic wave signal as by target object reflection.
If current environment is more crowded and there are the propagation of other ultrasonic waves, it is default regular that loudspeaker needs send satisfaction
Ultrasonic signal, exist in multiple ultrasonic signals that microphone receives at this time and the default matched ultrasonic wave of rule believed
Number, there is also with the default unmatched ultrasonic signal of rule, therefore terminal needs received first from microphone it is multiple
It is filtered out in ultrasonic signal and presets at least one matched ultrasonic signal of rule with this, for example, believing from multiple ultrasonic wave
Signal time variation and at least one matched ultrasonic signal of predetermined period are filtered out in number, or are believed from multiple ultrasonic wave
Filter out change in signal strength and at least one matched ultrasonic signal of preset strength rule change in number, or from multiple
Signal frequency variation and at least one matched ultrasonic signal of predeterminated frequency rule change are filtered out in ultrasonic signal.It is sieving
After selecting at least one ultrasonic signal, terminal can obtain the maximum ultrasound of the sound intensity at least one ultrasonic signal
Wave signal, and signal is reflected ultrasonic wave using the maximum ultrasonic signal of the sound intensity as by target object reflection.
In step 103, according to the sending time of ultrasonic signal and the receiving time for reflecting ultrasonic wave signal, obtain with
Actual range between target object.
Exemplary, terminal records the sending time t1 of the ultrasonic signal when indicating that loudspeaker sends ultrasonic signal,
Determine microphone receive by target object reflection when reflecting ultrasonic wave signal, record receive this reflect ultrasonic wave signal
Receiving time t2.Due to the aerial spread speed v of sound it is known that therefore according to the time difference between the t2 and t1, with
And the v can calculate the actual range L between terminal and the target object.Specifically, formula can be passed throughCalculate the actual range L between terminal and the target object.
Alternatively, being provided with timer in the terminal, terminal instruction loudspeaker indicates that this is fixed while sending ultrasonic signal
When device start timing, determine that microphone is received by target object reflection when reflecting ultrasonic wave signal when terminal, instruction is fixed
When device stop timing, the time of timer record is time difference t between t2 and t1 at this time.According to formula?
Calculate the actual range L between terminal and the target object.
In practical application, since microphone may receive multiple ultrasonic signals, microphone often receives one
A ultrasonic signal can record the receiving time of the ultrasonic signal, i.e. microphone records each ultrasound received in real time
The receiving time of wave signal.Terminal is filtered out from multiple ultrasonic signals that the microphone receives to reflect by target object
When reflecting ultrasonic wave signal, can from microphone record when receiving to obtain the reception for reflecting ultrasonic wave signal in the time
Between, and then the actual range between computing terminal and the target object.
At step 104, the fixation focal distance of photographic subjects object is determined according to actual range.
It is exemplary, terminal after getting the actual range between target object, can according to the actual range into
Then row focusing will so that image clearly accurately requires when the focal distance after focusing meets camera photographic subjects object
Focal distance after the focusing is set as the fixation focal distance of photographic subjects object, if that is, terminal is continuously clapped in current location
When taking the photograph the image of the target object, the fixation focal distance can be used and focused and shot, leads to when not needing to shoot every time
The sharpness for crossing target image objects is focused, and the power consumption of terminal is reduced.Specifically, the shooting interface of terminal is provided with
Display area and shooting button, the display area are shown when the collected image including target object of preceding camera.Due to
The form and state of target object are changing always, therefore user can be by image lookup object that the display area is shown
The change of the form and state of body, and then determine shooting time point.After user determines shooting time point, it can click rapidly
Shoot the shooting button on interface.For terminal when detecting that the shooting button is clicked, determination gets shooting instruction, the shooting
Instruction terminal shooting is instructed to work as the collected image including target object of preceding camera.Terminal can be directly before basis at this time
Determining fixation focal distance is focused and is shot, and the image according to the target object shown in current display interface is not needed
Sharpness focus, reduce power consumption of terminal while improving shooting efficiency.
In practical application, the height for the target object for using ultrasonic distance measurement that can shoot with measuring terminals.Specifically, eventually
End, which is provided with, surveys high function, and the hypsographic map mark being arranged in the high function of the survey and the function interface of terminal is associated with.User needs determining
When measuring the height of target object, the hypsographic map mark on the terminal function interface can be clicked.Terminal is detecting survey height
When icon is clicked, confirmation gets the high instruction of survey, at this time terminal display reminding information, prompts user vertically to hold terminal and makes
The screen vertical of terminal indicates that loudspeaker sends ultrasonic signal to the ground in ground.The ultrasonic signal is by ground
Reflection is received by the microphone of terminal, and terminal can send the sending time of the ultrasonic signal according to loudspeaker at this time, and
Microphone receives the receiving time for reflecting ultrasonic wave signal Jing Guo ground return, determines the distance between terminal and ground h.
Then terminal instruction camera is opened, and moves horizontally terminal, so that the upper end of target object and camera acquired image
Upper end it is concordant, the lower end of target object is concordant with the lower end of camera acquired image.At this time as shown in Figure 1 b, terminal
The line of the upper end 10b1 of the camera 10a1 and target object 10b of 10a, the lower end of camera 10a1 and target object 10b
The line of 10b2 and target object 10b constitute an isosceles triangle, by the feature of isosceles triangle it is found that object
The height K of body is 2 times of the distance between terminal and ground h.
In the technical scheme provided by this disclosed embodiment, terminal can send the transmission of ultrasonic signal according to loudspeaker
Receiving time when time and the ultrasonic signal are received after target object surface reflection by microphone, determines terminal
Actual range between target object, and terminal is obtained according to the actual range and shoots consolidating for the target object in current location
Determine focal distance, terminal caused by reacquiring focal distance is required to when avoiding the photo of each photographic subjects object of terminal
The larger situation of power consumption, improves shooting efficiency, and then improve user experience.
Fig. 2 is a kind of flow chart of camera focusing method shown according to an exemplary embodiment, and executing subject is eventually
End, as shown in Fig. 2, including the following steps 201 to step 209:
In step 201, the ultrasonic signal for meeting default rule is sent to target object by loudspeaker and record should
The sending time of ultrasonic signal.
In step 202, the multiple ultrasonic signals and multiple ultrasonic signal received by microphone are obtained
In each ultrasonic signal receiving time.
In step 203, it obtains in multiple ultrasonic signal and believes with default at least one matched ultrasonic wave of rule
Number.
In step 204, the maximum ultrasonic signal of the sound intensity is obtained from least one ultrasonic signal.
In step 205, the maximum ultrasonic signal of the sound intensity is determined as reflecting ultrasonic wave through what target object reflected
Signal, the receiving time of the maximum ultrasonic signal of the sound intensity are determined as the receiving time for reflecting ultrasonic wave signal.
In step 206, the receiving time of signal is reflected ultrasonic wave with this according to the sending time of the ultrasonic signal, obtained
Take the actual range between terminal and the target object.
In step 207, the fixation focal distance for shooting the target object is determined according to the actual range.
In a step 208, shooting instruction, the image of the shooting instruction instruction terminal photographic subjects object are obtained.
In step 209, it is focused according to the shooting instruction using the fixation focal distance and shoots the target object
Image.
Embodiment of the disclosure provides a kind of camera focusing method, and terminal can send ultrasonic signal according to loudspeaker
Sending time and the ultrasonic signal target object surface reflection after received by microphone when receiving time, really
Determine the actual range between terminal and target object, and terminal is obtained according to the actual range and shoots the object in current location
The fixation focal distance of body, reacquisition focal distance is required to when avoiding the photo of each photographic subjects object of terminal to be caused
The larger situation of power consumption of terminal, improve shooting efficiency, and then improve user experience.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 3 a is a kind of structural schematic diagram of camera focusing device 30 shown according to an exemplary embodiment, the device
30 being implemented in combination with as some or all of of electronic equipment by software, hardware or both.As shown in Figure 3a, should
Camera focusing device 30 includes sending module 301, and first obtains module 302, and second obtains module 303 and determining module 304.
Wherein, sending module 301, for sending ultrasonic signal to target object to be captured by loudspeaker.
First obtains module 302, for obtaining at least one ultrasonic signal received by microphone by institute
That states target object reflection reflects ultrasonic wave signal.
Second obtains module 303, for according to the sending time of the ultrasonic signal and described reflecting ultrasonic wave signal
Receiving time, obtain and the target object between actual range.
Determining module 304, for determining the fixation focal distance for shooting the target object according to the actual range.
In one embodiment, as shown in Figure 3b, the sending module 301 includes sending submodule 3011, the transmission
Submodule 3011 meets the ultrasonic signal for presetting rule for sending by the loudspeaker to the target object.
In one embodiment, as shown in Figure 3c, described first module 302 is obtained including acquisition submodule 3021 and is determined
Submodule 3022.
Wherein, acquisition submodule 3021, for obtain in the multiple ultrasonic signals received by microphone with it is described
Default rule matching and the maximum ultrasonic signal of the sound intensity.
Determine submodule 3022, for will be matched with the default rule and the maximum ultrasonic signal of the sound intensity be determined as through
It crosses after the target object reflects and reflects ultrasonic wave signal.
In one embodiment, as shown in Figure 3d, described device 30 further includes that third obtains module 305 and shooting module
306。
Wherein, third obtains module 305, and for obtaining shooting instruction, the shooting instruction instruction shoots the object
The image of body.
Shooting module 306, for being focused using the fixed focal distance and shooting institute according to the shooting instruction
State the image of target object.
Embodiment of the disclosure provides a kind of camera focusing device, which can send ultrasonic wave letter according to loudspeaker
Number sending time and the ultrasonic signal target object surface reflection after received by microphone when receiving time,
It determines the actual range between terminal and target object, and terminal is obtained according to the actual range and shoots the target in current location
The fixation focal distance of object is required to reacquisition focal distance and leads when avoiding the photo of each photographic subjects object of terminal
The larger situation of the power consumption of terminal of cause, improves shooting efficiency, and then improve user experience.
The embodiment of the present disclosure provides a kind of camera focusing device, which includes:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
Ultrasonic signal is sent to target object to be captured by loudspeaker.
It obtains at least one ultrasonic signal received by microphone by the reflection of target object reflection
Ultrasonic signal.
According to the sending time of the ultrasonic signal and the receiving time for reflecting ultrasonic wave signal, obtain with it is described
Actual range between target object.
The fixation focal distance for shooting the target object is determined according to the actual range.
In one embodiment, above-mentioned processor is also configured to: being sent out by the loudspeaker to the target object
Send the ultrasonic signal for meeting and presetting rule.
In one embodiment, above-mentioned processor is also configured to: obtaining the multiple ultrasounds received by microphone
It matches in wave signal with the default rule and the maximum ultrasonic signal of the sound intensity;To be matched with the default rule and the sound intensity most
Big ultrasonic signal is determined as reflecting ultrasonic wave signal after reflecting by the target object.
In one embodiment, above-mentioned processor is also configured to: obtaining shooting instruction, the shooting instruction instruction is clapped
Take the photograph the image of the target object;According to the shooting instruction, is focused and shot described using the fixed focal distance
The image of target object.
Embodiment of the disclosure provides a kind of camera focusing device, which can send ultrasonic wave letter according to loudspeaker
Number sending time and the ultrasonic signal target object surface reflection after received by microphone when receiving time,
It determines the actual range between terminal and target object, and terminal is obtained according to the actual range and shoots the target in current location
The fixation focal distance of object is required to reacquisition focal distance and leads when avoiding the photo of each photographic subjects object of terminal
The larger situation of the power consumption of terminal of cause, improves shooting efficiency, and then improve user experience.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 4 is a kind of structural block diagram for camera focusing device 40 shown according to an exemplary embodiment, the dress
It sets 40 and is suitable for terminal device.For example, device 40 can be mobile phone, computer, digital broadcast terminal, information receiving and transmitting set
It is standby, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Device 40 may include following one or more components: processing component 402, memory 404, and power supply module 406 is more
Media component 408, audio component 410, the interface 412 of input/output (I/O), sensor module 414 and communication component
416。
The integrated operation of the usual control device 40 of processing component 402, such as with display, telephone call, data communication, camera
Operation and record operate associated operation.Processing component 402 may include one or more processors 420 to execute instruction,
To perform all or part of the steps of the methods described above.In addition, processing component 402 may include one or more modules, it is convenient for
Interaction between processing component 402 and other assemblies.For example, processing component 402 may include multi-media module, to facilitate more matchmakers
Interaction between body component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in device 40.These data are shown
Example includes the instruction of any application or method for operating on device 40, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Power supply module 406 provides electric power for the various assemblies of device 40.Power supply module 406 may include power management system
System, one or more power supplys and other with for device 40 generate, manage, and distribute the associated component of electric power.
Multimedia component 408 includes the screen of one output interface of offer between described device 40 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 408 includes a front camera and/or rear camera.When device 40 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 410 is configured as output and/or input audio signal.For example, audio component 410 includes a Mike
Wind (MIC), when device 40 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is configured
To receive external audio signal.The received audio signal can be further stored in memory 404 or via communication component
416 send.In some embodiments, audio component 410 further includes a loudspeaker, is used for output audio signal.
I/O interface 412 provides interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 414 includes one or more sensors, for providing the status assessment of various aspects for device 40.
For example, sensor module 414 can detecte the state that opens/closes of device 40, the relative positioning of component, such as the component
For the display and keypad of device 40, sensor module 414 can be with the position of 40 1 components of detection device 40 or device
Change, the existence or non-existence that user contacts with device 40, the temperature change in 40 orientation of device or acceleration/deceleration and device 40.
Sensor module 414 may include proximity sensor, be configured to detect object nearby without any physical contact
Presence.Sensor module 414 can also include that optical sensor is used in imaging applications such as CMOS or ccd image sensor
It uses.In some embodiments, which can also include acceleration transducer, gyro sensor, magnetic sensing
Device, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 40 and other equipment.Device
40 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 416 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 40 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic building bricks are realized, for executing above-mentioned camera focusing method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 404 of instruction, above-metioned instruction can be executed by the processor 420 of device 40 to complete above-mentioned camera focusing side
Method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic
Band, floppy disk and optical data storage devices etc..
The embodiment of the present disclosure provides a kind of non-transitorycomputer readable storage medium, the instruction in the storage medium
When being executed by the processor of device 40, so that device 40 is able to carry out above-mentioned camera focusing installation method, which comprises
Ultrasonic signal is sent to target object to be captured by loudspeaker.
It obtains at least one ultrasonic signal received by microphone by the reflection of target object reflection
Ultrasonic signal.
According to the sending time of the ultrasonic signal and the receiving time for reflecting ultrasonic wave signal, obtain with it is described
Actual range between target object.
The fixation focal distance for shooting the target object is determined according to the actual range.
It is in one embodiment, described that send ultrasonic signal to target object to be captured by loudspeaker include: logical
It crosses the loudspeaker and is sent to the target object and meet the ultrasonic signal for presetting rule.
In one embodiment, described to obtain at least one ultrasonic signal received by microphone by described
Target object reflection reflect ultrasonic wave signal include: in the multiple ultrasonic signals for obtaining and being received by microphone with it is described
Default rule matching and the maximum ultrasonic signal of the sound intensity;It will be matched with the default rule and the maximum ultrasonic signal of the sound intensity
It is determined as reflecting ultrasonic wave signal after reflecting by the target object.
In one embodiment, the method also includes: obtain shooting instruction, shooting instruction instruction shoots the mesh
Mark the image of object;According to the shooting instruction, is focused using the fixed focal distance and shoot the target object
Image.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (10)
1. a kind of camera focusing method characterized by comprising
Ultrasonic signal is sent to target object to be captured by loudspeaker;
It obtains at least one ultrasonic signal received by microphone by the reflectance ultrasound of target object reflection
Wave signal;
According to the sending time of the ultrasonic signal and the receiving time for reflecting ultrasonic wave signal, obtain and the target
Actual range between object;
The fixation focal distance for shooting the target object is determined according to the actual range.
2. the method according to claim 1, wherein described sent by loudspeaker to target object to be captured
Ultrasonic signal includes:
It is sent by the loudspeaker to the target object and meets the ultrasonic signal for presetting rule.
3. according to the method described in claim 2, it is characterized in that, the acquisition is surpassed by least one that microphone receives
Include: by the signal that reflects ultrasonic wave that the target object reflects in acoustic signals
It obtains and is matched in multiple ultrasonic signals for being received by microphone with the default rule and the maximum ultrasound of the sound intensity
Wave signal;
It will be matched with the default rule and the maximum ultrasonic signal of the sound intensity is determined as after reflecting by the target object
Reflect ultrasonic wave signal.
4. according to claim 1 to method described in 3 any one claims, which is characterized in that the method also includes:
Shooting instruction is obtained, the shooting instruction instruction shoots the image of the target object;
According to the shooting instruction, is focused using the fixed focal distance and shoot the image of the target object.
5. a kind of camera focusing device characterized by comprising
Sending module, for sending ultrasonic signal to target object to be captured by loudspeaker;
First obtains module, for obtaining at least one ultrasonic signal received by microphone by the object
Body reflection reflects ultrasonic wave signal;
Second obtains module, when for according to the sending time and the reception for reflecting ultrasonic wave signal of the ultrasonic signal
Between, obtain the actual range between the target object;
Determining module, for determining the fixation focal distance for shooting the target object according to the actual range.
6. device according to claim 5, which is characterized in that the sending module includes:
Sending submodule meets the ultrasonic signal for presetting rule for sending by the loudspeaker to the target object.
7. device according to claim 6, which is characterized in that described first, which obtains module, includes:
Acquisition submodule, matched with the default rule for obtaining in the multiple ultrasonic signals received by microphone and
The maximum ultrasonic signal of the sound intensity;
Submodule is determined, for that will match with the default rule and the maximum ultrasonic signal of the sound intensity is determined as by the mesh
Signal is reflected ultrasonic wave after mark object reflection.
8. according to device described in claim 5 to 7 any one claim, which is characterized in that described device further include:
Third obtains module, and for obtaining shooting instruction, the shooting instruction instruction shoots the image of the target object;
Shooting module, for being focused using the fixed focal distance and shooting the target according to the shooting instruction
The image of object.
9. a kind of camera focusing device characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Ultrasonic signal is sent to target object to be captured by loudspeaker;
It obtains at least one ultrasonic signal received by microphone by the reflectance ultrasound of target object reflection
Wave signal;
According to the sending time of the ultrasonic signal and the receiving time for reflecting ultrasonic wave signal, obtain and the target
Actual range between object;
The fixation focal distance for shooting the target object is determined according to the actual range.
10. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor
The step of Claims 1-4 any one claim the method is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811045368.4A CN108989687A (en) | 2018-09-07 | 2018-09-07 | camera focusing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811045368.4A CN108989687A (en) | 2018-09-07 | 2018-09-07 | camera focusing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108989687A true CN108989687A (en) | 2018-12-11 |
Family
ID=64545020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811045368.4A Pending CN108989687A (en) | 2018-09-07 | 2018-09-07 | camera focusing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108989687A (en) |
Cited By (5)
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 |
CN112752191A (en) * | 2019-10-31 | 2021-05-04 | 北京小米移动软件有限公司 | Audio acquisition method, device and storage medium |
CN113225478A (en) * | 2021-04-28 | 2021-08-06 | 维沃移动通信(杭州)有限公司 | Shooting method and device |
CN113542597A (en) * | 2021-07-01 | 2021-10-22 | Oppo广东移动通信有限公司 | Focusing method and electronic device |
WO2022000213A1 (en) * | 2020-06-29 | 2022-01-06 | 深圳市大疆创新科技有限公司 | Control method and apparatus for image photographing, and storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07333671A (en) * | 1994-06-10 | 1995-12-22 | Nikon Corp | Photographing device |
CN102186018A (en) * | 2011-04-29 | 2011-09-14 | 信源通科技(深圳)有限公司 | Camera focusing method and device |
CN104125395A (en) * | 2014-05-30 | 2014-10-29 | 深圳市中兴移动通信有限公司 | Method and device for realizing automatic shooting |
US8982272B1 (en) * | 2014-05-23 | 2015-03-17 | Howard Preston | Methods, apparatuses, systems and software for focusing a camera on an object in any of a plurality of zones using graphics overlaid on a display |
CN104883502A (en) * | 2015-05-19 | 2015-09-02 | 广东欧珀移动通信有限公司 | Focusing method and apparatus for mobile terminal |
CN105282320A (en) * | 2015-06-16 | 2016-01-27 | 维沃移动通信有限公司 | Control method of terminal and terminal |
CN106446801A (en) * | 2016-09-06 | 2017-02-22 | 清华大学 | Micro-gesture identification method and system based on ultrasonic active detection |
WO2017044049A1 (en) * | 2015-09-11 | 2017-03-16 | Heptagon Micro Optics Pte. Ltd. | Imaging devices having autofocus control |
CN107409205A (en) * | 2015-03-16 | 2017-11-28 | 深圳市大疆创新科技有限公司 | The apparatus and method determined for focus adjustment and depth map |
CN107580176A (en) * | 2017-08-02 | 2018-01-12 | 努比亚技术有限公司 | A kind of terminal taking control method, camera shooting terminal and computer-readable recording medium |
CN107920211A (en) * | 2017-12-28 | 2018-04-17 | 深圳市金立通信设备有限公司 | A kind of photographic method, terminal and computer-readable recording medium |
-
2018
- 2018-09-07 CN CN201811045368.4A patent/CN108989687A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07333671A (en) * | 1994-06-10 | 1995-12-22 | Nikon Corp | Photographing device |
CN102186018A (en) * | 2011-04-29 | 2011-09-14 | 信源通科技(深圳)有限公司 | Camera focusing method and device |
US8982272B1 (en) * | 2014-05-23 | 2015-03-17 | Howard Preston | Methods, apparatuses, systems and software for focusing a camera on an object in any of a plurality of zones using graphics overlaid on a display |
CN104125395A (en) * | 2014-05-30 | 2014-10-29 | 深圳市中兴移动通信有限公司 | Method and device for realizing automatic shooting |
CN107409205A (en) * | 2015-03-16 | 2017-11-28 | 深圳市大疆创新科技有限公司 | The apparatus and method determined for focus adjustment and depth map |
CN104883502A (en) * | 2015-05-19 | 2015-09-02 | 广东欧珀移动通信有限公司 | Focusing method and apparatus for mobile terminal |
CN105282320A (en) * | 2015-06-16 | 2016-01-27 | 维沃移动通信有限公司 | Control method of terminal and terminal |
WO2017044049A1 (en) * | 2015-09-11 | 2017-03-16 | Heptagon Micro Optics Pte. Ltd. | Imaging devices having autofocus control |
CN106446801A (en) * | 2016-09-06 | 2017-02-22 | 清华大学 | Micro-gesture identification method and system based on ultrasonic active detection |
CN107580176A (en) * | 2017-08-02 | 2018-01-12 | 努比亚技术有限公司 | A kind of terminal taking control method, camera shooting terminal and computer-readable recording medium |
CN107920211A (en) * | 2017-12-28 | 2018-04-17 | 深圳市金立通信设备有限公司 | A kind of photographic method, terminal and computer-readable recording medium |
Cited By (6)
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 |
CN112752191A (en) * | 2019-10-31 | 2021-05-04 | 北京小米移动软件有限公司 | Audio acquisition method, device and storage medium |
WO2022000213A1 (en) * | 2020-06-29 | 2022-01-06 | 深圳市大疆创新科技有限公司 | Control method and apparatus for image photographing, and storage medium |
CN113225478A (en) * | 2021-04-28 | 2021-08-06 | 维沃移动通信(杭州)有限公司 | Shooting method and device |
CN113542597A (en) * | 2021-07-01 | 2021-10-22 | Oppo广东移动通信有限公司 | Focusing method and electronic device |
CN113542597B (en) * | 2021-07-01 | 2023-08-29 | Oppo广东移动通信有限公司 | Focusing method and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101834674B1 (en) | Method and device for image photographing | |
CN108989687A (en) | camera focusing method and device | |
CN106355573B (en) | The localization method and device of object in picture | |
CN111314597B (en) | Terminal, focusing method and device | |
CN105991930B (en) | Zoom processing method, device and the mobile terminal of dual camera | |
WO2019033411A1 (en) | Panoramic shooting method and device | |
CN106546969B (en) | The method and device of ultrasonic wave calibration | |
CN105959587B (en) | Shutter speed acquisition methods and device | |
CN104933419B (en) | The method, apparatus and red film for obtaining iris image identify equipment | |
CN105205494B (en) | Similar pictures recognition methods and device | |
CN105758319B (en) | The method and apparatus for measuring target object height by mobile terminal | |
WO2020103353A1 (en) | Multi-beam selection method and device | |
CN109600549A (en) | Photographic method, device, equipment and storage medium | |
CN106546970B (en) | The ultrasonic wave calibration method and device of mobile device | |
CN106303198A (en) | Photographing information acquisition methods and device | |
CN105959594B (en) | The light measuring method and device of photographic equipment | |
CN109726614A (en) | 3D stereoscopic imaging method and device, readable storage medium storing program for executing, electronic equipment | |
CN108848303A (en) | Shoot reminding method and device | |
CN106886019B (en) | Distance measurement method and device | |
CN110290576A (en) | Control method of electronic device and device | |
CN104284093B (en) | Panorama shooting method and device | |
CN206962934U (en) | Picture shooting assembly for terminal device | |
CN106483740B (en) | Projector focusing method and device | |
CN106231198B (en) | Shoot the method and device of image | |
CN112804462B (en) | Multi-point focusing imaging method and device, mobile terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181211 |
|
RJ01 | Rejection of invention patent application after publication |