CN114967972A - Method, system and device for adjusting sampling rate of touch screen and storage medium - Google Patents

Method, system and device for adjusting sampling rate of touch screen and storage medium Download PDF

Info

Publication number
CN114967972A
CN114967972A CN202210449982.7A CN202210449982A CN114967972A CN 114967972 A CN114967972 A CN 114967972A CN 202210449982 A CN202210449982 A CN 202210449982A CN 114967972 A CN114967972 A CN 114967972A
Authority
CN
China
Prior art keywords
point
sampling
touch screen
curve
adjusting
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
CN202210449982.7A
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.)
South China University of Technology SCUT
Original Assignee
South China University of Technology SCUT
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 South China University of Technology SCUT filed Critical South China University of Technology SCUT
Priority to CN202210449982.7A priority Critical patent/CN114967972A/en
Publication of CN114967972A publication Critical patent/CN114967972A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04162Control or interface arrangements specially adapted for digitisers for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method, a system, a device and a storage medium for adjusting the sampling rate of a touch screen, wherein the method comprises the following steps: creating a curve class, wherein the curve class comprises a source point, a terminal point and a control point, the source point, the terminal point and the control point are used for updating a curve track, and the control point is used for recording track points generated by touch of a touch screen; determining the Euclidean distance between the current control point and the last control point, and determining the number of sampling points according to the Euclidean distance; and determining the information of the sampling points according to the curve tracks and the number of the sampling points. According to the method, the number of sampling points on the current curve track is determined by determining the Euclidean distance between adjacent control points, and the sampling of the curve track is completed, wherein the sampling points cannot be recorded by the native API of the system, so that the sampling rate of android equipment is improved, and the real effectiveness of the sampling points is ensured. The invention can be widely applied to the technical field of terminals.

Description

Method, system and device for adjusting sampling rate of touch screen and storage medium
Technical Field
The invention relates to the technical field of terminals, in particular to a method, a system and a device for adjusting the sampling rate of a touch screen and a storage medium.
Background
At present, most android devices acquire real-time information such as coordinates and pressure of a touch point when a touch screen is touched through a screen sensor, and the information can be acquired through android programming development. For items requiring a user to touch a screen with a finger or a stylus for a long time to acquire real-time information, android devices are often used as information acquisition media because of their popularity and good interactivity. However, the screen information sampling rate of the android device is relatively low, and is only about 60Hz, which is not sufficient for some scenes requiring real-time data with high precision, and is likely to result in unsatisfactory data quality, for example, handwriting data is acquired by using the android device, and if data is acquired by using only a native android API, the amount of handwritten information recorded by the device is relatively small due to the 60Hz sampling rate; while wacom tablets and other devices typically have sampling rates of up to 100 to 300Hz, they are less interactive and convenient than android devices. Thus, good interaction and high quality data acquisition cannot be simultaneously considered.
Disclosure of Invention
The present invention aims to solve at least to some extent one of the technical problems existing in the prior art.
Therefore, an object of the embodiments of the present invention is to provide a method, a system, an apparatus, and a storage medium for adjusting a sampling rate of a touch screen.
In a first aspect, an embodiment of the present invention provides a method for adjusting a sampling rate of a touch screen, including the following steps:
creating a curve class, wherein the curve class comprises a source point, a terminal point and a control point, the source point, the terminal point and the control point are used for updating a curve track, and the control point is used for recording track points generated by touch of a touch screen;
determining the Euclidean distance between the current control point and the last control point, and determining the number of sampling points according to the Euclidean distance;
and determining the information of the sampling points according to the curve tracks and the number of the sampling points.
Further, the method for adjusting the sampling rate of the touch screen further comprises the following steps:
and creating a point class which is used for recording contact point information generated by touch.
Further, the method for adjusting the sampling rate of the touch screen further comprises the following steps:
creating a pen class that detects a touch movement event by rewriting a touch event function to update the control point;
and the pen class acquires the information of the sampling point on the curve track updated according to the control point according to a calling interface provided by the curve class.
Further, the method for adjusting the sampling rate of the touch screen further comprises the following steps:
and creating a touch screen control class, wherein the touch screen control class calls an upper layer interface provided by the pen class to rewrite the touch event function so as to acquire the information of the sampling point on the curve track after the control point is updated.
Further, the method for adjusting the sampling rate of the touch screen further comprises the following steps:
and creating a global list, wherein the global list is used for storing the information of the points on the curve track acquired by the pen type storage.
Further, the step of determining the information of the sampling points according to the curve track and the number of the sampling points comprises the following steps:
determining sampling variables according to the number of the sampling points;
and determining the information of the sampling points on the curve track according to the sampling variables.
Further, the expression of the curve trajectory is as follows:
a=D.v-2×C.v+S.v
b=2×(C.v-S.v)
P.v=a×t 2 +b×t+S.v
wherein S.v represents information of the source point, D.v represents information of the destination point, C.v represents information of the control point, P.v is a quadratic function expression, a and b are parameters of the quadratic function expression, and t is a sampling variable.
In a second aspect, an embodiment of the present invention provides a system for adjusting a sampling rate of a touch screen, including:
the system comprises a track updating module, a control module and a processing module, wherein the track updating module is used for creating a curve class, the curve class comprises a source point, a destination point and a control point, the source point, the destination point and the control point are used for updating a curve track, and the control point is used for recording track points generated by touch of a touch screen;
the distance determining module is used for determining the Euclidean distance between the current control point and the previous control point and determining the number of sampling points according to the Euclidean distance;
and the sampling point determining module is used for determining the information of the sampling points according to the curve track and the number of the sampling points.
In a third aspect, an embodiment of the present invention provides an apparatus for adjusting a sampling rate of a touch screen, including:
at least one processor;
at least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, the at least one program causes the at least one processor to implement the method for adjusting a touch screen sampling rate.
In a fourth aspect, an embodiment of the present invention provides a storage medium, in which a program executable by a processor is stored, and the program executable by the processor is used for implementing the method for adjusting the sampling rate of the touch screen when executed by the processor.
Advantages and benefits of the present invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention:
the embodiment of the invention determines the number of sampling points on the current curve track by determining the Euclidean distance between adjacent control points and finishes the sampling of the curve track, and the sampling points cannot be recorded by the native API of the system, so that the sampling rate of the android device is improved, the real effectiveness of the sampling points is ensured, and the method has the characteristics of small algorithm operand and low memory usage amount and is easy to integrate and modify.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description is made on the drawings of the embodiments of the present invention or the related technical solutions in the prior art, and it should be understood that the drawings in the following description are only for convenience and clarity of describing some embodiments in the technical solutions of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for adjusting a sampling rate of a touch screen according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of class relationships according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating the updating of a curved track according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a determined Euclidean distance according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a sampling point of an embodiment of the present invention;
FIG. 6 is a schematic diagram of a quadratic function for calculating a curve trajectory according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a system for adjusting a sampling rate of a touch screen according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an apparatus for adjusting a sampling rate of a touch screen according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. The step numbers in the following embodiments are provided only for convenience of illustration, the order between the steps is not limited at all, and the execution order of each step in the embodiments can be adapted according to the understanding of those skilled in the art.
A method, a system, an apparatus, and a storage medium for adjusting a sampling rate of a touch screen according to embodiments of the present invention are described in detail below with reference to the accompanying drawings, and first, a method for adjusting a sampling rate of a touch screen according to embodiments of the present invention will be described with reference to the accompanying drawings.
Referring to fig. 1, a method for adjusting a sampling rate of a touch screen in an embodiment of the present invention mainly includes the following steps S1 to S3:
s1, creating a curve class, wherein the curve class comprises a source point, an end point and a control point, the source point, the end point and the control point are used for updating the curve track, and the control point is used for recording track points generated by touch;
specifically, the Curve class is denoted as a Curve class and is used for storing information of a Curve track at a certain time. The curve class includes three point class embodiments, that is, a source point, an end point and a control point, and a curve track representing a partial track can be constructed by sequentially connecting the source point and the end point, wherein the control point is used for recording a track point generated by touch of the touch screen when the curve track is recorded each time, and the newly generated track point is used for updating the curve track, and referring to fig. 3, a dynamic update algorithm of the curve track is as follows (mainly, the update of the source point S, the end point D and the control point C):
S=D last
Figure BDA0003618201480000041
C=N
where N is the last point newly generated each time a curve trace is recorded, D last For the end of the last curve track, C last Is the control point of the previous curve track.
S2, determining the current control point C current And a previous control point C last The Euclidean distance dist between the sampling points, and the quantity steps of the sampling points is determined according to the Euclidean distance dist;
specifically, referring to FIG. 4, a current control point C is determined current Position information of and previous control point C last Position information of (last control point C) last The control point of the last curve) to determine the euclidean distance dist between two control points, which is used to determine the number of sample points steps per sample, the formula is as follows:
Figure BDA0003618201480000042
wherein, FACTOR is an influence FACTOR, and a value can be taken according to an actual situation, and in a specific embodiment, the FACTOR is taken as 10.
S3, determining information of the sampling points according to the curve tracks and the number of the sampling points;
specifically, the distance between two control points can determine the number of sampling points sampled on the curved track, and therefore, the information of the sampling points can be determined by combining the number of sampling points and the curved track. Referring to fig. 5, the present application is finally able to acquire and record sampling points between sampling interval points of the system, where the sampling points are information of points that cannot be acquired by the native API of the system.
It can be seen from the above content that, this application confirms the quantity of sampling point on the current curvilinear path through confirming the Euclidean distance between the adjacent control point to accomplish the sampling of curvilinear path, these sampling points are that the system is native API can't record, thereby improved the sampling rate of android device, guaranteed the true validity of sampling point moreover, and possess the characteristics that the arithmetic operation volume is little, the memory use amount is low, easily integrate and modify.
As a further optional implementation, the method for adjusting the sampling rate of the touch screen further includes the following steps:
and S4, creating a point class, wherein the point class is used for recording contact point information generated by touch.
Specifically, the Point class is denoted as a Point class, which represents a class representing a Point, and referring to fig. 2, the Point class is an important basic class of a later part (mainly referring to a Curve class, a pen class, and a TouchControl class), and includes information types that a developer wants to record, such as an x coordinate, a y coordinate, and the like. For convenience of the following description, the information contained therein is denoted as v.
As a further optional implementation, the method for adjusting the sampling rate of the touch screen further includes the following steps:
s5, creating a pen class, wherein the pen class detects a touch movement event by rewriting a touch event function so as to update a control point;
specifically, the pen class is denoted as pen class and is used for detecting a touch movement event of the screen and saving points for describing a curved track.
The Pen class acquires information generated by the touch screen by rewriting a touch event function (onTouchEvent), wherein the function contains a parameter of a type of motion event (MotionEvent), the parameter is marked as the event, the event contains a plurality of ACTIONs (ACTIONs), and the algorithm focuses on the motion ACTION (ACTION _ MOVE). When each movement action occurs, the Pen class records the current point as the latest point N, and places N into the Curve class as an updating parameter, thereby updating the Curve track; meanwhile, for two touch screen ACTIONs of pressing (ACTION _ DOWN) and lifting (ACTION _ UP), information of some points is recorded according to a similar flow.
And S6, the pen class acquires the information of the sampling point on the curve track updated according to the control point according to the calling interface provided by the curve class.
Specifically, the pen class acquires information generated by the touch screen, puts the detected latest point N into the curve class through an interface provided by the curve class, and then the curve class updates the control point C by using the latest point N, so that the curve track is updated.
As a further optional implementation, the method for adjusting the sampling rate of the touch screen further includes the following steps:
and S7, creating a touch screen control class, and calling an upper layer interface provided by the pen class by the touch screen control class to rewrite the touch event function so as to acquire the information of the sampling point on the curve track after the control point is updated.
Specifically, the touch screen control class is denoted as touch control class and is used for controlling screen touch, and includes an example of Pen class.
In the android development, touch event function is required to be rewritten to define acquisition of touch screen information, so the TouchControl class also needs to rewrite the touch event function, and call a Pen-class touch event function in the first row in the function definition body, namely, collection of touch information, updating of a curve track and saving of sampling points are enabled.
In addition, an external writing function can be defined in the TouchControl class, and the saved touch screen information is exported to the outside, such as written into a txt file in an external storage of the device.
The TouchControl class is used as an outermost class, and the whole algorithm flow can be embedded into android software.
As a further optional implementation, the method for adjusting the sampling rate of the touch screen further includes the following steps:
and S8, creating a global list, wherein the global list is used for storing the information of the points on the curve track acquired by the pen.
Specifically, each time touch detection on the touch screen is completed, the Pen class acquires information v of each point between a source point S and an end point D on a track, and adds the information of the points into the global list, and the points cannot be recorded by the system native api, so that the sampling rate is improved.
Further as an alternative embodiment, step S3 includes the following steps:
s31, determining sampling variables according to the number of the sampling points;
specifically, the number of sampling points on the curved track is determined, and a sampling variable needs to be determined, so that the information of the sampling points on the curved track can be determined according to the sampling variable.
The sampling interval Δ t can be determined according to the number of sampling points steps, and then the expression of the sampling variable t can be determined as follows:
Figure BDA0003618201480000061
t=t+△t 0<t≤1
and S32, determining information of the sampling points on the curve track according to the sampling variables.
Specifically, in the case where sampling variables are determined, information of sampling points corresponding to each sampling variable may be determined.
Further as an optional implementation, the expression of the trajectory variables is as follows:
a=D.v-2×C.v+S.v
b=2×(C.v-S.v)
P.v=a×t 2 +b×t+S.v
where S.v denotes information of a source point, D.v denotes information of an end point, C.v denotes information of a control point, and referring to fig. 6, P.v is a quadratic function expression from the source point S to the end point D, and a and b are parameters of the quadratic function expression.
t∈(0,1]Is a step variable, starting from 0, with an interval of each step
Figure BDA0003618201480000062
Up to 1. When t is stepped from 0 to 1, the point of the curve is recorded from the source point S to the end point D, and the recording of a plurality of points on the whole curve is completed. Since t cannot take 0, the end point D of the previous curve and the source point S of the next curve are not repeatedly recorded.
Next, a system for adjusting a sampling rate of a touch screen according to an embodiment of the present invention will be described with reference to the drawings.
Fig. 7 is a schematic structural diagram of a system for adjusting a sampling rate of a touch screen according to an embodiment of the present invention.
The system specifically comprises:
the system comprises a 201 track updating module, a 201 track updating module and a control module, wherein the 201 track updating module is used for creating a curve class, the curve class comprises a source point, a destination point and a control point, the source point, the destination point and the control point are used for updating a curve track, and the control point is used for recording track points generated by touch of a touch screen;
a 202 distance determining module, configured to determine an euclidean distance between a current control point and a previous control point, and determine the number of sampling points according to the euclidean distance;
and 203, a sampling point determining module for determining the information of the sampling points according to the curve track and the number of the sampling points.
It can be seen that the contents in the foregoing method embodiments are all applicable to this system embodiment, the functions specifically implemented by this system embodiment are the same as those in the foregoing method embodiment, and the advantageous effects achieved by this system embodiment are also the same as those achieved by the foregoing method embodiment.
Referring to fig. 8, an embodiment of the present invention provides an apparatus for adjusting a sampling rate of a touch screen, including:
at least one processor 301;
at least one memory 302 for storing at least one program;
the at least one program, when executed by the at least one processor 301, causes the at least one processor 301 to implement a method for touch screen sample rate adjustment.
Similarly, the contents of the method embodiments are all applicable to the apparatus embodiments, the functions specifically implemented by the apparatus embodiments are the same as the method embodiments, and the beneficial effects achieved by the apparatus embodiments are also the same as the beneficial effects achieved by the method embodiments.
In alternative embodiments, the functions/acts noted in the block diagrams may occur out of the order noted in the operational illustrations. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved. Furthermore, the embodiments presented and described in the flow charts of the present invention are provided by way of example in order to provide a more thorough understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and in which sub-operations described as part of larger operations are performed independently.
Furthermore, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise indicated to the contrary, one or more of the described functions and/or features may be integrated in a single physical device and/or software module, or one or more functions and/or features may be implemented in separate physical devices or software modules. It will also be appreciated that a detailed discussion of the actual implementation of each module is not necessary for an understanding of the present invention. Rather, the actual implementation of the various functional modules in the apparatus disclosed herein will be understood within the ordinary skill of an engineer, given the nature, function, and internal relationship of the modules. Accordingly, those skilled in the art can, using ordinary skill, practice the invention as set forth in the claims without undue experimentation. It is also to be understood that the specific concepts disclosed are merely illustrative of and not intended to limit the scope of the invention, which is defined by the appended claims and their full scope of equivalents.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes programs for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as an ordered listing of executable programs that can be considered for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with a program execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the programs from the program execution system, apparatus, or device and execute the programs. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the program execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable program execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the foregoing description of the specification, reference to the description of "one embodiment/example," "another embodiment/example," or "certain embodiments/examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for adjusting the sampling rate of a touch screen is characterized by comprising the following steps:
creating a curve class, wherein the curve class comprises a source point, a terminal point and a control point, the source point, the terminal point and the control point are used for updating a curve track, and the control point is used for recording track points generated by touch of a touch screen;
determining the Euclidean distance between the current control point and the previous control point, and determining the number of sampling points according to the Euclidean distance;
and determining the information of the sampling points according to the curve tracks and the number of the sampling points.
2. The method for adjusting the sampling rate of the touch screen according to claim 1, further comprising the steps of:
and creating a point class which is used for recording contact point information generated by touch.
3. The method for adjusting the sampling rate of the touch screen according to claim 1, wherein the method for adjusting the sampling rate of the touch screen further comprises the following steps:
creating a pen class that detects a touch movement event by rewriting a touch event function to update the control point;
and the pen class acquires the information of the sampling point on the curve track updated according to the control point according to a calling interface provided by the curve class.
4. The method for adjusting the sampling rate of the touch screen according to claim 3, wherein the method for adjusting the sampling rate of the touch screen further comprises the following steps:
and creating a touch screen control class, and calling an upper interface provided by the pen class by the touch screen control class to rewrite the touch event function so as to obtain the information of the sampling point on the curve track after the control point is updated.
5. The method for adjusting the sampling rate of the touch screen according to claim 3, wherein the method for adjusting the sampling rate of the touch screen further comprises the following steps:
and creating a global list, wherein the global list is used for storing the information of the points on the curve track acquired by the pen class.
6. The method for adjusting the sampling rate of the touch screen according to claim 1, wherein the step of determining the information of the sampling points according to the curve track and the number of the sampling points comprises the following steps:
determining sampling variables according to the number of the sampling points;
and determining the information of the sampling points on the curve track according to the sampling variables.
7. The method for adjusting the sampling rate of the touch screen according to claim 6, wherein the expression of the curve trajectory is as follows:
a=D.v-2×C.v+S.v
b=2×(C.v-S.v)
P.v=a×t 2 +b×t+S.v
wherein S.v represents information of the source point, D.v represents information of the destination point, C.v represents information of the control point, P.v is a quadratic function expression, a and b are parameters of the quadratic function expression, and t is the sampling variable.
8. A system for adjusting a sampling rate of a touch screen, comprising:
the system comprises a track updating module, a control module and a processing module, wherein the track updating module is used for creating a curve class, the curve class comprises a source point, a destination point and a control point, the source point, the destination point and the control point are used for updating a curve track, and the control point is used for recording track points generated by touch of a touch screen;
the distance determining module is used for determining the Euclidean distance between the current control point and the previous control point and determining the number of sampling points according to the Euclidean distance;
and the sampling point determining module is used for determining the information of the sampling points according to the curve track and the number of the sampling points.
9. An apparatus for adjusting a sampling rate of a touch screen, comprising:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, the at least one program causes the at least one processor to implement a method of adjusting a touch screen sampling rate according to any one of claims 1-7.
10. A storage medium having stored therein a program executable by a processor, wherein the program executable by the processor is configured to implement a method for adjusting a sampling rate of a touch screen according to any one of claims 1-7 when executed by the processor.
CN202210449982.7A 2022-04-27 2022-04-27 Method, system and device for adjusting sampling rate of touch screen and storage medium Pending CN114967972A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210449982.7A CN114967972A (en) 2022-04-27 2022-04-27 Method, system and device for adjusting sampling rate of touch screen and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210449982.7A CN114967972A (en) 2022-04-27 2022-04-27 Method, system and device for adjusting sampling rate of touch screen and storage medium

Publications (1)

Publication Number Publication Date
CN114967972A true CN114967972A (en) 2022-08-30

Family

ID=82980223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210449982.7A Pending CN114967972A (en) 2022-04-27 2022-04-27 Method, system and device for adjusting sampling rate of touch screen and storage medium

Country Status (1)

Country Link
CN (1) CN114967972A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110298807A1 (en) * 2010-06-07 2011-12-08 Samsung Electronics Co., Ltd. Touch screen and display method
CN106295395A (en) * 2016-07-27 2017-01-04 福建师范大学 The uncertain method for protecting track privacy divided based on figure
CN106843737A (en) * 2017-02-13 2017-06-13 北京新美互通科技有限公司 Text entry method, device and terminal device
CN109101171A (en) * 2017-06-21 2018-12-28 北京易真学思教育科技有限公司 A method of generating sliding trace in touch panel device
CN110888552A (en) * 2019-11-27 2020-03-17 深圳市康冠商用科技有限公司 Infrared touch screen line drawing processing method and device
CN111782131A (en) * 2020-07-27 2020-10-16 深圳市千分一智能技术有限公司 Pen point implementation method, device, equipment and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110298807A1 (en) * 2010-06-07 2011-12-08 Samsung Electronics Co., Ltd. Touch screen and display method
CN106295395A (en) * 2016-07-27 2017-01-04 福建师范大学 The uncertain method for protecting track privacy divided based on figure
CN106843737A (en) * 2017-02-13 2017-06-13 北京新美互通科技有限公司 Text entry method, device and terminal device
CN109101171A (en) * 2017-06-21 2018-12-28 北京易真学思教育科技有限公司 A method of generating sliding trace in touch panel device
CN110888552A (en) * 2019-11-27 2020-03-17 深圳市康冠商用科技有限公司 Infrared touch screen line drawing processing method and device
CN111782131A (en) * 2020-07-27 2020-10-16 深圳市千分一智能技术有限公司 Pen point implementation method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN106919333B (en) Method and device for recording writing content on electronic writing board
US7256773B2 (en) Detection of a dwell gesture by examining parameters associated with pen motion
US9035895B2 (en) Redundant sensing element sampling
KR101421638B1 (en) Touch detection method and touch control device using the same
CN104345948B (en) A kind of implementation method of original handwriting, realize device and electronic equipment
US8786547B2 (en) Effects of gravity on gestures
CN101968714B (en) Method and system for identifying operation locus input on mobile terminal interface
CN108334486A (en) table control method, device, equipment and storage medium
US9372622B2 (en) Method for recording a track and electronic device using the same
WO2019075895A1 (en) Smart pen, smart pen control method, apparatus, device, and storage medium
CN114690930A (en) Handwriting processing method and device, interactive panel and storage medium
CN103809954A (en) Method and device for realizing interface element selection
CN110198487B (en) Video playing method, device, equipment and storage medium
CN104965657A (en) Touch control method and apparatus
CN114967972A (en) Method, system and device for adjusting sampling rate of touch screen and storage medium
CN105549894A (en) Touch information processing method and apparatus, touch information acquisition method and apparatus and touch information processing system
US10908709B2 (en) Writing input device and writing input system
CN102129321A (en) Touch screen-based track recording and comparing method
WO2021128819A1 (en) Handwriting generation method and apparatus, storage medium, electronic device, and system
JP2022547667A (en) Human-computer interaction method, apparatus and system
CN114860108A (en) Writing track processing method and device based on cloud desktop and electronic equipment
CN110515473A (en) Gesture recognition method and device based on touch pad and related system
CN113610946B (en) Method for dividing drawing handwriting by using blackboard eraser function
CN105892913B (en) equipment processing method and electronic equipment
JP5482225B2 (en) Electronics

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