1. Technical Field
Embodiments of the present disclosure relate to automatic control technology, and particularly to an electronic device and a method for adjusting a display screen of the electronic device.
2. Description of Related Art
Display screens of an electronic device are often fixed in one position or need to be rotated by hand. However, it is inconvenient to adjust the position of the display screen by hand. Therefore, a method for adjusting a display screen of an electronic device using a handheld device is desired.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
All of the processes described below may be embodied in, and fully automated via, functional code modules executed by one or more general purpose electronic devices or processors. The code modules may be stored in any type of non-transitory computer-readable medium or other storage device. Some or all of the methods may alternatively be embodied in specialized hardware. Depending on the embodiment, the non-transitory computer-readable medium may be a hard disk drive, a compact disc, a digital video disc, a tape drive or other suitable storage medium.
In a second illustrated embodiment, the electronic device 2 is connected to a server 4 through a network (refers to
In one embodiment, the gravity sensor 21 is used to detect rotation angles of the display screen 22 in an X-axis direction, a Y-axis direction, and an Z-axis direction. The processor 25 is an embedded controller of a single chip microcomputer (SCM), such as a 8032 AH. A working voltage of the processor 25 is about three volts (V).
In one embodiment, the audio collection unit 20 is used to detect analog audio signals of a user of the electronic device 2, and transform the analog audio signals to digital audio signals. For example, the audio collection unit 20 is a microphone.
The display screen adjusting system 24 is used to receive the digital audio signals detected by the audio collection unit 20, transform the digital audio signals to a control command, and rotate the display screen 22 according to the control command. In one embodiment, the display screen adjusting system 24 may include computerized instructions in the form of one or more programs that are executed by the processor 25 and stored in the storage device 23 (or memory). A detailed description of the display screen adjusting system 24 will be given in the following paragraphs.
In step S10, the audio data obtaining module 240 receives analog audio signals of a user detected by the audio collection unit 20, and transform the analog audio signals to digital audio signals.
In step S11, the audio detecting module 241 detects a control command from the digital audio signals, where the control command includes first rotation directions and first rotation angles of the display screen 22. In one embodiment, the first rotation directions may include a first rotation direction in an X-axis of a three dimensional (3D) coordinate system of the display screen 22 (hereinafter referred to as “first X-axis rotation direction”), a first rotation direction in a Y-axis of the 3D coordinate system of the display screen 22 (hereinafter referred to as “ first Y-axis rotation direction”), and a first rotation direction in an Z-axis of the 3D coordinate system of the display screen 22 (hereinafter referred to as “first Z-axis rotation direction”). As shown in
In one embodiment, the first rotation angles may include a first rotation angle in the X-axis (hereinafter referred to as “first X-axis rotation angle”), a first rotation angle in the Y-axis (hereinafter referred to as “first Y-axis rotation angle”), and a first rotation angle in the Z-axis (hereinafter referred to as “first Z-axis rotation angle”).
In one embodiment, the audio detecting module 241 transforms the digital audio signals to a local audio detection device (e.g., Speech SDK) of the electronic device 2, and detects the control command from the digital audio signals using an audio detection algorithm, such as a dynamic time warping (DTW) algorithm. For example, the control command may be to rotate the display screen 22 left (i.e., a negative direction of the X-axis) by thirty degrees.
In step S12, the first control module 242 rotates the display screen 22 according to the first rotation directions and the first rotation angles by controlling the driving motor installed in the bracket 26 to rotate the rotating bearing 28, and then the display screen 22 is rotated.
For example, the first control module 242 rotates the display screen 22 leftward with the first X-axis rotation angle of the display screen 22, if the first X-axis movement direction in the control command is leftward (e.g., a negative direction of the X-axis). The first control module 242 rotates the display screen 22 rightward with the first X-axis rotation angle of the display screen 22, if the first X-axis rotation direction of in the control command is rightward (e.g., a positive direction of the X-axis). The first control module 242 rotates the display screen 22 upward with the first Y-axis rotation angle of the display screen 22, if the first Y-axis rotation direction in the control command is upward (e.g., a positive direction of the Y-axis). The first control module 242 rotates the display screen 22 downward with the first Y-axis rotation angle of the display screen 22, if the first Y-axis rotation direction in the control command is downward (e.g., a negative direction of the Y-axis).
In step S13, the second control module 243 obtains second rotation angles of the display screen 22 detected by the gravity sensor 21. In one embodiment, the gravity sensor 21 detects the second rotation angles of the display screen 22 when the display screen 22 is rotated. As shown in
In step S14, the second control module 243 stops rotating the display screen 22 when the second rotation angles of the display screen 22 are equal to the first rotation angles in the control command.
For example, suppose that “a1”, “a2”, and “a3” represent the first X-axis rotation angle, the first Y-axis rotation angle, and the first Z-axis rotation angle respectively, “b1”, “b2”, and “b3” represent the second X-axis rotation angle, the second Y-axis rotation angle, and the second Z-axis rotation angle respectively. The second control module 243 stops rotating the display screen 22 when “b1=a1”, “b2=a2”, and “b3=a3”, so that a display direction of the display screen 22 is directly opposite to the user's face, and an optimized visual effect is achieved.
In a second embodiment, as shown in
The first control module 242 determines an optimized control command from the first control command and the second control command, and rotates the display screen 22 according to the rotation directions and the rotation angles in the optimized control command. In the second embodiment, the optimized control command is determined by calculating reliability indexes of the first control command and the second control command using the Bayesian Estimate algorithm or other suitable algorithms, and selecting one control command having a higher reliability index as the optimized control command. For example, if the reliability index of the second control command is higher than the reliability index of the first control command, the second control command is determined to be the optimized control command.
If both of the reliability index of the first control command and the reliability index of the second control command are less than a preset value (e.g., 60%), the audio detecting module 241 displays a prompt message on the display screen 22, to prompt the user to output updated audio signals.
In the second embodiment, when the audio data obtaining module 240 obtains the digital audio signals, the audio detecting module 241 first sends the digital audio signals to the local audio detection device (e.g., Speech SDK) in the electronic device 2. If the local audio detection device does not detect a qualified control command (e.g., the reliability index of the first control command is less than the preset value), the audio detecting module 241 further sends the digital audio signals to the remote audio detection device in the server 4 through the network. Then, the remote audio detection device detects a second control command from the digital audio signals, and returns the second control command to the electronic device 2. If the reliability index of the second control command is less than the preset value, the audio detecting module 241 displays a prompt message on the display screen 22, to prompt the user to output updated audio signals.
If the local audio detection device detects a qualified control command (e.g., the reliability index of the first control command is greater than or equal to the preset value), the audio detecting module 241 determines that the first control command is the qualified control command, and the digital audio signals are not sent to the remote audio detection device of the server 4.
In the first and second embodiments, the audio signals of the user are used to control the display screen 22 to rotate. In other embodiments, the audio signals of the user may be used to control the display screen 22 to execute other suitable operations, such as control the display screen 22 playing videos, playing electronic games, and playing specified software.
It should be emphasized that the above-described embodiments of the present disclosure, particularly, any embodiments, are merely possible examples of implementations, merely set forth for a clear understanding of the principles of the disclosure. Many variations and modifications may be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and the present disclosure and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
2013100045101 | Jan 2013 | CN | national |