CN117806475A - Mouse correction method, device, storage medium and computer equipment - Google Patents

Mouse correction method, device, storage medium and computer equipment Download PDF

Info

Publication number
CN117806475A
CN117806475A CN202311847573.3A CN202311847573A CN117806475A CN 117806475 A CN117806475 A CN 117806475A CN 202311847573 A CN202311847573 A CN 202311847573A CN 117806475 A CN117806475 A CN 117806475A
Authority
CN
China
Prior art keywords
mouse
display interface
receiving end
image data
sending
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.)
Pending
Application number
CN202311847573.3A
Other languages
Chinese (zh)
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.)
Vtron Group Co Ltd
Original Assignee
Vtron Group Co 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 Vtron Group Co Ltd filed Critical Vtron Group Co Ltd
Priority to CN202311847573.3A priority Critical patent/CN117806475A/en
Publication of CN117806475A publication Critical patent/CN117806475A/en
Pending legal-status Critical Current

Links

Landscapes

  • Position Input By Displaying (AREA)

Abstract

The application provides a mouse correction method, a mouse correction device, a storage medium and computer equipment. The method comprises the following steps: moving the mouse pointer to any vertex of the display interface of the receiving end, and indicating the sending end to move the mouse pointer to the vertex corresponding to the display interface of the receiving end; acquiring first image data of a display interface of a sending end when the sending end moves a mouse pointer to a vertex corresponding to the display interface of a receiving end; moving the mouse pointer on the display interface of the receiving end by N moving units, and indicating the transmitting end to move the mouse pointer by N moving units; acquiring second image data of a display interface of the transmitting end after the transmitting end moves the mouse pointer; calculating the pixel distance of the movement of the mouse pointer on the display interface of the transmitting end based on the first image data and the second image data; and calculating the ratio of the pixel distance to N moving units to obtain a correction coefficient, and calculating and updating a new mouse speed coefficient based on the correction coefficient. The method and the device can synchronize the mouse moving distance of the receiving end and the sending end.

Description

Mouse correction method, device, storage medium and computer equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and apparatus for correcting a mouse, a storage medium, and a computer device.
Background
The seat system is a system for separating an operation end from a computer host, and is divided into a transmitting end device and a receiving end device, wherein the transmitting end device is connected with the computer and is used for collecting audio and video image data of the computer and reversely transmitting USB mouse messages to the computer, and the receiving end device is connected with a display and the mouse devices and is used for presenting the audio and video image data collected by the transmitting end device and simultaneously transmitting the mouse messages to the transmitting end device. The transmission of the mouse message is an important technology in the seat system, the receiving end device collects the actions of the keyboard and the mouse and sends the actions to the sending end device through the network, and the sending end device simulates a USB device and then sends the mouse message to the connected host computer. When the mouse connected with the receiving end device moves, the receiving end device sends an instruction to the sending end device to enable the receiving end device to simulate the mouse to move for a certain distance.
However, since the movement speed parameters of the pointer of the controlled computer host are affected between the sending end device and the receiving end device, the movement distance of the mouse on the sending end device and the movement distance of the mouse on the receiving end device are different, and the control of the mouse is affected.
Disclosure of Invention
The embodiment of the application provides a mouse correction method, a device, a storage medium and computer equipment, which can correct mice at a receiving end and a transmitting end of a seat system, so that the mouse moving distance of the receiving end and the transmitting end is synchronous.
In a first aspect, the present application provides a mouse correction method applied to a receiving end of a seat system, where the method includes:
when the triggering condition is met, the mouse pointer is moved to any vertex of a display interface of the receiving end, and a first mouse instruction is sent to the sending end; the sending end is used for responding to the first mouse instruction to move a mouse pointer to the vertex corresponding to the display interface of the sending end and the display interface of the receiving end;
acquiring first image data of a display interface of the transmitting end when the transmitting end moves the mouse pointer to a vertex corresponding to the display interface of the receiving end;
moving the mouse pointer on the display interface of the receiving end by N moving units, and sending a second mouse instruction to the sending end; the sending end is used for responding to the second mouse instruction to move the mouse pointer on the display interface of the sending end by N moving units, wherein N is a positive integer;
Acquiring second image data of a display interface of the transmitting end after the transmitting end moves the mouse pointer;
calculating the pixel distance of the mouse pointer moving on the display interface of the transmitting end based on the first image data and the second image data;
calculating the ratio of the pixel distance to N moving units to obtain a correction coefficient;
calculating the product of the correction coefficient and the mouse speed coefficient of the receiving end to obtain a new mouse speed coefficient, and updating the mouse speed coefficient of the receiving end; the receiving end is used for correcting the movement amount of the mouse movement instruction based on the mouse speed coefficient when the mouse movement instruction sent by the sending end is received, and then obtaining the actual movement amount of the mouse pointer.
In one embodiment, before the step of obtaining the second image data of the display interface of the sending end after the sending end moves the mouse pointer is performed, the method further includes:
transmitting a desktop display instruction to the transmitting end; the sending end is used for responding to the desktop display instruction to minimize each application window of the computer desktop.
In one embodiment, the triggering condition includes:
A mouse correction request is received and,
or (b)
And recognizing that the stationary time of the mouse pointer reaches a preset time threshold.
In one embodiment, the calculating, based on the first image data and the second image data, a pixel distance of the mouse pointer moving on the sending end display interface includes:
comparing the pixel value of each pixel point in the first image data with the pixel value of the corresponding pixel point in the second image data, and identifying a first coordinate where the mouse pointer is located in the first image data and a second coordinate where the mouse pointer is located in the second image data;
a pixel distance for movement of the mouse pointer is calculated based on the first coordinate and the second coordinate.
In a second aspect, the present application provides a mouse correction method applied to a transmitting end of a seat system, where the method includes:
responding to a first mouse instruction sent by a receiving end, and moving a mouse pointer to a vertex corresponding to a display interface of the sending end and a display interface of the receiving end; the receiving end is used for moving the mouse pointer to any vertex of a display interface of the receiving end when the triggering condition is met, and sending the first mouse instruction;
The method comprises the steps that an image of a vertex, corresponding to a display interface of a sending end and a display interface of a receiving end, of the mouse pointer is moved to be stored as first image data;
transmitting the first image data to the receiving end;
responding to a second mouse instruction sent by the receiving end, and moving the mouse pointer by N moving units on the display interface of the sending end, wherein N is a positive integer; the receiving end is used for moving the mouse pointer N moving units on the display interface of the receiving end after the first image data are acquired, and sending the second mouse instruction;
storing the images of the N moving units of the mouse pointer moving on the display interface of the transmitting end as second image data;
transmitting the second image data to the receiving end; the receiving end is used for calculating the pixel distance of the movement of the mouse pointer on the display interface of the sending end based on the first image data and the second image data, and updating the mouse speed coefficient of the receiving end based on the ratio of the pixel distance to N movement units;
the receiving end is used for correcting the movement amount of the mouse movement instruction based on the mouse speed multiplication coefficient when receiving the mouse movement instruction sent by the sending end, and then obtaining the actual movement amount of the mouse pointer.
In one embodiment, the mouse correction method further comprises:
and responding to the desktop display instruction sent by the receiving end, and minimizing each application window of the computer desktop.
In a third aspect, the present application provides a mouse correction device applied to a receiving end of a seat system, where the device includes:
the first movement control module moves the mouse pointer to any vertex of the display interface of the receiving end when the triggering condition is met, and sends a first mouse instruction to the sending end; the sending end is used for responding to the first mouse instruction to move a mouse pointer to the vertex corresponding to the display interface of the sending end and the display interface of the receiving end;
the first acquisition module is used for acquiring first image data of the display interface of the sending end when the sending end moves the mouse pointer to the vertex corresponding to the display interface of the receiving end;
the second movement control module is used for moving the mouse pointer on the display interface of the receiving end by N movement units and sending a second mouse instruction to the sending end; the sending end is used for responding to the second mouse instruction to move the mouse pointer on the display interface of the sending end by N moving units, wherein N is a positive integer;
The second acquisition module is used for acquiring second image data of the display interface of the sending end after the sending end moves the mouse pointer;
the first calculation module is used for calculating the pixel distance of the mouse pointer moving on the display interface of the transmitting end based on the first image data and the second image data;
the second calculation module is used for calculating the ratio of the pixel distance to N moving units to obtain a correction coefficient;
the coefficient updating module is used for calculating the product of the correction coefficient and the mouse speed coefficient of the receiving end to obtain a new mouse speed coefficient and updating the mouse speed coefficient of the receiving end; the receiving end is used for correcting the movement amount of the mouse movement instruction based on the mouse speed coefficient when the mouse movement instruction sent by the sending end is received, and then obtaining the actual movement amount of the mouse pointer.
In a fourth aspect, the present application provides a mouse correction device applied to a transmitting end of a seat system, where the device includes:
the first response module is used for responding to a first mouse instruction sent by the receiving end and moving a mouse pointer to the vertex corresponding to the display interface of the sending end and the display interface of the receiving end; the receiving end is used for moving the mouse pointer to any vertex of a display interface of the receiving end when the triggering condition is met, and sending the first mouse instruction;
The first image storage module is used for storing the image of the vertex corresponding to the display interface of the sending end and the display interface of the receiving end, which is moved to the mouse pointer, as first image data;
the first sending module is used for sending the first image data to the receiving end;
the second response module is used for responding to a second mouse instruction sent by the receiving end and moving the mouse pointer on the display interface of the sending end by N moving units, wherein N is a positive integer; the receiving end is used for moving the mouse pointer N moving units on the display interface of the receiving end after the first image data are acquired, and sending the second mouse instruction;
the second image storage module is used for storing the images of the N moving units of the mouse pointer moving on the display interface of the sending end as second image data;
the second sending module is used for sending the second image data to the receiving end; the receiving end is used for calculating the pixel distance of the movement of the mouse pointer on the display interface of the sending end based on the first image data and the second image data, and updating the mouse speed coefficient of the receiving end based on the ratio of the pixel distance to N movement units;
The receiving end is used for correcting the movement amount of the mouse movement instruction based on the mouse speed multiplication coefficient when receiving the mouse movement instruction sent by the sending end, and then obtaining the actual movement amount of the mouse pointer.
In a fifth aspect, the present application provides a storage medium having stored therein computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of a mouse correction method as described in any of the above.
In a sixth aspect, the present application provides a computer device comprising: one or more processors, and memory;
the memory has stored therein computer readable instructions which, when executed by the one or more processors, perform the steps of the mouse correction method as described in any of the above.
From the above technical solutions, the embodiments of the present application have the following advantages:
according to the mouse correction method, the device, the storage medium and the computer equipment, when trigger conditions are met, the mouse pointers of the receiving end display interface and the sending end display interface are moved to corresponding peaks, first image data of the sending end display interface at the moment are obtained, the mouse pointers of the receiving end display interface and the sending end display interface are respectively moved by N moving units, second image data of the sending end display interface after movement are obtained, pixel distances of the mouse pointers moving on the sending end display interface are calculated according to the first image data and the second image data, correction coefficients are obtained based on the ratio of the pixel distances to the N moving units, the mouse speed coefficient of the receiving end is corrected according to the correction coefficients, the receiving end corrects the movement amount according to the mouse speed coefficient when a mouse movement instruction sent by the sending end is received subsequently to obtain actual movement amount, and the receiving end and the sending end is moved according to the actual movement amount, so that the mouse movement distances of the receiving end and the sending end are synchronous.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a schematic view of an application environment of a mouse correction method according to an embodiment;
FIG. 2 is a flowchart of a mouse correction method applied to a receiving end in one embodiment;
FIG. 3 is a flowchart of a mouse correction method applied to a sender in one embodiment;
FIG. 4 is a block diagram illustrating a mouse correction device applied to a receiving end according to an embodiment;
FIG. 5 is a block diagram illustrating a mouse correction device applied to a transmitting end according to an embodiment;
FIG. 6 is an internal block diagram of a computer device, in one embodiment.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
FIG. 1 is a schematic diagram of an application environment of a mouse correction method in one embodiment. As shown in fig. 1, the seat system 110 includes a receiving end 111, a transmitting end 112, and a switch 113, the receiving end 111 is used for accessing the display device 130 and the mouse device 120, the transmitting end 112 is used for accessing the host computer 140, and the receiving end 111 and the transmitting end 112 perform network communication via the switch 113.
As shown in fig. 2, the embodiment of the present application provides a mouse correction method applied to a receiving end of an agent system, where the method includes steps S201 to S207, where:
step S201, when the triggering condition is met, the mouse pointer is moved to any vertex of the display interface of the receiving end, and a first mouse instruction is sent to the sending end.
The first mouse instruction is used for instructing the sending end to move the mouse pointer to the vertex corresponding to the display interface of the sending end and the display interface of the receiving end. The triggering condition is a preset condition for triggering mouse correction. Because the mouse moving units of the receiving end and the sending end may have differences, the mouse pointer is moved to any vertex of the display interface to realize the alignment of the starting point. For example, if the mouse pointer at the receiving end moves to the top left corner vertex, the mouse pointer at the transmitting end moves to the corresponding vertex, which is also the top left corner vertex.
In one embodiment, the triggering condition includes: and receiving a mouse correction request, or recognizing that the rest time of the mouse pointer reaches a preset time threshold. The mouse correction request refers to a request initiated by a user to correct a mouse. When the stationary time of the mouse pointer is recognized to reach a preset time threshold, the user is considered to be not using the mouse or using the computer at the moment, and the correction does not influence the user at the moment, so that the correction can be automatically triggered.
Step S202, obtaining first image data of a display interface of a sending end when the sending end moves a mouse pointer to a vertex corresponding to the display interface of a receiving end.
The first image data is a display interface image stored by the sending end when the mouse pointer of the first image data moves to the position of the display interface of the sending end corresponding to the vertex of the mouse pointer of the receiving end.
Step S203, the mouse pointer is moved N moving units on the display interface of the receiving end, and a second mouse instruction is sent to the sending end.
The sending end is used for responding to the second mouse instruction to move the mouse pointer on the display interface of the sending end by N moving units, wherein N is a positive integer. The movement unit is determined according to the movement unit defined by the transmitting end and the receiving end, and can be a pixel unit or a coordinate unit. In one embodiment, the mobile units of the receiving end and the transmitting end are not the same. In another embodiment, the mobile units of the receiving end and the transmitting end are the same.
It will be appreciated that the direction of movement of the mouse pointer may be the same for the sender and receiver, and the distance of movement may be different. That is, if the receiving end moves N units in the negative axis direction of the coordinate axis Y, the transmitting end also moves N units in the negative axis direction of the coordinate axis Y.
Step S204, obtaining second image data of the display interface of the sending end after the sending end moves the mouse pointer.
The second image data is a display interface image stored by the sending end after the mouse pointer moves by N moving units.
Step S205, calculating a pixel distance of the mouse pointer moving on the transmitting end display interface based on the first image data and the second image data.
For the receiving end, it is necessary to know the movement distance of the mouse pointer at the transmitting end before and after moving N movement units, and further convert the movement distance with the movement distance of the receiving end to obtain the change relationship between the movement distances of the receiving end and the transmitting end. In this embodiment, the moving pixel distance is calculated by respectively identifying the positions of the mouse pointer according to the first image data and the second image data before and after the movement of the mouse pointer at the transmitting end.
In step S206, the ratio of the pixel distance to N moving units is calculated to obtain a correction coefficient.
The calculation proportion in the step is not required to be unified, calculation is directly carried out according to the value of the pixel distance and the value of the moving unit, and the calculation result is used as a correction coefficient. The correction coefficient can reflect the ratio of the current mobile unit of the receiving end to the mobile unit of the transmitting end.
Step S207, calculating the product of the correction coefficient and the mouse speed coefficient of the receiving end to obtain a new mouse speed coefficient, and updating the mouse speed coefficient of the receiving end.
The receiving end is used for correcting the movement amount of the mouse movement instruction based on the mouse speed coefficient to obtain the actual movement amount of the mouse pointer when the mouse movement instruction sent by the sending end is received.
Because the receiving end is set with the mouse speed-doubling coefficient, in the correction method provided by the application, the mouse moving distance of the receiving end and the transmitting end can be disregarded by the original mouse speed-doubling coefficient, even if the original mouse speed-doubling coefficient is not 1, the correction coefficient can reflect the proportion of the moving unit of the current receiving end to the moving unit of the transmitting end, therefore, the correction coefficient is directly utilized to correct the mouse speed-doubling coefficient, the product of the two is calculated to obtain a new mouse speed-doubling coefficient, and the mouse speed-doubling coefficient of the receiving end is updated.
According to the mouse correction method, when trigger conditions are met, the mouse pointers of the display interface of the receiving end and the display interface of the sending end are moved to corresponding peaks, first image data of the display interface of the sending end at the moment is obtained, then the mouse pointers of the display interface of the receiving end and the display interface of the sending end are respectively moved by N moving units, second image data of the display interface of the sending end after movement is obtained, the pixel distance of the movement of the mouse pointer on the display interface of the sending end is calculated according to the first image data and the second image data, correction coefficients are obtained based on the ratio of the pixel distance to the N moving units, the speed coefficient of the mouse of the receiving end is corrected according to the correction coefficients, the movement quantity is corrected according to the speed coefficient of the mouse when a mouse movement instruction sent by the sending end is received later, the actual movement quantity is obtained, and the movement distances of the mouse of the receiving end and the sending end are synchronized according to the actual movement quantity.
In one embodiment, before executing the obtaining the second image data of the display interface of the sending end after the sending end moves the mouse pointer, the method further includes:
transmitting a desktop display instruction to a transmitting end; the sending end is used for responding to the desktop display instruction to minimize each application window of the computer desktop.
In the embodiment, when the mouse correction is performed, all application windows are minimized through controlling the sending end, the desktop is displayed, elements in the display interface are simplified, the calculated amount is reduced, and the accuracy of the mouse pointer identification is improved.
In one embodiment, the calculating, based on the first image data and the second image data, a pixel distance of the movement of the mouse pointer on the display interface of the transmitting end includes:
comparing the pixel value of each pixel point in the first image data with the pixel value of the corresponding pixel point in the second image data, and identifying a first coordinate where a mouse pointer in the first image data is located and a second coordinate where the mouse pointer in the second image data is located;
a pixel distance for movement of the mouse pointer is calculated based on the first coordinate and the second coordinate.
In this embodiment, the front and rear coordinates of the mouse pointer are identified by changing the pixel values before and after the movement of the mouse pointer, and since the first image data and the second image data are both display interface image data of the transmitting end, the pixel point where the pixel values are different in the two image data is the position of the mouse pointer. Since the mouse pointer may occupy more than one pixel point and may be a pixel region in the display interface, in some embodiments, a region formed by pixel points where differences are identified may be used as a region where the mouse pointer is located, and coordinates of one of the pixel points or coordinates of a central pixel point in the region may be used as coordinates of the mouse pointer.
As shown in fig. 3, the embodiment of the present application further provides a mouse correction method applied to a transmitting end of an agent system, where the method includes steps S301 to S306:
step S301, in response to a first mouse command sent by the receiving end, the mouse pointer is moved to a vertex corresponding to the display interface of the sending end and the display interface of the receiving end.
And the receiving end is used for moving the mouse pointer to any vertex of the display interface of the receiving end when the triggering condition is met, and sending a first mouse instruction.
The first mouse instruction is used for instructing the sending end to move the mouse pointer to the vertex corresponding to the display interface of the sending end and the display interface of the receiving end. The triggering condition is a preset condition for triggering mouse correction. Because the mouse moving units of the receiving end and the sending end may have differences, the mouse pointer is moved to any vertex of the display interface to realize the alignment of the starting point. For example, if the mouse pointer at the receiving end moves to the top left corner vertex, the mouse pointer at the transmitting end moves to the corresponding vertex, which is also the top left corner vertex.
In step S302, an image of the vertex of the sending end display interface corresponding to the receiving end display interface, which is moved by the mouse pointer, is saved as the first image data.
The first image data is a display interface image stored by the sending end when the mouse pointer of the first image data moves to the position of the display interface of the sending end corresponding to the vertex of the mouse pointer of the receiving end.
Step S303, the first image data is sent to the receiving end.
Step S304, responding to a second mouse instruction sent by the receiving end, and moving the mouse pointer on the display interface of the sending end by N moving units.
Wherein N is a positive integer. The receiving end is used for moving the mouse pointer on the display interface of the receiving end by N moving units after the first image data are acquired, and sending a second mouse instruction.
The movement unit is determined according to the movement unit defined by the transmitting end and the receiving end, and can be a pixel unit or a coordinate unit. In one embodiment, the mobile units of the receiving end and the transmitting end are not the same. In another embodiment, the mobile units of the receiving end and the transmitting end are the same.
It will be appreciated that the direction of movement of the mouse pointer may be the same for the sender and receiver, and the distance of movement may be different. That is, if the receiving end moves N units in the negative axis direction of the coordinate axis Y, the transmitting end also moves N units in the negative axis direction of the coordinate axis Y.
In step S305, an image in which the mouse pointer is moved N moving units on the transmitting-end display interface is saved as second image data.
The second image data is a display interface image stored by the sending end after the mouse pointer moves by N moving units.
Step S306, the second image data is sent to the receiving end.
The receiving end is used for calculating the pixel distance of the movement of the mouse pointer on the display interface of the sending end based on the first image data and the second image data, and updating the mouse speed coefficient of the receiving end based on the ratio of the pixel distance to N movement units; the receiving end is used for correcting the movement amount of the mouse movement instruction based on the mouse speed coefficient to obtain the actual movement amount of the mouse pointer when the mouse movement instruction sent by the sending end is received.
For the receiving end, it is necessary to know the movement distance of the mouse pointer at the transmitting end before and after moving N movement units, and further convert the movement distance with the movement distance of the receiving end to obtain the change relationship between the movement distances of the receiving end and the transmitting end. In this embodiment, the moving pixel distance is calculated by respectively identifying the positions of the mouse pointer according to the first image data and the second image data before and after the movement of the mouse pointer at the transmitting end. Because the receiving end is set with the mouse speed-doubling coefficient, in the correction method provided by the application, the mouse moving distance of the receiving end and the transmitting end can be disregarded by the original mouse speed-doubling coefficient, even if the original mouse speed-doubling coefficient is not 1, the correction coefficient can reflect the proportion of the moving unit of the current receiving end to the moving unit of the transmitting end, therefore, the correction coefficient is directly utilized to correct the mouse speed-doubling coefficient, the product of the two is calculated to obtain a new mouse speed-doubling coefficient, and the mouse speed-doubling coefficient of the receiving end is updated.
In one embodiment, the mouse correction method further comprises:
and responding to a desktop display instruction sent by the receiving end, and minimizing each application window of the computer desktop.
In this embodiment, when performing mouse correction, the transmitting end minimizes all application windows in response to the desktop display instruction sent by the receiving end, displays the desktop, simplifies elements in the display interface, reduces the calculation amount of the receiving end, and improves the accuracy of the receiving end in recognizing the mouse pointer in the first image data and the second image data.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
The mouse correction device provided in the embodiments of the present application will be described below, and the mouse correction device described below and the mouse correction method described above may be referred to correspondingly.
As shown in fig. 4, an embodiment of the present application provides a mouse correction device 400, which is applied to a receiving end of an agent system, and the device includes:
the first movement control module 401 moves the mouse pointer to any vertex of the display interface of the receiving end when the triggering condition is met, and sends a first mouse instruction to the sending end; the sending end is used for responding to the first mouse instruction to move the mouse pointer to the vertex corresponding to the display interface of the sending end and the display interface of the receiving end;
a first obtaining module 402, configured to obtain first image data of a display interface of a sending end when the sending end moves a mouse pointer to a vertex corresponding to the display interface of a receiving end;
the second movement control module 403 is configured to move the mouse pointer by N movement units on the display interface of the receiving end, and send a second mouse instruction to the sending end; the sending end is used for responding to a second mouse instruction to move the mouse pointer on the display interface of the sending end by N moving units, wherein N is a positive integer;
a second obtaining module 404, configured to obtain second image data of the display interface of the sending end after the sending end moves the mouse pointer;
A first calculating module 405, configured to calculate a pixel distance that the mouse pointer moves on the sending end display interface based on the first image data and the second image data;
a second calculating module 406, configured to calculate a ratio of the pixel distance to the N moving units to obtain a correction coefficient;
the coefficient updating module 407 is configured to calculate a product of the correction coefficient and the mouse speed coefficient of the receiving end to obtain a new mouse speed coefficient, and update the mouse speed coefficient of the receiving end; the receiving end is used for correcting the movement amount of the mouse movement instruction based on the mouse speed coefficient to obtain the actual movement amount of the mouse pointer when the mouse movement instruction sent by the sending end is received.
In one embodiment, the mouse correction device further includes:
the desktop control module is used for sending desktop display instructions to the sending end; the sending end is used for responding to the desktop display instruction to minimize each application window of the computer desktop.
In one embodiment, the first computing module is configured to perform the steps of:
comparing the pixel value of each pixel point in the first image data with the pixel value of the corresponding pixel point in the second image data, and identifying a first coordinate where the mouse pointer is located in the first image data and a second coordinate where the mouse pointer is located in the second image data;
A pixel distance for movement of the mouse pointer is calculated based on the first coordinate and the second coordinate.
As shown in fig. 5, an embodiment of the present application provides a mouse correction device 500, which is applied to a transmitting end of an agent system, and the device includes:
the first response module 501 is configured to respond to a first mouse instruction sent by the receiving end, and move a mouse pointer to a vertex corresponding to the display interface of the sending end and the display interface of the receiving end; the receiving end is used for moving the mouse pointer to any vertex of a display interface of the receiving end when the triggering condition is met, and sending the first mouse instruction;
a first image saving module 502, configured to save, as first image data, an image of a vertex of the sending end display interface corresponding to the receiving end display interface, where the mouse pointer is moved to the vertex;
a first sending module 503, configured to send the first image data to the receiving end;
a second response module 504, configured to respond to a second mouse instruction sent by the receiving end, and move the mouse pointer by N moving units on the display interface of the sending end, where N is a positive integer; the receiving end is used for moving the mouse pointer N moving units on the display interface of the receiving end after the first image data are acquired, and sending the second mouse instruction;
A second image saving module 505, configured to save, as second image data, an image of the mouse pointer moving N moving units on the sender display interface;
a second sending module 506, configured to send the second image data to the receiving end; the receiving end is used for calculating the pixel distance of the movement of the mouse pointer on the display interface of the sending end based on the first image data and the second image data, and updating the mouse speed coefficient of the receiving end based on the ratio of the pixel distance to N movement units;
the receiving end is used for correcting the movement amount of the mouse movement instruction based on the mouse speed multiplication coefficient when receiving the mouse movement instruction sent by the sending end, and then obtaining the actual movement amount of the mouse pointer.
In one embodiment, the mouse correction device further includes:
and the desktop module is used for responding to the desktop display instruction sent by the receiving end and minimizing each application window of the computer desktop.
The above-mentioned division of the respective modules in the mouse correction device is merely for illustration, and in other embodiments, the mouse correction device may be divided into different modules as needed to complete all or part of the functions of the mouse correction device. The respective modules in the above-described mouse correction device may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, the present application also provides a storage medium having stored therein computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the mouse correction method as described in any of the embodiments above.
In one embodiment, the present application further provides a computer device having computer readable instructions stored therein, the one or more processors, when executing the computer readable instructions, performing the steps of the mouse correction method as described in any of the embodiments above.
In one embodiment, a computer device is provided, which is a terminal, and the internal structure of which may be shown in fig. 6. The computer device includes a processor, a memory, and a communication interface connected by a system bus. Wherein the processor of the computer device is configured 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 and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal. The computer program is executed by a processor to implement a mouse correction method.
It will be appreciated by those skilled in the art that the structure shown in fig. 6 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "plurality" is at least two, such as two, three, etc., unless explicitly defined otherwise.
In the present specification, each embodiment is described in a progressive manner, and each embodiment focuses on the difference from other embodiments, and may be combined according to needs, and the same similar parts may be referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A mouse correction method, applied to a receiving end of an agent system, the method comprising:
when the triggering condition is met, the mouse pointer is moved to any vertex of a display interface of the receiving end, and a first mouse instruction is sent to the sending end; the sending end is used for responding to the first mouse instruction to move a mouse pointer to the vertex corresponding to the display interface of the sending end and the display interface of the receiving end;
Acquiring first image data of a display interface of the transmitting end when the transmitting end moves the mouse pointer to a vertex corresponding to the display interface of the receiving end;
moving the mouse pointer on the display interface of the receiving end by N moving units, and sending a second mouse instruction to the sending end; the sending end is used for responding to the second mouse instruction to move the mouse pointer on the display interface of the sending end by N moving units, wherein N is a positive integer;
acquiring second image data of a display interface of the transmitting end after the transmitting end moves the mouse pointer;
calculating the pixel distance of the mouse pointer moving on the display interface of the transmitting end based on the first image data and the second image data;
calculating the ratio of the pixel distance to N moving units to obtain a correction coefficient;
calculating the product of the correction coefficient and the mouse speed coefficient of the receiving end to obtain a new mouse speed coefficient, and updating the mouse speed coefficient of the receiving end; the receiving end is used for correcting the movement amount of the mouse movement instruction based on the mouse speed coefficient when the mouse movement instruction sent by the sending end is received, and then obtaining the actual movement amount of the mouse pointer.
2. The mouse correction method of claim 1, wherein before performing the obtaining the second image data of the sender display interface after the sender moves the mouse pointer, the method further comprises:
transmitting a desktop display instruction to the transmitting end; the sending end is used for responding to the desktop display instruction to minimize each application window of the computer desktop.
3. The mouse correction method according to claim 1, wherein the trigger condition includes:
a mouse correction request is received and,
or (b)
And recognizing that the stationary time of the mouse pointer reaches a preset time threshold.
4. The mouse correction method according to any one of claims 1 to 3, wherein the calculating a pixel distance by which the mouse pointer moves at the transmitting-side display interface based on the first image data and the second image data includes:
comparing the pixel value of each pixel point in the first image data with the pixel value of the corresponding pixel point in the second image data, and identifying a first coordinate where the mouse pointer is located in the first image data and a second coordinate where the mouse pointer is located in the second image data;
A pixel distance for movement of the mouse pointer is calculated based on the first coordinate and the second coordinate.
5. A mouse correction method, characterized in that it is applied to a transmitting end of a seat system, the method comprising:
responding to a first mouse instruction sent by a receiving end, and moving a mouse pointer to a vertex corresponding to a display interface of the sending end and a display interface of the receiving end; the receiving end is used for moving the mouse pointer to any vertex of a display interface of the receiving end when the triggering condition is met, and sending the first mouse instruction;
the method comprises the steps that an image of a vertex, corresponding to a display interface of a sending end and a display interface of a receiving end, of the mouse pointer is moved to be stored as first image data;
transmitting the first image data to the receiving end;
responding to a second mouse instruction sent by the receiving end, and moving the mouse pointer by N moving units on the display interface of the sending end, wherein N is a positive integer; the receiving end is used for moving the mouse pointer N moving units on the display interface of the receiving end after the first image data are acquired, and sending the second mouse instruction;
storing the images of the N moving units of the mouse pointer moving on the display interface of the transmitting end as second image data;
Transmitting the second image data to the receiving end; the receiving end is used for calculating the pixel distance of the movement of the mouse pointer on the display interface of the sending end based on the first image data and the second image data, and updating the mouse speed coefficient of the receiving end based on the ratio of the pixel distance to N movement units;
the receiving end is used for correcting the movement amount of the mouse movement instruction based on the mouse speed multiplication coefficient when receiving the mouse movement instruction sent by the sending end, and then obtaining the actual movement amount of the mouse pointer.
6. The mouse correction method of claim 5, further comprising:
and responding to the desktop display instruction sent by the receiving end, and minimizing each application window of the computer desktop.
7. A mouse correction device for use on a receiving end of a seating system, the device comprising:
the first movement control module moves the mouse pointer to any vertex of the display interface of the receiving end when the triggering condition is met, and sends a first mouse instruction to the sending end; the sending end is used for responding to the first mouse instruction to move a mouse pointer to the vertex corresponding to the display interface of the sending end and the display interface of the receiving end;
The first acquisition module is used for acquiring first image data of the display interface of the sending end when the sending end moves the mouse pointer to the vertex corresponding to the display interface of the receiving end;
the second movement control module is used for moving the mouse pointer on the display interface of the receiving end by N movement units and sending a second mouse instruction to the sending end; the sending end is used for responding to the second mouse instruction to move the mouse pointer on the display interface of the sending end by N moving units, wherein N is a positive integer;
the second acquisition module is used for acquiring second image data of the display interface of the sending end after the sending end moves the mouse pointer;
the first calculation module is used for calculating the pixel distance of the mouse pointer moving on the display interface of the transmitting end based on the first image data and the second image data;
the second calculation module is used for calculating the ratio of the pixel distance to N moving units to obtain a correction coefficient;
the coefficient updating module is used for calculating the product of the correction coefficient and the mouse speed coefficient of the receiving end to obtain a new mouse speed coefficient and updating the mouse speed coefficient of the receiving end; the receiving end is used for correcting the movement amount of the mouse movement instruction based on the mouse speed coefficient when the mouse movement instruction sent by the sending end is received, and then obtaining the actual movement amount of the mouse pointer.
8. A mouse correction device, for use on a sender of a seating system, the device comprising:
the first response module is used for responding to a first mouse instruction sent by the receiving end and moving a mouse pointer to the vertex corresponding to the display interface of the sending end and the display interface of the receiving end; the receiving end is used for moving the mouse pointer to any vertex of a display interface of the receiving end when the triggering condition is met, and sending the first mouse instruction;
the first image storage module is used for storing the image of the vertex corresponding to the display interface of the sending end and the display interface of the receiving end, which is moved to the mouse pointer, as first image data;
the first sending module is used for sending the first image data to the receiving end;
the second response module is used for responding to a second mouse instruction sent by the receiving end and moving the mouse pointer on the display interface of the sending end by N moving units, wherein N is a positive integer; the receiving end is used for moving the mouse pointer N moving units on the display interface of the receiving end after the first image data are acquired, and sending the second mouse instruction;
the second image storage module is used for storing the images of the N moving units of the mouse pointer moving on the display interface of the sending end as second image data;
The second sending module is used for sending the second image data to the receiving end; the receiving end is used for calculating the pixel distance of the movement of the mouse pointer on the display interface of the sending end based on the first image data and the second image data, and updating the mouse speed coefficient of the receiving end based on the ratio of the pixel distance to N movement units;
the receiving end is used for correcting the movement amount of the mouse movement instruction based on the mouse speed multiplication coefficient when receiving the mouse movement instruction sent by the sending end, and then obtaining the actual movement amount of the mouse pointer.
9. A storage medium, characterized by: the storage medium having stored therein computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the mouse correction method of any of claims 1 to 6.
10. A computer device, comprising: one or more processors, and memory;
the memory has stored therein computer readable instructions which, when executed by the one or more processors, perform the steps of the mouse correction method of any of claims 1 to 6.
CN202311847573.3A 2023-12-28 2023-12-28 Mouse correction method, device, storage medium and computer equipment Pending CN117806475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311847573.3A CN117806475A (en) 2023-12-28 2023-12-28 Mouse correction method, device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311847573.3A CN117806475A (en) 2023-12-28 2023-12-28 Mouse correction method, device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN117806475A true CN117806475A (en) 2024-04-02

Family

ID=90427257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311847573.3A Pending CN117806475A (en) 2023-12-28 2023-12-28 Mouse correction method, device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN117806475A (en)

Similar Documents

Publication Publication Date Title
CN109471900B (en) Interaction method and system for chart data custom action data
CN111931097B (en) Information display method and device, electronic equipment and storage medium
BR112016021658B1 (en) METHOD OF PRESENTATION OF CONTENT, METHOD OF PROMOTING MODE OF PRESENTATION OF CONTENT, AND INTELLIGENT TERMINAL
JP2014106681A5 (en)
US20140201662A1 (en) Method for moving interface object and apparatus for supporting movement of interface object
TWI733276B (en) Detector configuration method and device, target detection method and device, electronic equipment, computer readable storage medium and computer program
CN104834597A (en) Method and system for measuring application response duration
WO2023226371A1 (en) Target object interactive reproduction control method and apparatus, device and storage medium
CN114041111A (en) Handwriting drawing method, apparatus, electronic device, medium, and program product
CN110928509A (en) Display control method, display control device, storage medium, and communication terminal
WO2024051639A1 (en) Image processing method, apparatus and device, and storage medium and product
CN108604142B (en) Touch screen device operation method and touch screen device
KR20160015170A (en) Production control support apparatus and production control support method
CN117806475A (en) Mouse correction method, device, storage medium and computer equipment
WO2021068382A1 (en) Multi-window operation control method and apparatus, and device and storage medium
WO2017112121A1 (en) Image processor for wearable device
CN104112056A (en) Method and system for detecting data processing faults
CN112711542A (en) Method for switching test environments of mobile phone client
CN104135666A (en) Interpolation storage method and system for screen image as well as replay method
CN104571791A (en) Information processing method and electronic equipment
CN114115673A (en) Control method of vehicle-mounted screen
CN114092556A (en) Method, apparatus, electronic device, medium for determining human body posture
CN106887030B (en) Animation generation method and device
CN115511779B (en) Image detection method, device, electronic equipment and storage medium
CN116824609B (en) Document format detection method and device and electronic equipment

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