Method for executing mouse function of electronic device and electronic device thereof
Abstract
A method for executing a mouse function of electronic device and an electronic device thereof are provided. In the present method, an amount and a relative position of input signals are detected by a sensor module. Then, whether the amount and the relative position are respectively conformed to a predetermined value is determined. If the predetermined values are conformed, whether the input signal is conformed to a specific signal is determined when a variation of the relative position is occurred. Finally, a corresponding mouse function is executed according to a type of the variation if the variation is conformed to the specific signal. As a result, a mouse device is no longer needed for a user to accomplish a directional operation on the electronic device so as to prevent inconvenience of particularly carrying a mouse device.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method for executing a mouse function of an electronic device, the electronic device comprising a sensor module, and the method comprising:
detecting an amount of a plurality of input signals and a relative position of the input signals via the sensor module; judging whether the amount and the relative position are respectively conformed to a predetermined value; if the predetermined values are conformed, and when a variation of the relative position of the input signals is occurred, judging whether the variation is conformed to a specific signal; and if the variation is conformed to the specific signal, executing a corresponding mouse function according to a type of the variation, wherein the sensor module comprises an image capturing unit and a sensing unit, the image capturing unit is used for capturing an image of a hand, wherein the hand comprises at least a finger, and the input signals are motion variation signals of the finger that are detected by the sensing unit.
2 . The method for executing a mouse function of an electronic device as claimed in claim 1 , wherein the step of capturing the image of the hand comprises:
defining a specific region where the hand is located according to the image of the hand; and judging whether the hand has a specific pose in the specific region for generating a motion variation signal.
3 . The method for executing a mouse function of an electronic device as claimed in claim 1 , wherein the specific signal is a motion variation signal of a specific finger.
4 . The method for executing a mouse function of an electronic device as claimed in claim 2 , wherein the specific pose comprises a vertical movement or a horizontal movement of the finger.
5 . The method for executing a mouse function of an electronic device as claimed in claim 3 , wherein if the predetermined values are conformed, and when the relative position of the input signals is varied, the step of determining whether the variation is conformed to the specific signal comprises:
judging the finger having the motion variation is conformed to a first specific finger if counting from a specific direction, the finger having the motion variation is an i-th finger of the fingers; and judging the finger having the motion variation is conformed to a second finger if counting from the specific direction, the finger having the motion variation is a j-th finger of the fingers, wherein i and j are positive integers less than or equal to a predetermined value, and i is not equal to j.
6 . The method for executing a mouse function of an electronic device as claimed in claim 5 , wherein if the variation is conformed to the specific signal, the step of executing the corresponding mouse function according to the type of the variation comprises:
obtaining an amount of vertical movements of the finger during a first time period when the finger having the motion variation is conformed to the first specific finger; executing a function of single-clicking a left button of the mouse if the amount is 1; and executing a function of double-clicking the left button of the mouse if the amount is 2.
7 . The method for executing a mouse function of an electronic device as claimed in claim 6 , wherein if the variation is conformed to the specific signal, the step of executing the corresponding mouse function according to the type of the variation comprises:
obtaining a motion track of the finger if the finger is judged to be horizontally moved after a second time period, and when the finger having the motion variation is conformed to the first specific finger, wherein the second time period is greater than the first time period; and executing a mouse wheel function according to a direction of the motion track.
8 . The method for executing a mouse function of an electronic device as claimed in claim 5 , wherein if the variation is conformed to the specific signal, the step of executing the corresponding mouse function according to the type of the variation comprises:
obtaining an amount of vertical movements of the finger during the first time period when the finger having the motion variation is conformed to the second specific finger; and executing a function of single-clicking a right button of the mouse if the amount is 1.
9 . The method for executing a mouse function of an electronic device as claimed in claim 5 , wherein if the variation is conformed to the specific signal, the step of executing the corresponding mouse function according to the type of the variation comprises:
obtaining an amount of vertical movements of the finger by the sensing unit during the first time period when the finger having the motion variation is the first specific finger and the second specific finger; and executing a function of single-clicking a middle button of the mouse if the amount is 1.
10 . The method for executing a mouse function of an electronic device as claimed in claim 2 , wherein after the step of judging whether the hand located at the specific region has the specific pose for generating the motion variation signal, the method further comprises:
obtaining a motion track of the finger if the fingers are horizontally moved after a third time period, and moving a mouse cursor according to the motion track.
11 . The method for executing a mouse function of an electronic device as claimed in claim 1 , wherein the sensing unit includes an infrared projection device.
12 . An electronic device having a mouse executing function, suitable for executing a plurality of mouse functions according to motion variations of a hand, the electronic device comprising:
a display, having a screen capable of displaying a mouse cursor; a sensor module, coupled to the display for detecting an amount of a plurality of input signals and a relative position of the input signals; and a judging module, simultaneously coupled to the display and the sensor module for judging whether the amount and the relative position are respectively conformed to a predetermined value, wherein if the predetermined values are conformed, and when the relative position of the input signals is varied, whether the variation is conformed to a specific signal is determined, and a corresponding mouse function is executed according to a type of the variation if the variation is conformed to the specific signal, wherein the sensor module comprises an image capturing unit and a sensing unit, the image capturing unit is used for capturing an image of a hand, wherein the hand includes at least a finger, and the input signals are motion variation signals of the finger that are detected by the sensing unit.
13 . The electronic device as claimed in claim 12 , wherein the sensing unit defines a specific region where the hand is located according to the image of the hand, and the judging module judges whether the hand has a specific pose in the specific region for generating the motion variation signal.
14 . The electronic device as claimed in claim 12 , wherein the specific signal is a motion variation signal of a specific finger.
15 . The electronic device as claimed in claim 13 , wherein the specific pose comprises a vertical movement or a horizontal movement of the finger.
16 . The electronic device as claimed in claim 14 , wherein the judging module judges the finger having the motion variation is conformed to a first specific finger if counting from a specific direction, the finger having the motion variation is an i-th finger of the fingers, and judges the finger having the motion variation is conformed to a second finger if counting from the specific direction, the finger having the motion variation is a j-th touch signal of the fingers, wherein i and j are positive integers less than or equal to a predetermined value, and i is not equal to j.
17 . The electronic device as claimed in claim 16 , wherein the judging module obtains an amount of vertical movements of the finger during a first time period when the finger having the motion variation is conformed to the first specific finger, and executes a function of single-clicking a left button of the mouse if the amount is 1, and executes a function of double-clicking the left button of the mouse if the amount is 2.
18 . The electronic device as claimed in claim 17 , wherein the judging module obtains a motion track of the finger if the finger is judged to be horizontally moved after a second time period, and when the finger having the motion variation is conformed to the first specific finger, and executes a mouse wheel function according to a direction of the motion track, wherein the second time period is greater than the first time period.
19 . The electronic device as claimed in claim 16 , wherein the judging module obtains an amount of vertical movements of the finger during the first time period when the finger having the motion variation is conformed to the second specific finger, and executes a function of single-clicking a right button of the mouse if the amount is 1.
20 . The electronic device as claimed in claim 16 , wherein the judging module obtains an amount of vertical movements of the finger having the motion variation during the first time period when the finger having the motion variation is the first specific finger and the second specific finger, and executes a function of single-clicking a middle button of the mouse if the amount is 1.
21 . The electronic device as claimed in claim 13 , wherein the judging module obtains a motion track of the finger if the fingers are horizontally moved after the third time period, simultaneously, and moves the mouse cursor according to the motion track.
22 . The electronic device as claimed in claim 12 , wherein the sensing unit includes an infrared projection device.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.