CN112764570A - Touch screen event processing method, device and system - Google Patents
Touch screen event processing method, device and system Download PDFInfo
- Publication number
- CN112764570A CN112764570A CN202011632229.9A CN202011632229A CN112764570A CN 112764570 A CN112764570 A CN 112764570A CN 202011632229 A CN202011632229 A CN 202011632229A CN 112764570 A CN112764570 A CN 112764570A
- Authority
- CN
- China
- Prior art keywords
- data
- touch screen
- event
- edge point
- point data
- 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
Links
- 238000003672 processing method Methods 0.000 title abstract description 23
- 238000005070 sampling Methods 0.000 claims abstract description 46
- 238000000034 method Methods 0.000 claims abstract description 20
- 238000004364 calculation method Methods 0.000 claims description 4
- 230000035945 sensitivity Effects 0.000 abstract description 14
- 238000010586 diagram Methods 0.000 description 18
- 230000005540 biological transmission Effects 0.000 description 15
- 238000000605 extraction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application provides a touch screen event processing method, device and system, relates to the technical field of cloud computing, and can solve the problem that a large number of touch screen events in an Android cloud game are transmitted in a network to influence touch screen sensitivity. The specific technical scheme is as follows: acquiring a touch screen event to obtain event acquisition data, wherein the touch screen event comprises a touch track on a touch screen; sampling an edge value of the event acquisition data to obtain edge point data; and sending the edge point data to a cloud server. The method is used for touch screen event processing.
Description
Technical Field
The application relates to the technical field of cloud computing, in particular to a touch screen event processing method, device and system.
Background
The Android cloud game can be called game on demand, and is an online game technology based on a cloud computing technology. The Android cloud game technology enables a thin client terminal device with relatively limited graphic processing capacity and data computing capacity to run a high-quality Android mobile game. The structural schematic diagram of the cloud game system can be seen in fig. 1, in an Android cloud game scene, a game does not run at a game terminal of a user, but runs in a cloud server, the user can operate and control a VM (Virtual Machine) or a PM (physical Machine) of the Android system running on the cloud server through the game terminal, the cloud server renders the game scene into video and audio streams, the video and audio streams are transmitted to the game terminal of the user through a network, and the video and audio streams are displayed to the user through a display screen. The game terminal of the user does not need to have strong graphic operation and data processing capacity, and only needs to have basic streaming media playing capacity and the capacity of acquiring the input instruction of the player and sending the input instruction to the cloud server.
In the Android cloud game, a touch screen is mostly used for control, specifically, a control event of the touch screen of the game terminal can be collected, and then the collected touch screen event is sent to an Android operating system of a VM or PM running on a remote cloud server through a network and further injected into the cloud game. However, when the method is adopted, a large number of touch screen events in the Android cloud game are transmitted in the network, so that the sensitivity of the touch screen is seriously influenced.
Disclosure of Invention
The embodiment of the application provides a touch screen event processing method, device and system, and can solve the problem that a large number of touch screen events in an Android cloud game are transmitted in a network to influence the sensitivity of a touch screen. The technical scheme is as follows:
according to a first aspect of embodiments of the present application, there is provided a touch screen event processing method, including:
acquiring a touch screen event to obtain event acquisition data, wherein the touch screen event comprises a touch track on a touch screen;
sampling an edge value of the event acquisition data to obtain edge point data;
and sending the edge point data to a cloud server.
By collecting the touch screen events and then sampling the edge values of the obtained event collected data, a part of data which can represent the touch screen events most can be selected from a large amount of event collected data, so that the transmission of the touch screen events in a network is reduced, and the sensitivity of the touch screen is improved.
In one embodiment, the sampling the edge value of the event collection data to obtain edge point data includes:
acquiring data points at two ends of the event acquisition data to obtain a first edge point and a second edge point;
extracting inflection point data in the event acquisition data to obtain at least one third edge point data;
the first edge point, the second edge point, and the at least one third edge point data constitute the edge point data.
In one embodiment, said extracting inflection point data in said event acquisition data comprises:
calculating the slope of any two adjacent data points in the event acquisition data;
judging whether two adjacent slopes are a positive slope and a negative slope;
and if so, determining the data points which participate in the calculation of the two adjacent slopes together as the inflection point data.
In one embodiment, the sampling the edge value of the event collection data to obtain edge point data includes:
determining vertex data in the event acquisition data;
extracting the maximum value and the minimum value of every continuous N data points from every two adjacent vertex data and event acquisition data between the two vertex data, wherein N is an integer greater than or equal to 3;
and forming edge point data by the extracted maximum value and the minimum value.
According to a second aspect of the embodiments of the present application, there is provided a touch screen event processing method, including:
receiving edge point data sent by terminal equipment, wherein the edge point data is obtained by acquiring a touch screen event and sampling an edge value of acquired event acquisition data, and the touch screen event comprises a touch track on a touch screen;
and performing interpolation processing on the edge point data to obtain touch screen event data, wherein the touch screen event data represents a touch track on the touch screen.
The touch screen event collected by the terminal equipment is only transmitted with data which is selected from the event collected data and can represent the touch screen event most in the network transmission process, the transmission of the touch screen event in the network is reduced, and the sensitivity of the touch screen is improved.
In an embodiment, the interpolating the edge point data to obtain touch screen event data includes:
and carrying out interpolation processing on the edge point data according to a linear interpolation principle to obtain touch screen event data.
According to a third aspect of embodiments of the present application, there is provided a touch screen event processing apparatus including:
the data acquisition module is used for acquiring touch screen events to obtain event acquisition data, wherein the touch screen events comprise touch tracks on a touch screen;
the edge value sampling module is used for sampling the edge value of the event acquisition data to obtain edge point data;
and the data sending module is used for sending the edge point data to a cloud server.
The data acquisition module is used for acquiring the touch screen events, the edge value sampling module is used for sampling the edge values of the acquired event acquisition data, and a part of data which can represent the touch screen events most, namely edge point data, can be selected from a large amount of event acquisition data, so that the transmission of the touch screen events in a network is reduced, and the sensitivity of the touch screen is improved.
According to a fourth aspect of embodiments of the present application, there is provided a touch screen event processing apparatus including:
the data receiving module is used for receiving edge point data sent by terminal equipment, the edge point data is obtained by acquiring a touch screen event and sampling an edge value of acquired event acquisition data, and the touch screen event comprises a touch track on a touch screen;
and the data processing module is used for carrying out interpolation processing on the edge point data to obtain touch screen event data, and the touch screen event data represents a touch track on the touch screen.
The touch screen event collected by the terminal equipment is only transmitted with data which is selected from the event collected data and can represent the touch screen event most in the network transmission process, the transmission of the touch screen event in the network is reduced, and the sensitivity of the touch screen is improved.
According to a fifth aspect of the embodiments of the present application, a touch screen event processing system is provided, including a terminal device and a cloud server, where the cloud server includes a virtual machine or a physical machine that is network-connected to the terminal device;
the terminal equipment is used for collecting touch screen events to obtain event collected data, carrying out edge value sampling on the event collected data to obtain edge point data, and sending the edge point data to the cloud server, wherein the touch screen events comprise touch tracks on a touch screen;
the virtual machine or the physical machine is used for receiving the edge point data sent by the terminal equipment, performing interpolation processing on the edge point data to obtain touch screen event data, and injecting the touch screen event data into an application program running on the virtual machine or the physical machine to control the application program, wherein the touch screen event data represents a touch track on a touch screen.
In one embodiment, the method for obtaining the edge point data by performing edge value sampling on the event acquisition data by the terminal device is specifically configured to: acquiring data points at two ends of the event acquisition data to obtain a first edge point and a second edge point; extracting inflection point data in the event acquisition data to obtain at least one third edge point data; the first edge point, the second edge point, and the at least one third edge point data constitute the edge point data.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of a prior art cloud gaming system;
FIG. 2 is a flowchart illustrating a method for processing a touch screen event according to an embodiment of the present disclosure;
FIG. 3a is a schematic diagram of a touch trajectory on a touch screen according to an embodiment of the present disclosure;
FIG. 3b is a schematic diagram of a touch trajectory collection provided in an embodiment of the present application;
fig. 4 is a schematic diagram of edge value sampling of event collection data according to an embodiment of the present application;
FIG. 5 is a flowchart of another touch screen event processing method provided by an embodiment of the present application;
fig. 6 is a schematic diagram of interpolation processing on edge point data according to an embodiment of the present application;
FIG. 7 is a schematic structural diagram of a touch screen event processing system according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of a specific touch screen event processing system according to an embodiment of the present disclosure;
FIG. 9 is a flowchart of another touch screen event processing method provided in the embodiments of the present application;
FIG. 10 is a schematic structural diagram of a touch screen event processing apparatus according to an embodiment of the present application;
FIG. 11 is a schematic structural diagram of a specific touch screen event processing apparatus according to an embodiment of the present disclosure;
FIG. 12 is a schematic structural diagram of another specific touch screen event processing apparatus according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of another touch screen event processing apparatus according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The embodiment of the application provides a touch screen event processing method, which can be applied to terminal equipment, and the terminal equipment can realize man-machine interaction through a touch screen. As shown in fig. 2, the touch screen event processing method may include the steps of:
201: and acquiring the touch screen event to obtain event acquisition data.
The touch screen is a display screen with a touch function, and a user can realize human-computer interaction through the touch screen, for example, control an application program (for example, a game). The terminal equipment collects touch screen events to obtain event collection data, wherein the touch screen events comprise touch tracks on a touch screen.
The principle of collecting touch screen events can be seen in fig. 3a and 3 b; FIG. 3a is a schematic diagram of a touch trajectory on a touch screen, where the touch trajectory reflects a touch screen event operated by a user on the touch screen; fig. 3b is a schematic diagram of the touch trajectory in fig. 3a, and the obtained data points are event acquisition data.
Step 202: and sampling the edge value of the event acquisition data to obtain edge point data.
After the event acquisition data is obtained, edge value sampling is carried out on the event acquisition data to obtain edge point data. The implementation principle of the method can refer to fig. 3b and fig. 4, where fig. 4 is a schematic diagram of sampling the edge value of the event acquisition data of fig. 3b, the obtained data point is edge point data, and the edge point data is representative data and can well reflect the touch screen event. Therefore, compared with the event acquisition data, the obtained edge point data greatly reduces the data volume.
Specifically, the edge point data may be obtained by sampling the edge value of the event collection data by the following method: acquiring data points at two ends of the event acquisition data to obtain a first edge point and a second edge point; extracting inflection point data in the event acquisition data to obtain at least one third edge point data; and forming the first edge point data, the second edge point data and the at least one third edge point data into edge point data.
The inflection point data in the event collection data can be extracted by the following method: calculating the slope of any two adjacent data points in the event acquisition data; judging whether two adjacent slopes are a positive slope and a negative slope; if yes, determining the data points which participate in the calculation of the two adjacent slopes together as the inflection point data.
In another embodiment, the edge value sampling may be performed on the event collection data by the following method to obtain edge point data: determining vertex data in the event acquisition data; and extracting the maximum value and the minimum value of every continuous N data points from every two adjacent vertex data and event acquisition data between the two vertex data, and forming edge point data by the extracted maximum value and the extracted minimum value. Wherein N is an integer greater than or equal to 3.
Step 203: and sending the edge point data to a cloud server.
And after the edge point data is obtained, the edge point data is sent to a cloud server. Therefore, the sending of the event redundant data of the touch screen can be greatly reduced, and the sensitivity of the touch screen is improved.
According to the touch screen event processing method provided by the embodiment, the touch screen event is collected to obtain the event collected data, the event collected data is subjected to edge value sampling to obtain the edge point data, and the edge point data is sent to the cloud server, so that the transmission of the touch screen event in a network can be reduced, and the sensitivity of the touch screen is improved.
Based on the touch screen event processing method provided by the embodiment corresponding to fig. 2, the embodiment of the present application provides another touch screen event processing method, and the method can be applied to a cloud server. As shown in fig. 5, the touch screen event processing method may include the steps of:
step 501: and receiving the edge point data sent by the terminal equipment.
The cloud server receives edge point data sent by the terminal equipment, the edge point data is obtained by acquiring touch screen events and sampling edge values of acquired event acquisition data, and the touch screen events comprise touch tracks on a touch screen.
Step 502: and carrying out interpolation processing on the edge point data to obtain touch screen event data.
After the cloud server receives the edge data, interpolation processing is carried out on the edge point data to obtain touch screen event data, and the touch screen event data can represent a touch track on the touch screen.
Specifically, the cloud server may perform interpolation processing on the received edge point data according to a linear interpolation principle to obtain touch screen event data. For example, fig. 6 shows a schematic diagram of performing interpolation processing on edge point data, where edge point data received by the cloud server may refer to fig. 4, and touch screen event data shown in fig. 6 may be obtained by performing linear interpolation on the edge point data shown in fig. 4, so as to implement restoration of a touch screen event.
According to the touch screen event processing method provided by the embodiment, the edge point data which is sent by the terminal equipment and is obtained by collecting the touch screen event and sampling the edge value of the collected event collection data is received, the edge point data is subjected to interpolation processing, the touch screen event collected by the terminal equipment can be restored, the touch screen event collected by the terminal equipment only transmits the data which is selected from the event collection data and can represent the touch screen event most in the network transmission process, the transmission of the touch screen event in the network is reduced, and therefore the sensitivity of the touch screen is improved.
Based on the touch screen event processing method provided in the embodiment corresponding to fig. 1 and fig. 2, another embodiment of the present application provides another touch screen event processing method, which may be applied to a touch screen event processing system, such as an Android cloud game system, where a schematic structural diagram of the touch screen event processing system may be shown in fig. 7, and the touch screen event processing system may include a terminal device 701 and a cloud server 702; the cloud server 702 may include a virtual machine or a physical machine that is network-connected to the terminal device 701. In practical applications, the touch screen event processing system may include at least one terminal device 701 and a cloud server 702, for example, as shown in fig. 8, the touch screen event processing system may include three terminal devices 701, where the terminal devices 701 may be game terminals, in this embodiment, the terminal devices 701 may be smart terminal devices configured with a display screen, such as a smart phone, a tablet computer, and a notebook computer, and the display screen has a touch function, that is, the terminal devices 701 are configured with a touch screen; the cloud server 702 comprises a virtual machine or a physical machine which is in network connection with each terminal device 701, an Android operating system can run in the virtual machine or the physical machine, a virtual multi-point touch screen module can be established in the Android operating system, processed touch screen events sent by the terminal devices 701 can be processed and injected into an Android cloud game, and control over the Android cloud game is achieved. In this embodiment, an Android cloud game system is taken as an example to illustrate that the Android cloud game system includes a set of terminal equipment 701 and a virtual machine or a physical machine, which does not represent that the application is limited thereto. Referring to fig. 9, the touch screen event processing method provided by the present embodiment may include the following steps:
step 901: and the terminal equipment collects the touch screen event to obtain event collection data.
The terminal device 701 acquires a touch screen event, which includes a touch trajectory on the touch screen, and specifically, includes continuous sampling coordinate points of the touch trajectory on the touch screen, and can obtain a large amount of event acquisition data. The schematic diagram of the acquisition principle can refer to fig. 3a and 3 b.
Step 902: and the terminal equipment samples the edge value of the event acquisition data to obtain edge point data.
The terminal device 701 performs edge value sampling on a large amount of acquired event acquisition data to obtain edge point data, and thus, the edge point data obtained by edge value sampling is a sample event. The principle of edge value sampling is as follows: and searching all edge points in the edge area as sample points by using an edge sampling algorithm according to the coordinates (x, y) of the event acquisition data to obtain edge point data.
There are many ways to find the edge point in the edge area, for example, an alternative implementation is: firstly, determining all vertex data in event acquisition data, wherein the vertex data refers to data points of which the slope with the left data point is positive and the slope with the right data point is negative; then, in every two adjacent vertex data and the event acquisition data between the two vertex data, extracting the maximum value and the minimum value of every continuous N (N is an integer greater than or equal to 3) data points, and removing the intermediate value, wherein the extracted maximum value and the extracted minimum value form edge point data.
For another example, another optional implementation manner of finding the edge point may be: firstly, acquiring data points at two ends of event acquisition data to obtain a first edge point and a second edge point, wherein the two data points are used as two data points in edge point data; then, inflection point data in the event acquisition data are extracted to obtain at least one third edge point data, wherein the inflection point data refer to data points with positive and negative slopes or negative and positive slopes of the data points on the left side and the right side; and then the first edge point, the second edge point and all the obtained third edge point data form edge point data.
Specifically, for two adjacent data points, the method for calculating the slope thereof is as follows: assuming that the coordinates of the right data point are (x1, y1) and the coordinates of the left data point are (x2, y2), the slope k of the two data points is calculated as follows:
step 903: and the terminal equipment sends the edge point data to the cloud server.
After the terminal device 701 obtains the edge point data, the edge point data may be sent to the cloud server 702 through the network. In practical application, the cloud server 702 includes a virtual machine or a physical machine connected to the terminal device 701 through a network, an Android operating system may be run in the virtual machine or the physical machine, a virtual multi-point touch screen module may be established in the Android operating system, and the terminal device 701 may send edge point data to the virtual multi-point touch screen module in the cloud server 702.
Step 904: and the cloud server performs interpolation processing on the edge point data to obtain touch screen event data.
After receiving the edge point data sent by the terminal device, the cloud server 702 performs interpolation processing on the edge point data to obtain touch screen event data, where the touch screen event data can represent a touch track on a touch screen. Specifically, the cloud server may perform interpolation processing on the edge point data according to a linear interpolation principle to obtain touch screen event data, the interpolation principle may refer to fig. 4 and 6, and as can be seen by comparing fig. 6 with fig. 3a and 3b, the edge point data may be restored to the touch screen event data through the interpolation processing, and the touch screen event data is a touch screen event acquired by the terminal device.
In practical application, the virtual multi-touch screen module of the virtual machine or the physical machine running in the cloud server may receive and interpolate edge point data, and after obtaining touch screen event data, the touch screen event data is injected into an application program running on the virtual machine or the physical machine to control the application program. In this embodiment, the touch screen event data is injected into the Android cloud game, so that the Android cloud game is controlled.
According to the touch screen event processing method provided by the embodiment, the touch screen event is acquired to obtain event acquisition data, the event acquisition data is subjected to edge value sampling to obtain edge point data, the edge point data is sent to the cloud server, the edge point data is subjected to interpolation processing by the cloud server, the touch screen event acquired by the terminal equipment can be restored, the touch screen event acquired by the terminal equipment only transmits data which is selected from the event acquisition data and can represent the touch screen event most in the network transmission process, the transmission of the touch screen event in the network is reduced, and therefore the problem of poor sensitivity of the touch screen caused by network delay can be solved, the sensitivity of the touch screen is improved, and user experience is improved.
Based on the touch screen event processing method described in the above embodiments, the following is an embodiment of the apparatus of the present application, and may be used to execute the embodiment of the method of the present application.
An embodiment of the present application provides a touch screen event processing apparatus, as shown in fig. 10, the touch screen event processing apparatus 100 includes: a data acquisition module 1001, an edge value sampling module 1002 and a data transmission module 1003; wherein,
the data acquisition module 1001 is configured to acquire a touch screen event to obtain event acquisition data, where the touch screen event includes a touch trajectory on a touch screen;
the edge value sampling module 1002 is configured to perform edge value sampling on the event acquisition data obtained by the data acquisition module 1001 to obtain edge point data;
the data sending module 1003 is configured to send the edge point data obtained by the edge value sampling module 1002 to the cloud server.
In one embodiment, as shown in fig. 11, the edge value sampling module 1002 may include an obtaining unit 10021, a first extracting unit 10022, and a first constituting unit 10023.
The obtaining unit 10021 is configured to obtain data points at two ends of the event acquisition data to obtain a first edge point and a second edge point;
the first extraction unit 10022 is configured to extract inflection point data in the event acquisition data to obtain at least one third edge point data. Specifically, firstly, calculating the slope of any two adjacent data points in the event acquisition data; then judging whether two adjacent slopes are a positive slope and a negative slope; if yes, determining the data points which participate in the calculation of the two adjacent slopes together as the inflection point data.
The first constituting unit 10023 is configured to constitute the edge point data from the first edge point, the second edge point, and the obtained at least one third edge point data.
In one embodiment, as shown in fig. 12, the edge value sampling module 1002 may include a determination unit 10024, a second extraction unit 10025, and a second constituent unit 10026. Wherein,
the determining unit 10024 is configured to determine vertex data in the event collection data;
the second extraction unit 10025 is configured to extract a maximum value and a minimum value of every consecutive N data points in every two adjacent vertex data and the event acquisition data between the two vertex data, where N is an integer greater than or equal to 3;
the second composing unit 10026 is configured to compose the extracted maximum and minimum values into edge point data.
The touch screen event processing device provided by the embodiment of the application acquires a touch screen event through the data acquisition module, the edge value sampling module samples the edge value of the acquired event acquisition data, and a part of data which can represent the touch screen event most, namely the edge point data, can be selected from a large amount of event acquisition data, so that the transmission of the touch screen event in a network is reduced, and the sensitivity of the touch screen is improved.
Referring to fig. 13, an embodiment of the present application provides another touch screen event processing apparatus, including:
the data receiving module 1004 is configured to receive edge point data sent by a terminal device, where the edge point data is obtained by acquiring a touch screen event and sampling an edge value of acquired event acquisition data, where the touch screen event includes a touch trajectory on a touch screen;
the data processing module 1005 is configured to perform interpolation processing on the edge point data to obtain touch screen event data, where the touch screen event data represents a touch trajectory on the touch screen. Specifically, the edge point data may be interpolated according to a linear interpolation principle to obtain the touch screen event data.
The touch screen event processing device provided by the embodiment can restore the touch screen event acquired by the terminal device by receiving the edge point data which is sent by the terminal device and acquired by acquiring the touch screen event and sampling the edge value of the acquired event acquisition data, and performing interpolation processing on the edge point data, wherein the touch screen event acquired by the terminal device only transmits the data which is selected from the event acquisition data and can represent the touch screen event most in the network transmission process, so that the transmission of the touch screen event in the network is reduced, and the sensitivity of the touch screen is improved.
Based on the touch screen event processing method described in the foregoing embodiment, an embodiment of the present application further provides a computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The storage medium stores computer instructions for executing the touch screen event processing method described in the above embodiments, which are not described herein again.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
Claims (10)
1. A method for touch screen event processing, the method comprising:
acquiring a touch screen event to obtain event acquisition data, wherein the touch screen event comprises a touch track on a touch screen;
sampling an edge value of the event acquisition data to obtain edge point data;
and sending the edge point data to a cloud server.
2. The method of claim 1, wherein sampling the edge values of the event acquisition data to obtain edge point data comprises:
acquiring data points at two ends of the event acquisition data to obtain a first edge point and a second edge point;
extracting inflection point data in the event acquisition data to obtain at least one third edge point data;
the first edge point, the second edge point, and the at least one third edge point data constitute the edge point data.
3. The method of claim 2, wherein the extracting inflection point data in the event acquisition data comprises:
calculating the slope of any two adjacent data points in the event acquisition data;
judging whether two adjacent slopes are a positive slope and a negative slope;
and if so, determining the data points which participate in the calculation of the two adjacent slopes together as the inflection point data.
4. The method of claim 1, wherein sampling the edge values of the event acquisition data to obtain edge point data comprises:
determining vertex data in the event acquisition data;
extracting the maximum value and the minimum value of every continuous N data points from every two adjacent vertex data and event acquisition data between the two vertex data, wherein N is an integer greater than or equal to 3;
and forming edge point data by the extracted maximum value and the minimum value.
5. A method for touch screen event processing, the method comprising:
receiving edge point data sent by terminal equipment, wherein the edge point data is obtained by acquiring a touch screen event and sampling an edge value of acquired event acquisition data, and the touch screen event comprises a touch track on a touch screen;
and performing interpolation processing on the edge point data to obtain touch screen event data, wherein the touch screen event data represents a touch track on the touch screen.
6. The method of claim 5, wherein the interpolating the edge point data to obtain touch screen event data comprises:
and carrying out interpolation processing on the edge point data according to a linear interpolation principle to obtain touch screen event data.
7. A touch screen event processing apparatus, comprising:
the data acquisition module is used for acquiring touch screen events to obtain event acquisition data, wherein the touch screen events comprise touch tracks on a touch screen;
the edge value sampling module is used for sampling the edge value of the event acquisition data to obtain edge point data;
and the data sending module is used for sending the edge point data to a cloud server.
8. A touch screen event processing apparatus, comprising:
the data receiving module is used for receiving edge point data sent by terminal equipment, the edge point data is obtained by acquiring a touch screen event and sampling an edge value of acquired event acquisition data, and the touch screen event comprises a touch track on a touch screen;
and the data processing module is used for carrying out interpolation processing on the edge point data to obtain touch screen event data, and the touch screen event data represents a touch track on the touch screen.
9. The touch screen event processing system is characterized by comprising terminal equipment and a cloud server, wherein the cloud server comprises a virtual machine or a physical machine which is in network connection with the terminal equipment;
the terminal equipment is used for collecting touch screen events to obtain event collected data, carrying out edge value sampling on the event collected data to obtain edge point data, and sending the edge point data to the cloud server, wherein the touch screen events comprise touch tracks on a touch screen;
the virtual machine or the physical machine is used for receiving the edge point data sent by the terminal equipment, performing interpolation processing on the edge point data to obtain touch screen event data, and injecting the touch screen event data into an application program running on the virtual machine or the physical machine to control the application program, wherein the touch screen event data represents a touch track on a touch screen.
10. The touch screen event processing system according to claim 9, wherein the terminal device is specifically configured to, when performing edge value sampling on the event acquisition data to obtain edge point data: acquiring data points at two ends of the event acquisition data to obtain a first edge point and a second edge point; extracting inflection point data in the event acquisition data to obtain at least one third edge point data; the first edge point, the second edge point, and the at least one third edge point data constitute the edge point data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011632229.9A CN112764570A (en) | 2020-12-31 | 2020-12-31 | Touch screen event processing method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011632229.9A CN112764570A (en) | 2020-12-31 | 2020-12-31 | Touch screen event processing method, device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112764570A true CN112764570A (en) | 2021-05-07 |
Family
ID=75699579
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011632229.9A Pending CN112764570A (en) | 2020-12-31 | 2020-12-31 | Touch screen event processing method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112764570A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115580674A (en) * | 2022-09-07 | 2023-01-06 | 深圳市臂云科技有限公司 | Method for improving control fluency of cloud mobile phone |
-
2020
- 2020-12-31 CN CN202011632229.9A patent/CN112764570A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115580674A (en) * | 2022-09-07 | 2023-01-06 | 深圳市臂云科技有限公司 | Method for improving control fluency of cloud mobile phone |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102225802B1 (en) | Method and program for making reactive video | |
CN108683952B (en) | Video content segment pushing method and device based on interactive video | |
CN110188719B (en) | Target tracking method and device | |
CN107248169B (en) | Image positioning method and device | |
CN108492338B (en) | Compression method and device for animation file, storage medium and electronic device | |
CN108255291B (en) | Virtual scene data transmission method and device, storage medium and electronic device | |
CN113705520A (en) | Motion capture method and device and server | |
CN108415936A (en) | A kind of trajectory playback method and device of electronic map | |
US20140232748A1 (en) | Device, method and computer readable recording medium for operating the same | |
CN113050860B (en) | Control identification method and related device | |
CN112995757B (en) | Video clipping method and device | |
CN111491208A (en) | Video processing method and device, electronic equipment and computer readable medium | |
CN112149545A (en) | Sample generation method and device, electronic equipment and storage medium | |
CN112764570A (en) | Touch screen event processing method, device and system | |
CN112891926B (en) | Game terminal, cloud server, cloud game control method, and storage medium | |
CN113840177B (en) | Live interaction method and device, storage medium and electronic equipment | |
US9111080B1 (en) | Reducing input processing latency for remotely executed applications | |
CN111225266B (en) | User interface interaction method and system | |
CN112733667A (en) | Face alignment method and device based on face recognition | |
CN106131628B (en) | A kind of method of video image processing and device | |
CN109286718A (en) | Screen recording method and device and electronic equipment | |
CN110197459B (en) | Image stylization generation method and device and electronic equipment | |
CN114489461B (en) | Touch response method, device, equipment and storage medium | |
CN108449643B (en) | Cross-application control method and device | |
CN113660420A (en) | Video frame processing method and video frame processing device |
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 |