CN105657253B - A kind of focusing method and electronic equipment - Google Patents
A kind of focusing method and electronic equipment Download PDFInfo
- Publication number
- CN105657253B CN105657253B CN201511001538.5A CN201511001538A CN105657253B CN 105657253 B CN105657253 B CN 105657253B CN 201511001538 A CN201511001538 A CN 201511001538A CN 105657253 B CN105657253 B CN 105657253B
- Authority
- CN
- China
- Prior art keywords
- sound source
- voice signal
- sound
- image acquisition
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
The invention discloses a kind of focusing method, applied in the electronic equipment with image acquisition units, the lower technical problem of focusing mode accuracy for solving electronic equipment.The described method includes: obtaining the first voice signal;Determine the position for issuing the sound source of first voice signal;Control described image acquisition unit carries out focusing originally based on the position of the identified sound source.Invention also discloses corresponding electronic equipment.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of focusing method and electronic equipment.
Background technique
Currently, electronic equipment is when carrying out Image Acquisition, general by the way of auto-focusing or manual focus, example
Such as, camera alignment is needed the landscape that acquires or personage by user, by camera it is automatic or by user manually according to landscape or
The readability of person personage adjusts focal length, and then shoots relatively clear photo.Currently, either manual focus or automatic
Focusing, basic principle is all based on the basic principle of optical focusing, however, can frequently result in obtain according to auto-focusing
Focus be not the desired focus of user, alternatively, according to manual focus, operate relatively complicated, and user for users
Probably due to a variety of causes such as hand shaking lead to not obtain the reasonable focus of comparison.
As it can be seen that the focusing mode accuracy of electronic equipment is lower in the prior art, it is not reasonable.
Summary of the invention
The application provides a kind of focusing method and electronic equipment, the focusing mode accuracy for solving electronic equipment are lower
The technical issues of.
In a first aspect, providing a kind of focusing method, comprising:
Obtain the first voice signal;
Determine the position for issuing the sound source of first voice signal;
Control described image acquisition unit is focused based on the position of the identified sound source.
Optionally, control described image acquisition unit is focused based on the position of the identified sound source, comprising:
Using the position of the identified sound source as focus, controls described image acquisition unit and carried out according to the focus
Focusing.
Optionally,
Before the position for determining the sound source for issuing first voice signal, further includes:
Judge whether first voice signal is consistent with preset sound signal;
Determine the position for issuing the sound source of first voice signal, comprising:
If first voice signal is consistent with the preset sound signal, the sound for issuing first voice signal is determined
The position in source.
Optionally, the position for issuing the sound source of first voice signal is determined, comprising:
According to first voice signal, first direction is determined, and determine the sound source and described image acquisition unit
The distance between;Wherein, the first direction is the direction that the sound source is directed toward from described image acquisition unit;
According to the first direction and the distance, the position of the sound source is determined.
Optionally, first direction is determined, comprising:
Obtain the intensity of first voice signal;
Determine the position of the maximum intensity of first voice signal;
The direction that the position of the maximum intensity is directed toward from described image acquisition unit is determined as the first direction.
Optionally, the distance between the sound source and described image acquisition unit are determined, comprising:
According to the energy and preset energy of first voice signal, the sound source and described image acquisition unit are determined
The distance between;Wherein, the preset energy is the energy when sound source set makes a sound.
Optionally, the distance between the sound source and described image acquisition unit are determined, comprising:
Second sound signal is issued to the first direction;
Receive the feedback signal for the second sound signal that the sound source issues;
According to the energy of the feedback signal, the distance between the sound source and described image acquisition unit are determined.
Second aspect provides a kind of electronic equipment, comprising:
Image acquisition units;
Sound collection unit, for obtaining the first voice signal;
Processing unit, for determining the position for issuing the sound source of first voice signal;It is single to control described image acquisition
Member is focused based on the position of the identified sound source.
Optionally, the processing unit is used for:
Using the position of the identified sound source as focus, controls described image acquisition unit and carried out according to the focus
Focusing.
Optionally, the processing unit is used for:
Before the position for determining the sound source for issuing first voice signal, judge first voice signal whether with
Preset sound signal is consistent;
If first voice signal is consistent with the preset sound signal, the sound for issuing first voice signal is determined
The position in source.
Optionally, the processing unit is used for:
According to first voice signal, first direction is determined, and determine the sound source and described image acquisition unit
The distance between;Wherein, the first direction is the direction that the sound source is directed toward from described image acquisition unit;
According to the first direction and the distance, the position of the sound source is determined.
Optionally, the electronic equipment further include: detecting signal unit, wherein
The detecting signal unit, for obtaining the intensity of first voice signal;
The processing unit, the position of the maximum intensity for determining first voice signal;It will be adopted from described image
The direction for the position that collection unit is directed toward the maximum intensity is determined as the first direction.
Optionally, the processing unit is used for:
According to the energy and preset energy of first voice signal, the sound source and described image acquisition unit are determined
The distance between;Wherein, the preset energy is the energy when sound source set makes a sound.
Optionally, the electronic equipment further include: voice output unit, wherein
The voice output unit, for issuing second sound signal to the first direction;
The sound collection unit, the feedback letter for the second sound signal issued for receiving the sound source
Number;
The processing unit is used for, and according to the energy of the feedback signal, determines that the sound source and described image acquisition are single
The distance between member.
The third aspect provides a kind of electronic equipment, comprising:
Module is obtained, for obtaining the first voice signal;
Determining module, for determining the position for issuing the sound source of first voice signal;
Control module is focused for controlling described image acquisition unit based on the position of the identified sound source.
Said one or multiple technical solutions in the application at least have following one or more technical effects and excellent
Point:
In the application, by acquiring the first voice signal, and determines the position for issuing the sound source of the first voice signal, utilize
The position determined, control image acquisition units are focused, in this way, can make the focus of electronic equipment in auto-focusing
Always in the position made a sound where the user of signal, it ensure that the focus that electronic equipment obtains as far as possible to a certain extent
It is the desired focus of user, meanwhile, user is not necessarily to manual focus, mitigates the workload of user, while also improving the standard of focusing
True property, so that obtained focus is relatively reasonable.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow chart of focusing method in the embodiment of the present invention;
Fig. 2 is the first structural schematic diagram of electronic equipment in the embodiment of the present invention;
Fig. 3 is second of structural schematic diagram of electronic equipment in the embodiment of the present invention;
Fig. 4 is the third structural schematic diagram of electronic equipment in the embodiment of the present invention;
Fig. 5 is the first structural block diagram of electronic equipment in the embodiment of the present invention;
Fig. 6 is second of structural block diagram of electronic equipment in the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
It is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.?
In the case where not conflicting, the feature in embodiment and embodiment in the present invention can mutual any combination.Although also, flowing
Logical order is shown in journey figure, but in some cases, it can be to be different from shown or described by sequence execution herein
The step of.
Optionally, in the embodiment of the present invention, electronic equipment can be personal computer (Personal Computer, PC),
Tablet computer (Portable Android Device, PAD), mobile phone etc. different electronic equipment, the embodiment of the present invention is to this
With no restriction.
In addition, the terms "and/or", only a kind of incidence relation for describing affiliated partner, indicates may exist
Three kinds of relationships, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.Separately
Outside, character "/" herein typicallys represent the relationship that forward-backward correlation object is a kind of "or" in the case where not illustrating.
The preferred embodiment of the present invention is described in detail with reference to the accompanying drawing.
Referring to Figure 1, the embodiment of the present invention provides a kind of focusing method, and the process of this method is described as follows.
S101: the first voice signal is obtained.
It optionally, can be by the way that sound collection unit the first voice signal of acquisition on an electronic device, such as sound be arranged
Sound acquisition unit may include microphone or other voice signal acquisition devices etc., and the embodiment of the present invention is not construed as limiting this.
Optionally, the first voice signal can be specific voice signal, for example, " focusing ", " hello " etc., or can also
To be voice signal that user arbitrarily issues, the embodiment of the present invention is not construed as limiting this.
S102: the position for issuing the sound source of the first voice signal is determined.
Optionally, electronic equipment can establish coordinate system, and the coordinate system is such as using the position where electronic equipment as seat
Origin is marked, so that electronic equipment can determine the coordinate value of the position for the sound source for issuing the first voice signal in the coordinate system.
For example, regard electronic equipment as coordinate origin, for example, determine the coordinate value for issuing the position of sound source of the first voice signal be (5,
5) it, then can determine right front of the position in electronic equipment of sound source at this time, issue the first voice signal alternatively, such as determining
The coordinate value of the position of sound source is (- 5,5), then can determine left front, etc. of the position in electronic equipment of sound source at this time.It needs
It is noted that having ignored electronic equipment during determining coordinate value for the apparent description embodiment of the present invention
Height and sound source height, i.e., hypothesis electronic equipment and sound source be in same plane, each length unit institute in coordinate system
Corresponding actual range can be set by one of ordinary skill in the art, such as can will be corresponding to length unit each in coordinate system
Actual range be set as 1m.
Optionally, the position of sound source also can use parameter and determine, such as can pass through directioin parameter and distance parameter
It determines.For example, can determine first direction according to the first voice signal, and can determine between sound source and image acquisition units
Distance, to can determine the position of sound source according to first direction and the distance between sound source and image acquisition units,
In, first direction can be the direction that sound source is directed toward from image acquisition units.
Optionally, the deflection angle that first direction can use the acquisition direction of image acquisition units indicates, for example, image
The acquisition direction of acquisition unit is direction of the image acquisition units towards region to be collected.For example, first direction can use acquisition
Direction indicates, for example first direction is the direction for acquiring 5 degree of direction left avertence.Alternatively, first direction also can use in life
Dial in specific hour number indicate that for example, using image acquisition units as the center of dial, first direction then can be with
It is 11 directions etc..Certainly, above-mentioned is only to illustrate, and one of ordinary skill in the art can according to the actual situation adopt first direction
With different representations, the embodiment of the present invention is not construed as limiting this.
Optionally, the distance between sound source and image acquisition units can be relative distance, be also possible to absolute distance.
For example, relative distance is 1 unit length, in this way, if sound when one of ordinary skill in the art can set actual range as 1m
Actual range between source and image acquisition units is 2.5m, then the relative distance between sound source and image acquisition units
It is 2.5 unit lengths.Absolute distance is the actual range between sound source and image acquisition units, such as sound source and Image Acquisition list
Actual range between member is 4.76m, etc..Above-mentioned is only to illustrate, and one of ordinary skill in the art can be according to the actual situation
Indicate that the distance between sound source and image acquisition units, the embodiment of the present invention are not construed as limiting this in different ways.
Optionally, the intensity of available first voice signal, determines the position of the maximum intensity of the first voice signal, can
First direction will be determined as from the direction of the maximum position of image acquisition units directional intensity.
Optionally, multiple sensors can be set in the outer surface of electronic equipment, for the intensity of collected sound signal, example
Such as, it is respectively provided with sensor in four orientation (front, rear, left and right) of electronic equipment, for convenience of describing, will be arranged aforementioned four
The sensor in orientation is numbered respectively, for example it is No. 1 that the sensor number in the front of electronic equipment, which will be arranged in, and setting is existed
The sensor number at the rear of electronic equipment is No. 2, and the sensor number that the left of electronic equipment will be arranged in is No. 3, will be set
Setting the sensor number in the right of electronic equipment is No. 4.Since the position of each sensor setting is different, each sensor with
The distance between sound source is also different, thus each sensor the intensity of collected first voice signal may can not yet
Together.Assuming that No. 1 sensor the intensity of collected first voice signal be 10dbm, No. 2 collected first sound of sensor institute
The intensity of sound signal is 5dbm, and the intensity of collected first voice signal of No. 3 sensors institute is 13dbm, and No. 4 sensors are adopted
The intensity of the first voice signal integrated can will then be directed toward the side of the position of No. 3 sensors as 3dbm from image acquisition units
To first direction is determined as, i.e. the first direction left that is electronic equipment.
It should be noted that it is used to acquire the more of the sensor setting of the intensity of the first voice signal in electronic equipment,
The first direction determined is more accurate, however the cost of electronic equipment entirety can also accordingly increase, therefore fields skill
Quantity and the position of sensor may be set according to actual conditions in art personnel, and the embodiment of the present invention is not construed as limiting this.
Optionally, it determines that the mode of the distance between sound source and image acquisition units has very much, is exemplified below several.
First way: sound source and Image Acquisition list can be determined according to the energy and preset energy of the first voice signal
The distance between member, preset energy can be energy when preset sound source makes a sound.
Optionally, preset energy can be set by user, for example, electronic equipment can be provided for user it is several standby
The energy value of choosing, and the energy value that user is selected is as preset energy.
Alternatively, preset energy can be what electronic equipment was determined according to the voice signal that user inputs, for example, electronic equipment
It prompts user to input a preset sound signal, obtains the energy of the preset sound signal, the energy that will acquire is as default energy
Amount.It should be noted that the position that user makes a sound at this time is closer with sound collection unit, it is believed that electronic equipment obtained
When energy is exactly that user issues preset sound signal, the energy of the preset sound signal, it can during ignoring voice transmission
Energy loss.
Alternatively, preset energy can also be set by one of ordinary skill in the art, for example, being made a sound according to most of user
The average energy value when signal, the available empirical value of one of ordinary skill in the art, and the empirical value is set as preset energy.
Optionally, it can use and determine that used identical sensor determines sound source and Image Acquisition when first direction
The distance between unit.For example, continuing is to be with first direction from the direction for the position that image acquisition units are directed toward No. 3 sensors
Example, the intensity of collected first voice signal of No. 3 sensors are 13dbm.Electronic equipment can use preset energy and determine
One voice signal has decayed how many, for example, preset energy is 60dbm, then electronic equipment determines that the first voice signal is decayed
47dbm, electronic equipment can determine the distance that the first voice signal is propagated by energy attenuation algorithm, that is, can determine sound source to figure
As the distance of acquisition unit.
The second way:
Electronic equipment can issue second sound signal to first direction, and can receive sound source sending is directed to second sound
The feedback signal of signal, the energy of electronic equipment based on the feedback signal can determine between sound source and image acquisition units away from
From.
Optionally, second sound signal can be ultrasonic signal, common voice signal or infrasound signal etc.,
Electronic equipment can use sonar principle, for example, electronic equipment can emit the to first direction (direction i.e. where sound source)
Two voice signals can generate feedback signal after second sound signal encounters obstacle (i.e. sound source, such as sound source are user),
The voice signal reflected by the body of user, after electronic equipment receives feedback signal, energy based on the feedback signal
And electronic equipment issue second sound signal when second sound signal energy (primary power of second sound signal), benefit
With energy attenuation principle, the distance that second sound signal is propagated can be determined, this distance is after second sound signal reaches sound source
It is the distance that can determine sound source to image acquisition units by this distance back to the distance of image acquisition units.
In addition, can also judge that the first voice signal is before the position for determining the sound source for issuing the first voice signal
It is no consistent with preset sound signal, if the first voice signal is consistent with preset sound signal, then the first sound letter is issued to determine
Number sound source position.
Optionally, preset sound signal can be to be input in electronic equipment before user, for example, user opens electronics
The voice signal of " focusing " is saved as preset sound by " setting " function in equipment, two words of typing " focusing ", electronic equipment
Signal, and the preset sound signal is stored in the storage unit (such as hard disk) of electronic equipment.In this way, being believed by preset sound
Number, the sound interference of other users can be excluded around electronic equipment, enable electronic equipment just for specific voice signal (i.e.
Preset sound signal) it focuses, keep the focusing of electronic equipment more accurate.
Optionally, judge whether the first voice signal is more with the consistent mode of preset sound signal, for example, by the first sound
Sound signal and preset sound signal are converted into digital signal, and whether both comparisons are identical, such as, the first sound can be compared
Whether the vibration frequency of the sound wave of the vibration frequency and preset sound signal of sound signal is identical, etc., one of ordinary skill in the art
Can according to the actual situation, using different embodiments, the embodiment of the present invention is not construed as limiting this.
In order to which the embodiment of the present invention is more clearly illustrated, an example is enumerated.For example, user is carried out certainly using electronic equipment
It clapping, user can be fixed electronic equipment somewhere by fixed equipments such as tripods, it oneself then stands to the position for wishing to take pictures,
Towards electronic equipment issue " focusing " two words (i.e. the first voice signal), electronic equipment after obtaining the first voice signal,
By itself and preset sound signal contrast, it is assumed that preset sound signal is also " focusing ", then electronic equipment determines that sending is " right
The position of the two words of coke ", the position are the position for issuing the sound source of the first voice signal, wherein determine sound source position
Mode is similar with mode above-mentioned, and the embodiment of the present invention seldom repeats this.
S103: control image acquisition units are focused based on the position of identified sound source.
After determining the position of sound source, electronic equipment can focus according to the position,
For example, controlling image acquisition units using the position of identified sound source as focus and focusing according to focus.
Fig. 2 is referred to, based on the same inventive concept, the embodiment of the present invention also provides a kind of electronic equipment, comprising:
Image acquisition units 201;
Sound collection unit 202, for obtaining the first voice signal;
Processing unit 203, for determining the position for issuing the sound source of the first voice signal;Control image acquisition units 201
It is focused based on the position of identified sound source.
Optionally, processing unit 203 is used for:
Using the position of identified sound source as focus, controls image acquisition units 201 and focus according to focus.
Optionally, processing unit 203 is used for:
Determine issue the first voice signal sound source position before, judge the first voice signal whether with preset sound
Signal is consistent;
If the first voice signal is consistent with preset sound signal, the position for issuing the sound source of the first voice signal is determined.
Optionally, processing unit 203 is used for:
According to the first voice signal, determine first direction, and determine between sound source and image acquisition units 201 away from
From;Wherein, first direction is the direction that sound source is directed toward from image acquisition units 201;
According to first direction and distance, the position of sound source is determined.
Optionally, Fig. 3, electronic equipment are referred to further include: detecting signal unit 204, wherein
Detecting signal unit 204, for obtaining the intensity of the first voice signal;
Processing unit 203, the position of the maximum intensity for determining the first voice signal;It will be from image acquisition units 201
The direction of the maximum position of directional intensity is determined as first direction.
Optionally, processing unit 203 is used for:
According to the energy and preset energy of the first voice signal, determine between sound source and image acquisition units 201 away from
From;Wherein, preset energy is the energy when sound source set makes a sound.
Optionally, Fig. 4, electronic equipment are referred to further include: voice output unit 205, wherein
Voice output unit 205, for issuing second sound signal to first direction;
Sound collection unit 202, for receiving the feedback signal for second sound signal of sound source sending;
Processing unit 203, for energy based on the feedback signal, determine between sound source and image acquisition units 201 away from
From.
Fig. 5 is referred to, based on the same inventive concept, the embodiment of the present invention also provides a kind of electronic equipment, comprising:
Module 501 is obtained, for obtaining the first voice signal;
Determining module 502, for determining the position for issuing the sound source of the first voice signal;
Control module 503 is focused for controlling image acquisition units based on the position of identified sound source.
Optionally, control module 503 is used for
Using the position of identified sound source as focus, controls image acquisition units and focus according to focus.
Optionally, determining module 502 is used for:
Determine issue the first voice signal sound source position before, judge the first voice signal whether with preset sound
Signal is consistent;
If the first voice signal is consistent with preset sound signal, the position for issuing the sound source of the first voice signal is determined.
Optionally, determining module 502 is used for:
According to the first voice signal, first direction is determined, and determine the distance between sound source and image acquisition units;Its
In, first direction is the direction that sound source is directed toward from image acquisition units;
According to first direction and distance, the position of sound source is determined.
Optionally,
Module 501 is obtained, the intensity of the first voice signal is obtained;
Determining module 502, the position of the maximum intensity for determining the first voice signal;It will be directed toward from image acquisition units
The direction of the position of maximum intensity is determined as first direction.
Optionally, determining module 502 is used for:
According to the energy and preset energy of the first voice signal, the distance between sound source and image acquisition units are determined;
Wherein, preset energy is the energy when sound source set makes a sound.
Optionally, Fig. 6, electronic equipment are referred to further include: output module 504, wherein
Output module 504, for issuing second sound signal to first direction;
Module 501 is obtained, for receiving the feedback signal for second sound signal of sound source sending;
Determining module 502 determines the distance between sound source and image acquisition units for energy based on the feedback signal.
It should be noted that a kind of focusing method described in the electronic equipment and Fig. 1 of Fig. 2-Fig. 6 in the embodiment of the present invention
Corresponding, embodiment can be referred to mutually, therefore duplicate content part is seldom repeated when describing control method.
Said one or multiple technical solutions in the embodiment of the present invention at least have following one or more technical effects
And advantage:
In the embodiment of the present invention, by acquiring the first voice signal, and the position for issuing the sound source of the first voice signal is determined
It sets, using the position determined, controls image acquisition units and focus, in this way, electronic equipment can be made in auto-focusing
Focus be in the position where the user for making a sound signal always, ensure that as far as possible to a certain extent electronic equipment obtain
Focus be the desired focus of user, meanwhile, user is not necessarily to manual focus, mitigates the workload of user, while also improving pair
Burnt accuracy, so that obtained focus is relatively reasonable.
It is apparent to those skilled in the art that for convenience and simplicity of description, only with above-mentioned each function
The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function lists
Member is completed, i.e., the internal structure of device is divided into different functional units, to complete all or part of function described above
Energy.The specific work process of the system, apparatus, and unit of foregoing description, can be with reference to corresponding in preceding method embodiment
Journey, details are not described herein.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module or
The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units
Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute
Display or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit
Indirect coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The all or part of the steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory
(Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk
Etc. the various media that can store program code.
Specifically, the corresponding computer program instructions of one of embodiment of the present invention focusing method can be stored in
CD, hard disk, on the storage mediums such as USB flash disk, when the computer program instructions quilt corresponding with a kind of focusing method in storage medium
One electronic equipment reads or is performed, and includes the following steps:
Obtain the first voice signal;
Determine the position for issuing the sound source of first voice signal;
Control described image acquisition unit is focused based on the position of the identified sound source.
Optionally, store in the storage medium and step: control described image acquisition unit is based on identified institute
The position for stating sound source is focused, and corresponding computer instruction includes the following steps: during being performed
Using the position of the identified sound source as focus, controls described image acquisition unit and carried out according to the focus
Focusing.
Optionally, store in the storage medium and step: the position for issuing the sound source of first voice signal is determined
It sets, corresponding computer instruction before being executed, includes the following steps:
Judge whether first voice signal is consistent with preset sound signal;
Determine the position for issuing the sound source of first voice signal, comprising:
If first voice signal is consistent with the preset sound signal, the sound for issuing first voice signal is determined
The position in source.
Optionally, store in the storage medium and step: the position for issuing the sound source of first voice signal is determined
It sets, corresponding computer instruction includes the following steps: during being performed
According to first voice signal, first direction is determined, and determine the sound source and described image acquisition unit
The distance between;Wherein, the first direction is the direction that the sound source is directed toward from described image acquisition unit;
According to the first direction and the distance, the position of the sound source is determined.
Optionally, store in the storage medium and step: determine that first direction, corresponding computer instruction are being held
During row, include the following steps:
Obtain the intensity of first voice signal;
Determine the position of the maximum intensity of first voice signal;
The direction that the position of the maximum intensity is directed toward from described image acquisition unit is determined as the first direction.
Optionally, it stored in the storage medium and step: determines between the sound source and described image acquisition unit
Distance, corresponding computer instruction includes the following steps: during being performed
According to the energy and preset energy of first voice signal, the sound source and described image acquisition unit are determined
The distance between;Wherein, the preset energy is the energy when sound source set makes a sound.
Optionally, it stored in the storage medium and step: determines between the sound source and described image acquisition unit
Distance, corresponding computer instruction includes the following steps: during being performed
Second sound signal is issued to the first direction;
Receive the feedback signal for the second sound signal that the sound source issues;
According to the energy of the feedback signal, the distance between the sound source and described image acquisition unit are determined.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
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 (9)
1. a kind of focusing method, applied in the electronic equipment with image acquisition units, comprising:
Obtain the first voice signal;
Determine first direction, comprising:
Obtain the intensity of first voice signal;
Determine the position of the maximum intensity of first voice signal;
The direction that the position of the maximum intensity is directed toward from described image acquisition unit is determined as the first direction, wherein
The position of sound source is determined based on the first direction;
Wherein it is determined that issuing the position of the sound source of first voice signal, comprising:
Second sound signal is issued to the first direction;
Receive the feedback signal for the second sound signal that the sound source issues;
According to the energy of the feedback signal, the distance between the sound source and described image acquisition unit are determined;
According to the first direction and the distance, the position of the sound source is determined;
Control described image acquisition unit is focused based on the position of the identified sound source.
2. the method as described in claim 1, which is characterized in that control described image acquisition unit is based on the identified sound
It focuses the position in source, comprising:
Using the position of the identified sound source as focus, controls described image acquisition unit and carried out pair according to the focus
It is burnt.
3. method according to claim 2, which is characterized in that
Before the position for determining the sound source for issuing first voice signal, further includes:
Judge whether first voice signal is consistent with preset sound signal;
Determine the position for issuing the sound source of first voice signal, comprising:
If first voice signal is consistent with the preset sound signal, the sound source for issuing first voice signal is determined
Position.
4. the method as described in claim 1, which is characterized in that determine between the sound source and described image acquisition unit away from
From, further includes:
According to the energy and preset energy of first voice signal, determine between the sound source and described image acquisition unit
Distance;Wherein, the preset energy is the energy when sound source set makes a sound.
5. a kind of electronic equipment, comprising:
Image acquisition units;
Sound collection unit, for obtaining the first voice signal;
Detecting signal unit, for obtaining the intensity of first voice signal;
Processing unit, the position of the maximum intensity for determining first voice signal, will refer to from described image acquisition unit
It is determined as first direction to the direction of the position of the maximum intensity, is determined based on the first direction and issue first sound
The position of the sound source of signal;Control described image acquisition unit is focused based on the position of the identified sound source;
Voice output unit, for issuing second sound signal to the first direction;Wherein, the sound collection unit is used
In the feedback signal for the second sound signal for receiving the sound source sending;The processing unit is used for according to described anti-
The energy of feedback signal determines the distance between the sound source and described image acquisition unit, and for according to the first party
To and the distance, determine the position of the sound source.
6. electronic equipment as claimed in claim 5, which is characterized in that the processing unit is used for:
Using the position of the identified sound source as focus, controls described image acquisition unit and carried out pair according to the focus
It is burnt.
7. electronic equipment as claimed in claim 6, which is characterized in that the processing unit is used for:
Before the position for determining the sound source for issuing first voice signal, judge first voice signal whether with preset
Voice signal is consistent;
If first voice signal is consistent with the preset sound signal, the sound source for issuing first voice signal is determined
Position.
8. electronic equipment as claimed in claim 5, which is characterized in that the processing unit is used for:
According to the energy and preset energy of first voice signal, determine between the sound source and described image acquisition unit
Distance;Wherein, the preset energy is the energy when sound source set makes a sound.
9. a kind of electronic equipment, comprising:
Image acquisition units;
Module is obtained, for obtaining the first voice signal, and the intensity of acquisition first voice signal;
Determining module determines first voice signal for determining the position for issuing the sound source of first voice signal
The position of maximum intensity will be determined as first direction, base from the direction of the maximum position of described image acquisition unit directional intensity
The position of the sound source is determined in the first direction;
Control module is focused for controlling described image acquisition unit based on the position of the identified sound source;
Output module, for issuing second sound signal to first direction;
The feedback signal for second sound signal for obtaining module and being also used to receive sound source sending;
The determining module is also used to energy based on the feedback signal, determines the distance between sound source and image acquisition units, with
And for determining the position of the sound source according to the first direction and the distance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511001538.5A CN105657253B (en) | 2015-12-28 | 2015-12-28 | A kind of focusing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511001538.5A CN105657253B (en) | 2015-12-28 | 2015-12-28 | A kind of focusing method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105657253A CN105657253A (en) | 2016-06-08 |
CN105657253B true CN105657253B (en) | 2019-03-29 |
Family
ID=56476938
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511001538.5A Active CN105657253B (en) | 2015-12-28 | 2015-12-28 | A kind of focusing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105657253B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107643509B (en) * | 2016-07-22 | 2019-01-11 | 腾讯科技(深圳)有限公司 | Localization method, positioning system and terminal device |
CN106385540A (en) * | 2016-09-26 | 2017-02-08 | 珠海格力电器股份有限公司 | Focal length control method, device and system and mobile equipment |
CN106341665A (en) * | 2016-09-30 | 2017-01-18 | 浙江宇视科技有限公司 | Tracking monitoring method and device |
CN110931041B (en) * | 2019-11-21 | 2022-08-30 | 北京地平线机器人技术研发有限公司 | Sound source determining method and device |
CN112073639A (en) * | 2020-09-11 | 2020-12-11 | Oppo(重庆)智能科技有限公司 | Shooting control method and device, computer readable medium and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101770139A (en) * | 2008-12-29 | 2010-07-07 | 鸿富锦精密工业(深圳)有限公司 | Focusing control system and method |
CN104092936A (en) * | 2014-06-12 | 2014-10-08 | 小米科技有限责任公司 | Automatic focusing method and apparatus |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100505837C (en) * | 2007-05-10 | 2009-06-24 | 华为技术有限公司 | System and method for controlling image collector for target positioning |
CN202077131U (en) * | 2010-07-16 | 2011-12-14 | 弭强 | Video monitor system based on sound positioning |
CN102541080B (en) * | 2010-12-11 | 2014-04-02 | 骅威科技股份有限公司 | Mobile device with sound source positioning function |
CN103067655A (en) * | 2011-10-24 | 2013-04-24 | 鸿富锦精密工业(深圳)有限公司 | System and method of controlling video camera device |
CN102981145A (en) * | 2012-11-12 | 2013-03-20 | 李良杰 | Sound source locator |
CN103957359B (en) * | 2014-05-15 | 2016-08-24 | 努比亚技术有限公司 | Camera head and focusing method thereof |
-
2015
- 2015-12-28 CN CN201511001538.5A patent/CN105657253B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101770139A (en) * | 2008-12-29 | 2010-07-07 | 鸿富锦精密工业(深圳)有限公司 | Focusing control system and method |
CN104092936A (en) * | 2014-06-12 | 2014-10-08 | 小米科技有限责任公司 | Automatic focusing method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN105657253A (en) | 2016-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105657253B (en) | A kind of focusing method and electronic equipment | |
EP3396516B1 (en) | Mobile terminal, method and device for displaying fingerprint recognition region | |
KR102150013B1 (en) | Beamforming method and apparatus for sound signal | |
CN104580992B (en) | A kind of control method and mobile terminal | |
CN107592466B (en) | Photographing method and mobile terminal | |
JP6964666B2 (en) | Multi-beam selection method and equipment | |
US11172321B2 (en) | Method and device for controlling sound field, and storage medium | |
CN108668077A (en) | Camera control method, device, mobile terminal and computer-readable medium | |
CN104811613A (en) | Camera focusing method | |
JP2017118375A (en) | Electronic equipment and sound output control method | |
CN111182211B (en) | Shooting method, image processing method and electronic equipment | |
CN104424073A (en) | Information processing method and electronic equipment | |
CN104811612A (en) | Terminal | |
CN105245811A (en) | Video recording method and device | |
CN111176337B (en) | Projection device, projection method and computer storage medium | |
JP7295147B2 (en) | Systems and methods for pairing devices using visual recognition | |
CN106303214A (en) | A kind of focusing method and device | |
US10491836B2 (en) | Electronic device and control method in which the resolution of a combined output image can be increased without deterioration | |
CN110727894B (en) | Target material setting method, device, equipment and storage medium | |
CN108600623B (en) | Refocusing display method and terminal device | |
CN110602381A (en) | Depth of field detection method and device, storage medium and terminal | |
CN203180982U (en) | Terminal equipment | |
CN105827931B (en) | It is a kind of based on the audio-frequency inputting method and device taken pictures | |
CN108646384B (en) | Focusing method and device and mobile terminal | |
JP2017118376A (en) | Electronic equipment |
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 |