Disclosure of Invention
In order to solve the above-mentioned troubles caused by replacing the existing mouse by the user, the embodiments of the present invention creatively provide a method for controlling the moving range of the mouse, the mouse and a computer readable storage medium.
According to a first aspect of the present invention, there is provided a method for controlling a movement range of a mouse, the method being applied to the mouse, the method comprising: when detecting that a user holds a mouse, detecting the length of a finger for clicking the mouse, wherein the length of the finger is from a fingertip to a palm; determining the type of the user according to the size relationship between the detected length of the finger and the distance between the fingertip and the end of the mouse; an appropriate range of mouse movement is determined based on the determined user type.
According to an embodiment of the present invention, the determining the user type according to the magnitude relationship between the detected length of the finger and the distance between the fingertip and the end of the mouse includes: if the operation result of the detected length of the finger and the preset first coefficient is larger than the distance length from the fingertip to the end of the mouse, determining that the user type is adult; and if the operation result of the detected length of the finger and the preset first coefficient is less than or equal to the distance length from the fingertip to the tail end of the mouse, determining that the user type is a child.
According to an embodiment of the present invention, when the determined user type is an adult, determining an appropriate mouse movement range based on the determined user type includes: determining the maximum width of the cursor movement according to the distance from the wrist to the optical sensor at the bottom of the mouse and a preset second coefficient; and determining the maximum height of the cursor movement according to the length of the finger and a preset third coefficient.
According to an embodiment of the invention, the method further comprises: calculating the length of the hand according to the length of the detected finger based on the standard finger-palm ratio; determining the position of the wrist according to the obtained hand length; and calculating the distance from the wrist to the optical sensor at the bottom of the mouse according to the position of the wrist and the position of the optical sensor at the bottom of the mouse.
According to an embodiment of the present invention, when the determined user type is a child, determining an appropriate mouse movement range based on the determined user type includes: determining the maximum width of the cursor movement according to the palm width and a preset fourth coefficient; and determining the maximum height of the cursor movement according to the palm length and a preset fifth coefficient.
According to the second aspect of the present invention, there is also provided a mouse, comprising: the thermal sensor is used for detecting the length of a finger for clicking the mouse when the user holds the mouse, wherein the length of the finger is from a fingertip to a palm; the controller is used for determining the type of the user according to the size relationship between the length of the detected finger and the distance between the fingertip and the tail end of the mouse; an appropriate range of mouse movement is determined based on the determined user type.
According to an embodiment of the present invention, the determining the user type by the controller according to the magnitude relationship between the detected length of the finger and the distance between the fingertip and the end of the mouse includes: if the operation result of the detected length of the finger and the preset first coefficient is larger than the distance length from the fingertip to the end of the mouse, determining that the user type is adult; and if the operation result of the detected length of the finger and the preset first coefficient is less than or equal to the distance length from the fingertip to the tail end of the mouse, determining that the user type is a child.
According to an embodiment of the present invention, when the determined user type is an adult, the controller determines an appropriate mouse movement range based on the determined user type, including: determining the maximum width of the cursor movement according to the distance from the wrist to the optical sensor at the bottom of the mouse and a preset second coefficient; and determining the maximum height of the cursor movement according to the length of the finger and a preset third coefficient.
According to an embodiment of the present invention, the controller is further configured to calculate a hand length according to the length of the detected finger based on a standard finger-palm ratio; determining the position of the wrist according to the obtained hand length; and calculating the distance from the wrist to the optical sensor at the bottom of the mouse according to the position of the wrist and the position of the optical sensor at the bottom of the mouse.
According to an embodiment of the present invention, when the determined user type is a child, the controller determines an appropriate mouse movement range based on the determined user type, including: determining the maximum width of the cursor movement according to the palm width and a preset fourth coefficient; and determining the maximum height of the cursor movement according to the palm length and a preset fifth coefficient.
According to a third aspect of the present invention, there is provided a computer-readable storage medium comprising a set of computer-executable instructions, which when executed, perform any of the above methods for controlling a range of mouse movement.
According to the control method of the mouse moving range, the mouse and the computer readable storage medium, when the condition that a user holds the mouse is detected, the thermal sensor detects the length of a finger for clicking the mouse; then, determining the type of the user according to the size relationship between the detected length of the finger and the distance between the fingertip and the end of the mouse; an appropriate range of mouse movement is then determined based on the determined user type. Therefore, when a user holds the mouse, the touch point detection is carried out through the thermal sensor arranged on the mouse to optimize calculation, and the mouse can be flexibly controlled to be suitable for the moving range of the mouse of the current user when the user is replaced, so that various troubles caused by replacing the user by the conventional mouse are avoided, and the experience of the user is effectively improved.
It is to be understood that the teachings of the present invention need not achieve all of the above-described benefits, but rather that specific embodiments may achieve specific technical results, and that other embodiments of the present invention may achieve benefits not mentioned above.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given only to enable those skilled in the art to better understand and to implement the present invention, and do not limit the scope of the present invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The technical solution of the present invention is further elaborated below with reference to the drawings and the specific embodiments.
FIG. 1 is a flow chart illustrating an implementation of a method for controlling a mouse movement range according to an embodiment of the present invention; FIG. 2 is a diagram illustrating an embodiment of the present invention in which a thermal sensor detects the length of a user's finger; FIG. 3 is a geometric diagram illustrating a suitable range of motion for an adult using a mouse according to an embodiment of the present invention; FIG. 4 is a diagram illustrating the effect of a mouse on a child's grip according to an embodiment of the present invention; FIG. 5 is a diagram showing a standard finger-palm scale of an example of an application of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a method for controlling a movement range of a mouse, where the method is applied to a mouse, and the method includes:operation 101, when it is detected that a user holds a mouse, detecting the length of a finger for clicking the mouse, wherein the length of the finger is from a fingertip to a palm; anoperation 102, determining the type of the user according to the size relationship between the detected length of the finger and the distance between the fingertip and the end of the mouse; inoperation 103, an appropriate mouse movement range is determined based on the determined user type.
Inoperation 101, the present invention detects the position of the fingertip and the position of the boundary point between the finger and the palm by performing a touch detection through a thermal sensor disposed on the mouse when the user holds the mouse, and then calculates the length of the finger for clicking the mouse according to the position of the fingertip and the position of the boundary point between the finger and the palm. For example, as shown in fig. 2, taking the user as an adult, when the user holds the mouse, the thermal sensor can detect the length from the fingertip to the palm, i.e. the length a of the finger used for clicking the mouse.
Inoperation 102, the position of the fingertip is detected by performing touch point detection through the thermal sensor, and then the distance length from the fingertip to the end of the mouse is calculated according to the position of the fingertip. For example, as shown in fig. 2, taking the user as an adult, when the user holds the mouse, the thermal sensor can detect the distance b from the fingertip to the end of the mouse.
Further, after the length of the finger and the distance length from the fingertip to the end of the mouse are detected, the type of the user can be determined according to the magnitude relation between the detected length of the finger and the distance length from the fingertip to the end of the mouse. Specifically, if the operation result of the detected length of the finger and the preset first coefficient is greater than the distance length from the fingertip to the end of the mouse, determining that the user type is an adult; and if the operation result of the detected length of the finger and the preset first coefficient is less than or equal to the distance length from the fingertip to the tail end of the mouse, determining that the user type is a child.
Inoperation 103, since only a part of the fingertip to the palm is attached to the mouse surface when the adult holds the mouse as shown in fig. 3, and almost the entire palm is completely attached to the mouse surface when the child holds the mouse as shown in fig. 4, the calculation manner collected when determining the appropriate mouse movement range based on the determined user type is completely different.
Specifically, when the determined user type is an adult, determining an appropriate mouse movement range based on the determined user type includes: determining the maximum width of the cursor movement according to the distance from the wrist to the optical sensor at the bottom of the mouse and a preset second coefficient; and determining the maximum height of the cursor movement according to the length of the finger and a preset third coefficient.
Before determining the maximum width of the cursor movement according to the distance from the wrist to the optical sensor at the bottom of the mouse and a preset second coefficient, the method further comprises the following steps: calculating the length of the hand according to the length of the detected finger based on the standard finger-palm ratio; determining the position of the wrist according to the obtained hand length; and calculating the distance from the wrist to the optical sensor at the bottom of the mouse according to the position of the wrist and the position of the optical sensor at the bottom of the mouse.
In an example, referring to fig. 2 and 5, using the standard finger-palm ratio diagram shown in fig. 5, after the thermal sensor detects the length a of the middle finger to the palm, the hand length c is calculated according to the detected length of the finger based on the standard finger-palm ratio, i.e. the length a from the fingertip to the wrist is 2.25. Therefore, the position of the wrist can be determined according to the length of the hand and the positions of the fingertips, and the distance A from the wrist to the optical sensor at the bottom of the mouse is calculated according to the position of the wrist and the position of the optical sensor at the bottom of the mouse. Next, referring to fig. 3, the wrist roll angle is about 45 °, so the maximum width of the cursor movement, i.e., the cursor width 2 a/tan67.5 °, and the maximum height of the cursor movement, i.e., the light elevation 0.5 middle finger length, can be determined using the following computational expression.
Determining an appropriate mouse movement range based on the determined user type when the determined user type is a child, comprising: determining the maximum width of the cursor movement according to the palm width and a preset fourth coefficient; and determining the maximum height of the cursor movement according to the palm length and a preset fifth coefficient.
In an example, referring to fig. 4, when the child holds the mouse, almost the entire palm completely fits on the surface of the mouse, so the palm width and the palm length can be obtained by detecting and calculating with the thermal sensor, and then the maximum width of the cursor movement is determined by using the following calculation expression, that is, the cursor width is 0.6 times the palm width, and the maximum height of the cursor movement is 0.4 times the palm length.
Therefore, when a user holds the mouse, the touch point detection is carried out through the thermal sensor arranged on the mouse to optimize calculation, and the mouse can be flexibly controlled to be suitable for the moving range of the mouse of the current user when the user is replaced, so that various troubles caused by replacing the user by the conventional mouse are avoided, and the experience of the user is effectively improved.
Similarly, based on the above method for controlling the movement range of the mouse, an embodiment of the present invention further provides a computer-readable storage medium, where a program is stored, and when the program is executed by a processor, the processor is enabled to perform at least the following operation steps:operation 101, when it is detected that a user holds a mouse, detecting the length of a finger for clicking the mouse, wherein the length of the finger is from a fingertip to a palm; anoperation 102, determining the type of the user according to the size relationship between the detected length of the finger and the distance between the fingertip and the end of the mouse; inoperation 103, an appropriate mouse movement range is determined based on the determined user type.
Further, based on the method for controlling the movement range of the mouse as described above, an embodiment of the present invention further provides a mouse, as shown in fig. 6, where themouse 60 includes: thethermal sensor 601 is used for detecting the length of a finger for clicking the mouse when the mouse is held by a user, wherein the length of the finger is from a fingertip to a palm; acontroller 602 for determining the type of the user according to the magnitude relationship between the detected length of the finger and the distance between the fingertip and the end of the mouse; an appropriate range of mouse movement is determined based on the determined user type.
According to an embodiment of the present invention, thecontroller 602 determines the user type according to the magnitude relationship between the detected length of the finger and the distance between the fingertip and the end of the mouse, including: if the operation result of the detected length of the finger and the preset first coefficient is larger than the distance length from the fingertip to the end of the mouse, determining that the user type is adult; and if the operation result of the detected length of the finger and the preset first coefficient is less than or equal to the distance length from the fingertip to the tail end of the mouse, determining that the user type is a child.
According to an embodiment of the present invention, when the determined user type is an adult, thecontroller 602 determines an appropriate mouse movement range based on the determined user type, including: determining the maximum width of the cursor movement according to the distance from the wrist to the optical sensor at the bottom of the mouse and a preset second coefficient; and determining the maximum height of the cursor movement according to the length of the finger and a preset third coefficient.
According to an embodiment of the present invention, thecontroller 602 is further configured to calculate a hand length according to the length of the detected finger based on the standard finger-palm ratio; determining the position of the wrist according to the obtained hand length; and calculating the distance from the wrist to the optical sensor at the bottom of the mouse according to the position of the wrist and the position of the optical sensor at the bottom of the mouse.
According to an embodiment of the present invention, when the determined user type is a child, thecontroller 602 determines an appropriate mouse movement range based on the determined user type, including: determining the maximum width of the cursor movement according to the palm width and a preset fourth coefficient; and determining the maximum height of the cursor movement according to the palm length and a preset fifth coefficient.
Here, it should be noted that: the above description of the embodiment of the mouse is similar to the description of the embodiment of the method shown in fig. 1 to 5, and has similar beneficial effects to the embodiment of the method shown in fig. 1 to 5, and therefore, the description thereof is omitted. For technical details that are not disclosed in the mouse embodiment of the present invention, please refer to the description of the method embodiment shown in fig. 1 to 5 of the present invention for understanding, and therefore, for brevity, will not be described again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
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; can be located in one place or 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, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art 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, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.