CN105007368B - The method and mobile terminal of a kind of controlling loudspeaker - Google Patents
The method and mobile terminal of a kind of controlling loudspeaker Download PDFInfo
- Publication number
- CN105007368B CN105007368B CN201510319387.1A CN201510319387A CN105007368B CN 105007368 B CN105007368 B CN 105007368B CN 201510319387 A CN201510319387 A CN 201510319387A CN 105007368 B CN105007368 B CN 105007368B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- picture
- rotating camera
- motor vehicles
- finding
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of method of controlling loudspeaker, including:During user is answered using the loud speaker of mobile terminal, the rotating camera of the mobile terminal is controlled to be rotated;During the rotating camera rotates, the picture of finding a view that the rotating camera takes is analyzed, judges user whether in preset state according to the result of the analysis;If judging, user is in preset state, and the volume of the loud speaker is adjusted according to the preset state.The embodiment of the invention also discloses a kind of mobile terminals.It can be when user enables loud speaker and answers using the embodiment of the present invention, the picture of finding a view that rotating camera takes is analyzed, in the case where judging that user is in preset state according to the result of analysis, the volume of loud speaker is then adjusted according to the preset state, so as to facilitate the adjusting of speaker volume, user experience is improved.
Description
Technical field
The present embodiments relate to it is technical field of image processing more particularly to a kind of controlling loudspeaker and it is mobile eventually
End.
Background technology
With the development of information technology, the use of mobile terminal (such as mobile phone, tablet computer) is also more and more common, moves
Dynamic terminal becomes the necessity of people's life.
Loud speaker, which can be used, in mobile terminal can increase the sound of incoming call, if in the more occasion of the stream of people, loud speaker uses
Generally also seeming in the process, volume is smaller, also, there is no the method for automatic adjustment speaker volume at present, this causes user only
Can manually regulative mode, adjust the volume of loud speaker, it is very cumbersome so as to adjust process.
The content of the invention
An embodiment of the present invention provides the method and mobile terminal of a kind of controlling loudspeaker, to facilitate speaker volume
It adjusts, improves user experience.
First aspect of the embodiment of the present invention provides a kind of method of controlling loudspeaker, including step:
During user is answered using the loud speaker of mobile terminal, the rotation of the mobile terminal is controlled to image
Head is rotated;
During the rotating camera rotates, the picture of finding a view that the rotating camera takes is divided
Analysis;
For judging user whether in preset state according to the result of the analysis;
If for judging that user is in preset state, the volume of the loud speaker is adjusted according to the preset state.
With reference to first aspect, in the first possible realization method of first aspect, the preset state is:Motion state
Or complex environment state, wherein, the complex environment state is that number is more than preset number or the ring in the environment
There are motor vehicles to cross in border.
With reference to first aspect or the first possible realization method of first aspect, may be realized at second of first aspect
In mode, the result according to the analysis judges whether user is in preset state, including:
Whether it is more than in advance in the slosh frequency that the result of the analysis is the picture of finding a view that the rotating camera takes
If threshold value, then judge that user is in preset state.
With reference to first aspect or the first possible realization method of first aspect, the third in first aspect may be realized
In mode, the result according to the analysis judges whether user is in preset state, including:
It is default whether the number in the picture of finding a view taken in the result of the analysis for the rotating camera is more than
Threshold value then judges that user is in preset state;
Alternatively,
There are motor vehicles to cross in the picture of finding a view taken in the result of the analysis for the rotating camera, then sentence
Disconnected user is in preset state.
With reference to first aspect or the first possible realization method of first aspect, may be realized at the 4th kind of first aspect
In mode, the volume that the loud speaker is adjusted according to the preset state, including:
In the case where the preset state is complex environment state, the people in the mobile terminal local environment is determined
Number;
Number in the mobile terminal local environment adjusts the volume of the loud speaker.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, including:
Control unit during being answered in user using the loud speaker of mobile terminal, controls the movement
The rotating camera of terminal is rotated;
Analytic unit during being rotated in the rotating camera, takes to what the rotating camera took
Scape picture is analyzed;
Whether judging unit, the result for being analyzed according to the analytic unit judge user in preset state;
Adjustment unit, if judging that user is in preset state for the judging unit, according to the preset state
Adjust the volume of the loud speaker.
With reference to second aspect, in the first possible realization method of second aspect, the preset state is:Motion state
Or complex environment state, wherein, the complex environment state is that number is more than preset number or the ring in the environment
There are motor vehicles to cross in border.
With reference to the possible realization method of the first of second aspect or second aspect, second in second aspect may realization
In mode, the judging unit is specifically used for:
Whether it is more than in advance in the slosh frequency that the result of the analysis is the picture of finding a view that the rotating camera takes
If threshold value, then judge that user is in preset state.
With reference to the possible realization method of the first of second aspect or second aspect, the third in second aspect may be realized
In mode, the judging unit also particularly useful for:
It is default whether the number in the picture of finding a view taken in the result of the analysis for the rotating camera is more than
Threshold value then judges that user is in preset state;
Alternatively,
There are motor vehicles to cross in the picture of finding a view taken in the result of the analysis for the rotating camera, then sentence
Disconnected user is in preset state.
With reference to the possible realization method of the first of second aspect or second aspect, the 4th kind in second aspect may realize
In mode, the adjustment unit includes:
Determination unit in the case of in the preset state for complex environment state, determines the mobile terminal institute
Locate the number in environment;
Regulator unit is adjusted for the number in the mobile terminal local environment that is determined according to the determination unit
The volume of the loud speaker.
Implement the embodiment of the present invention, have the advantages that:
The embodiment of the present invention controls described mobile whole during user is answered using the loud speaker of mobile terminal
The rotating camera at end is rotated;During the rotating camera rotates, the rotating camera is taken
Whether picture of finding a view is analyzed, judge user in preset state according to the result of the analysis;If judging, user is in
Preset state then adjusts the volume of the loud speaker according to the preset state.It can be enabled using the embodiment of the present invention in user
When loud speaker is answered, the picture of finding a view that rotating camera takes is analyzed, is judged in the result according to analysis
In the case that user is in preset state, then the volume of loud speaker is adjusted according to the preset state, so as to facilitate speaker volume
Adjusting, improve user experience.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to required in embodiment, description
The attached drawing used is briefly described, it should be apparent that, the accompanying drawings in the following description is only some realities of the embodiment of the present invention
Example is applied, it for those of ordinary skill in the art, without creative efforts, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of flow diagram of the first embodiment of the method for controlling loudspeaker provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the second embodiment of the method for controlling loudspeaker provided in an embodiment of the present invention;
Fig. 3 a are a kind of structure diagram of the first embodiment of mobile terminal provided in an embodiment of the present invention;
Fig. 3 b are a kind of another structure diagram of the first embodiment of mobile terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of structure diagram of the second embodiment of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only the implementation of part of the embodiment of the embodiment of the present invention rather than whole
Example.Based on the embodiment in the embodiment of the present invention, those of ordinary skill in the art institute without creative efforts
The every other embodiment obtained belongs to the scope of protection of the embodiment of the present invention.
In realization, in the embodiment of the present invention, mobile terminal can include but is not limited to:Laptop, mobile phone, tablet electricity
Brain, intelligent wearable device etc..The system of mobile terminal refers to the operating system of equipment, can include but is not limited to:Android
System, Saipan system, Windows systems, IOS (Mobile operating system of Apple Inc.'s exploitation), XP systems, 8 systems of windows
System etc..It should be noted that Android mobile terminal refers to the mobile terminal of android system, Saipan mobile terminal refers to Saipan
Mobile terminal of system, etc..Above-mentioned mobile terminal is only citing, and non exhaustive, including but not limited to above-mentioned mobile terminal.
Method and shifting of combination of the embodiment of the present invention Fig. 1 to Fig. 4 to a kind of controlling loudspeaker provided in an embodiment of the present invention
Dynamic terminal is described.
Referring to Fig. 1, Fig. 1 is a kind of stream of the first embodiment of the method for controlling loudspeaker provided in an embodiment of the present invention
Journey schematic diagram.The method of controlling loudspeaker described in the present embodiment, including step:
S101, during user is answered using the loud speaker of mobile terminal, control the rotation of the mobile terminal
Turn camera to be rotated.
In the specific implementation, during user is answered using the loud speaker of mobile terminal, wherein, answering may include
But it is not limited only to:It receives calls, answers wifi phones, answer wechat voice, answer QQ voices, answer tone information mailbox etc.
Deng.During above-mentioned answer, mobile terminal can control the rotating camera of mobile terminal to be rotated.
Wherein, the rotating camera of mobile terminal can be mobile terminal carry rotating camera, pass through wifi or logical
With universal serial bus (English:Universal Serial Bus, abridge USB) rotating camera etc. of control.
As a kind of possible embodiment, mobile terminal can set the rotation angle of its rotating camera, such as will be original
The scope of angle rotatable is 0-250 degree, may be configured as 0-150 degree now.
S102, the rotating camera rotate during, to the rotating camera take find a view picture into
Row analysis;
In the specific implementation, during the rotating camera rotation of mobile terminal, mobile terminal can be to rotating camera
The picture of finding a view taken is analyzed, and can analyze the slosh frequency for picture of finding a view, for example, user is during the motion, rotation
The picture of finding a view of camera shooting is rocking;During the rotating camera rotation of mobile terminal, its picture of finding a view can be analyzed
Number in face;Also can analyze in picture of finding a view whether someone passes through microphone talk;It can analyze whether organic in picture of finding a view
Motor-car crosses, etc..
S103, for judging user whether in preset state according to the result of the analysis.
In the specific implementation, whether mobile terminal can judge user in preset state, preset state according to the result of analysis
It may include but be not limited only to:User is kept in motion or user is in complex environment state, wherein, the complex environment state
May be defined as number in environment is more than to have motor vehicles to cross in preset number or the environment.
Further, it is pre- whether the slosh frequency of the picture of finding a view taken in the result of analysis for rotating camera is more than
If threshold value, then judge that user is in preset state.Wherein, predetermined threshold value can be that user oneself defines, such as:5 hertz, 10 hertz,
50 hertz, 50.5 hertz, it is not limited only to this.
Further, it is pre- whether the number in the picture of finding a view taken in the result of analysis for the rotating camera is more than
If threshold value, then judge that user is in preset state.The rotating camera of mobile terminal, can be to taking during rotation
Picture of finding a view carries out person detecting, whether is more than predetermined threshold value with the number in the picture that determines to find a view, such as:Mobile terminal can control
The rotating camera of the mobile terminal is detected back and forth in the range of predetermined angle;In the detection process, which is taken the photograph
As the shooting picture of head carries out personage's matching.Mobile terminal can set the rotation angle of the rotating camera of mobile terminal, revolve
In the case that gyration determines, the rotating camera poll detection back and forth of mobile terminal is controlled, in detection process, to shooting picture
Face carries out personage's matching, and whether the matched purpose of personage find out occurring in the picture of finding a view of the rotating camera of mobile terminal
Personage, the matched mode of personage may include but be not limited only to:Infrared detection, outline, face recognition etc..
Further, motor vehicles cross in the picture of finding a view taken in the result of analysis for rotating camera, then
Judge that user is in preset state.The rotating camera of mobile terminal is in rotary course, the picture of finding a view that can be taken to it
Middle motor vehicles are detected, for example, motor vehicles can be determined according to the resemblance of motor vehicles, secondly, according to picture of finding a view
The position movement of motor vehicles in face, determines whether the motor vehicles are moving.
If S104, judging that user is in preset state, the volume of the loud speaker is adjusted according to the preset state.
In the specific implementation, if mobile terminal is judged to be used in preset state, which is adjusted according to preset state
The volume of the loud speaker of terminal.
As a kind of possible realization method, mobile terminal is using the extraneous sound of the microphone detection of the mobile terminal
Sound adjusts the volume of loud speaker according to the sound, and such as extraneous sound is more than predetermined threshold value, by the sound of the loud speaker of mobile terminal
Amount is adjusted to maximum.
The embodiment of the present invention controls described mobile whole during user is answered using the loud speaker of mobile terminal
The rotating camera at end is rotated;During the rotating camera rotates, the rotating camera is taken
Whether picture of finding a view is analyzed, judge user in preset state according to the result of the analysis;If judging, user is in
Preset state then adjusts the volume of the loud speaker according to the preset state.It can be enabled using the embodiment of the present invention in user
When loud speaker is answered, the picture of finding a view that rotating camera takes is analyzed, is judged in the result according to analysis
In the case that user is in preset state, then the volume of loud speaker is adjusted according to the preset state, so as to facilitate speaker volume
Adjusting, improve user experience.
Referring to Fig. 2, Fig. 2 is a kind of stream of the second embodiment of the method for controlling loudspeaker provided in an embodiment of the present invention
Journey schematic diagram.As a kind of possible embodiment, the method for the controlling loudspeaker described in the present embodiment is specific as follows:
S201, during user is answered using the loud speaker of mobile terminal, control the rotation of the mobile terminal
Turn camera to be rotated.
S202, the rotating camera rotate during, to the rotating camera take find a view picture into
Row analysis.
S203, for judging user whether in preset state according to the result of the analysis.
Wherein, the specific descriptions of step S201- steps S203 are asked in the above-mentioned Fig. 1 of parameter in step S101- steps S103
Description.
S204, in the case where judging that user is in preset state and the preset state as complex environment state, really
Number in the fixed mobile terminal local environment.
In the specific implementation, it is complex environment state to judge that user is in preset state and the preset state in mobile terminal
In the case of, mobile terminal can determine the number in its local environment, such as:The rotating camera of mobile terminal is in the process of rotation
In, it often detects a personage, is then marked, think the mobile terminal if the number detected is more than preset number
In complex environment state, after being determined that user is under complex environment, mobile terminal continues detection number, is taken the photograph in rotation
When rotating as head to predetermined angle, the number that mobile terminal detects is counted.
S205, the number in the mobile terminal local environment adjust the volume of the loud speaker.
In the specific implementation, mobile terminal can adjust the volume of loud speaker according to the number in mobile terminal local environment, such as:
Determine that the number in mobile terminal local environment for 5 people, then keeps a lattice volume;If it is detected that in mobile terminal local environment
Number for 10 people, keep two lattice volumes.If it is determined that the number in mobile terminal local environment is more than the first preset number, it can
The loud speaker of mobile terminal is adjusted to max volume, such as:First preset number is 100 people.If the number in mobile terminal is less than
The loud speaker of mobile terminal can be adjusted to a lattice volume by the second preset number.
It further, can in the case where judging that user is in preset state and preset state as complex environment state
Determine the distance between the motor vehicles crossed in the picture of finding a view that rotating camera takes and the mobile terminal, it can be according to this
Distance adjusts the volume of loud speaker, such as:The motor vehicles and the movement crossed in what rotating camera took find a view picture are whole
The distance between end is more than the first pre-determined distance, then keeps the volume of loud speaker, and the first pre-determined distance can be 100 meters;Rotation is taken the photograph
As the distance between the motor vehicles crossed in picture of finding a view that head takes and the mobile terminal are less than the second pre-determined distance, then
The volume of loud speaker is adjusted to maximum, alternatively, the motor vehicles crossed in the picture of finding a view taken according to rotating camera with
Proportionate relationship between the distance between the mobile terminal and volume adjusts the volume of loud speaker, if the distance is 100 meters, raises one's voice
One lattice of volume of device;The distance is 80 meters, two lattice of volume of loud speaker, etc..
The embodiment of the present invention controls described mobile whole during user is answered using the loud speaker of mobile terminal
The rotating camera at end is rotated;During the rotating camera rotates, the rotating camera is taken
Picture of finding a view is analyzed;For judging user whether in preset state according to the result of the analysis;In the default shape
In the case that state is complex environment state, the number in the mobile terminal local environment is determined;According to the mobile terminal institute
Locate the volume that the number in environment adjusts the loud speaker.It can be enabled using the embodiment of the present invention in user when loud speaker answers
It waits, the picture of finding a view that rotating camera takes is analyzed, judging that user is in default shape according to the result of analysis
In the case of state, the number in the picture that determines to find a view then adjusts the volume of loud speaker, so as to facilitate speaker according to the number
The adjusting of amount improves user experience.
Fig. 3 a are referred to, Fig. 3 a are a kind of structural representations of the first embodiment of mobile terminal provided in an embodiment of the present invention
Figure.The mobile terminal may include:Mobile terminal described in the present embodiment is specific as follows:
Control unit 301 during being answered in user using the loud speaker of mobile terminal, controls the shifting
The rotating camera of dynamic terminal is rotated.
In the specific implementation, during user is answered using the loud speaker of mobile terminal, wherein, answering may include
But it is not limited only to:It receives calls, answers wifi phones, answer wechat voice, answer QQ voices, answer tone information mailbox etc.
Deng.During above-mentioned answer, control unit 401 can control the rotating camera of mobile terminal to be rotated.
Wherein, the rotating camera of mobile terminal can be mobile terminal carry rotating camera, pass through wifi or logical
With universal serial bus (English:Universal Serial Bus, abridge USB) rotating camera etc. of control.
As a kind of possible embodiment, setting unit (not marked in figure) can set the anglec of rotation of its rotating camera
Degree is 0-250 degree such as by the scope of original angle rotatable, may be configured as 0-150 degree now.
Analytic unit 302 during being rotated in the rotating camera, takes the rotating camera
Picture of finding a view is analyzed.
In the specific implementation, during the rotating camera rotation of mobile terminal, analytic unit 302 can image rotation
The picture of finding a view that head takes is analyzed, and can analyze the slosh frequency for picture of finding a view, for example, user is during the motion, rotation
The picture of finding a view for turning camera shooting is rocking;During the rotating camera rotation of mobile terminal, it can be analyzed and found a view
Number in picture;Also can analyze in picture of finding a view whether someone passes through microphone talk;Whether can analyze in picture of finding a view has
Motor vehicles cross, etc..
Whether judging unit 303, the result for being analyzed according to the analytic unit 302 judge user in default shape
State.
In the specific implementation, judging unit 303 can judge that user whether in preset state, presets shape according to the result of analysis
State may include but be not limited only to:User is kept in motion or user is in complex environment state, wherein, the complex environment shape
It is more than to have motor vehicles to cross in preset number or the environment that state, which may be defined as number in environment,.
Further, it is pre- whether the slosh frequency of the picture of finding a view taken in the result of analysis for rotating camera is more than
If threshold value, then judging unit 303 judges that user is in preset state.Wherein, predetermined threshold value can be that user oneself defines, such as:5 hertz
Hereby, 10 hertz, 50 hertz, 50.5 hertz, it is not limited only to this.
Further, it is pre- whether the number in the picture of finding a view taken in the result of analysis for the rotating camera is more than
If threshold value, then judging unit 303 judges that user is in preset state.The rotating camera of mobile terminal during rotation,
Person detecting can be carried out to the picture of finding a view taken, whether predetermined threshold value is more than with the number in the picture that determines to find a view, such as:Inspection
Surveying unit (not marked in figure) can control the rotating camera of the mobile terminal to be detected back and forth in the range of predetermined angle;
In the detection process, matching unit (not marked in figure) carries out personage's matching to the shooting picture of the rotating camera.It sets single
First (not marked in figure) can set the rotation angle of the rotating camera of mobile terminal, should in the case where rotation angle determines
Poll detects the rotating camera of detection unit control mobile terminal back and forth, and in detection process, the matching unit is to shooting picture
Face carries out personage's matching, and whether the matched purpose of personage find out occurring in the picture of finding a view of the rotating camera of mobile terminal
Personage, the matched mode of personage may include but be not limited only to:Infrared detection, outline, face recognition etc..
Further, motor vehicles cross in the picture of finding a view taken in the result of analysis for rotating camera, then
Judging unit 303 judges that user is in preset state.The rotating camera of mobile terminal can take it in rotary course
Picture of finding a view in motor vehicles be detected, for example, motor vehicles can be determined according to the resemblance of motor vehicles, secondly,
The position movement of motor vehicles in picture of finding a view, determines whether the motor vehicles are moving.
Adjustment unit 304, if judging that user is in preset state for the judging unit 303, according to described pre-
If the volume of loud speaker described in status adjustment.
As a kind of possible realization method, as shown in Figure 3b, the adjustment unit 304 described in Fig. 3 a can also include:
Determination unit 305 and regulator unit 306.
Determination unit 305 in the case of in the preset state for complex environment state, determines the mobile terminal
Number in local environment.
In the specific implementation, it is complex environment to judge that user is in preset state and the preset state in judging unit 303
In the case of state, determination unit 305 can determine the number in its local environment, such as:The rotating camera of mobile terminal is being revolved
It during turning, often detects a personage, is then marked, think this if the number detected is more than preset number
Mobile terminal is in complex environment state, and after being determined that user is under complex environment, mobile terminal continues detection number,
When rotating camera is rotated to predetermined angle, the number that mobile terminal detects is counted.
Regulator unit 306, for the people in the definite mobile terminal local environment of the determination unit 305
Number adjusts the volume of the loud speaker.
In the specific implementation, regulator unit 306 can adjust the sound of loud speaker according to the number in mobile terminal local environment
Amount, such as:Determine that the number in mobile terminal local environment for 5 people, then keeps a lattice volume;If it is detected that residing for mobile terminal
Number in environment is 10 people, keeps two lattice volumes.If it is determined that the number in mobile terminal local environment is more than first default
The loud speaker of mobile terminal can be adjusted to max volume by number, regulator unit 306, such as:First preset number is 100 people.If
For number in mobile terminal less than the second preset number, the loud speaker of mobile terminal can be adjusted to a lattice sound by regulator unit 306
Amount.
Further, it is complex environment state to judge that user is in preset state and preset state in judging unit 303
In the case of, determination unit 305 may further determine that the motor vehicles crossed in the picture of finding a view that rotating camera takes and the shifting
The distance between dynamic terminal, regulator unit 306 can adjust the volume of loud speaker according to the distance, such as:Rotating camera is shot
To picture of finding a view in the distance between the motor vehicles that cross and the mobile terminal be more than the first pre-determined distance, then regulator list
Member 306 keeps the volume of loud speaker, and the first pre-determined distance can be 100 meters;It is crossed in what rotating camera took find a view picture
Motor vehicles and the distance between the mobile terminal be less than the second pre-determined distance, then regulator unit 306 is by the sound of loud speaker
Amount is adjusted to maximum, alternatively, the motor vehicles crossed in the picture of finding a view that regulator unit 306 can take according to rotating camera
Proportionate relationship of the distance between the mobile terminal between volume adjusts the volume of loud speaker, if the distance is 100 meters, raises
One lattice of volume of sound device;The distance is 80 meters, two lattice of volume of loud speaker, etc..
The embodiment of the present invention during user is answered using the loud speaker of mobile terminal, control by control unit 301
The rotating camera for making the mobile terminal is rotated;During the rotating camera rotates, analytic unit 302 is right
What the rotating camera took find a view, and picture is analyzed;The knot that judging unit 303 is analyzed according to the analytic unit 302
Whether fruit judges user in preset state;If the judging unit 303 judges that user is in preset state, adjustment unit
304 volumes that the loud speaker is adjusted according to the preset state.Loud speaker can be enabled in user using the embodiment of the present invention
When answering, the picture of finding a view that rotating camera takes is analyzed, is judged in the result according to analysis at user
In the case of preset state, then the volume of loud speaker is adjusted according to the preset state, so as to facilitate the adjusting of speaker volume,
Improve user experience.
Referring to Fig. 4, Fig. 4 is a kind of structural representation of the second embodiment of mobile terminal provided in an embodiment of the present invention
Figure.Mobile terminal described in the present embodiment includes:At least one input equipment 1000;At least one output equipment 2000;
At least one processor 3000, such as CPU;With memory 4000, above-mentioned input equipment 1000, output equipment 2000, processor
3000 and memory 4000 connected by bus 5000.
Wherein, above-mentioned input equipment 1000 can be touch panel, common PC, liquid crystal display, touch screen, push button etc..
Above-mentioned memory 4000 can be high-speed RAM memory or non-labile memory (non-volatile
), such as magnetic disk storage memory.Above-mentioned memory 4000 is above-mentioned input equipment 1000, defeated for storing batch processing code
Go out equipment 2000 and processor 3000 is used to call the program code stored in memory 4000, perform following operation:
Above-mentioned processor 3000, is used for:During user is answered using the loud speaker of mobile terminal, control should
The rotating camera of mobile terminal is rotated;
In the specific implementation, during user is answered using the loud speaker of mobile terminal, wherein, answering may include
But it is not limited only to:It receives calls, answers wifi phones, answer wechat voice, answer QQ voices, answer tone information mailbox etc.
Deng.During above-mentioned answer, above-mentioned processor 3000 can control the rotating camera of mobile terminal to be rotated.
Wherein, the rotating camera of mobile terminal can be mobile terminal carry rotating camera, pass through wifi or logical
With universal serial bus (English:Universal Serial Bus, abridge USB) rotating camera etc. of control.
As a kind of possible embodiment, mobile terminal can set the rotation angle of its rotating camera, such as will be original
The scope of angle rotatable is 0-250 degree, may be configured as 0-150 degree now.
Above-mentioned processor 3000, also particularly useful for:
During the rotating camera rotates, the picture of finding a view which takes is analyzed;
In the specific implementation, during the rotating camera rotation of mobile terminal, above-mentioned processor 3000 can be to rotation
What camera took find a view, and picture is analyzed, and the slosh frequency for picture of finding a view can be analyzed, for example, user is in motion process
In, the picture of finding a view of rotating camera shooting is rocking;During the rotating camera rotation of mobile terminal, it can be analyzed
The number found a view in picture;Also can analyze in picture of finding a view whether someone passes through microphone talk;Can analyze in picture of finding a view is
It is no to there are motor vehicles to cross, etc..
Above-mentioned processor 3000, also particularly useful for:
For judging user whether in preset state according to the result of the analysis;
In the specific implementation, above-mentioned processor 3000 can judge whether user is in preset state according to the result of analysis, in advance
If state may include but be not limited only to:User is kept in motion or user is in complex environment state, wherein, the complexity ring
It is more than to have motor vehicles to cross in preset number or the environment that border state, which may be defined as number in environment,.
Further, it is pre- whether the slosh frequency of the picture of finding a view taken in the result of analysis for rotating camera is more than
If threshold value, then above-mentioned processor 3000 judges that user is in preset state.Wherein, predetermined threshold value can be that user oneself defines, such as:
5 hertz, 10 hertz, 50 hertz, 50.5 hertz, it is not limited only to this.
Further, it is pre- whether the number in the picture of finding a view taken in the result of analysis for the rotating camera is more than
If threshold value, then above-mentioned processor 3000 judges that user is in preset state.The rotating camera of mobile terminal is in the process of rotation
In, person detecting can be carried out to the picture of finding a view taken, whether predetermined threshold value is more than with the number in the picture that determines to find a view,
Such as:Mobile terminal can control the rotating camera of the mobile terminal to be detected back and forth in the range of predetermined angle;In the detection
In the process, personage's matching is carried out to the shooting picture of the rotating camera.Mobile terminal can set the rotation of mobile terminal to image
The rotation angle of head in the case where rotation angle determines, controls the rotating camera poll detection back and forth of mobile terminal, is examining
During survey, personage's matching is carried out to shooting picture, the matched purpose of personage find out the rotating camera of mobile terminal
It finds a view in picture and personage whether occurs, the matched mode of personage may include but be not limited only to:Infrared detection, outline, face
Portion's identification etc..
Further, motor vehicles cross in the picture of finding a view taken in the result of analysis for rotating camera, then
Above-mentioned processor 3000 judges that user is in preset state.The rotating camera of mobile terminal can clap it in rotary course
Motor vehicles are detected in the picture of finding a view taken the photograph, for example, can motor vehicles be determined according to the resemblance of motor vehicles,
Secondary, the position movement of the motor vehicles in picture of finding a view determines whether the motor vehicles are moving.
Above-mentioned processor 3000, also particularly useful for:
If for judging that user is in preset state, the volume of the loud speaker is adjusted according to the preset state.
In the specific implementation, if above-mentioned processor 3000 is judged to be used in preset state, adjusted according to preset state
The volume of the loud speaker of the mobile terminal.
As a kind of possible realization method, above-mentioned processor 3000 detects extraneous using the microphone of the mobile terminal
Sound, the volume of loud speaker is adjusted according to the sound, such as extraneous sound is more than predetermined threshold value, by the loud speaker of mobile terminal
Volume be adjusted to maximum.
In some feasible embodiments, above-mentioned preset state is:Motion state or complex environment state, wherein,
The complex environment state is that number is more than to have motor vehicles to cross in preset number or the environment in the environment.
In some feasible embodiments, above-mentioned processor 3000, also particularly useful for:
Whether it is more than default threshold in the slosh frequency that the result of above-mentioned analysis is the picture of finding a view that rotating camera takes
Value, then judge that user is in preset state.
In some feasible embodiments, above-mentioned processor 3000, also particularly useful for:
Whether the number in the picture of finding a view taken in the result of above-mentioned analysis for rotating camera is more than predetermined threshold value,
Then judge that user is in preset state;Alternatively, have in the picture of finding a view that takes for rotating camera of result of above-mentioned analysis
Motor vehicles cross, then judge that user is in preset state.
In some feasible embodiments, above-mentioned processor 3000, also particularly useful for:
In the case where the preset state is complex environment state, the people in the mobile terminal local environment is determined
Number;
In the specific implementation, it is complex environment state to judge that user is in preset state and the preset state in mobile terminal
In the case of, above-mentioned processor 3000 can determine the number in its local environment, such as:The rotating camera of mobile terminal is rotating
During, it often detects a personage, is then marked, think the shifting if the number detected is more than preset number
Dynamic terminal is in complex environment state, and after being determined that user is under complex environment, mobile terminal continues detection number,
When rotating camera is rotated to predetermined angle, the number that mobile terminal detects is counted.
In some feasible embodiments, above-mentioned processor 3000, also particularly useful for:
Number in the mobile terminal local environment adjusts the volume of the loud speaker.
In the specific implementation, above-mentioned processor 3000 can adjust the sound of loud speaker according to the number in mobile terminal local environment
Amount, such as:Determine that the number in mobile terminal local environment for 5 people, then keeps a lattice volume;If it is detected that residing for mobile terminal
Number in environment is 10 people, keeps two lattice volumes.If it is determined that the number in mobile terminal local environment is more than first default
The loud speaker of mobile terminal can be adjusted to max volume, such as by number:First preset number is 100 people.If the people in mobile terminal
The loud speaker of mobile terminal can be adjusted to a lattice volume by number less than the second preset number.
In the specific implementation, input equipment 1000, output equipment 2000 and processor described in the embodiment of the present invention
3000 can perform institute in each embodiment of the method for the controlling loudspeaker described in Fig. 1~Fig. 2 provided in an embodiment of the present invention
The realization method of description, details are not described herein.
The embodiment of the present invention also provides a kind of computer storage media, wherein, which can be stored with journey
Sequence, the part or all of step including any one signal processing method described in above method embodiment when which performs
Suddenly.
In the above-described embodiments, all emphasize particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiment.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Combination of actions, but those skilled in the art should know, the present invention and from the limitation of described sequence of movement because
According to the present invention, some steps may may be employed other orders or be carried out at the same time.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, involved action and module not necessarily this hair
Necessary to bright.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of said units, it is only one kind
Division of logic function, can there is an other dividing mode in actual implementation, such as multiple units or component can combine or can
To be integrated into another system or some features can be ignored or does not perform.Another, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit,
Can be electrical or other forms.
The above-mentioned unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical location, you can be located at a place or can also be distributed to multiple
In network element.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in various embodiments of the present invention can be integrated in a processing unit or
Unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated unit
Both the form that hardware may be employed is realized, can also be realized in the form of SFU software functional unit.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and is independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products
It embodies, which is stored in a storage medium, is used including some instructions so that a computer
Equipment (can be personal computer, server or network equipment etc., can be specifically the processor in computer equipment) is held
The all or part of step of each embodiment above method of the row present invention.Wherein, foregoing storage medium may include:USB flash disk, shifting
Dynamic hard disk, magnetic disc, CD, read-only memory (English:Read-Only Memory, abbreviation:) or random access memory ROM
(English:Random Access Memory, abbreviation:The various media that can store program code such as RAM).
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before
Embodiment is stated the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding
The technical solution recorded in each embodiment is stated to modify or carry out equivalent substitution to which part technical characteristic;And these
Modification is replaced, and the essence of appropriate technical solution is not made to depart from the spirit and scope of various embodiments of the present invention technical solution.
Claims (4)
- A kind of 1. method of controlling loudspeaker, which is characterized in that including:During user is answered using the loud speaker of mobile terminal, control the rotating camera of the mobile terminal into Row rotation;During the rotating camera rotates, the picture of finding a view that the rotating camera takes is analyzed;It is right What the rotating camera took find a view, and picture is analyzed, including:Motor vehicles in the picture of finding a view that takes are carried out Detection, motor vehicles are determined according to the resemblance of motor vehicles, are moved according to the position of motor vehicles in picture of finding a view, and are determined Whether the motor vehicles are moving;Judge user whether in preset state according to the result of the analysis;The result according to the analysis judges user Whether preset state is in, including:It is organic in the picture of finding a view taken in the result of the analysis for the rotating camera Motor-car crosses, then judges that user is in preset state;If judging, user is in preset state, according to the preset state Adjust the volume of the loud speaker;The volume that the loud speaker is adjusted according to the preset state, including:Determine the distance of the motor vehicles and mobile terminal crossed in the picture of finding a view that rotating camera takes, rotation camera shooting The distance between motor vehicles and the mobile terminal for being crossed in the picture of finding a view that head takes are more than the first pre-determined distance, then protect Hold the volume of loud speaker;Between the motor vehicles and the mobile terminal that are crossed in what rotating camera took find a view picture away from From less than the second pre-determined distance, then the volume of loud speaker is adjusted to maximum.
- 2. the method as described in claim 1, which is characterized in that the preset state is:Complex environment state, wherein, it is described Complex environment state is to have motor vehicles to cross in the environment.
- 3. a kind of mobile terminal, which is characterized in that including:Control unit during being answered in user using the loud speaker of mobile terminal, controls the mobile terminal Rotating camera rotated;Analytic unit, for the picture of finding a view during rotating camera rotation, taken to the rotating camera It is analyzed in face;The picture of finding a view that the rotating camera takes is analyzed, including:To in the picture of finding a view that takes Motor vehicles are detected, and motor vehicles are determined according to the resemblance of motor vehicles, according to motor vehicles in picture of finding a view Position is moved, and determines whether the motor vehicles are moving;Whether judging unit, the result for being analyzed according to the analytic unit judge user in preset state;The judging unit also particularly useful for:In the picture of finding a view taken in the result of the analysis for the rotating camera There are motor vehicles to cross, then judge that user is in preset state;Adjustment unit if judging that user is in preset state for the judging unit, is adjusted according to the preset state The volume of the loud speaker;The volume that the loud speaker is adjusted according to the preset state, including:Determine rotating camera The distance of the motor vehicles that are crossed in the picture of finding a view taken and the mobile terminal, what rotating camera took find a view picture In the distance between the motor vehicles that cross and the mobile terminal be more than the first pre-determined distance, then keep the volume of loud speaker;Rotation Turn the distance between the motor vehicles crossed in the picture of finding a view that camera takes and the mobile terminal it is default less than second away from From the volume of loud speaker then is adjusted to maximum.
- 4. mobile terminal as claimed in claim 3, which is characterized in that the preset state is:Complex environment state, wherein, The complex environment state is to have motor vehicles to cross in the environment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510319387.1A CN105007368B (en) | 2015-06-11 | 2015-06-11 | The method and mobile terminal of a kind of controlling loudspeaker |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510319387.1A CN105007368B (en) | 2015-06-11 | 2015-06-11 | The method and mobile terminal of a kind of controlling loudspeaker |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105007368A CN105007368A (en) | 2015-10-28 |
CN105007368B true CN105007368B (en) | 2018-05-29 |
Family
ID=54379884
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510319387.1A Active CN105007368B (en) | 2015-06-11 | 2015-06-11 | The method and mobile terminal of a kind of controlling loudspeaker |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105007368B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106713793A (en) * | 2015-11-18 | 2017-05-24 | 天津三星电子有限公司 | Sound playing control method and device thereof |
CN106412287B (en) * | 2016-09-27 | 2019-10-01 | 广东小天才科技有限公司 | A kind of method and device of volume adjustment |
CN106375590A (en) * | 2016-09-28 | 2017-02-01 | 珠海格力电器股份有限公司 | Volume adjustment method and device for smart terminal |
CN106792341A (en) * | 2016-11-23 | 2017-05-31 | 广东小天才科技有限公司 | A kind of audio-frequency inputting method, device and terminal device |
CN106603882A (en) * | 2016-12-28 | 2017-04-26 | 深圳天珑无线科技有限公司 | Incoming call sound volume adjusting method, incoming call sound volume adjusting device and terminal |
CN109842837B (en) * | 2017-11-28 | 2020-10-09 | 台州立克科技有限公司 | Self-adaptive volume adjusting method for radio |
CN109040660A (en) * | 2018-10-15 | 2018-12-18 | 四川省有线广播电视网络股份有限公司 | The system of adjust automatically video conferencing system sub-venue terminal volume |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101938559A (en) * | 2010-09-01 | 2011-01-05 | 北京中星微电子有限公司 | Terminal control method, terminal control device and terminal |
CN102915753A (en) * | 2012-10-23 | 2013-02-06 | 华为终端有限公司 | Method for intelligently controlling volume of electronic device and implementation device of method |
CN103716437A (en) * | 2012-09-28 | 2014-04-09 | 华为终端有限公司 | Sound quality and volume control method and apparatus |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101800796A (en) * | 2009-02-09 | 2010-08-11 | 英华达股份有限公司 | Portable communication device and incoming call notification control method thereof |
US8909200B2 (en) * | 2011-02-28 | 2014-12-09 | Cisco Technology, Inc. | Using face tracking for handling phone events |
CN202976756U (en) * | 2012-07-02 | 2013-06-05 | 中国联合网络通信集团有限公司 | Multimedia equipment capable of automatically adjusting volume and multimedia playing system |
-
2015
- 2015-06-11 CN CN201510319387.1A patent/CN105007368B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101938559A (en) * | 2010-09-01 | 2011-01-05 | 北京中星微电子有限公司 | Terminal control method, terminal control device and terminal |
CN103716437A (en) * | 2012-09-28 | 2014-04-09 | 华为终端有限公司 | Sound quality and volume control method and apparatus |
CN102915753A (en) * | 2012-10-23 | 2013-02-06 | 华为终端有限公司 | Method for intelligently controlling volume of electronic device and implementation device of method |
Also Published As
Publication number | Publication date |
---|---|
CN105007368A (en) | 2015-10-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105007368B (en) | The method and mobile terminal of a kind of controlling loudspeaker | |
US10423235B2 (en) | Primary device that interfaces with a secondary device based on gesture commands | |
CN104540184B (en) | Equipment networking method and device | |
CN105095873B (en) | Photo be shared method, apparatus | |
US20190238759A1 (en) | Terminal and image processing method thereof | |
US11237703B2 (en) | Method for user-operation mode selection and terminals | |
CN104935718B (en) | A kind of control method and mobile terminal | |
US11455491B2 (en) | Method and device for training image recognition model, and storage medium | |
CN105426515B (en) | video classifying method and device | |
KR20160026317A (en) | Method and apparatus for voice recording | |
KR102329761B1 (en) | Electronic device for selecting external device and controlling the same and operating method thereof | |
CN105843383A (en) | Application starting device and application starting method | |
CN109120841B (en) | Camera control method and device, mobile terminal and storage medium | |
CN106292320B (en) | Control the method and device of controlled device operation | |
CN111242303B (en) | Network training method and device, and image processing method and device | |
CN109039877A (en) | A kind of method, apparatus, electronic equipment and storage medium showing unread message quantity | |
CN105246068B (en) | SIM card selection method and device | |
CN104461236A (en) | Method and device for displaying application icons | |
CN105824400A (en) | Control method and control apparatus of electronic device, and electronic device | |
CN108108671A (en) | Description of product information acquisition method and device | |
CN104883436A (en) | Information hiding method and apparatus | |
CN111007976B (en) | Application control method and terminal equipment | |
CN105678296A (en) | Method and apparatus for determining angle of inclination of characters | |
CN109214175B (en) | Method, device and storage medium for training classifier based on sample characteristics | |
EP3238170B1 (en) | Digital device and method of controlling therefor |
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 | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |