CN108322688B - Method and device for controlling rotary camera component to reset - Google Patents

Method and device for controlling rotary camera component to reset Download PDF

Info

Publication number
CN108322688B
CN108322688B CN201810140482.9A CN201810140482A CN108322688B CN 108322688 B CN108322688 B CN 108322688B CN 201810140482 A CN201810140482 A CN 201810140482A CN 108322688 B CN108322688 B CN 108322688B
Authority
CN
China
Prior art keywords
signal
rotary camera
terminal
mode
distance sensor
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.)
Expired - Fee Related
Application number
CN201810140482.9A
Other languages
Chinese (zh)
Other versions
CN108322688A (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 CN201810140482.9A priority Critical patent/CN108322688B/en
Publication of CN108322688A publication Critical patent/CN108322688A/en
Application granted granted Critical
Publication of CN108322688B publication Critical patent/CN108322688B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Projection Apparatus (AREA)
  • Accessories Of Cameras (AREA)

Abstract

The invention discloses a method for controlling the resetting of a rotary camera component, which comprises the following steps: detecting an answering mode selected for a call request when the call request is received; if the answering mode is a standard mode, starting a motor for controlling the rotary camera assembly, and starting a signal transmitter on the rotary camera assembly; reading the strength value of the signal received by the signal receiver; and judging whether the intensity value of the signal received by the signal receiver is greater than or equal to a first preset threshold value or not, and stopping the motor if the intensity value of the signal is greater than or equal to the first preset threshold value. Correspondingly, the invention also discloses a device for controlling the resetting of the rotary camera component. By adopting the invention, misoperation and electric motor stalling can be avoided.

Description

Method and device for controlling rotary camera component to reset
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for controlling a rotary camera assembly to reset.
Background
With the popularization of self-timer and video call, the front camera cannot meet the requirements of users, so that the rotary camera is produced at the same time. As shown in fig. 1, fig. 1 is a terminal with a rotating camera assembly in the prior art, where 1 is a terminal body, 2 is a rotating camera assembly, a camera is disposed on one side of the rotating camera assembly, an earpiece is disposed on the other side of the rotating camera assembly, and a distance sensor is disposed adjacent to the earpiece and used for controlling the terminal to turn off a screen during a call. After the distance sensor rotates a certain angle along with the rotating camera assembly, if a call request is received, the terminal will not be turned off when a user communicates, and misoperation can be caused.
Disclosure of Invention
The invention provides a method for controlling the resetting of a rotary camera component, which can avoid misoperation and electric motor stalling.
The invention provides a method for controlling the resetting of a rotary camera component, which comprises the following steps:
detecting an answering mode selected for a call request when the call request is received;
if the answering mode is a standard mode, starting a motor for controlling the rotary camera assembly, and starting a signal transmitter on the rotary camera assembly;
reading an intensity value of a signal received by a signal receiver, wherein the signal transmitter and the signal receiver are opposite in a forward direction when the rotating camera head assembly is reset;
and judging whether the intensity value of the signal received by the signal receiver is greater than or equal to a first preset threshold value or not, and stopping the motor if the intensity value of the signal is greater than or equal to the first preset threshold value.
Correspondingly, the invention also provides a device for controlling the resetting of the rotary camera component, which comprises:
the system comprises an answering mode detection module, a call processing module and a call processing module, wherein the answering mode detection module is used for detecting an answering mode selected aiming at a call request when the call request is received;
the control module is used for starting a motor for controlling the rotary camera assembly and starting a signal transmitter on the rotary camera assembly if the answering mode is a standard mode;
the reading module is used for reading the strength value of the signal received by the signal receiver, wherein the signal transmitter and the signal receiver are opposite in the positive direction when the rotating camera head assembly is reset;
the judging module is used for judging whether the strength value of the signal received by the signal receiver is greater than or equal to a first preset threshold value or not;
the control module is further configured to:
and if the intensity value of the signal is greater than or equal to the first preset threshold value, stopping the motor.
The implementation of the invention has the following beneficial effects:
according to the invention, when a call request is received, the answering mode selected aiming at the call request is detected, if the answering mode is a standard mode, the motor for controlling the rotary camera component is started, and the signal transmitter on the rotary camera component is started, so that the rotary camera component is controlled to reset, thereby avoiding misoperation and electric motor stalling.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are 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 view of a structure of a terminal having a rotating camera assembly in the prior art;
FIG. 2 is a flowchart of a method for controlling the resetting of a rotating camera assembly according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for controlling the repositioning of a rotating camera assembly according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an apparatus for controlling the repositioning of a rotating camera assembly according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a read module according to an 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 some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 2, fig. 2 is a flowchart of a method for controlling the resetting of a rotating camera assembly according to an embodiment of the present invention, where the method may include:
s201, when a call request is received, detecting an answering mode selected aiming at the call request; if the answering mode is the standard mode, executing step S202;
the standard mode is a common answering mode, namely, a user directly answers the terminal close to the ear;
when the terminal receives a call request and the answering mode selected aiming at the call request is a standard mode, the fact that a user can contact with a screen of the terminal is indicated, and if the terminal does not have a screen lock at the moment, misoperation is likely to be caused when the user answers the call; therefore, if the terminal detects that the selected answering mode is the standard mode, a motor for controlling the rotary camera assembly is started, a signal transmitter on the rotary camera assembly is started, the rotary camera assembly is reset and controlled, and misoperation is avoided;
if the terminal receives a call request, a user cannot operate the terminal when driving the terminal and answer incoming calls in a Bluetooth mode or a hands-free mode, and if the rotary camera component rotates by 180 degrees and the terminal is horizontally placed on a table, the rotary camera component cannot be driven to rotate by starting a motor, so that the electric motor is locked; therefore, if the terminal detects that the selected answering mode is not the standard mode, such as the Bluetooth mode or the hands-free mode, the terminal can not carry out reset control, so that the rotary camera component is kept in the initial state (namely the state when a call request is received), and the electric motor is prevented from being locked;
if the terminal detects that the selected answering mode is not the standard mode, the terminal can also detect whether the current state of the terminal is suitable for carrying out reset control or not, and if so, carrying out reset control; if not, the reset control is not carried out, so that the electric motor is prevented from stalling;
the terminal can be a mobile phone or a tablet computer and the like.
S202, starting a motor for controlling the rotary camera assembly and starting a signal transmitter on the rotary camera assembly;
the signal emitter may be disposed at an end of the rotating camera assembly close to the display screen of the terminal at the initial position, or may be disposed at a side of the rotating camera assembly close to both sides of the terminal, which is not limited herein.
The signal transmitter may be a generator capable of transmitting wireless signals and having strong directivity, such as an infrared transmitting tube, a laser generator, etc.
S203, reading the strength value of the signal received by the signal receiver;
wherein the signal transmitter and the signal receiver are positively opposed upon resetting of the rotating camera assembly.
Therefore, it is only necessary to ensure that the signal transmitter and the signal receiver are opposite in the forward direction when the rotating camera assembly is reset, i.e., returned to the initial position (generally, the camera of the rotating camera assembly is in the same direction as the back side of the terminal). For example, the signal transmitter sets up the one end that is close to the terminal display screen when rotatory camera subassembly resets, then signal receiver sets up the one end that is close to rotatory camera subassembly at the terminal, if signal transmitter sets up the side that is close to the terminal both sides at rotatory camera subassembly, then signal receiver sets up the position that is close to rotatory camera subassembly side in the terminal both sides, when keeping rotatory camera subassembly to reset, signal transmitter and signal receiver forward relative can. Thus, when the rotating camera assembly is reset, the signal receiver receives the greatest signal strength.
It should be noted that the rotating camera assembly may be disposed at the top, the bottom, or both sides of the terminal, and the embodiment of the present invention is not limited to this, and in order to facilitate the user to use and improve the convenience and the usability of the terminal, the rotating camera assembly is generally disposed at the top of the terminal, i.e., the upper end of the terminal when the user normally uses the terminal.
Optionally, the strength value of the signal received by the terminal reading signal receiver may specifically be: and acquiring the intensity parameter of the signal received by the signal receiver, and performing analog-to-digital conversion on the intensity parameter of the signal to further obtain the intensity value of the signal.
S204, judging whether the intensity value of the signal received by the signal receiver is greater than or equal to a first preset threshold value; if the strength value of the signal is greater than or equal to the first preset threshold, performing step S205; otherwise, the motor will continue to operate, carrying the rotating camera assembly to continue rotating.
Optionally, the first preset threshold may be preset by a manufacturer and stored in the terminal when the terminal leaves a factory, or may be used by a user, when the rotary camera assembly is reset, the test is performed, and then a value obtained by the test is used as the first preset threshold, and when the sensitivity of the signal transmitter or the signal receiver changes due to other factors such as increase of the use duration of the terminal, the user may also perform adaptive adjustment according to the test result, thereby ensuring the accuracy of the reset.
S205, stopping the motor.
When the strength of the signal reaches a first preset threshold value, the signal transmitter is opposite to the signal receiver in the forward direction, and the rotating camera head assembly is restored to the initial position, so that the motor can be stopped immediately, and the resetting of the rotating camera head assembly is completed.
The motor drives the rotary camera component to rotate, and through the cooperation of the signal transmitter and the signal receiver, the motor is stopped to rotate when the signal strength value reaches a first preset threshold value, so that the rotary camera component is ensured to complete resetting, the control is simple and convenient, the accuracy is high, the resetting condition exceeding the position cannot occur, the service life loss of the motor is reduced, the power consumption of the system is also saved, and the terminal usability and the convenience are improved.
Further, the terminal can also close the signal transmitter and the signal receiver after stopping the motor, so that the service lives of the signal transmitter and the signal receiver are prolonged.
It should be noted that before step S201, that is, before starting the motor, the signal receiver may detect the intensity value of the currently received signal, and if the intensity value reaches the preset threshold, the motor does not need to be started, so as to save the power consumption of the system.
Referring to fig. 3, fig. 3 is a flowchart of another method for controlling the resetting of a rotating camera head assembly according to an embodiment of the present invention, where the method shown in fig. 3 may include:
s301, when a call request is received, detecting an answering mode selected aiming at the call request;
s302, if the answering mode is a Bluetooth mode or a hands-free mode, a distance sensor on the rotary camera assembly is started, and the strength value of a signal received by the distance sensor is read;
the distance sensor and the camera on the rotary camera assembly are positioned at different sides, a motor for controlling the rotary camera assembly is started, and a signal transmitter on the rotary camera assembly is started;
optionally, the strength value of the signal received by the terminal reading the distance sensor may specifically be: and acquiring intensity parameters of the signals received by the distance sensor, and performing analog-to-digital conversion on the intensity parameters of the signals to obtain intensity values of the signals.
S303, determining whether the intensity value of the signal received by the distance sensor is smaller than a second preset threshold, and if the intensity value of the signal is smaller than the second preset threshold, indicating that the current state of the terminal is suitable for performing reset control, executing step S304; otherwise, the current state of the terminal is not suitable for reset control, and the process is ended.
If the answering mode is a Bluetooth mode or a hands-free mode, the terminal can be placed on a desktop or held in the hand of a user, and the embodiment of the invention directly detects the answer mode through a distance sensor for controlling the terminal to turn off the screen during communication, so that the effect of avoiding the stalling of an electric motor can be achieved on the basis of original hardware equipment;
if the strength value of the signal received by the distance sensor is smaller than a second preset threshold value, and the first possibility is that the rotation angle of the rotary camera component is 0-90 degrees, at this time, the electric motor can drive the rotary camera component to rotate, and if the current state of the terminal is suitable for reset control, the step S304 is executed; in the second possibility, the rotating camera component is not in the reset state, but is held in the hand of the user, at this time, the electric motor can drive the rotating camera component to rotate, and if the current state of the terminal is suitable for reset control, step S304 is executed;
if the strength value of the signal received by the distance sensor is greater than or equal to the second preset threshold value, the rotation angle of the rotary camera assembly is 90-206 degrees, and the terminal is placed on the desktop, at this time, the electric motor cannot drive the rotary camera assembly to rotate, and the current state of the terminal is not suitable for reset control, and the process is ended.
Optionally, the second preset threshold may be preset by a manufacturer and stored in the terminal when the terminal leaves a factory, or may be used by a user, the second preset threshold is tested when the rotating camera assembly is reset, and then a value obtained by the test is used as the second preset threshold, and when the sensitivity of the signal transmitter or the signal receiver changes due to an increase in the use duration of the terminal or other factors, the user may also perform adaptive adjustment according to the test result, thereby ensuring the accuracy of the detection result.
Step S304, starting a motor for controlling the rotary camera assembly and starting a signal transmitter on the rotary camera assembly;
the signal emitter may be disposed at an end of the rotating camera assembly close to the display screen of the terminal at the initial position, or may be disposed at a side of the rotating camera assembly close to both sides of the terminal, which is not limited herein.
The signal transmitter may be a generator capable of transmitting wireless signals and having strong directivity, such as an infrared transmitting tube, a laser generator, etc.
S305, reading the strength value of the signal received by the signal receiver;
wherein the signal transmitter and the signal receiver are positively opposed upon resetting of the rotating camera assembly.
Therefore, it is only necessary to ensure that the signal transmitter and the signal receiver are opposite in the forward direction when the rotating camera assembly is reset, i.e., returned to the initial position (generally, the camera of the rotating camera assembly is in the same direction as the back side of the terminal). For example, the signal transmitter sets up the one end that is close to the terminal display screen when rotatory camera subassembly resets, then signal receiver sets up the one end that is close to rotatory camera subassembly at the terminal, if signal transmitter sets up the side that is close to the terminal both sides at rotatory camera subassembly, then signal receiver sets up the position that is close to rotatory camera subassembly side in the terminal both sides, when keeping rotatory camera subassembly to reset, signal transmitter and signal receiver forward relative can. Thus, when the rotating camera assembly is reset, the signal receiver receives the greatest signal strength.
It should be noted that the rotating camera assembly may be disposed at the top, the bottom, or both sides of the terminal, and the embodiment of the present invention is not limited to this, and in order to facilitate the user to use and improve the convenience and the usability of the terminal, the rotating camera assembly is generally disposed at the top of the terminal, i.e., the upper end of the terminal when the user normally uses the terminal.
Optionally, the strength value of the signal received by the terminal reading signal receiver may specifically be: and acquiring the intensity parameter of the signal received by the signal receiver, and performing analog-to-digital conversion on the intensity parameter of the signal to further obtain the intensity value of the signal.
S306, judging whether the intensity value of the signal received by the signal receiver is greater than or equal to a first preset threshold value; if the strength value of the signal is greater than or equal to the first preset threshold, executing step S307; otherwise, the motor will continue to operate, carrying the rotating camera assembly to continue rotating.
Optionally, the first preset threshold may be preset by a manufacturer and stored in the terminal when the terminal leaves a factory, or may be used by a user, when the rotary camera assembly is reset, the test is performed, and then a value obtained by the test is used as the first preset threshold, and when the sensitivity of the signal transmitter or the signal receiver changes due to other factors such as increase of the use duration of the terminal, the user may also perform adaptive adjustment according to the test result, thereby ensuring the accuracy of the reset.
S307, the motor is stopped.
When the strength of the signal reaches a first preset threshold value, the signal transmitter is opposite to the signal receiver in the forward direction, and the rotating camera head assembly is restored to the initial position, so that the motor can be stopped immediately, and the resetting of the rotating camera head assembly is completed.
The motor drives the rotary camera component to rotate, and through the cooperation of the signal transmitter and the signal receiver, the motor is stopped to rotate when the signal strength value reaches a first preset threshold value, so that the rotary camera component is ensured to complete resetting, the control is simple and convenient, the accuracy is high, the resetting condition exceeding the position cannot occur, the service life loss of the motor is reduced, the power consumption of the system is also saved, and the terminal usability and the convenience are improved.
Further, the terminal can also close the signal transmitter and the signal receiver after stopping the motor, so that the service lives of the signal transmitter and the signal receiver are prolonged.
It should be noted that before step S304, that is, before starting the motor, the signal receiver may detect the intensity value of the currently received signal, and if the intensity value reaches the preset threshold, the motor does not need to be started, so as to save the power consumption of the system.
Referring to fig. 4, fig. 4 is a schematic view of an apparatus for controlling a rotating camera assembly to reset according to an embodiment of the present invention, and the apparatus 4 for controlling a rotating camera assembly to reset shown in fig. 4 at least includes an answering mode detecting module 41, a control module 42, a reading module 43, and a determining module 44, where:
an answering mode detection module 41, configured to detect, when a call request is received, an answering mode selected for the call request;
the standard mode is a common answering mode, namely, a user directly answers the terminal close to the ear;
when the terminal receives a call request and the answering mode selected aiming at the call request is a standard mode, the fact that a user can contact with a screen of the terminal is indicated, and if the terminal does not have a screen lock at the moment, misoperation is likely to be caused when the user answers the call; therefore, if the answer mode detection module 41 detects that the selected answer mode is the standard mode, the trigger control module 42 starts the motor for controlling the rotating camera assembly, and starts the signal transmitter on the rotating camera assembly to perform reset control on the rotating camera assembly, thereby avoiding causing misoperation;
the control module 42 is configured to start a motor controlling the rotating camera assembly and start a signal transmitter on the rotating camera assembly if the answering mode is a standard mode;
the signal emitter may be disposed at an end of the rotating camera assembly close to the display screen of the terminal at the initial position, or may be disposed at a side of the rotating camera assembly close to both sides of the terminal, which is not limited herein.
The signal transmitter may be a generator capable of transmitting wireless signals and having strong directivity, such as an infrared transmitting tube, a laser generator, etc.
A reading module 43, configured to read an intensity value of a signal received by a signal receiver, where the signal transmitter and the signal receiver are opposite in a forward direction when the rotating camera head assembly is reset;
specifically, as shown in fig. 5, the reading module 43 further includes an intensity parameter obtaining unit 431 and an analog-to-digital converting unit 432, wherein:
an intensity parameter acquiring unit 431, configured to acquire an intensity parameter of a signal received by the signal receiver;
the analog-to-digital conversion unit 432 is configured to perform analog-to-digital conversion on the intensity parameter of the signal to obtain an intensity value of the signal.
A determining module 44, configured to determine whether the strength value of the signal received by the signal receiver is greater than or equal to a first preset threshold;
optionally, the first preset threshold may be preset by a manufacturer and stored in the terminal when the terminal leaves a factory, or may be used by a user, when the rotary camera assembly is reset, the test is performed, and then a value obtained by the test is used as the first preset threshold, and when the sensitivity of the signal transmitter or the signal receiver changes due to other factors such as increase of the use duration of the terminal, the user may also perform adaptive adjustment according to the test result, thereby ensuring the accuracy of the reset.
The control module 42 is further configured to:
and if the intensity value of the signal is greater than or equal to the first preset threshold value, stopping the motor.
Further, the control module 42 may be further configured to:
if the answering mode is a Bluetooth mode or a hands-free mode, a distance sensor on the rotary camera component is started, and the distance sensor and a camera on the rotary camera component are positioned on different sides;
the reading module 43 is further configured to:
reading the strength value of the signal received by the distance sensor;
the determining module 44 is further configured to:
and judging whether the intensity value of the signal received by the distance sensor is smaller than a second preset threshold value, if so, triggering the control module 42 to start a motor for controlling the rotary camera assembly and starting a signal emitter on the rotary camera assembly.
Further, the control module 42 is further configured to:
and after the motor is stopped when the intensity value of the signal is greater than or equal to the first preset threshold value, the signal transmitter and the signal receiver are turned off.
Wherein, the above mentioned signal transmitter may be an infrared transmitting tube, and the signal receiver may be an infrared receiving tube.
In the embodiment of the invention, when a call request is received, an answering mode selected aiming at the call request is detected, if the answering mode is a standard mode, a motor for controlling the rotary camera component is started, a signal transmitter on the rotary camera component is started, and then reset control is carried out; if answer the mode for bluetooth module or hand-free mode, then whether the current state of further detection terminal is fit for carrying out reset control, if be fit for, just carry out reset control, avoided the maloperation and avoided electric motor stall.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily for the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as a program listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A method of controlling the resetting of a rotating camera assembly, the method comprising:
detecting an answering mode selected for a call request when the call request is received;
if the answering mode is a standard mode, starting a motor for controlling the rotary camera component, and starting a signal transmitter on the rotary camera component, wherein the standard mode is an answering mode in which a user answers a terminal by pressing the terminal close to the ear, a camera is arranged on one side of the rotary camera component, an earphone is arranged on the other side of the rotary camera component, a distance sensor is arranged adjacent to the earphone and used for controlling the terminal to be off during conversation, and the distance sensor rotates along with the rotary camera component;
reading an intensity value of a signal received by a signal receiver, wherein the signal transmitter and the signal receiver are opposite in a forward direction when the rotating camera head assembly is reset;
and judging whether the intensity value of the signal received by the signal receiver is greater than or equal to a first preset threshold value or not, and stopping the motor if the intensity value of the signal is greater than or equal to the first preset threshold value.
2. The method of claim 1, wherein if the listening mode is a bluetooth mode or a hands-free mode, the method further comprises:
starting a distance sensor on the rotary camera assembly, and reading the strength value of a signal received by the distance sensor, wherein the distance sensor and a camera on the rotary camera assembly are positioned on different sides;
judging whether the intensity value of the signal received by the distance sensor is smaller than a second preset threshold value or not;
and if the intensity value of the signal is smaller than the second preset threshold value, executing the step of starting a motor for controlling the rotary camera assembly and starting a signal transmitter on the rotary camera assembly.
3. The method of claim 1, wherein reading the strength value of the signal received by the signal receiver comprises:
acquiring the strength parameter of the signal received by the signal receiver;
and carrying out analog-to-digital conversion on the intensity parameter of the signal to obtain the intensity value of the signal.
4. The method of claim 1, wherein after stopping the motor if the intensity value of the signal is greater than or equal to the first predetermined threshold, the method further comprises:
turning off the signal transmitter and the signal receiver.
5. The method of any of claims 1-4, wherein the signal transmitter is an infrared transmitting tube and the signal receiver is an infrared receiving tube.
6. An apparatus for controlling the repositioning of a rotating camera assembly, the apparatus comprising:
the system comprises an answering mode detection module, a call processing module and a call processing module, wherein the answering mode detection module is used for detecting an answering mode selected aiming at a call request when the call request is received;
the control module is used for starting a motor for controlling the rotary camera component and starting a signal transmitter on the rotary camera component if the answering mode is a standard mode, wherein the standard mode is an answering mode in which a user answers a terminal by pressing the terminal close to an ear, a camera is arranged on one side of the rotary camera component, an earphone is arranged on the other side of the rotary camera component, a distance sensor is arranged adjacent to the earphone and used for controlling the terminal to be turned off when a call is made, and the distance sensor rotates along with the rotary camera component;
the reading module is used for reading the strength value of the signal received by the signal receiver, wherein the signal transmitter and the signal receiver are opposite in the positive direction when the rotating camera head assembly is reset;
the judging module is used for judging whether the strength value of the signal received by the signal receiver is greater than or equal to a first preset threshold value or not;
the control module is further configured to:
and if the intensity value of the signal is greater than or equal to the first preset threshold value, stopping the motor.
7. The apparatus of claim 6,
the control module is further configured to:
if the answering mode is a Bluetooth mode or a hands-free mode, a distance sensor on the rotary camera component is started, and the distance sensor and a camera on the rotary camera component are positioned on different sides;
the reading module is further configured to:
reading the strength value of the signal received by the distance sensor;
the judging module is further configured to:
and judging whether the intensity value of the signal received by the distance sensor is smaller than a second preset threshold value, if so, triggering the control module to start and control a motor of the rotary camera assembly and starting a signal transmitter on the rotary camera assembly.
8. The apparatus of claim 6, wherein the read module comprises:
the intensity parameter acquisition unit is used for acquiring the intensity parameter of the signal received by the signal receiver;
and the analog-to-digital conversion unit is used for performing analog-to-digital conversion on the intensity parameter of the signal to obtain the intensity value of the signal.
9. The apparatus of claim 6, wherein the control module is further to:
and after the motor is stopped when the intensity value of the signal is greater than or equal to the first preset threshold value, the signal transmitter and the signal receiver are turned off.
10. The apparatus of any of claims 6-9, wherein the signal emitter is an infrared emitter tube and the signal receiver is an infrared receiver tube.
CN201810140482.9A 2015-05-19 2015-05-19 Method and device for controlling rotary camera component to reset Expired - Fee Related CN108322688B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810140482.9A CN108322688B (en) 2015-05-19 2015-05-19 Method and device for controlling rotary camera component to reset

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810140482.9A CN108322688B (en) 2015-05-19 2015-05-19 Method and device for controlling rotary camera component to reset
CN201510260690.9A CN104917962B (en) 2015-05-19 2015-05-19 A kind of method and device for controlling rotating camera component to reset

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201510260690.9A Division CN104917962B (en) 2015-05-19 2015-05-19 A kind of method and device for controlling rotating camera component to reset

Publications (2)

Publication Number Publication Date
CN108322688A CN108322688A (en) 2018-07-24
CN108322688B true CN108322688B (en) 2021-04-23

Family

ID=54086625

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810140482.9A Expired - Fee Related CN108322688B (en) 2015-05-19 2015-05-19 Method and device for controlling rotary camera component to reset
CN201510260690.9A Active CN104917962B (en) 2015-05-19 2015-05-19 A kind of method and device for controlling rotating camera component to reset

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201510260690.9A Active CN104917962B (en) 2015-05-19 2015-05-19 A kind of method and device for controlling rotating camera component to reset

Country Status (1)

Country Link
CN (2) CN108322688B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554313A (en) * 2016-02-19 2016-05-04 广东欧珀移动通信有限公司 Method and device for resetting rotary camera of mobile terminal
CN117130701A (en) * 2023-04-12 2023-11-28 荣耀终端有限公司 Icon display method of application program and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640720A (en) * 2008-07-31 2010-02-03 鸿富锦精密工业(深圳)有限公司 Mobile communication terminal and switching method of answer mode thereof
CN104580904A (en) * 2014-12-31 2015-04-29 广东欧珀移动通信有限公司 Method and device for determining rotating camera position
CN104639830A (en) * 2014-12-29 2015-05-20 广东欧珀移动通信有限公司 Method and device for resetting rotary camera

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101617289B1 (en) * 2009-09-30 2016-05-02 엘지전자 주식회사 Mobile terminal and operation control method thereof
WO2013090843A1 (en) * 2011-12-15 2013-06-20 Trygger Llc Rotatable light filter assembly for camera built in a smartphone
CN104301609B (en) * 2014-09-26 2018-09-11 广东欧珀移动通信有限公司 A kind of camera method of controlling rotation and mobile terminal applied to mobile terminal
CN104320508A (en) * 2014-10-27 2015-01-28 广东欧珀移动通信有限公司 Mobile terminal with rotation camera and camera angle control method thereof
CN104580864B (en) * 2015-01-21 2017-11-14 广东欧珀移动通信有限公司 Camera repositioning method and device
CN104618636A (en) * 2015-02-27 2015-05-13 广东欧珀移动通信有限公司 Camera locked-rotation prevention method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640720A (en) * 2008-07-31 2010-02-03 鸿富锦精密工业(深圳)有限公司 Mobile communication terminal and switching method of answer mode thereof
CN104639830A (en) * 2014-12-29 2015-05-20 广东欧珀移动通信有限公司 Method and device for resetting rotary camera
CN104580904A (en) * 2014-12-31 2015-04-29 广东欧珀移动通信有限公司 Method and device for determining rotating camera position

Also Published As

Publication number Publication date
CN108322688A (en) 2018-07-24
CN104917962A (en) 2015-09-16
CN104917962B (en) 2018-03-02

Similar Documents

Publication Publication Date Title
CN106210356B (en) Method and device for closing terminal screen
US8706162B1 (en) Automatic routing of call audio at incoming call
CN104468996A (en) Call answering method and device
CN108900231B (en) Dynamic antenna adjustment method and related product
US20170315777A1 (en) Method, terminal, and storage medium for starting voice input function of terminal
EP3196751A1 (en) Gesture identification method and device
EP3007415A1 (en) Terminal prompt mode adjusting method and terminal
CN106095401A (en) Informing message treatment method and device
KR101778525B1 (en) Apparatus and method for removing noise in portable terminal
CN108322688B (en) Method and device for controlling rotary camera component to reset
WO2020119230A1 (en) Electromagnetic interference control method and related product
CN104679412A (en) Incoming call processing method and mobile terminal
CN108833683B (en) Dynamic antenna adjustment implementation method and related product
CN104639830A (en) Method and device for resetting rotary camera
JP6771639B2 (en) Controls, terminals, cradle, notification systems, control methods, and control programs
CN105100348A (en) Telephone calling method and device
CN107684787B (en) Dust removal method and dust removal device for mobile terminal
CN105100374A (en) Communication control method, device and terminal
US20220393496A1 (en) Charge control method, charge control apparatus and storage medium
CN108769364B (en) Call control method, device, mobile terminal and computer readable medium
US10129382B2 (en) Electronic device and method for controlling electronic device using headset
CN108810261B (en) Antenna switching method in call and related product
JP6804627B2 (en) Controls, terminals, cradle, notification systems, control methods, and control programs
CN103139381A (en) Control method and system of mobile communication terminal
CN105812972B (en) System and method for controlling handheld device by utilizing earphone

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210423