Movement control method and device for mouse cursor on concave-convex surface, equipment and medium
By obtaining the real-time height difference when the mouse moves and adjusting the coordinate point values using the ratio relation mathematical model, the problem of inaccurate cursor movement on the concave and convex surfaces is solved, achieving higher accuracy and consistency, and improving user experience.
Patent Information
- Application Number
- CN202510340530.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-21
- Publication Date
- 2025-07-08
AI Technical Summary
When using the mouse on the concave and convex surface, the cursor moves inaccurately, causing the user to feel the inconsistent movement speed and pixel differences, affecting the user experience.
By obtaining the current real-time height difference when the mouse is moved, and adjusting the coordinate point value output by the mouse using the ratio relationship mathematical model, we ensure that the coordinate point value output when moving on the concave and convex surface is close to the same as the theoretical set value.
It improves the accuracy of the mouse cursor movement on the concave and convex surfaces, reduces the user's discomfort on the concave and convex surfaces, and improves the user experience.
Smart Images

Figure CN120276609A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of mouse cursor movement, and in particular to a method, device, equipment and medium for controlling the movement of a mouse cursor on a concave-convex surface. Background Art
[0002] The usage scenarios of a mouse will include some special scenarios, such as a concave-convex interface. Currently, mouse solution providers have not optimized for the use in this scenario. When a user uses a mouse in these scenarios, for each same distance of movement, the user may feel that the mouse pointer is sometimes fast and sometimes slow. For the same distance of forward and backward movement, the number of pixels passed by the cursor will also be somewhat different, which will cause a certain psychological gap for the user, making the user feel that the cursor is inaccurate and has no feel.
[0003] The accuracy of the number of coordinate points (CountPer Inch, CPI) fed back per inch in the dynamic movement output when an optical mouse moves is jointly determined by the lens ratio, the resolution of the mouse sensor (i.e., the number of pixels displayed on the device screen), and the height difference (Z-Height) between the lens reference plane and the tracking surface. If the Z-Height changes, the imaging of the mouse is affected, and the accuracy of the CPI value output by the mouse will have an error. The specific relationship is: the lower the Z-Height, the larger the CPI value it outputs; the higher the Z-Height, the smaller the CPI value it outputs. Until the height exceeds a certain value, the image quality obtained by the sensor through the photosensitive area is very poor, and the accuracy is not sufficient for applying to the output number of coordinate points. The actual situation is that when the mouse moves on a concave-convex surface, due to the continuous change of the Z-Height, during this process, the mouse outputs the number of coordinate points at this CPI value according to a ratio, which will result in a numerical error. Therefore, there is an urgent need for a movement control method to improve the accuracy of the mouse cursor moving on a concave-convex surface. Summary of the Invention
[0004] The purpose of this application is to provide a method, device, equipment and medium for controlling the movement of a mouse cursor on a concave-convex surface, which can improve the accuracy of the mouse cursor moving on a concave-convex surface.
[0005] To achieve the above purpose, this application provides the following solutions:
[0006] In the first aspect, this application provides a method for controlling the movement of a mouse cursor on a concave-convex surface, including:
[0007] Obtain the current real-time height difference when the mouse moves; the height difference is the height difference between the lens reference plane and the tracking surface;
[0008] Match the current real-time height difference with the ratio relationship mathematical model to obtain the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse; the ratio relationship mathematical model is the mathematical model of the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the height difference and the actual output coordinate point value of the mouse; the number of coordinate points is the number of coordinate points fed back per inch in the dynamic movement output when the optical mouse moves.
[0009] Adjust the mouse output coordinate point value corresponding to the current real-time height difference according to the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse to obtain the final mouse output coordinate point value corresponding to the current real-time height difference.
[0010] Optionally, before matching the current real-time height difference with the ratio relationship mathematical model to obtain the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse, the method for controlling the movement of the mouse cursor on the concave-convex surface further includes:
[0011] Determine the theoretical set coordinate point value of the mouse;
[0012] Establish the corresponding relationship between the height difference and the actual output coordinate point value of the mouse;
[0013] Determine the ratio relationship mathematical model according to the theoretical set coordinate point value of the mouse and the corresponding relationship between the height difference and the actual output coordinate point value of the mouse.
[0014] Optionally, determining the theoretical set coordinate point value of the mouse specifically includes:
[0015] When the mouse moves at the height of the default height difference, obtain the actual output coordinate point value of the mouse under the condition of the default height difference;
[0016] Determine the actual output coordinate point value of the mouse under the condition of the default height difference as the theoretical set coordinate point value of the mouse.
[0017] Optionally, establishing the corresponding relationship between the height difference and the actual output coordinate point value of the mouse specifically includes:
[0018] When the mouse moves within the set height difference range and the theoretical set coordinate point value of the mouse remains unchanged, obtain the mouse output coordinate point values of the mouse under different height difference conditions;
[0019] Establish the corresponding relationship between the height difference and the actual output coordinate point value of the mouse according to the mouse output coordinate point values of the mouse under different height difference conditions.
[0020] Optionally, the set height difference range is 0.8 - 6.0 mm.
[0021] Optionally, the current real-time height difference is measured by a distance sensor.
[0022] Optionally, the mouse output coordinate point value corresponding to the current real-time height difference is adjusted according to the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse. Specifically, it includes:
[0023] According to the theoretical set coordinate point value of the mouse and the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse, the final mouse output coordinate point value corresponding to the current real-time height difference is obtained.
[0024] In a second aspect, the present application provides a device for controlling the movement of a mouse cursor on a concave-convex surface, including:
[0025] A current real-time height difference acquisition module, configured to acquire the current real-time height difference when the mouse moves; the height difference is the height difference from the lens reference plane to the tracking surface;
[0026] A ratio determination module, configured to match the current real-time height difference with a ratio relationship mathematical model to obtain the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse; the ratio relationship mathematical model is a mathematical model of the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the height difference and the actual output coordinate point value of the mouse; the number of coordinate points is the number of coordinate points fed back per inch in the dynamic movement output when the optical mouse moves;
[0027] A coordinate point number adjustment module, configured to adjust the mouse output coordinate point value corresponding to the current real-time height difference according to the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse, to obtain the final mouse output coordinate point value corresponding to the current real-time height difference.
[0028] In a third aspect, the present application provides a computer device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the above-mentioned method for controlling the movement of a mouse cursor on a concave-convex surface.
[0029] In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the above-mentioned method for controlling the movement of a mouse cursor on a concave-convex surface.
[0030] According to the specific embodiments provided by the present application, the following technical effects are disclosed:
[0031] The present application provides a method, apparatus, device and medium for controlling the movement of a mouse cursor on a concave-convex surface. By matching the current real-time height difference with a mathematical model of the ratio relationship, the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse is obtained. The mathematical model of the ratio relationship is a mathematical model of the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the height difference and the actual output coordinate point value of the mouse. The number of coordinate points is the number of coordinate points fed back per inch in the dynamic movement output when the optical mouse moves. According to the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse, the actual output coordinate point value of the mouse corresponding to the current real-time height difference is adjusted to obtain the final actual output coordinate point value of the mouse corresponding to the current real-time height difference. The present application improves the accuracy of the mouse cursor movement on the concave-convex surface, so that when the mouse moves on the concave-convex surface and the Z-Height changes continuously, the actual output CPI value of the mouse is close to the theoretically set CPI value of the mouse, that is, when moving one inch, the change in the number of output coordinate points is consistent with the CPI value of the mouse sensor. Through this application, the discomfort generated by the user when using the mouse on the concave-convex surface is reduced, and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0033] Figure 1 It is an application environment diagram of a method for controlling the movement of a mouse cursor on a concave-convex surface in an embodiment of the present application;
[0034] Figure 2 It is a flowchart of a method for controlling the movement of a mouse cursor on a concave-convex surface provided by an embodiment of the present application;
[0035] Figure 3 It is a schematic diagram of the specific process of a method for controlling the movement of a mouse cursor on a concave-convex surface provided by an embodiment of the present application;
[0036] Figure 4 It is a schematic diagram of the functional modules of a device for controlling the movement of a mouse cursor on a concave-convex surface provided by an embodiment of the present application;
[0037] Figure 5 It is a schematic diagram of the structure of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0038] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0039] To make the above objects, features, and advantages of the present application more obvious and understandable, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0040] The method for controlling the movement of the mouse cursor on the concave-convex surface provided by the embodiments of the present application can be applied to an application environment as Figure 1 shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be set separately, integrated on the server 104, placed in the cloud or on other servers. The terminal 102 can send the current real-time height difference to the server 104. After receiving the current real-time height difference, for the current real-time height difference, the server 104 matches the current real-time height difference with the ratio relationship mathematical model to obtain the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse. According to the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse, the actual output coordinate point value of the mouse corresponding to the current real-time height difference is adjusted to obtain the final mouse output coordinate point value corresponding to the current real-time height difference. The server 104 can feedback the obtained final mouse output coordinate point value for the current real-time height difference to the terminal 102. In addition, in some embodiments, the method for controlling the movement of the mouse cursor on the concave-convex surface can also be implemented independently by the server 104 or the terminal 102. For example, the terminal 102 can directly perform coordinate point adjustment processing for the current real-time height difference, or the server 104 can obtain the current real-time height difference from the data storage system and perform coordinate point adjustment processing for the current real-time height difference.
[0041] Among them, the terminal 102 can be, but is not limited to, various desktop computers, laptop computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers, and can also be a cloud server.
[0042] In an exemplary embodiment, as Figure 2As shown, a method for controlling the movement of a mouse cursor on a concave-convex surface is provided. This method is executed by a computer device, which can be specifically executed by a computer device such as a terminal or a server alone, or jointly executed by a terminal and a server. In the embodiments of the present application, taking the application of this method to Figure 1 server 104 in
[0043] Step 201: Obtain the current real-time height difference when the mouse moves; the height difference is the height difference from the lens reference plane to the tracking surface. The current real-time height difference is measured by a distance sensor.
[0044] Step 202: Match the current real-time height difference with the ratio relationship mathematical model to obtain the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse; the ratio relationship mathematical model is the mathematical model of the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the height difference and the actual output coordinate point value of the mouse; the number of coordinate points is the number of coordinate points fed back per inch in the dynamic movement output when the optical mouse moves.
[0045] Step 203: Adjust the mouse output coordinate point value corresponding to the current real-time height difference according to the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse to obtain the final mouse output coordinate point value corresponding to the current real-time height difference.
[0046] Implementing the above steps 201 to 203, the size data of the real-time Z-Height when the current mouse moves can be accurately measured by a distance sensor, stored and transmitted to the mouse sensor; after the optical Sensor chip obtains the current Z-Height value, it is matched with the data model stored in the Sensor chip to determine the value size of the ratio to be output, and the actual output CPI value is adjusted in real time. The accuracy of the mouse cursor movement on the concave-convex surface is improved, so that when the mouse moves on the concave-convex surface, for every inch of movement, the change in the number of coordinate points output is consistent with the CPI value of the mouse sensor. Through this application, the discomfort felt by the user when using the mouse on the concave-convex surface is reduced, and the user experience is improved. After the distance sensor accurately measures the size data of the real-time Z-Height when the current mouse moves, it stores and transmits the current Z-Height data to the mouse sensor. After the optical Sensor chip obtains the current Z-Height value, it is matched with the data model stored in the Sensor chip to determine the value size of the ratio to be output, and the actual output CPI value is adjusted in real time. The data model is an abstraction of the data characteristics of the real world and is used to describe the concepts and definitions of a set of data.
[0047] The corresponding relationship between Z-Height and the actual CPI value output by the mouse is obtained through testing, and a mathematical model of the ratio relationship between Z-Height and the theoretical set CPI value of the mouse / the actual CPI value output by the mouse is established. When the mouse moves, Z-Height changes, and then according to the ratio relationship between Z-Height and the theoretical set CPI value of the mouse / the actual CPI value output by the mouse in the mathematical model, the size value of the CPI output by the mouse is adjusted. As Figure 3 shown, the method for controlling the movement of the mouse cursor on the concave and convex surface provided by this application may include the following steps 1 to 6.
[0048] Step 1: Use the distance sensor to test and fix the mouse to move at the default Z-Height. At the same time, use the corresponding software and tools to measure the actual CPI value output by the mouse under the condition of the default Z-Height size, and record it as the theoretical set CPI value of the mouse. The CPI value can be measured by using the Inste test software and a ruler, or the CPI measurement can be completed by using the Inste test software in cooperation with a robotic arm. The specific process of using the Inste test software and a ruler is as follows: Measure the actual distance of the mouse with the ruler, and then measure the actual CPI value output by the mouse with the Inste test software. The specific process of using the Inste test software in cooperation with a robotic arm is as follows: Control the actual distance of the mouse movement with the robotic arm, and then measure the actual CPI value output by the mouse with the Inste test software. The Inste test software can be the Inste InstantTester[V1.2.3] software.
[0049] Step 2: Use the distance sensor to fix the mouse to move when the Z-Height is 0.8 - 6.0 mm. Under the condition that the theoretical set CPI value of the mouse remains unchanged, at the same time, use the corresponding software and tools to measure the CPI value output by the mouse under different current Z-Height sizes, which is the actual CPI value output by the mouse, and record the corresponding relationship between Z-Height and the actual CPI value output by the mouse.
[0050] Step 3: Use the data tested and recorded in Step 2 to establish a mathematical model: In this model, the ratio relationship between Z-Height and the theoretical set CPI value of the mouse / the actual CPI value output by the mouse can be further obtained, and a mathematical model is established according to the relationship database between the two.
[0051] Step 4: When the mouse moves, use the distance sensor to accurately measure the real-time Z-Height size data of the current mouse movement (only take the valid data of 0.8 - 6 mm), store and transmit the current Z-Height value to the mouse Sensor.
[0052] Step 5: The optical Sensor chip obtains the current Z-Height value and matches it with the mathematical model of Z-Height and the theoretical set CPI value / actual output CPI value of the mouse stored in the Sensor chip to determine the corresponding ratio relationship between the current Z-Height and the theoretical set CPI value / actual output CPI value of the mouse.
[0053] Step 6: The Sensor synchronously adjusts the size of the mouse output CPI value to the theoretical set CPI value of the mouse * (the ratio of the current Z-Height to the theoretical set CPI value / actual output CPI value of the mouse), ultimately making the CPI value output by the mouse at different Z-Heights close to the theoretical set CPI value of the mouse. Among them, the calculation formula for the final mouse output coordinate point value can be expressed by the following formula:
[0054]
[0055] Among them, CPI out is the final mouse output coordinate point value, CPI sd is the theoretical set coordinate point value of the mouse, CPI Z / sj is the actual output coordinate point value of the mouse for the current real-time height difference Z, then represents the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse.
[0056] In another exemplary embodiment of the present application, before step 202, the following steps 301 to 303 are further included.
[0057] Step 301: Determine the theoretical set coordinate point value of the mouse.
[0058] Step 302: Establish the corresponding relationship between the height difference and the actual output coordinate point value of the mouse.
[0059] Step 303: According to the theoretical set coordinate point value of the mouse and the corresponding relationship between the height difference and the actual output coordinate point value of the mouse, determine the mathematical model of the ratio relationship.
[0060] Among them, step 301 specifically includes: when the mouse moves at the height of the default height difference, obtain the actual output coordinate point value of the mouse under the condition of the default height difference; determine the actual output coordinate point value of the mouse under the condition of the default height difference as the theoretical set coordinate point value of the mouse.
[0061] Step 302 specifically includes: when the mouse moves within the set height difference range and the theoretical set coordinate point value of the mouse remains unchanged, obtaining the mouse output coordinate point values under different height difference conditions; establishing the corresponding relationship between the height difference and the actual mouse output coordinate point values according to the mouse output coordinate point values under different height difference conditions. The set height difference range is 0.8 - 6.0 mm.
[0062] In another exemplary embodiment of the present application, the above step 203 specifically includes: obtaining the final mouse output coordinate point value corresponding to the current real-time height difference according to the theoretical set coordinate point value of the mouse and the ratio relationship between the theoretical set coordinate point value of the mouse and the actual mouse output coordinate point value corresponding to the current real-time height difference.
[0063] The present application also provides an application scenario, which applies the above method for controlling the movement of the mouse cursor on the concave-convex surface. Specifically: The method for controlling the movement of the mouse cursor on the concave-convex surface provided in this embodiment can be applied in the mouse cursor control scenario. The mouse cursor control scenario includes a height difference acquisition link, a coordinate point number adjustment link, and a control link; the current real-time height difference enters the coordinate point number adjustment link from the height difference acquisition link, and through a human-machine collaboration method, the corresponding final mouse output coordinate point value is obtained and enters the downstream control link. The method for controlling the movement of the mouse cursor on the concave-convex surface provided in this embodiment belongs to the coordinate point number adjustment link. Specifically, in the process of the coordinate point number adjustment link for the current real-time height difference, the current real-time height difference can be matched with the ratio relationship mathematical model to obtain the ratio relationship between the theoretical set coordinate point value of the mouse and the actual mouse output coordinate point value corresponding to the current real-time height difference, and the mouse output coordinate point value corresponding to the current real-time height difference is adjusted according to the ratio relationship between the theoretical set coordinate point value of the mouse and the actual mouse output coordinate point value corresponding to the current real-time height difference to obtain the final mouse output coordinate point value corresponding to the current real-time height difference.
[0064] The present application can optimize the experience when the mouse moves on the concave-convex surface. Each time the mouse moves the same distance, the cursor moves by basically the same number of pixels. When the mouse moves on different concave-convex surfaces, although the Z-Height is constantly changing, the actually output CPI value also changes synchronously. The user experience is further optimized.
[0065] The present application improves the accuracy of the mouse cursor movement on the concave-convex surface. Through this application, when the user uses the mouse in these scenarios, each time the mouse moves the same distance, the user feels that the distance the mouse pointer moves is the same, and the number of pixels passed by the cursor does not vary much, which will not cause any psychological gap to the user. The cursor is more accurate and the feel is better, further eliminating the discomfort of the user when using the mouse on the concave-convex surface.
[0066] Based on the same inventive concept, an embodiment of the present application further provides a mouse cursor movement control device on a concave-convex surface for implementing the above-mentioned mouse cursor movement control method on a concave-convex surface. The solution provided by this device to solve the problem is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the mouse cursor movement control device on a concave-convex surface provided below can refer to the limitations on the mouse cursor movement control method in the above text, and will not be repeated here.
[0067] In an exemplary embodiment, as Figure 4 shown, a mouse cursor movement control device on a concave-convex surface is provided, including the following modules:
[0068] The current real-time height difference acquisition module T1 is used to acquire the current real-time height difference when the mouse moves; the height difference is the height difference from the lens reference plane to the tracking surface;
[0069] The ratio determination module T2 is used to match the current real-time height difference with the ratio relationship mathematical model to obtain the ratio relationship between the mouse theoretical set coordinate point value corresponding to the current real-time height difference and the mouse actual output coordinate point value; the ratio relationship mathematical model is the mathematical model of the ratio relationship between the mouse theoretical set coordinate point value corresponding to the height difference and the mouse actual output coordinate point value; the number of coordinate points is the number of coordinate points fed back per inch in the dynamic movement output when the optical mouse moves;
[0070] The number of coordinate points adjustment module T3 is used to adjust the mouse output coordinate point value corresponding to the current real-time height difference according to the ratio relationship between the mouse theoretical set coordinate point value corresponding to the current real-time height difference and the mouse actual output coordinate point value to obtain the final mouse output coordinate point value corresponding to the current real-time height difference.
[0071] In an exemplary embodiment, a computer device is provided. This computer device can be a server or a terminal, and its internal structure diagram can be as Figure 5As shown in the figure. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store coordinate point number adjustment data. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a method for controlling the movement of a mouse cursor on a concave-convex surface.
[0072] Those skilled in the art can understand that Figure 5 the structure shown in the figure is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different component layout.
[0073] In an exemplary embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.
[0074] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0075] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data that have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of the relevant data need to comply with the relevant regulations.
[0076] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memories can include read-only memory (ROM), magnetic tapes, floppy disks, flash memories, optical memories, high-density embedded non-volatile memories, resistive random-access memories (ReRAMs), magnetoresistive random-access memories (MRAMs), ferroelectric random-access memories (FRAMs), phase change memories (PCMs), graphene memories, etc. Volatile memories can include random access memory (RAM) or external cache memories, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0077] The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logics, data processing logics based on quantum computing, etc., without limitation.
[0078] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity in description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0079] In this article, specific examples are used to elaborate on the principles and implementation manners of the present application. The descriptions of the above embodiments are only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A method for controlling the movement of a mouse cursor on a concave-convex surface, characterized in that, The method for controlling the movement of the mouse cursor on a concave-convex surface includes: Obtaining the current real-time height difference when the mouse moves; the height difference is the height difference from the lens reference plane to the tracking surface; Matching the current real-time height difference with the ratio relationship mathematical model to obtain the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse; the ratio relationship mathematical model is the mathematical model of the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the height difference and the actual output coordinate point value of the mouse; the number of coordinate points is the number of coordinate points fed back per inch in the dynamic movement output when the optical mouse moves; Adjusting the mouse output coordinate point value corresponding to the current real-time height difference according to the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse to obtain the final mouse output coordinate point value corresponding to the current real-time height difference.
2. The method for controlling the movement of a mouse cursor on a concave-convex surface according to claim 1, wherein, Before matching the current real-time height difference with the ratio relationship mathematical model to obtain the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse, the method for controlling the movement of the mouse cursor on a concave-convex surface further includes: Determining the theoretical set coordinate point value of the mouse; Establishing the correspondence relationship between the height difference and the actual output coordinate point value of the mouse; Determining the ratio relationship mathematical model according to the theoretical set coordinate point value of the mouse and the correspondence relationship between the height difference and the actual output coordinate point value of the mouse.
3. The method for controlling the movement of a mouse cursor on a concave-convex surface according to claim 2, wherein Determining the theoretical set coordinate point value of the mouse specifically includes: When the mouse moves at the height of the default height difference, obtaining the actual output coordinate point value of the mouse under the condition of the default height difference; Determining the actual output coordinate point value of the mouse under the condition of the default height difference as the theoretical set coordinate point value of the mouse.
4. The method for controlling the movement of a mouse cursor on a concave-convex surface according to claim 2, characterized in that, Establishing the correspondence relationship between the height difference and the actual output coordinate point value of the mouse specifically includes: When the mouse moves within the set height difference range and the theoretical set coordinate point value of the mouse remains unchanged, obtaining the mouse output coordinate point values of the mouse under different height difference conditions; Establishing the correspondence relationship between the height difference and the actual output coordinate point value of the mouse according to the mouse output coordinate point values of the mouse under different height difference conditions.
5. The method for controlling the movement of a mouse cursor on a concave-convex surface according to claim 3, wherein The set height difference range is 0.8 - 6.0 mm.
6. The method for controlling the movement of a mouse cursor on a concave-convex surface according to claim 1, wherein The current real-time height difference is measured by a distance sensor.
7. The method for controlling the movement of a mouse cursor on a concave-convex surface according to claim 1, characterized in that Adjusting the mouse output coordinate point value corresponding to the current real-time height difference according to the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse specifically includes: Obtaining the final mouse output coordinate point value corresponding to the current real-time height difference according to the theoretical set coordinate point value of the mouse and the ratio relationship between the theoretical set coordinate point value of the mouse corresponding to the current real-time height difference and the actual output coordinate point value of the mouse.
8. A mouse cursor movement control device on a concave-convex surface, characterized in that, The device for controlling the movement of the mouse cursor on a concave-convex surface includes: A current real-time height difference acquisition module for obtaining the current real-time height difference when the mouse moves; the height difference is the height difference from the lens reference plane to the tracking surface; A ratio determination module, configured to match the current real-time height difference with a mathematical model of a ratio relationship, so as to obtain a ratio relationship between the numerical value of the theoretical set coordinate point of the mouse corresponding to the current real-time height difference and the numerical value of the actual output coordinate point of the mouse; the mathematical model of the ratio relationship is a mathematical model of the ratio relationship between the numerical value of the theoretical set coordinate point of the mouse corresponding to the height difference and the numerical value of the actual output coordinate point of the mouse; the number of coordinate points is the number of coordinate points fed back per inch in the dynamic movement output when the optical mouse moves. A coordinate point number adjustment module, configured to adjust the numerical value of the output coordinate point of the mouse corresponding to the current real-time height difference according to the ratio relationship between the numerical value of the theoretical set coordinate point of the mouse corresponding to the current real-time height difference and the numerical value of the actual output coordinate point of the mouse, so as to obtain the final output coordinate point numerical value of the mouse corresponding to the current real-time height difference.
9. A computer device, comprising: A memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the computer program to implement the method for controlling the movement of the mouse cursor on a concave-convex surface according to any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the method for controlling the movement of the mouse cursor on a concave-convex surface according to any one of claims 1-7.