CN107613087B - Control method and mobile terminal - Google Patents

Control method and mobile terminal Download PDF

Info

Publication number
CN107613087B
CN107613087B CN201710906166.3A CN201710906166A CN107613087B CN 107613087 B CN107613087 B CN 107613087B CN 201710906166 A CN201710906166 A CN 201710906166A CN 107613087 B CN107613087 B CN 107613087B
Authority
CN
China
Prior art keywords
mobile terminal
person
distance
loudspeaker
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710906166.3A
Other languages
Chinese (zh)
Other versions
CN107613087A (en
Inventor
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710906166.3A priority Critical patent/CN107613087B/en
Publication of CN107613087A publication Critical patent/CN107613087A/en
Application granted granted Critical
Publication of CN107613087B publication Critical patent/CN107613087B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a control method, which comprises the following steps: controlling a rotary camera of the mobile terminal to rotate in the process of answering by using a loudspeaker of the mobile terminal; in the process of rotating the rotary camera, carrying out person detection on a shot picture of the rotary camera; determining a distance between at least one person and the mobile terminal in case of detecting the at least one person; and adjusting the volume of the loudspeaker according to the distance between the at least one person and the mobile terminal. The embodiment of the invention also discloses a mobile terminal. By adopting the embodiment of the invention, when the user starts the loudspeaker to answer, the distance between the person in the picture shot by the rotary camera and the mobile terminal is determined by the rotary camera, and the volume of the loudspeaker is adjusted according to the distance, so that the influence of too large volume of the loudspeaker on other people is greatly avoided.

Description

Control method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of electronic equipment, in particular to a control method and a mobile terminal.
Background
With the development of information technology, mobile terminals (such as mobile phones, tablet computers and the like) are also more and more commonly used, and the mobile terminals become necessities of life of people.
The mobile terminal can adopt the loudspeaker to increase the sound of an incoming call, if the sound volume of the loudspeaker in the using process can influence other people in public places, moreover, no method for automatically adjusting the sound volume of the loudspeaker exists at present, so that a user can only adjust the sound volume of the loudspeaker in a manual adjusting mode, the adjusting process is very complicated, and the user can disturb other people if the user does not find other people around.
Disclosure of Invention
The embodiment of the invention provides a control method and a mobile terminal, which can adjust the volume of a loudspeaker according to the distance between a person and the mobile terminal, so that the influence of too large volume of the loudspeaker on other people is greatly avoided.
A first aspect of an embodiment of the present invention provides a control method, including:
controlling a rotary camera of the mobile terminal to rotate in the process of answering by using a loudspeaker of the mobile terminal;
in the process of rotating the rotary camera, carrying out person detection on a shot picture of the rotary camera;
determining a distance between at least one person and the mobile terminal in case of detecting the at least one person;
and adjusting the volume of the loudspeaker according to the distance between the at least one person and the mobile terminal.
With reference to the first aspect, in a first possible implementation manner of the first aspect, after the adjusting the volume of the speaker according to the distance between the at least one person and the mobile terminal, the method further includes:
judging whether the shortest distance in the distances between the at least one person and the mobile terminal is smaller than a first preset distance or not;
and if the shortest distance in the distances between the at least one person and the mobile terminal is judged to be smaller than a first preset distance, closing a loudspeaker of the mobile terminal.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the adjusting the volume of the speaker according to the distance between the at least one person and the mobile terminal includes:
judging whether the distances between the at least one person and the mobile terminal are all larger than a second preset distance;
and if the distance between the at least one person and the mobile terminal is judged to be larger than a second preset distance, keeping the volume of the loudspeaker.
With reference to the first aspect or the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the method further includes:
and if the distance between the at least one person and the mobile terminal is judged to be larger than a second preset distance, adjusting the volume of the loudspeaker according to the shortest distance in the distances between the at least one person and the mobile terminal.
With reference to the first aspect or the first possible implementation manner of the first aspect, the detecting a person in a captured picture of the rotating camera includes:
controlling a rotary camera of the mobile terminal to perform back-and-forth detection within a preset angle range;
and in the detection process, carrying out person matching on the shot picture of the rotary camera.
A second aspect of an embodiment of the present invention provides a mobile terminal, including:
the control unit is used for controlling the rotary camera of the mobile terminal to rotate in the process of answering by using the loudspeaker of the mobile terminal;
the detection unit is used for detecting people in the process of rotating the rotary camera;
a determining unit, configured to determine a distance between at least one person and the mobile terminal in a case where the detecting unit detects the at least one person;
and the adjusting unit is used for adjusting the volume of the loudspeaker according to the distance between the at least one person and the mobile terminal determined by the determining unit.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the mobile terminal further includes:
a first judging unit, configured to judge whether a shortest distance among distances between the at least one person determined by the determining unit and the mobile terminal is smaller than a first preset distance;
and the closing unit is used for closing the loudspeaker of the mobile terminal if the first judging unit judges that the shortest distance in the distances between the at least one person and the mobile terminal is smaller than a first preset distance.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the mobile terminal further includes:
the second judging unit is used for judging whether the distances between the at least one person and the mobile terminal are all larger than a second preset distance;
and the holding unit is used for holding the volume of the loudspeaker if the second judging unit judges that the distance between the at least one person and the mobile terminal is greater than a second preset distance.
With reference to the second aspect or the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the adjusting unit is further specifically configured to:
when the second judging unit judges that the distance between the at least one person and the mobile terminal is smaller than or equal to a second preset distance in the distance adjustment, the volume of the loudspeaker is adjusted according to the shortest distance in the distance between the at least one person and the mobile terminal.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the detection unit includes:
the detection subunit is used for controlling a rotary camera of the mobile terminal to perform back-and-forth detection within a preset angle range;
and the matching unit is used for matching people with the shot picture of the rotary camera in the detection process of the detection subunit.
The embodiment of the invention also provides a mobile terminal which comprises a loudspeaker, a rotary camera, a memory and a processor. The memory is for storing a plurality of program instructions. The processor is used for calling a plurality of program instructions stored in the memory to execute the following control method: controlling a rotary camera of the mobile terminal to rotate in the process of answering by using a loudspeaker of the mobile terminal; in the process of rotating the rotary camera, carrying out person detection on a shot picture of the rotary camera; determining a distance between at least one person and the mobile terminal in case of detecting the at least one person; and adjusting the volume of the loudspeaker according to the distance between the at least one person and the mobile terminal.
An embodiment of the present invention further provides a computer-readable storage medium, where multiple program instructions are stored in the computer-readable storage medium, and the multiple programs are used for being loaded by a processor to execute the following control method: controlling a rotary camera of the mobile terminal to rotate in the process of answering by using a loudspeaker of the mobile terminal; in the process of rotating the rotary camera, carrying out person detection on a shot picture of the rotary camera; determining a distance between at least one person and the mobile terminal in case of detecting the at least one person; and adjusting the volume of the loudspeaker according to the distance between the at least one person and the mobile terminal.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, in the process of answering by using a loudspeaker of a mobile terminal, a rotary camera of the mobile terminal is controlled to rotate; in the process of rotating the rotary camera, carrying out person detection on a shot picture of the rotary camera; determining a distance between at least one person and the mobile terminal in case of detecting the at least one person; and adjusting the volume of the loudspeaker according to the distance between the at least one person and the mobile terminal. By adopting the embodiment of the invention, when the user starts the loudspeaker to answer, the distance between the person in the picture shot by the rotary camera and the mobile terminal is determined by the rotary camera, and the volume of the loudspeaker is adjusted according to the distance, so that the influence of too large volume of the loudspeaker on other people is greatly avoided.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the embodiments and the drawings used in the description will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a control method according to a first embodiment of the present invention;
fig. 2 is a schematic flowchart of a control method according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a control method according to a third embodiment of the present invention;
fig. 4a is a schematic structural diagram of a mobile terminal according to a first embodiment of the present invention;
fig. 4b is a schematic structural diagram of a mobile terminal according to a first embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention without any creative efforts shall fall within the protection scope of the embodiments of the present invention.
In implementation, in the embodiment of the present invention, the mobile terminal may include, but is not limited to: notebook computers, cell phones, tablet computers, smart wearable devices, and the like. The system of the mobile terminal refers to an operating system of the device, and may include but is not limited to: android system, saiban system, Windows system, IOS (mobile operating system developed by apple inc.), XP system, Windows 8 system, and the like. It should be noted that the Android mobile terminal refers to a mobile terminal of an Android system, the shift mobile terminal refers to a mobile terminal of a shift system, and the like. The above-mentioned mobile terminals are only examples, not exhaustive, and include but are not limited to the above-mentioned mobile terminals.
The embodiment of the present invention is described with reference to fig. 1 to 7, where the control method and the mobile terminal are provided in the embodiment of the present invention.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a control method according to a first embodiment of the present invention. The control method described in this embodiment includes the steps of:
s101, in the process of answering by using a loudspeaker of the mobile terminal, controlling a rotary camera of the mobile terminal to rotate.
In a specific implementation, in a process that a user uses a speaker of a mobile terminal to listen, the listening may include, but is not limited to: answering a call, answering a wifi call, answering WeChat voice, answering QQ voice, answering a voice message mailbox, and the like. In the answering process, the mobile terminal can control the rotary camera of the mobile terminal to rotate.
The rotating camera of the mobile terminal may be a rotating camera carried by the mobile terminal, a rotating camera controlled by wifi or a Universal Serial Bus (abbreviated as USB), and the like.
As a possible implementation manner, the mobile terminal may set the rotation angle of its rotating camera, for example, the original rotation angle may be in the range of 0-250 degrees, and may now be set to 0-150 degrees.
S102, in the process of rotating the rotary camera, carrying out person detection on the shot picture of the rotary camera.
In a specific implementation, in the process of rotating the rotating camera of the mobile terminal, the mobile terminal may perform person detection on a shot picture of the rotating camera, wherein the mobile terminal may detect the shot picture shot by the rotating camera according to an outline or facial features of a person. In the case where a person is determined, the person may be locked, and the locking may be performed in a manner of marking in a shot of the rotating camera.
As a possible implementation manner, the mobile terminal may control a rotary camera of the mobile terminal to perform back and forth detection within a preset angle range; and in the detection process, carrying out person matching on the shot picture of the rotary camera. The mobile terminal can set the rotation angle of the rotating camera of the mobile terminal, under the condition that the rotation angle is determined, the rotating camera of the mobile terminal is controlled to perform round-trip polling detection, in the detection process, people matching is performed on a shot picture, whether people appear in the framing picture of the rotating camera of the mobile terminal is found out in the purpose of people matching, and the people matching mode can include but is not limited to: infrared detection, contour matching, face recognition, etc.
S103, under the condition that at least one person is detected, determining the distance between the at least one person and the mobile terminal.
In a specific implementation, the mobile terminal may determine a distance between at least one person and the mobile terminal in a case where the at least one person is detected. Such as: the mobile terminal can keep the focal length, when the person of the rotating camera is close to the rotating camera, the image of the person is larger, and when the person of the rotating camera is far from the rotating camera, the image of the person is smaller. Thus, the mobile terminal may determine a distance between at least one person and the mobile terminal.
S104, adjusting the volume of the loudspeaker according to the distance between the at least one person and the mobile terminal.
In a specific implementation, the mobile terminal may adjust the volume of the speaker according to a distance between the at least one person and the mobile terminal. Further, the mobile terminal may detect a plurality of characters, so that distances between the plurality of characters and the mobile terminal may be determined, and the volume of the speaker may be adjusted according to a shortest distance among the determined distances between the plurality of characters and the mobile terminal. Or, further, the mobile terminal may detect a plurality of characters in a very noisy environment, so that the distances between the plurality of characters and the mobile terminal may be determined, and the volume of the speaker may be adjusted according to the farthest distance of the determined distances between the plurality of characters and the mobile terminal.
Specifically, for example, a user turns on a loudspeaker of a mobile terminal in a park while walking to listen to WeChat messages, the person is reading in front at the moment, a rotary camera of the mobile terminal detects the person reading, the distance between the mobile terminal and the person reading can be determined during the walking process of the user, and the volume of the loudspeaker is adjusted according to the distance.
In the embodiment of the invention, in the process of answering by using a loudspeaker of a mobile terminal, a rotary camera of the mobile terminal is controlled to rotate; in the process of rotating the rotary camera, carrying out person detection on a shot picture of the rotary camera; determining a distance between at least one person and the mobile terminal in case of detecting the at least one person; and adjusting the volume of the loudspeaker according to the distance between the at least one person and the mobile terminal. By adopting the embodiment of the invention, when the user starts the loudspeaker to answer, the distance between the person in the picture shot by the rotary camera and the mobile terminal is determined by the rotary camera, and the volume of the loudspeaker is adjusted according to the distance, so that the influence of too large volume of the loudspeaker on other people is greatly avoided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a control method according to a second embodiment of the present invention. The embodiment of the present invention in fig. 2 mainly describes a subsequent control method in step S104 in fig. 1, which is as follows:
s201, in the process of answering by using a loudspeaker of a mobile terminal, controlling a rotary camera of the mobile terminal to rotate;
s202, detecting people in the process of rotating the rotary camera;
s203, under the condition that at least one person is detected, determining the distance between the at least one person and the mobile terminal;
s204, adjusting the volume of the loudspeaker according to the distance between the at least one person and the mobile terminal.
Please refer to the detailed description of the embodiments of the present invention in step S201 to step S204.
S205, judging whether the shortest distance in the distances between the at least one person and the mobile terminal is smaller than a first preset distance.
In a specific implementation, the terminal may determine whether a shortest distance of distances between at least one person and the mobile terminal is smaller than a first preset distance, where the rotating camera of the mobile terminal may detect more than one person during the rotation process, at this time, the mobile terminal may determine the shortest distances between the persons and the mobile terminal and determine whether the shortest distance is smaller than the first preset distance, and the first preset distance may be set by a user, and specifically, the first preset distance may include but is not limited to: 1 meter, 2 meters, 3 meters, 3.5 meters, etc., the first set distance may also be defaulted by the system, and 1 meter may be defaulted as the first preset distance.
S206, if the shortest distance in the distances between the at least one person and the mobile terminal is judged to be smaller than a first preset distance, closing a loudspeaker of the mobile terminal.
In a specific implementation, if the mobile terminal determines that the shortest distance in the distances between at least one person and the mobile terminal is smaller than a first preset distance, that is, under the condition that a rotating camera of the mobile terminal detects one person, the mobile terminal can determine the distance between the person and the mobile terminal, and if the distance is smaller than the first preset distance, a loudspeaker of the mobile terminal is turned off; in the case that 2 or more than 2 persons are detected by the rotary camera of the mobile terminal, the mobile terminal can determine the shortest distance between the persons and the mobile terminal, and turn off the loudspeaker of the mobile terminal when the shortest distance is less than a first preset distance.
In the embodiment of the invention, in the process of answering by using a loudspeaker of a mobile terminal, a rotary camera of the mobile terminal is controlled to rotate; in the process of rotating the rotary camera, carrying out person detection on a shot picture of the rotary camera; determining a distance between at least one person and the mobile terminal in case of detecting the at least one person; adjusting the volume of the loudspeaker according to the distance between the at least one person and the mobile terminal; judging whether the shortest distance in the distances between the at least one person and the mobile terminal is smaller than a first preset distance or not; and if the shortest distance in the distances between the at least one person and the mobile terminal is judged to be smaller than a first preset distance, closing a loudspeaker of the mobile terminal. By adopting the embodiment of the invention, when the user starts the loudspeaker to answer, the distance between the person in the picture shot by the rotary camera and the mobile terminal is determined by the rotary camera, the volume of the loudspeaker is adjusted according to the distance, and the loudspeaker is closed when the distance between the person and the mobile terminal is detected to be smaller than the first preset distance, so that the influence of too large volume of the loudspeaker on other people is greatly avoided.
Referring to fig. 3, fig. 3 is a flowchart illustrating a control method according to a third embodiment of the present invention. The embodiment of the present invention in fig. 3 mainly describes a subsequent control method of step S104 in fig. 1, including the steps of:
s301, in the process of answering by using a loudspeaker of the mobile terminal, controlling a rotary camera of the mobile terminal to rotate;
s302, detecting people in the process of rotating the rotary camera;
s303, under the condition that at least one person is detected, determining the distance between the at least one person and the mobile terminal;
s304, adjusting the volume of the loudspeaker according to the distance between the at least one person and the mobile terminal.
Please refer to the detailed description of the embodiments of the present invention in step S201 to step S204.
S305, judging whether the distance between the at least one person and the mobile terminal is larger than a second preset distance.
In specific implementation, the mobile terminal may determine whether the distance between at least one person and the mobile terminal is greater than a second preset distance, where the rotating camera of the mobile terminal may detect more than one person during the rotation process, at this time, the mobile terminal may determine the shortest distance between the persons and the mobile terminal, and determine whether the shortest distance is greater than the second preset distance, where the second preset distance may be set by a user, and specifically, the second preset distance may include but is not limited to: 10 meters, 15 meters, 20 meters, 20.5 meters, etc., the second set distance may also be defaulted by the system, and 10 meters may be defaulted to the second preset distance.
S306, if the distance between the at least one person and the mobile terminal is judged to be larger than a second preset distance, the volume of the loudspeaker is kept.
In a specific implementation, if the mobile terminal determines that the distance between at least one person and the mobile terminal is greater than a second preset distance, that is, under the condition that the rotating camera of the mobile terminal detects one person, the mobile terminal can determine the distance between the person and the mobile terminal, and if the distance is greater than the second preset distance, a speaker of the mobile terminal is kept; in case that 2 or more than 2 persons are detected by the rotary camera of the mobile terminal, the mobile terminal may determine the shortest distance between the persons and the mobile terminal, and maintain the speaker of the mobile terminal in case that the shortest distance is greater than a second preset distance.
In the embodiment of the invention, in the process of answering by using a loudspeaker of a mobile terminal, a rotary camera of the mobile terminal is controlled to rotate; in the process of rotating the rotary camera, carrying out person detection on a shot picture of the rotary camera; determining a distance between at least one person and the mobile terminal in case of detecting the at least one person; adjusting the volume of the loudspeaker according to the distance between the at least one person and the mobile terminal; judging whether the distances between the at least one person and the mobile terminal are all larger than a second preset distance; and if the distance between the at least one person and the mobile terminal is judged to be larger than a second preset distance, keeping the volume of the loudspeaker. By adopting the embodiment of the invention, when the user starts the loudspeaker to answer, the distance between the person in the picture shot by the rotary camera and the mobile terminal is determined by the rotary camera, the volume of the loudspeaker is adjusted according to the distance, and the loudspeaker is closed when the distance between the person and the mobile terminal is detected to be smaller than the first preset distance, so that the influence of too large volume of the loudspeaker on other people is greatly avoided.
Referring to fig. 4a, fig. 4a is a schematic structural diagram of a mobile terminal according to a first embodiment of the present invention. The mobile terminal described in this embodiment is specifically as follows:
the control unit 401 is configured to control a rotating camera of the mobile terminal to rotate in a process of listening using a speaker of the mobile terminal.
In a specific implementation, in a process that a user uses a speaker of a mobile terminal to listen, the listening may include, but is not limited to: answering a call, answering a wifi call, answering WeChat voice, answering QQ voice, answering a voice message mailbox, and the like. In the above answering process, the control unit 401 can control the rotary camera of the mobile terminal to rotate.
The rotating camera of the mobile terminal may be a rotating camera carried by the mobile terminal, a rotating camera controlled by wifi or a Universal Serial Bus (abbreviated as USB), and the like.
As a possible embodiment, the setting unit (not shown) may set the rotation angle of the camera head, for example, the original rotation angle may be in the range of 0-250 degrees, and may be set to 0-150 degrees.
A detection unit 402, configured to perform person detection on a captured picture of the rotating camera in a process of rotating the rotating camera.
In a specific implementation, during the rotation of the rotating camera of the mobile terminal, the detection unit 402 may perform person detection on the captured image of the rotating camera, wherein the detection unit 402 may detect the captured image captured by the rotating camera according to the outline or facial features of a person. In the case where a person is determined, the person may be locked, and the locking may be performed in a manner of marking in a shot of the rotating camera.
As a possible implementation, the mobile terminal depicted in fig. 4b may further include: a detection subunit 405 and a matching unit 406.
A detection subunit 405, configured to control a rotary camera of the mobile terminal to perform back-and-forth detection within a preset angle range;
a matching unit 406, configured to perform person matching on the captured image of the rotating camera in the process of detection by the detecting subunit 405.
Specifically, in the first implementation, the detection subunit 405 may control the rotary camera of the mobile terminal to perform back-and-forth detection within a preset angle range; in the detection process, the matching unit 406 may perform person matching on the captured picture of the rotating camera. The setting unit (not shown in the figure) may set a rotation angle of the rotating camera of the mobile terminal, in a case that the rotation angle is determined, the detection subunit 405 controls the rotating camera of the mobile terminal to perform round-trip polling detection, in the detection process, the matching unit 406 performs person matching on the shot picture, the purpose of the person matching is to find out whether a person appears in the view-finding picture of the rotating camera of the mobile terminal, and the manner of the person matching may include but is not limited to: infrared detection, contour matching, face recognition, etc.
A determining unit 403, configured to determine a distance between at least one person and the mobile terminal if the detecting unit 402 detects the at least one person.
In a specific implementation, the determining unit 403 may determine a distance between at least one person and the mobile terminal in a case where the at least one person is detected. Such as: the image of the person is larger when the person rotating the camera is close to the rotating camera and smaller when the person rotating the camera is far from the rotating camera under the condition that the mobile terminal keeps the focal length. Thus, the determination unit 403 may determine a distance between at least one person and the mobile terminal.
An adjusting unit 404, configured to adjust the volume of the speaker according to the distance between the at least one person and the mobile terminal determined by the determining unit 403.
In a specific implementation, the adjusting unit 404 may adjust the volume of the speaker according to a distance between the at least one person and the mobile terminal. Further, the detection unit 402 may detect a plurality of persons, and thus, the determination unit 403 may determine distances between the plurality of persons and the mobile terminal, and the adjustment unit 404 may adjust the volume of the speaker according to the shortest distance among the determined distances between the plurality of persons and the mobile terminal. Or, further, the user may detect a plurality of persons in a very noisy environment, so that the determining unit 403 may determine distances between the plurality of persons and the mobile terminal, and the adjusting unit 404 may adjust the volume of the speaker according to a farthest distance among the determined distances between the plurality of persons and the mobile terminal.
In the answering process by using the loudspeaker of the mobile terminal, the control unit 401 controls the rotary camera of the mobile terminal to rotate; in the process of rotating the rotary camera, the detection unit 402 detects a person in a shot picture of the rotary camera; in a case where the detection unit 402 detects at least one person, the determination unit 403 determines a distance between the at least one person and the mobile terminal; the adjusting unit 404 adjusts the volume of the speaker according to the distance between the at least one person and the mobile terminal determined by the determining unit. By adopting the embodiment of the invention, when the user starts the loudspeaker to answer, the distance between the person in the picture shot by the rotary camera and the mobile terminal is determined by the rotary camera, and the volume of the loudspeaker is adjusted according to the distance, so that the influence of too large volume of the loudspeaker on other people is greatly avoided.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a mobile terminal according to a second embodiment of the present invention. Fig. 5 is another specific structure of the mobile terminal described in fig. 4a or fig. 4b, where fig. 5 may implement the functions implemented in fig. 4a or fig. 4b, and the mobile terminal described in this embodiment may include, in addition to the structures included in fig. 4a or fig. 4b, the following:
a first judging unit 501, configured to judge whether a shortest distance among distances between the at least one person determined by the determining unit 403 and the mobile terminal is smaller than a first preset distance.
In a specific implementation, the first determining unit 501 may determine whether a shortest distance of distances between at least one person and the mobile terminal is smaller than a first preset distance, where the rotating camera of the mobile terminal may detect more than one person during the rotating process, at this time, the first determining unit 501 may determine the shortest distances between the persons and the mobile terminal, and determine whether the shortest distance is smaller than the first preset distance, and the first preset distance may be set by a user, and specifically, the first preset distance may include but is not limited to: 1 meter, 2 meters, 3 meters, 3.5 meters, etc., the first set distance may also be defaulted by the system, and 1 meter may be defaulted as the first preset distance.
A closing unit 502, configured to close a speaker of the mobile terminal if the first determining unit 501 determines that a shortest distance of distances between the at least one person and the mobile terminal is smaller than a first preset distance.
In a specific implementation, if the first determining unit 501 determines that the shortest distance of the distances between at least one person and the mobile terminal is smaller than a first preset distance, that is, under the condition that the rotating camera of the detecting unit 402 detects one person, the first determining unit 501 may determine the distance between the person and the mobile terminal, and if the distance is smaller than the first preset distance, the closing unit 502 closes the speaker of the mobile terminal; in a case where 2 or more than 2 persons are detected by the rotary camera of the mobile terminal, the determination unit 403 may determine the shortest distance between the persons and the mobile terminal, and in a case where the shortest distance is less than a first preset distance, the turn-off unit 502 turns off the speaker of the mobile terminal.
In the answering process by using the loudspeaker of the mobile terminal, the control unit 401 controls the rotary camera of the mobile terminal to rotate; in the process of rotating the rotary camera, the detection unit 402 detects a person in a shot picture of the rotary camera; in a case where the detection unit 402 detects at least one person, the determination unit 403 determines a distance between the at least one person and the mobile terminal; the adjusting unit 404 adjusts the volume of the speaker according to the distance between the at least one person and the mobile terminal determined by the determining unit; the first judging unit 501 judges whether the shortest distance among the distances between the at least one person determined by the determining unit 403 and the mobile terminal is smaller than a first preset distance; if the first determining unit 501 determines that the shortest distance between the at least one person and the mobile terminal is smaller than a first preset distance, the closing unit 502 closes the speaker of the mobile terminal. By adopting the embodiment of the invention, when the user starts the loudspeaker to answer, the distance between the person in the picture shot by the rotary camera and the mobile terminal is determined by the rotary camera, the volume of the loudspeaker is adjusted according to the distance, and the loudspeaker is closed when the distance between the person and the mobile terminal is detected to be smaller than the first preset distance, so that the influence of too large volume of the loudspeaker on other people is greatly avoided.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention. Fig. 6 is another specific structure of the mobile terminal described in fig. 4a or fig. 4b, where fig. 6 may implement the functions implemented in fig. 4a or fig. 4b, and the mobile terminal described in this embodiment may include, in addition to the structures included in fig. 4a or fig. 4b, the following:
a second determining unit 601, configured to determine whether distances between the at least one person and the mobile terminal are all greater than a second preset distance.
In a specific implementation, the second determining unit 601 may determine whether the distances between at least one person and the mobile terminal are all greater than a second preset distance, where the detecting unit 402 may detect more than one person during the rotation of the rotating camera of the mobile terminal, at this time, the determining unit 403 may determine the shortest distances between the persons and the mobile terminal, and the second determining unit 601 determines whether the shortest distance is greater than the second preset distance, which may be set by the user, and specifically, the second preset distance may include but is not limited to: 10 meters, 15 meters, 20 meters, 20.5 meters, etc., the second set distance may also be defaulted by the system, and 10 meters may be defaulted to the second preset distance.
A holding unit 602, configured to hold the volume of the speaker if the second determining unit 601 determines that the distances between the at least one person and the mobile terminal are all greater than a second preset distance.
In a specific implementation, if the second determining unit 601 determines that the distance between at least one person and the mobile terminal is greater than the second preset distance, that is, in a case that the rotating camera of the mobile terminal detects one person, the second determining unit 601 may determine the distance between the person and the mobile terminal, and if the distance is greater than the second preset distance, the speaker of the mobile terminal is maintained; in case that 2 or more than 2 persons are detected by the rotary camera of the mobile terminal, the mobile terminal may determine the shortest distance between the persons and the mobile terminal, and maintain the speaker of the mobile terminal in case that the shortest distance is greater than a second preset distance.
In the answering process by using the loudspeaker of the mobile terminal, the control unit 401 controls the rotary camera of the mobile terminal to rotate; in the process of rotating the rotary camera, the detection unit 402 detects a person in a shot picture of the rotary camera; in a case where the detection unit 402 detects at least one person, the determination unit 403 determines a distance between the at least one person and the mobile terminal; the adjusting unit 404 adjusts the volume of the speaker according to the distance between the at least one person and the mobile terminal determined by the determining unit; the second determining unit 601 determines whether the distances between the at least one person and the mobile terminal are all greater than a second preset distance; if the second determining unit 601 determines that the distances between the at least one person and the mobile terminal are all greater than a second preset distance, the holding unit 602 holds the volume of the speaker. By adopting the embodiment of the invention, when the user starts the loudspeaker to answer, the distance between the person in the picture shot by the rotary camera and the mobile terminal is determined by the rotary camera, the volume of the loudspeaker is adjusted according to the distance, and the loudspeaker is closed when the distance between the person and the mobile terminal is detected to be smaller than the first preset distance, so that the influence of too large volume of the loudspeaker on other people is greatly avoided.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present invention. The mobile terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, e.g., a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and the memory 4000 being connected by a bus 5000.
The input device 1000 may be a touch panel, a general PC, a liquid crystal display, a touch screen, a touch button, or the like.
The memory 4000 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 4000 is used for storing a set of program codes, and the input device 1000, the output device 2000 and the processor 3000 are used for calling the program codes stored in the memory 4000 to execute the following operations:
the processor 3000 is configured to: controlling a rotary camera of the mobile terminal to rotate in the process of answering by using a loudspeaker of the mobile terminal;
the processor 3000 is further specifically configured to:
in the process of rotating the rotary camera, carrying out person detection on a shot picture of the rotary camera;
the processor 3000 is further specifically configured to:
determining a distance between at least one person and the mobile terminal in case of detecting the at least one person;
the processor 3000 is further specifically configured to:
and adjusting the volume of the loudspeaker according to the distance between the at least one person and the mobile terminal.
In some possible embodiments, the processor 3000 is further specifically configured to:
judging whether the shortest distance in the distances between the at least one person and the mobile terminal is smaller than a first preset distance or not;
and if the shortest distance in the distances between the at least one person and the mobile terminal is judged to be smaller than a first preset distance, closing a loudspeaker of the mobile terminal.
In some possible embodiments, the processor 3000 is further specifically configured to:
judging whether the distances between the at least one person and the mobile terminal are all larger than a second preset distance;
and if the distance between the at least one person and the mobile terminal is judged to be larger than a second preset distance, keeping the volume of the loudspeaker.
In some possible embodiments, the processor 3000 is further specifically configured to:
and if the distance greater than a second preset distance exists in the distance between the at least one person and the mobile terminal, adjusting the volume of the loudspeaker according to the shortest distance in the distance between the at least one person and the mobile terminal.
In some possible embodiments, the processor 3000 is further specifically configured to:
controlling a rotary camera of the mobile terminal to perform back-and-forth detection within a preset angle range;
and in the detection process, carrying out person matching on the shot picture of the rotary camera.
In a specific implementation, the input device 1000, the output device 2000, and the processor 3000 described in this embodiment of the present invention may execute the implementation manners described in the embodiments of the control methods described in fig. 1 to fig. 3 provided in this embodiment of the present invention, and are not described herein again.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program includes, when executed, some or all of the steps of any one of the signal processing methods described in the above method embodiments.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute all or part of the steps of the above-described method according to the embodiments of the present invention. The storage medium may include: a U-disk, a removable hard disk, a magnetic disk, an optical disk, a Read-Only Memory (ROM) or a Random Access Memory (RAM), and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A control method, comprising:
controlling a rotary camera of the mobile terminal to rotate in the process of answering by using a loudspeaker of the mobile terminal;
in the process of rotating the rotary camera, carrying out person detection on the shot picture of the rotary camera, and marking the detected person in the shot picture of the rotary camera;
determining a distance between at least one person and the mobile terminal in case of detecting the at least one person;
adjusting the volume of the loudspeaker according to the distance between the at least one person and the mobile terminal;
judging whether the shortest distance in the distances between the at least one person and the mobile terminal is smaller than a first preset distance or not;
and if the shortest distance in the distances between the at least one person and the mobile terminal is judged to be smaller than a first preset distance, closing a loudspeaker of the mobile terminal.
2. The method of claim 1, wherein the adjusting the volume of the speaker according to the distance between the at least one character and the mobile terminal comprises:
judging whether the distances between the at least one person and the mobile terminal are all larger than a second preset distance;
and if the distance between the at least one person and the mobile terminal is judged to be larger than a second preset distance, keeping the volume of the loudspeaker.
3. The method of claim 2, wherein the method further comprises:
and if the distance greater than a second preset distance exists in the distance between the at least one person and the mobile terminal, adjusting the volume of the loudspeaker according to the shortest distance in the distance between the at least one person and the mobile terminal.
4. The method of claim 1, wherein the detecting the person in the shot of the rotating camera comprises:
controlling a rotary camera of the mobile terminal to perform back-and-forth detection within a preset angle range;
and in the detection process, carrying out person matching on the shot picture of the rotary camera.
5. A mobile terminal, comprising:
the control unit is used for controlling the rotary camera of the mobile terminal to rotate in the process of answering by using the loudspeaker of the mobile terminal;
the detection unit is used for detecting people in the process of rotating the rotary camera and marking the detected people in the shot picture of the rotary camera;
a determining unit, configured to determine a distance between at least one person and the mobile terminal in a case where the detecting unit detects the at least one person;
an adjusting unit, configured to adjust the volume of the speaker according to the distance between the at least one person and the mobile terminal determined by the determining unit;
a first judging unit, configured to judge whether a shortest distance among distances between the at least one person determined by the determining unit and the mobile terminal is smaller than a first preset distance;
and the closing unit is used for closing the loudspeaker of the mobile terminal if the first judging unit judges that the shortest distance in the distances between the at least one person and the mobile terminal is smaller than a first preset distance.
6. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
the second judging unit is used for judging whether the distances between the at least one person and the mobile terminal are all larger than a second preset distance;
and the holding unit is used for holding the volume of the loudspeaker if the second judging unit judges that the distance between the at least one person and the mobile terminal is greater than a second preset distance.
7. The mobile terminal of claim 6, wherein the adjusting unit is further specifically configured to:
when the second judging unit judges that the distance between the at least one person and the mobile terminal is smaller than or equal to a second preset distance in the distance adjustment, the volume of the loudspeaker is adjusted according to the shortest distance in the distance between the at least one person and the mobile terminal.
8. The mobile terminal of claim 5, wherein the detection unit comprises:
the detection subunit is used for controlling a rotary camera of the mobile terminal to perform back-and-forth detection within a preset angle range;
and the matching unit is used for matching people with the shot picture of the rotary camera in the detection process of the detection subunit.
9. A mobile terminal is characterized in that the mobile terminal comprises a loudspeaker and a rotary camera; the mobile terminal further includes:
a memory for storing a plurality of program instructions; and
a processor for invoking a plurality of program instructions stored by the memory to perform the control method of any of claims 1-4.
10. A computer-readable storage medium, characterized in that a plurality of program instructions are stored in the computer-readable storage medium, for being loaded by a processor and executing the control method according to any one of claims 1 to 4.
CN201710906166.3A 2015-06-11 2015-06-11 Control method and mobile terminal Active CN107613087B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710906166.3A CN107613087B (en) 2015-06-11 2015-06-11 Control method and mobile terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510320927.8A CN104935718B (en) 2015-06-11 2015-06-11 A kind of control method and mobile terminal
CN201710906166.3A CN107613087B (en) 2015-06-11 2015-06-11 Control method and mobile terminal

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510320927.8A Division CN104935718B (en) 2015-06-11 2015-06-11 A kind of control method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107613087A CN107613087A (en) 2018-01-19
CN107613087B true CN107613087B (en) 2020-07-21

Family

ID=54122680

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201510320927.8A Active CN104935718B (en) 2015-06-11 2015-06-11 A kind of control method and mobile terminal
CN201710906166.3A Active CN107613087B (en) 2015-06-11 2015-06-11 Control method and mobile terminal

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201510320927.8A Active CN104935718B (en) 2015-06-11 2015-06-11 A kind of control method and mobile terminal

Country Status (1)

Country Link
CN (2) CN104935718B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN108419130B (en) * 2018-04-12 2022-04-08 深圳市维度印象科技有限公司 Method and system for intelligently adjusting volume of multimedia equipment
CN110401762B (en) * 2018-04-24 2021-08-10 阿尔派株式会社 In-vehicle device and incoming call notification method for in-vehicle device
CN110006087B (en) * 2018-06-07 2021-04-13 安徽新大陆特种涂料有限责任公司 Infrared reflection type warmer
CN109144466B (en) * 2018-08-31 2022-03-22 广州三星通信技术研究有限公司 Audio device control method and device
CN112118357B (en) * 2020-09-21 2021-08-20 珠海格力电器股份有限公司 Intelligent terminal management method and device, storage medium and electronic device
CN114125659A (en) * 2021-10-29 2022-03-01 歌尔科技有限公司 Volume real-time compensation method, electronic device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030763A (en) * 2006-03-01 2007-09-05 华硕电脑股份有限公司 Moving device and method for dynamically adjusting volume
CN102761641A (en) * 2011-04-29 2012-10-31 宏碁股份有限公司 Communication device with automatic playback volume control function and method thereof
JP2013239965A (en) * 2012-05-16 2013-11-28 Nec Casio Mobile Communications Ltd Terminal device, sound output control method, and program
CN104506716A (en) * 2014-12-08 2015-04-08 上海斐讯数据通信技术有限公司 Electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6853850B2 (en) * 2000-12-04 2005-02-08 Mobigence, Inc. Automatic speaker volume and microphone gain control in a portable handheld radiotelephone with proximity sensors
TWI458362B (en) * 2012-06-22 2014-10-21 Wistron Corp Auto-adjusting audio display method and apparatus thereof
CN204392320U (en) * 2014-12-23 2015-06-10 佛山市顺德区顺达电脑厂有限公司 The telescopic mobile phone of camera
CN104601889B (en) * 2015-01-20 2018-03-30 广东欧珀移动通信有限公司 The photographic method and device of a kind of mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030763A (en) * 2006-03-01 2007-09-05 华硕电脑股份有限公司 Moving device and method for dynamically adjusting volume
CN102761641A (en) * 2011-04-29 2012-10-31 宏碁股份有限公司 Communication device with automatic playback volume control function and method thereof
JP2013239965A (en) * 2012-05-16 2013-11-28 Nec Casio Mobile Communications Ltd Terminal device, sound output control method, and program
CN104506716A (en) * 2014-12-08 2015-04-08 上海斐讯数据通信技术有限公司 Electronic equipment

Also Published As

Publication number Publication date
CN104935718A (en) 2015-09-23
CN107613087A (en) 2018-01-19
CN104935718B (en) 2017-10-31

Similar Documents

Publication Publication Date Title
CN107613087B (en) Control method and mobile terminal
CN108093099B (en) Mobile terminal falling protection method and system and mobile terminal
US9268137B2 (en) Means for dynamically regulating the time-out characteristics of a display of an electronic device
US11811961B2 (en) Dual-display electronic device operation during incoming call
CN108900770B (en) Method and device for controlling rotation of camera, smart watch and mobile terminal
US9851790B2 (en) Gaze based notification reponse
US11243595B2 (en) Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker
EP2938054B1 (en) Method, device and system for handling busy line
US9348412B2 (en) Method and apparatus for operating notification function in user device
US10019220B2 (en) Control method and apparatus thereof
US20150365360A1 (en) Method and apparatus for processing push message in notification center of mobile terminal, and storage medium
CN111147749A (en) Photographing method, photographing device, terminal and storage medium
CN105007368A (en) Method of controlling loudspeaker, and mobile terminal
CN108833779B (en) Shooting control method and related product
WO2015106727A1 (en) Method and apparatus for switching audio output device
US20180324703A1 (en) Systems and methods to place digital assistant in sleep mode for period of time
EP3016349A1 (en) Method and apparatus for verifying terminal and computer program product
JP6491237B2 (en) Method, apparatus, program and recording medium for processing touch screen point reports
US20190050195A1 (en) Output provision based on gaze detection
US20150109210A1 (en) Control method, and input device of touch screen terminal
CN104883436A (en) Information hiding method and apparatus
WO2017075971A1 (en) Method and device based on non-response of touch screen
WO2023241613A1 (en) Call establishment method, device and system, terminal, and readable storage medium
US11805475B2 (en) Access control barring method and apparatus
US9094532B2 (en) Manners reminder

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant