CN111880721A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111880721A
CN111880721A CN202010792925.XA CN202010792925A CN111880721A CN 111880721 A CN111880721 A CN 111880721A CN 202010792925 A CN202010792925 A CN 202010792925A CN 111880721 A CN111880721 A CN 111880721A
Authority
CN
China
Prior art keywords
touch
coordinates
coordinate
point
range
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
CN202010792925.XA
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.)
Chipone Technology Beijing Co Ltd
Original Assignee
Chipone Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chipone Technology Beijing Co Ltd filed Critical Chipone Technology Beijing Co Ltd
Priority to CN202010792925.XA priority Critical patent/CN111880721A/en
Publication of CN111880721A publication Critical patent/CN111880721A/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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • 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/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means

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)
  • Position Input By Displaying (AREA)

Abstract

The application provides a data processing method and device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring coordinates of touch points on a touch panel; judging whether the touch point coordinate is in a preset touch range or not; if the touch point coordinate is not in a preset touch range, connecting the center point coordinate of the touch panel with the touch point coordinate to obtain a connecting line; updating the coordinates of the touch points into the coordinates of the intersection points of the connecting lines and the contour lines of the touch range; the coordinate correction of the edge touch position is realized, and therefore the smooth effect of the touch track of the edge touch position is achieved.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of touch technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
In a touch system, schemes such as targeted coordinate calculation, edge data processing and the like are often required to be designed for different types of touch panels, so as to achieve effects of accurate point reporting, smooth edges and the like under the touch panels of different shapes.
For a circular touch panel, the touch panel generally includes n rows and n columns of touch sensors (n is a positive integer), and as shown in fig. 1, the circular touch panel includes 8 rows and 8 columns of touch sensors. The touch sensors along the circular boundary are deleted, i.e., the area becomes smaller. As shown in fig. 2, after the touch capacitance data at the edge touch position is preprocessed, the edge scribing track is jagged, curved, and the like because the touch capacitance data is difficult to be kept uniform.
Disclosure of Invention
The embodiment of the application provides a data processing method, which realizes coordinate correction of an edge touch position, thereby achieving a smooth effect of a touch track of the edge touch position.
The application provides a data processing method, which comprises the following steps:
acquiring coordinates of touch points on a touch panel;
judging whether the touch point coordinate is in a preset touch range or not;
if the touch point coordinate is not in a preset touch range, connecting the center point coordinate of the touch panel with the touch point coordinate to obtain a connecting line;
and updating the coordinates of the touch points into the coordinates of the intersection points of the connecting lines and the contour lines of the touch range.
In one embodiment, the acquiring coordinates of a touch point on the touch panel includes:
acquiring touch capacitance data on the touch panel;
and preprocessing the touch capacitance data to obtain the touch point coordinates.
In an embodiment, the method further comprises:
and performing edge judgment and coordinate updating processing on each touch point coordinate on the touch track to obtain an edge smooth touch track.
In one embodiment, the touch panel is a circular panel with a radius R, and the predetermined touch range is a circle with a radius R, where R >0, and R < R; the determining whether the coordinate of the touch point is within a preset touch range includes:
calculating the coordinates of the central point of the touch panel;
calculating the Euclidean distance between the coordinate of the touch point and the coordinate of the central point;
if the Euclidean distance is larger than r, indicating that the touch point coordinate is not in a preset touch range; otherwise, indicating that the touch point coordinate is in a preset touch range.
In an embodiment, the calculating the coordinates of the center point of the touch panel includes:
and calculating the coordinate of the center point of the touch panel according to the maximum value of the abscissa and the maximum value of the ordinate of the touch panel.
In an embodiment, before the updating the touch point coordinates to the coordinates of the intersection of the connecting line and the contour line of the touch range, the method further includes:
and calculating the intersection point coordinates of the connecting line and the contour line of the touch range.
In an embodiment, the calculating coordinates of the intersection point of the connecting line and the contour line of the touch range includes:
calculating the deflection angle of the connecting line relative to the coordinate axis;
subtracting r from the Euclidean distance to obtain a result which is recorded as delta D;
calculating the mapping distance of the delta D on the coordinate axis according to the deflection angle;
and calculating the coordinates of the intersection points according to the mapping distance and the coordinates of the touch points.
The present application also provides a data processing apparatus, the apparatus comprising:
the coordinate acquisition module is used for acquiring touch point coordinates on the touch panel;
the edge judgment module is used for judging whether the touch point coordinates are in a preset touch range or not;
the center connection module is used for connecting the center point of the touch panel and the coordinates of the touch points to obtain a connection line if the coordinates of the touch points are not in a preset touch range;
and the intersection point calculation module is used for updating the coordinates of the touch points into the coordinates of the intersection points of the connecting lines and the contour lines of the touch range.
The present application further provides an electronic device, which includes:
a processor;
a memory for storing processor-executable instructions;
the processor is configured as the data processing method provided by the embodiment of the application.
The application also provides a computer readable storage medium, which stores a computer program, and the computer program can be executed by a processor to complete the data processing method provided by the embodiment of the application.
The present application further provides a touch device, the touch device includes:
the electronic device provided by the embodiment of the application;
and the touch panel is electrically connected with the electronic equipment and used for sending touch capacitance data to the electronic equipment.
According to the technical scheme provided by the embodiment of the application, whether the touch point coordinate is in the preset touch range or not is judged by acquiring the touch point coordinate on the touch panel, if the touch point coordinate is not in the preset touch range, the central point coordinate of the touch panel and the touch point coordinate are connected to obtain the connecting line, the touch point coordinate is updated to the intersection point coordinate of the connecting line and the contour line of the touch range, the coordinate correction of the edge touch position is realized, and therefore the subsequent smooth effect of the touch track of the edge touch position is achieved conveniently.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be briefly described below.
FIG. 1 is a schematic view of a circular touch panel;
FIG. 2 is a schematic illustration of an edge scribe trace;
fig. 3 is a schematic view of an application scenario of a data processing method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 5 is a schematic coordinate diagram of a touch panel according to an embodiment of the present application;
fig. 6 is a schematic diagram of a preset touch range according to an embodiment of the present application;
FIG. 7 is a detailed flowchart of step S420 in the corresponding embodiment of FIG. 4;
FIG. 8 is a detailed flowchart of calculating coordinates of an intersection according to an embodiment of the present application;
FIG. 9 is a schematic diagram illustrating a line deflection angle according to an embodiment of the present disclosure;
fig. 10 is a schematic process diagram of a data processing method according to an embodiment of the present application;
fig. 11 is a block diagram of a data processing apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Fig. 3 is a schematic view of an application scenario of the data processing method according to the embodiment of the present application. As shown in fig. 3, the scenario includes: touch device 100. The touch device 100 can be a mobile phone, a tablet computer, and other electronic devices with a touch panel. The touch device 100 can implement coordinate correction on the edge touch position by using the data processing method provided by the embodiment, so as to achieve a smoothing effect on the touch trajectory of the edge touch position.
The touch device 100 includes a touch panel 110 and a controller 120. The touch panel includes a plurality of touch sensors 111 thereon. The controller 120 may be connected to the touch panel 110, acquire touch capacitance data acquired by the touch sensor 111, and implement coordinate correction on the edge touch position by using the data processing method provided in the embodiment.
The application also provides an electronic device. The electronic device may be the controller 120. The controller 120 may include a processor 121 and a memory 122 for storing instructions executable by the processor 121; wherein the processor 121 is configured to execute the data processing method provided by the present application.
The processor 1121 may be an integrated circuit chip having signal processing capabilities. The processor may be a general-purpose processor, and includes a Central processing unit (CPU, for short), a Network processor (NP, for short), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. Which may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory 122 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk.
The present application also provides a computer-readable storage medium storing a computer program executable by the processor 121 to perform the data processing method provided herein.
The application also provides a touch device, which can be a touch device 100. The touch device includes an electronic device, which may be a controller 120, and a touch panel 110. The touch panel 110 is electrically connected to the controller 120, and sends touch capacitance data to the controller 120. After receiving the touch capacitance data, the controller 120 implements coordinate correction of the edge touch position by using the data processing method provided in the embodiment of the present application.
Fig. 4 is a schematic flowchart of a data processing method according to an embodiment of the present application. As shown in fig. 4, the method includes the following steps S410-S440.
Step S410: and acquiring the coordinates of the touch point on the touch panel.
The touch point coordinates are coordinates indicating a touch position of the user on the touch panel. As shown in fig. 5, a plurality of touch sensors are distributed on a touch panel, and each touch sensor occupies a certain area. The distribution area of each touch sensor is subdivided, and the position on the touch panel can be represented by coordinates.
As shown in fig. 5, 8 × 8 touch sensors are distributed on the touch panel, and the horizontal and vertical directions of each touch sensor are divided into 4, so that the coordinates of point a in fig. 5 are (11, 11). In practical applications, the abscissa and the ordinate of each touch sensor can be divided into 128 or 256 parts according to the requirement of resolution. And when a touch action occurs, processing the data according to the data acquired by the touch sensor to obtain the coordinates of the touch point. The touch point coordinates may be a plurality of coordinates on the user touch trajectory.
Step S420: and judging whether the touch point coordinate is in a preset touch range.
The preset touch range can be a closed graph in the range of the touch panel. In one embodiment, the outline of the closed figure may be the same as the outline of the touch panel. The outline of the touch panel can be circular, oval, quadrilateral, etc.
As shown in fig. 6, a circular touch panel 600 is provided, and the predetermined touch range 610 is a circle having a center the same as the center of the circular touch panel 600 and a radius smaller than the radius of the circular touch panel 600. In this step, it is determined whether the coordinates of the touch point obtained in step S410 are within a preset touch range. When the touch point coordinate is not within the preset touch range, it is indicated that the touch point coordinate is at the edge touch position, and the method provided by the embodiment of the application can be continuously adopted to perform data processing of the edge touch position. When the touch point coordinate is located at point B in fig. 6, it is described that the touch point coordinate is within the preset touch range; when the touch point coordinate is located at point C in fig. 6, it is described that the touch point coordinate is not within the preset touch range.
Step S430: and if the touch point coordinate is not in a preset touch range, connecting the central point coordinate of the touch panel with the touch point coordinate to obtain a connecting line.
The coordinates of the center point of the touch panel refer to coordinates of the center position of the touch panel. According to the touch panels with different shapes, the coordinates of the center point of the touch panel can be determined in different ways. In one embodiment, for a circular touch panel, the center point coordinates are the center of a circle; for a rectangular touch panel, the center point coordinate is the intersection point of two diagonal lines.
And if the touch point coordinate is not in the preset touch range, connecting the central point coordinate of the touch panel with the touch point coordinate to obtain a connecting line. As shown in fig. 6, in an embodiment, the center coordinate of the circular touch panel 600 is E, and the center coordinate E and the touch point coordinate C are connected to obtain a connection line.
Step S440: and updating the coordinates of the touch points into the coordinates of the intersection points of the connecting lines and the contour lines of the touch range.
Because the contour line of the touch range is a smooth curve or a straight line, in this step, the coordinates of the touch points are updated to the coordinates of the intersection of the connecting line and the contour line of the touch range, that is, the coordinates of the touch points are all updated to one point on the contour line of the touch range. In fig. 6, the touch point coordinate C is updated to the intersection point coordinate F. Because the contour line of the touch control range is a smooth curve or a straight line, the coordinate of the touch control point is updated to the intersection point coordinate of the connecting line and the contour line of the touch control range, so that the touch control track is conveniently updated to a curve along the contour line of the touch control range in the subsequent process, and the smooth effect of the touch control track of the edge touch control position is achieved.
According to the technical scheme provided by the embodiment of the application, whether the touch point coordinate is in the preset touch range or not is judged by acquiring the touch point coordinate on the touch panel, if the touch point coordinate is not in the preset touch range, the central point coordinate of the touch panel and the touch point coordinate are connected to obtain the connecting line, the touch point coordinate is updated to the intersection point coordinate of the connecting line and the contour line of the touch range, the coordinate correction of the edge touch position is realized, and therefore the subsequent smooth effect of the touch track of the edge touch position is achieved conveniently.
In an embodiment, the step S410 may include: acquiring touch capacitance data on the touch panel; and preprocessing the touch capacitance data to obtain the touch point coordinates.
The touch capacitance data refers to capacitance data directly acquired by the touch sensor and can indicate touch behaviors. When a touch action occurs at a certain position, capacitance data collected by the touch sensor at the position can be obviously changed. Touch control capacitance data are preprocessed, and touch control point coordinates can be obtained.
In an embodiment, the touch capacitance data is preprocessed by performing data processing processes such as filtering, edge calculation, and coordinate reporting to obtain the coordinates of the touch point.
On the basis of the above embodiment, the method provided by the embodiment of the present application further includes:
and performing edge judgment and coordinate updating processing on each touch point coordinate on the touch track to obtain an edge smooth touch track.
For the touch tracks at the edge touch positions, due to the uneven distribution of the touch capacitance data, the touch tracks are often jagged, bent, and the like. The edge judgment and coordinate updating processing operations provided by the above embodiment are performed for each touch point coordinate on the touch track, so that each touch point coordinate on the touch track is updated to be the intersection point coordinate of the connecting line and the contour line of the preset touch range. And obtaining an edge smooth touch track according to all the updated touch point coordinates. At this time, the updated touch track is a smooth curve along the preset touch range contour line, so that the problems of sawtooth, bending and the like of the previous edge touch track are solved.
In one embodiment, the touch panel is a circular panel with a radius R, and the predetermined touch range is a circle with a radius R, where R >0, and R < R; as shown in fig. 7, the step S420 of determining whether the touch point coordinate is within the predetermined touch range may include the following steps S710 to S730.
Step S710: and calculating the coordinates of the central point of the touch panel.
In this step, the coordinates of the center point of the touch panel may be calculated according to the geometric features of the circular panel. In an embodiment, the coordinates of the center point of the touch panel may be calculated according to the maximum value of the abscissa and the maximum value of the ordinate of the touch panel. In the rectangular coordinate system, let the coordinate of the center point of the touch panel be P0=(x0,y0) Wherein x is0Is the abscissa, y0Is the ordinate. The maximum value of the abscissa of the touch panel is PosX _ Max, the maximum value of the ordinate is PosY _ Max, and then x is0=PosX_Max/2,y0The center point coordinate of the touch panel may be represented as P ═ PosY _ Max/20=(PosX_Max/2,PosY_Max/2)。
Step S720: and calculating the Euclidean distance between the coordinate of the touch point and the coordinate of the central point.
Let the coordinate of the touch point be P1Touch point coordinate P if (PosX, PosY)1Coordinate with the center point P0The Euclidean distance D between can be expressed as
Figure BDA0002623636300000101
Step S730: if the Euclidean distance is larger than r, indicating that the touch point coordinate is not in a preset touch range; otherwise, indicating that the touch point coordinate is in a preset touch range.
From the geometric characteristics of the circle, it can be derived that D is the time when D is>r, indicating coordinate P of touch point1The touch control panel is not in a preset touch control range, namely is in the edge position of the touch control panel; when in useWhen D is less than or equal to r, indicating the coordinate P of the touch point1And the touch screen is in a preset touch range.
In an embodiment, before step S440, the method further includes: and calculating the intersection point coordinates of the connecting line and the contour line of the touch range.
When the touch panel is a circular panel with a radius R and the predetermined touch range is a circle with a radius R, as shown in fig. 8, calculating the coordinates of the intersection point of the connecting line and the contour line of the touch range may include the following steps S810 to S840.
Step S810: and calculating the deflection angle of the connecting line relative to the coordinate axis.
As shown in FIG. 9, the abscissa and ordinate of the rectangular coordinate system are positive to the left and positive to the bottom, respectively, and the deflection angle θ of the connecting line with respect to the abscissa can be expressed as
Figure BDA0002623636300000111
Step S820: subtracting r from the Euclidean distance, and recording the result as delta D. I.e., Δ D-r.
Step S830: and calculating the mapping distance of the delta D on the coordinate axis according to the deflection angle.
From the deflection angle θ, the mapping distance of Δ D on the abscissa axis can be calculated as
ΔDx=ΔD·cosθ
Likewise, the mapping distance of Δ D on the ordinate can be calculated as
ΔDy=ΔD·sinθ
Step S840: and calculating the coordinates of the intersection points according to the mapping distance and the coordinates of the touch points.
According to the mapping distance Delta DxAnd Δ DyAnd touch point coordinates P1(PosX, PosY), the intersection coordinates P can be obtained2=(PosX+ΔDx,PosY+ΔDy)。
After that, the touch point coordinate P is determined1Updated to the intersection point coordinate P3Thus, the touch point sitting at the edge touch position is completedThe subject data processing procedure.
Fig. 10 is a process diagram of a data processing method according to an embodiment of the present application. In this embodiment, the touch panel is a circular panel with a radius R, and the predetermined touch range is a circle with a radius R, where R >0, and R < R. The process includes the following steps S1010-S10110.
Step S1010: and acquiring the coordinates of the touch point on the touch panel.
Step S1020: and calculating the coordinates of the central point of the touch panel.
Step S1030: and calculating the Euclidean distance between the coordinate of the touch point and the coordinate of the central point.
Step S1040: and judging whether the Euclidean distance is larger than r, if so, entering the step S1050, and if not, ending.
Step S1050: and connecting the coordinates of the central point of the touch panel with the coordinates of the touch point to obtain a connecting line.
Step S1060: and calculating the deflection angle of the connecting line relative to the coordinate axis.
Step S1070: subtracting r from the Euclidean distance, and recording the result as delta D.
Step S1080: and calculating the mapping distance of the delta D on the coordinate axis according to the deflection angle.
Step S1090: and calculating the coordinates of the intersection points according to the mapping distance and the coordinates of the touch points.
Step S10110: and updating the coordinates of the touch points into the coordinates of the intersection points of the connecting lines and the contour lines of the touch range.
The following are embodiments of the apparatus of the present application, which can be used to implement the above-mentioned embodiments of the data processing method of the present application. For details not disclosed in the embodiments of the apparatus of the present application, refer to the embodiments of the data processing method of the present application.
Fig. 11 is a block diagram of a data processing apparatus according to an embodiment of the present application. As shown in fig. 11, the apparatus includes: a coordinate acquisition module 1110, an edge determination module 1120, a center connection module 1130, and an intersection calculation module 1140.
The coordinate obtaining module 1110 is configured to obtain coordinates of a touch point on the touch panel.
The edge determining module 1120 is configured to determine whether the touch point coordinate is within a preset touch range.
The center connection module 1130 is configured to connect the center point of the touch panel and the touch point coordinate to obtain a connection line if the touch point coordinate is not within a preset touch range.
An intersection point calculating module 1140, configured to update the coordinates of the touch point to coordinates of an intersection point of the connecting line and the contour line of the touch range.
The implementation process of the functions and actions of each module in the device is specifically described in the implementation process of the corresponding step in the data processing method, and is not described herein again.
In the embodiments provided in the present application, the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. 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 involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing 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 application. 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.

Claims (11)

1. A method of data processing, the method comprising:
acquiring coordinates of touch points on a touch panel;
judging whether the touch point coordinate is in a preset touch range or not;
if the touch point coordinate is not in a preset touch range, connecting the center point coordinate of the touch panel with the touch point coordinate to obtain a connecting line;
and updating the coordinates of the touch points into the coordinates of the intersection points of the connecting lines and the contour lines of the touch range.
2. The data processing method of claim 1, wherein the obtaining coordinates of the touch point on the touch panel comprises:
acquiring touch capacitance data on the touch panel;
and preprocessing the touch capacitance data to obtain the touch point coordinates.
3. The data processing method of claim 1, wherein the method further comprises:
and performing edge judgment and coordinate updating processing on each touch point coordinate on the touch track to obtain an edge smooth touch track.
4. The data processing method of claim 1, wherein the touch panel is a circular panel with a radius R, and the predetermined touch range is a circle with a radius R, where R >0, and R < R; the determining whether the touch point coordinate is within a preset touch range includes:
calculating the coordinates of the central point of the touch panel;
calculating the Euclidean distance between the coordinate of the touch point and the coordinate of the central point;
if the Euclidean distance is larger than r, indicating that the touch point coordinate is not in a preset touch range; otherwise, indicating that the touch point coordinate is in a preset touch range.
5. The data processing method of claim 4, wherein the calculating coordinates of the center point of the touch panel comprises:
and calculating the coordinate of the center point of the touch panel according to the maximum value of the abscissa and the maximum value of the ordinate of the touch panel.
6. The data processing method according to claim 4, wherein before the updating the touch point coordinates to coordinates of an intersection of the connecting line and the contour line of the touch range, the method further comprises:
and calculating the intersection point coordinates of the connecting line and the contour line of the touch range.
7. The data processing method according to claim 6, wherein the calculating coordinates of the intersection of the connecting line and the contour of the touch range includes:
calculating the deflection angle of the connecting line relative to the coordinate axis;
subtracting r from the Euclidean distance to obtain a result which is recorded as delta D;
calculating the mapping distance of the delta D on the coordinate axis according to the deflection angle;
and calculating the coordinates of the intersection points according to the mapping distance and the coordinates of the touch points.
8. A data processing apparatus, characterized in that the apparatus comprises:
the coordinate acquisition module is used for acquiring touch point coordinates on the touch panel;
the edge judgment module is used for judging whether the touch point coordinates are in a preset touch range or not;
the center connection module is used for connecting the center point of the touch panel and the coordinates of the touch points to obtain a connection line if the coordinates of the touch points are not in a preset touch range;
and the intersection point calculation module is used for updating the coordinates of the touch points into the coordinates of the intersection points of the connecting lines and the contour lines of the touch range.
9. An electronic device, characterized in that the electronic device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the data processing method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the storage medium stores a computer program executable by a processor to perform the data processing method of any one of claims 1-7.
11. A touch device, comprising:
the electronic device of claim 9;
and the touch panel is electrically connected with the electronic equipment and used for sending touch capacitance data to the electronic equipment.
CN202010792925.XA 2020-08-07 2020-08-07 Data processing method and device, electronic equipment and storage medium Pending CN111880721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010792925.XA CN111880721A (en) 2020-08-07 2020-08-07 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010792925.XA CN111880721A (en) 2020-08-07 2020-08-07 Data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111880721A true CN111880721A (en) 2020-11-03

Family

ID=73211376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010792925.XA Pending CN111880721A (en) 2020-08-07 2020-08-07 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111880721A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433638A (en) * 2020-12-09 2021-03-02 合肥维信诺科技有限公司 Touch method and device of display panel and touch display panel

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459768A (en) * 2018-03-07 2018-08-28 业成科技(成都)有限公司 Flexible PCB, touch panel, touch module and electronic device
CN109583320A (en) * 2018-11-08 2019-04-05 Oppo广东移动通信有限公司 Fingerprint identification method and relevant apparatus
CN109847345A (en) * 2019-01-24 2019-06-07 吴宏琴 False-touch prevention method and mobile terminal based on scene of game
CN110262705A (en) * 2019-06-24 2019-09-20 北京集创北方科技股份有限公司 Localization method, positioning device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108459768A (en) * 2018-03-07 2018-08-28 业成科技(成都)有限公司 Flexible PCB, touch panel, touch module and electronic device
CN109583320A (en) * 2018-11-08 2019-04-05 Oppo广东移动通信有限公司 Fingerprint identification method and relevant apparatus
CN109847345A (en) * 2019-01-24 2019-06-07 吴宏琴 False-touch prevention method and mobile terminal based on scene of game
CN110262705A (en) * 2019-06-24 2019-09-20 北京集创北方科技股份有限公司 Localization method, positioning device and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112433638A (en) * 2020-12-09 2021-03-02 合肥维信诺科技有限公司 Touch method and device of display panel and touch display panel
CN112433638B (en) * 2020-12-09 2024-05-14 合肥维信诺科技有限公司 Touch control method and device of display panel and touch control display panel

Similar Documents

Publication Publication Date Title
CN109978925B (en) Robot pose recognition method and robot thereof
US10977829B2 (en) Depth camera calibration device and method thereof
CN109543489B (en) Positioning method and device based on two-dimensional code and storage medium
CN109598744B (en) Video tracking method, device, equipment and storage medium
CN113869293A (en) Lane line recognition method and device, electronic equipment and computer readable medium
CN112556994B (en) Optical information detection method, device and equipment
CN112801111B (en) Image straight line edge point classification method and device based on gradient direction
US8773354B2 (en) Method utilized in three-dimensional pointing system
CN111880721A (en) Data processing method and device, electronic equipment and storage medium
TW201911230A (en) Surveillance method, computing device, and non-transitory storage medium
CN113311390A (en) Sound source positioning method, device, equipment and storage medium based on distributed wheat array
CN115457202B (en) Method, device and storage medium for updating three-dimensional model
CN110415196A (en) Method for correcting image, device, electronic equipment and readable storage medium storing program for executing
CN111428707B (en) Method and device for identifying pattern identification code, storage medium and electronic equipment
CN112465917B (en) Distortion calibration method, system, equipment and storage medium of lens module
CN110874814A (en) Image processing method, image processing device and terminal equipment
CN110689586A (en) Tongue image identification method in traditional Chinese medicine intelligent tongue diagnosis and portable correction color card used for same
CN113505745A (en) Character recognition method and device, electronic equipment and storage medium
CN111950659B (en) Double-layer license plate image processing method and device, electronic equipment and storage medium
CN113297911B (en) Positioning error correction method and device based on microphone array and storage medium
CN111709912A (en) Arc edge detection method and device and storage medium
CN113673522B (en) Method, device and equipment for detecting inclination angle of text image and storage medium
CN117911467A (en) Point cloud registration method and device, terminal equipment and storage medium
CN116883292B (en) pseudo-Gaussian-based image direction field acquisition method, system and computer equipment
CN115222631B (en) Distorted image correction method, device and equipment and readable storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201103