Touch data processing method and device and computer storage medium
By using noise curve noise reduction in mobile terminals to process touch data, the problem of misjudgment by mobile terminals when processing touch data is solved, and the accuracy and stability of operations are improved.
Patent Information
- Application Number
- CN202310791046.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-29
- Publication Date
- 2024-12-31
AI Technical Summary
Mobile terminals are prone to misjudgment and misoperation when processing touch data, mainly because the touch data contains invalid data or error data.
By detecting the user's touch operation, obtaining the original touch data, and performing noise reduction processing based on the preset noise pattern curve, the effective touch data is determined, thereby improving the recognition accuracy of touch data and avoiding misoperation.
The effective touch signal obtained after noise reduction processing improves the accuracy of operation event coordinates and reduces erroneous operation on the touch screen.
Smart Images

Figure CN119225618A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminals, and more specifically, to a touch data processing method, device and computer storage medium. Background Art
[0002] With the development of electronic devices, mobile terminals such as mobile phones, tablet computers, and smart watches are increasingly used in people's daily work, study, communication, etc. At present, mobile terminals such as mobile phones, tablet computers, and smart watches mostly use touch screens, and mobile terminals with touch screens are popular with users due to their convenient operation methods.
[0003] The user can perform gesture operations such as clicking and sliding on the touch screen. Accordingly, the touch screen can obtain touch data corresponding to the gesture operation, and then send the acquired touch data to the relevant processor of the mobile terminal. The relevant processor determines the operation instruction corresponding to the touch data based on the touch data, and executes the operation corresponding to the operation instruction.
[0004] However, in the process of the relevant processor acquiring the touch data and processing the touch data, since the touch data may contain invalid data or error data, etc., it is easy to make a misjudgment, thereby causing the mobile terminal to malfunction. Summary of the invention
[0005] The present application provides a touch data processing method, device and computer storage medium, which can improve the accuracy of touch data recognition and avoid erroneous operations on a touch screen.
[0006] In a first aspect, a method for processing touch data is provided, wherein the method is applied to an electronic device including a touch display screen, and the method comprises:
[0007] Detecting a touch operation of a user on the touch display screen, and acquiring raw touch data generated by the touch operation;
[0008] Determine effective touch data according to a preset noise law curve and original touch data;
[0009] An operation event element corresponding to the touch operation is determined according to the valid touch data, and a response is performed based on the operation event element.
[0010] Through the above method, the original touch data acquired on the touch display screen can be subjected to noise reduction processing, so that the touch data after noise reduction processing is used as an input valid touch signal, and the processor of the electronic device determines the operation time according to the input touch signal, and then responds based on the operation time. This process can improve the accuracy of touch data recognition and avoid erroneous operations on the touch screen.
[0011] In a second aspect, a touch data processing device is provided, wherein the device comprises:
[0012] A detection module, used to detect a user's touch operation on the touch display screen and obtain raw touch data generated by the touch operation;
[0013] A processing module, used for determining effective touch data according to a preset noise law curve and original touch data;
[0014] Determining an operation event element corresponding to the touch operation according to the valid touch data;
[0015] A response module is used to respond based on the operation event element.
[0016] In a third aspect, an electronic device is provided, comprising:
[0017] Touch screen display;
[0018] one or more processors;
[0019] one or more memories;
[0020] Modules with multiple applications installed;
[0021] The memory stores one or more programs, and when the one or more programs are executed by the processor, the electronic device executes the method as described in any one of the first aspects.
[0022] In a fourth aspect, a computer-readable storage medium is provided, characterized in that the computer-readable storage medium stores computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method as described in any one of the first aspects.
[0023] According to a fifth aspect, a computer program product is provided, wherein when the computer program product is run on a computer, the computer is caused to execute the method as described in any one of the first aspects.
[0024] This solution can combine the statistical analysis of the touch data noise to obtain the characteristic regularity curve of the noise, obtain the regularity curve of the noise through algorithm fitting, and finally remove the noise curve from the touch data acquired in real time, thereby obtaining the effective touch signal of the finger touch. In other words, this method improves the validity of the data by performing data noise reduction on the front end of the touch data, thereby improving the accuracy of the acquisition of the coordinates of the operation event. In other words, the effective touch signal in the embodiment of the present application is a signal that filters out the noise in the original touch data at the front end, and the touch data acquired based on the signal is more accurate, thereby improving the accuracy of touch operation recognition. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 is a schematic diagram of a user holding an electronic device with one hand.
[0026] Figure 2 is a schematic diagram of a user holding an electronic device with both hands.
[0027] Figure 3 It is a schematic flowchart of a touch data processing method provided in an embodiment of the present application.
[0028] Figure 4 It is a schematic diagram of an example of a noise law curve provided in an embodiment of the present application.
[0029] Figure 5 is a curve diagram of an example of original touch data provided in an embodiment of the present application.
[0030] Figure 6 is a curve diagram of an example of effective touch data provided in an embodiment of the present application.
[0031] Figure 7 It is a structural diagram of a touch data processing device provided in an embodiment of the present application.
[0032] Figure 8 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The technical solution in this application will be described clearly and in detail below in conjunction with the accompanying drawings.
[0034] When a user uses an electronic device with a touch display, he or she can perform gesture operations such as clicking and sliding on the touch screen. Accordingly, the touch screen can obtain touch data corresponding to the gesture operation, and then send the obtained touch data to a related processor of the mobile terminal. The related processor determines the operation instruction corresponding to the touch data based on the touch data, and executes the operation corresponding to the operation instruction.
[0035] Figure 1 is a schematic diagram of a user holding an electronic device with one hand.
[0036] For example, Figure 1 FIG. 1 is a schematic diagram of the back side of the electronic device 100 shown in FIG. (a). When a user holds the electronic device 100 in one hand, the user can use the thumb of the holding hand to perform touch operations such as clicking and sliding on the touch display screen. The electronic device 100 can obtain Figure 1 Schematic diagram of touch data shown in (b) of FIG.
[0037] exist Figure 1In the figure (b), the effective area of the touch operation of the thumb on the touch display screen is S1. In addition to the effective area S1, the user's base of thumb may also have a contact area on the touch display screen, and the base of thumb contact area S2 can be detected. Then, if the electronic device 100 responds according to all the touch data on the detected effective area S1 of the touch operation and the base of thumb contact area S2, that is, all the touch data contain invalid data or error data, it is easy to make a misjudgment, thereby causing the mobile terminal to operate incorrectly.
[0038] Figure 2 is a schematic diagram of a user holding an electronic device with both hands.
[0039] For example, Figure 2 As shown in Figure (a) of FIG. 1 , when a user holds the electronic device 100 with both hands, for example, in a game scenario, the user can use the thumbs of both hands to perform touch operations such as clicking and sliding on the touch display screen. The electronic device 100 can obtain the following information: Figure 2 (b) is a schematic diagram of touch data shown in FIG.
[0040] exist Figure 2 In the figure (b), the touch operation area of the left thumb on the touch screen is S3, and the touch operation area of the right thumb on the touch screen is S4. In addition to the action areas S3 and S4, the user's base of the thumb may also have an effect on the touch screen. Figure 2 Then, if the electronic device 100 responds according to the actual action areas S3 and S4 of the detected touch operation and all the touch data of the black touch point shown in the figure, that is, all the touch data contain invalid data or error data, it is easy to make a misjudgment, thereby causing the mobile terminal to malfunction.
[0041] against Figure 1 and Figure 2 In the scenario shown, when the processor of the electronic device 100 acquires touch data and processes the touch data, since the touch data may contain invalid data or error data, etc., it is easy to make a misjudgment, thereby causing a misoperation of the mobile terminal.
[0042] Therefore, an embodiment of the present application provides a method for processing touch data, which can improve the accuracy of touch data recognition and avoid erroneous operations on the touch screen.
[0043] Figure 3 It is a schematic flowchart of a touch data processing method provided in an embodiment of the present application.
[0044] It should be understood that the method 300 is applied to an electronic device including a touch display screen, such as Figure 1 and Figure 2 The electronic device 100 shown in FIG. 100 is a schematic diagram of an exemplary embodiment of the present invention. Optionally, the method 300 is applied to a processor of the electronic device 100.
[0045] The method 300 includes:
[0046] Step 310: Detect a touch operation performed by a user on the touch display screen, and obtain original touch data generated by the touch operation.
[0047] Optionally, the user's "touch operation" may include any one of a single click, a double click, and a sliding operation performed by the user on the touch display screen, which is not limited in the embodiments of the present application.
[0048] It should be understood that "raw touch data" can be understood as touch data that has not been processed by the front end, and the data may contain noise data, etc. Optionally, the "raw touch data" can be embodied in the form of matrix data, and the embodiment of the present application does not limit the data form of the raw touch data.
[0049] Step 320: Determine valid touch data according to a preset noise law curve and the original touch data.
[0050] It should be understood that the "noise law curve" can be a preset curve, for example, one that has been configured when the electronic device leaves the factory, or the "noise law curve" can be obtained by counting the noise data on the touch display screen within a certain period of time during the user's use of the electronic device. The embodiments of the present application are not limited to this.
[0051] Optionally, for different types of touch display screens or different electronic devices, the “noise law curve” may be different. In other words, the “noise law curve” may be different or the same, and this embodiment of the present application does not limit this.
[0052] Optionally, the method 300 further includes: generating a preset noise law curve.
[0053] In a possible implementation, generating the preset noise law curve includes: when no user touch operation is detected on the touch display screen, acquiring multiple noise data at different positions of the touch display screen at different times; and fitting the noise law curve according to the multiple noise data.
[0054] It should be understood that in the process of counting touch noise, touch data of multiple moments when no user touch operation is detected on the touch display screen can be obtained, and the touch data is reflected in the form of matrix data, and combined with a certain algorithm, the same row or column of the matrix is lifted, and then the maximum value, minimum value, etc. of the positive and negative directions of the noise form are counted, so as to obtain the "noise law curve", which is not elaborated in the embodiments of the present application.
[0055] Figure 4 is a schematic diagram of a noise regularity curve provided in an embodiment of the present application. It should be understood that Figure 4 It can be understood as the curve characteristics of touch data noise type A.
[0056] It should be noted here that Figure 4 The curve shown may be a preset curve obtained by obtaining multiple noise data on the touch display screen at different times when the user is not touching the touch display screen of the electronic device, or a "reference curve" based on the statistics of the multiple noise data.
[0057] like Figure 4 As shown, the horizontal axis can represent the node number of the same column in the acquired noise data, and the vertical axis can represent the sensing value corresponding to the node number, that is, the grayscale value in the touch image acquired by the electronic device, or the sensing change of the touch point.
[0058] After a plurality of noise data are statistically analyzed to obtain a noise law, a "noise law curve" can be fitted according to the noise law, and finally the original touch data obtained in step 310 can be corrected according to the "noise law curve" to obtain effective touch data.
[0059] It should be noted here that the present application embodiment obtains Figure 4 There is no limitation on the timing of the "preset noise law curve".
[0060] Figure 5 is a curve diagram of an example of original touch data provided in an embodiment of the present application.
[0061] It should be understood that Figure 5 The figure can be understood as the original touch data generated by the touch operation acquired by the touch sensor when the user performs a touch operation on the touch display screen. The original touch data is the induction change amount of the touch point without any data processing.
[0062] When obtained Figure 4 and Figure 5 After the data curve, we can Figure 4 and Figure 5 The data curve is used to obtain effective touch data.
[0063] In one possible implementation, Figure 4 and Figure 5 The difference between the sensing values (ordinate) corresponding to the same node number (abscissa) is calculated to obtain the effective touch sensing value corresponding to the node number (abscissa).
[0064] For example, Figure 4 The node number in is 2 (horizontal axis), and the corresponding induction value (vertical axis) is 2; Figure 4 The node number in is 4 (horizontal axis), and the corresponding induction value (vertical axis) is 8; Figure 4 The node number in is 6 (horizontal axis), and the corresponding induction value (vertical axis) is 6; Figure 4 The node number in is 8 (abscissa), and the corresponding induction value (ordinate) is 7; Figure 4 The node number in is 10 (horizontal axis), and the corresponding induction value (vertical axis) is 7; Figure 4 The node number in is 13 (horizontal axis), and the corresponding induction value (vertical axis) is 7; Figure 4 The node number in is 16 (horizontal axis), and the corresponding induction value (vertical axis) is 6; Figure 4 The node number in is 18 (horizontal axis), and the corresponding induction value (vertical axis) is 3......
[0065] Figure 5 The node number in is 2 (horizontal axis), and the corresponding induction value (vertical axis) is 2; Figure 5 The node number in is 4 (horizontal axis), and the corresponding induction value (vertical axis) is 8; Figure 5 The node number in is 6 (horizontal axis), and the corresponding induction value (vertical axis) is 6; Figure 5 The node number in is 8 (horizontal axis), and the corresponding induction value (vertical axis) is 8; Figure 5 The node number in is 10 (horizontal axis), and the corresponding induction value (vertical axis) is 10; Figure 5 The node number in is 12 (horizontal axis), and the corresponding induction value (vertical axis) is 8; Figure 5 The node number in is 14 (abscissa), and the corresponding induction value (ordinate) is 6; Figure 5 The node number in is 16 (horizontal axis), and the corresponding induction value (vertical axis) is 6; Figure 5 The node number in is 18 (horizontal axis), and the corresponding induction value (vertical axis) is 3......
[0066] In a possible implementation, determining the effective touch data based on a preset noise law curve and original touch data includes: obtaining an original touch curve corresponding to the touch operation based on the original touch data; and determining the effective touch data based on the amplitude difference between the noise law curve and the original touch curve at the same position coordinates.
[0067] For example, Figure 5 The induction value of each node number in is subtracted from Figure 4 The induction value of the corresponding node number in is used to obtain the induction difference. For example: the node number 2 (horizontal axis), the corresponding induction difference is 0; the node number 4 (horizontal axis), the corresponding induction difference is 0; the node number 6 (horizontal axis), the corresponding induction difference is 0; the node number 8 (horizontal axis), the corresponding induction difference is 1; the node number 10 (horizontal axis), the corresponding induction difference is 3; the node number 12 (horizontal axis), the corresponding induction difference is 1; the node number 13 (horizontal axis), the corresponding induction difference is 0; ...
[0068] Figure 6 is a curve diagram of an example of effective touch data provided by an embodiment of the present application. In other words, Figure 6 It is a curve obtained based on the induction difference corresponding to each node number obtained above.
[0069] It should be understood that the curve of the effective touch data is obtained after removing the touch noise, that is, it does not include Figure 4 The touch noise listed in the figure can be used to reduce the noise of the original touch data. Figure 6 The curve shown can determine that the user's current touch operation mainly occurs in the touch display screen area corresponding to node number 7 to node number 13.
[0070] Step 330 , determining an operation event element corresponding to the touch operation according to the valid touch data, and responding based on the operation event element.
[0071] Optionally, the operation event element includes the position coordinates of the touch operation on the touch display screen and the touch type, and the touch type includes any one of single-click, double-click, and sliding operations.
[0072] Through the above method, the original touch data acquired on the touch display screen can be subjected to noise reduction processing, so that the touch data after the noise reduction processing is used as the input effective touch signal, and the processor of the electronic device determines the operation event element according to the input touch signal, and then responds based on the operation event element. This process avoids directly determining the operation event element based on the original touch data including noise, thereby improving the accuracy of touch data recognition and avoiding erroneous operations on the touch screen.
[0073] Specifically, this solution can combine the statistical analysis of the touch data noise to obtain the characteristic regularity curve of the noise, obtain the noise regularity curve through algorithm fitting, and finally remove the noise curve from the touch data acquired in real time, thereby obtaining the effective touch signal of the finger touch. In other words, this method improves the validity of the data by performing data noise reduction on the front end of the touch data, thereby improving the accuracy of the acquisition of the coordinates of the operation event. In other words, the effective touch signal in the embodiment of the present application is a signal that filters out the noise in the original touch data at the front end, and the touch data acquired based on the signal is more accurate, thereby improving the accuracy of touch operation recognition.
[0074] Figure 7 is a schematic diagram of a touch data processing device provided in an embodiment of the present application, see Figure 7 The device includes: a detection module 701, a processing module 702 and a response module 703.
[0075] The detection module 701 is used to detect the touch operation of the user on the touch display screen and obtain the original touch data generated by the touch operation;
[0076] The processing module 702 is used to determine the effective touch data according to the preset noise law curve and the original touch data; and determine the operation event element corresponding to the touch operation according to the effective touch data;
[0077] The response module 703 is used to respond based on the operation event element.
[0078] In a possible implementation, the processing module 702 is further configured to: generate a preset noise regularity curve.
[0079] In another possible implementation, the processing module 702 generates the preset noise law curve, specifically including: when no user touch operation is detected on the touch display screen, obtaining multiple noise data at different positions of the touch display screen at different times; and fitting the noise law curve according to the multiple noise data.
[0080] In another possible implementation, the processing module 702 determines the effective touch data according to a preset noise law curve and the original touch data, specifically including:
[0081] Obtaining an original touch curve corresponding to the touch operation according to the original touch data;
[0082] Valid touch data is determined according to the amplitude difference at the same position coordinate between the noise regularity curve and the original touch curve.
[0083] In another possible implementation, the operation event element includes the position coordinates of the touch operation on the touch display screen and the touch type, and the touch type includes any one of single-click, double-click, and sliding operations.
[0084] This device can combine the statistical analysis of the touch data noise to obtain the characteristic regularity curve of the noise, obtain the regularity curve of the noise through algorithm fitting, and finally remove the noise curve from the real-time touch data to obtain the effective signal of the finger touch. In other words, this method improves the validity of the data by performing data noise reduction on the front end of the touch data, thereby improving the uniformity of the coordinates of the operation event.
[0085] Figure 8 800 is a schematic diagram of a computer device provided in an embodiment of the present application. The computer device 800 may be: Generally, the computer device 800 includes: one or more processors 801 and one or more memories 802 .
[0086] The processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 801 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 801 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 801 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 801 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0087] The memory 802 may include one or more computer-readable storage media, which may be non-transitory. The memory 802 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 802 is used to store at least one computer program, which is used to be executed by the processor 801 to implement the sample data preprocessing method provided in the method embodiment of the present application.
[0088] In some embodiments, the computer device 800 may further optionally include: a peripheral device interface 803 and at least one peripheral device. The processor 801, the memory 802 and the peripheral device interface 803 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 803 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a display screen 805, a camera assembly 806, an audio circuit 807 and a power supply 808.
[0089] The peripheral device interface 803 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, the memory 802, and the peripheral device interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802, and the peripheral device interface 803 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0090] The radio frequency circuit 804 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 804 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like.
[0091] The display screen 805 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 805 is a touch display screen, the display screen 805 also has the ability to collect touch signals on the surface or above the surface of the display screen 805. The touch signal may be input as a control signal to the processor 801 for processing. At this time, the display screen 805 may also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards.
[0092] The camera assembly 806 is used to collect images or videos. Optionally, the camera assembly 806 includes a front camera and a rear camera. Usually, the front camera is arranged on the front panel of the computer device, and the rear camera is arranged on the back of the computer device.
[0093] The audio circuit 807 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them to the processor 801 for processing, or input them to the radio frequency circuit 804 to achieve voice communication.
[0094] The power supply 808 is used to supply power to various components in the computer device 800. The power supply 808 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery.
[0095] In some embodiments, the computer device 800 further includes one or more sensors 809 , including but not limited to: an acceleration sensor 810 , a gyroscope sensor 811 , a pressure sensor 812 , an optical sensor 813 , and a proximity sensor 814 .
[0096] The acceleration sensor 810 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established by the computer device 800 .
[0097] The gyro sensor 811 can detect the body direction and rotation angle of the computer device 800 . The gyro sensor 811 can cooperate with the acceleration sensor 810 to collect the user's 3D actions on the computer device 800 .
[0098] The pressure sensor 812 may be disposed on the side frame of the computer device 800 and / or the lower layer of the display screen 805. When the pressure sensor 812 is disposed on the side frame of the computer device 800, it may detect the user's gripping signal of the computer device 800, and the processor 801 may perform left and right hand recognition or shortcut operations according to the gripping signal collected by the pressure sensor 812. When the pressure sensor 812 is disposed on the lower layer of the display screen 805, the processor 801 may control the operable controls on the UI interface according to the user's pressure operation on the display screen 805.
[0099] The optical sensor 813 is used to collect the ambient light intensity. In one embodiment, the processor 801 can control the display brightness of the display screen 805 according to the ambient light intensity collected by the optical sensor 813.
[0100] The proximity sensor 814 is used to collect the distance between the user and the front of the computer device 800 .
[0101] Those skilled in the art will understand that Figure 8 The structure shown in the figure does not constitute a limitation on the computer device 800, and the computer device 800 may include more or less components than those shown in the figure, or combine some components, or adopt a different arrangement of components.
[0102] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a computer program, and the computer program can be executed by a processor to complete the sample data preprocessing method in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0103] In an exemplary embodiment, a computer program product or a computer program is also provided, which includes a program code, and the program code is stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the computer device performs the above-mentioned sample data preprocessing method.
[0104] In some embodiments, the computer program involved in the embodiments of the present application may be deployed and executed on a computer device, or on multiple computer devices located at one location, or on multiple computer devices distributed at multiple locations and interconnected by a communication network. Multiple computer devices distributed at multiple locations and interconnected by a communication network may constitute a blockchain system.
[0105] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0106] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0107] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0108] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0109] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0110] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0111] The above is a description of a stroke rendering method, device, storage medium and terminal provided in the present application. For technicians in this field, according to the ideas of the embodiments of the present application, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for processing touch data, characterized in that: Applied to an electronic device including a touch display screen, the method comprises: Detecting a touch operation of a user on the touch display screen, and acquiring raw touch data generated by the touch operation; Determine effective touch data according to a preset noise law curve and original touch data; An operation event element corresponding to the touch operation is determined according to the valid touch data, and a response is performed based on the operation event element.
2. The method according to claim 1, characterized in that The method further comprises: Generate the preset noise law curve.
3. The method according to claim 2, characterized in that The generating of the preset noise regularity curve comprises: When no user touch operation is detected on the touch display screen, acquiring a plurality of noise data at different positions of the touch display screen at different times; The noise law curve is obtained by fitting the multiple noise data.
4. The method according to claim 3, characterized in that The determining of effective touch data according to a preset noise law curve and original touch data includes: Obtaining an original touch curve corresponding to the touch operation according to the original touch data; Valid touch data is determined according to the amplitude difference at the same position coordinate between the noise regularity curve and the original touch curve.
5. The method according to any one of claims 1 to 4, characterized in that The operation event elements include the position coordinates of the touch operation on the touch display screen and the touch type, and the touch type includes any one of single-click, double-click, and sliding operations.
6. A touch data processing device, characterized in that: The device comprises: A detection module, used to detect a user's touch operation on the touch display screen and obtain raw touch data generated by the touch operation; A processing module, used for determining effective touch data according to a preset noise law curve and original touch data; Determining an operation event element corresponding to the touch operation according to the valid touch data; A response module is used to respond based on the operation event element.
7. An electronic device, characterized in that: include: Touch screen display; one or more processors; one or more memories; Modules with multiple applications installed; The memory stores one or more programs, and when the one or more programs are executed by the processor, the electronic device executes the method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method according to any one of claims 1 to 5.
9. A computer program product, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 5.
Citation Information
Cited By
Data processing method and device, electronic equipment and computer readable medium
CN120523358A