CN109542278B - Touch data processing method and device and touch equipment - Google Patents

Touch data processing method and device and touch equipment Download PDF

Info

Publication number
CN109542278B
CN109542278B CN201811134635.5A CN201811134635A CN109542278B CN 109542278 B CN109542278 B CN 109542278B CN 201811134635 A CN201811134635 A CN 201811134635A CN 109542278 B CN109542278 B CN 109542278B
Authority
CN
China
Prior art keywords
touch
action
mode
coordinates
screen
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.)
Active
Application number
CN201811134635.5A
Other languages
Chinese (zh)
Other versions
CN109542278A (en
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.)
Jiangsu TSD Electronics Technology Co Ltd
Original Assignee
Jiangsu TSD Electronics Technology 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 Jiangsu TSD Electronics Technology Co Ltd filed Critical Jiangsu TSD Electronics Technology Co Ltd
Priority to CN201811134635.5A priority Critical patent/CN109542278B/en
Publication of CN109542278A publication Critical patent/CN109542278A/en
Application granted granted Critical
Publication of CN109542278B publication Critical patent/CN109542278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • 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/046Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by electromagnetic means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04104Multi-touch detection in digitiser, i.e. details about the simultaneous detection of a plurality of touching locations, e.g. multiple fingers or pen and finger

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention discloses a touch data processing method, a touch data processing device and touch equipment, wherein the method comprises the following steps: acquiring touch information; the touch information comprises a touch identification number, coordinates of a touch point and a generation type of a touch action; the touch identification numbers correspond to the touch actions one by one, and each touch action forms a plurality of touch points; the generation type of the touch action comprises at least one of an electromagnetic pen, a finger or a palm; determining a mode of the touch action based on the generation type of the touch action; wherein the mode of the touch action comprises writing or erasing; the generation types of the touch actions correspond to the modes of the touch actions one by one; and forming a touch line according to the mode of the touch action, the touched identification number and the coordinates of the touch point. The touch actions generated on the same touch screen are distinguished by the touch identification numbers, and the method can realize that a plurality of people write and erase on the same touch screen at the same time without mutual interference, thereby improving the processing efficiency of the touch screen.

Description

Touch data processing method and device and touch equipment
Technical Field
The invention relates to the technical field of touch screens, in particular to a touch data processing method and device and touch equipment.
Background
With the development of mobile internet and the popularization of intelligent terminals, people increasingly store documents, pictures and other data on electronic equipment to realize mobile office work. Among them, touch devices (e.g., electronic whiteboards, liquid crystal touch integrated machines, tablet computers, mobile phones, etc.) are widely used.
In the prior art, the operation of the touch equipment can only be selected by a single person through a menu or a button to select a writing or erasing mode; or, the touch screen of the touch device is divided into at least two areas, and the operation is performed corresponding to each area.
In the second mode, although the touch device can be operated by multiple users at the same time, the touch device is required to perform a split-screen operation on the touch screen, and the touch device is operated corresponding to different areas. For example, the touch screen is divided into two areas A and B, and the operations of the area A and the area B are independent of each other and have no influence on each other, so that the simultaneous operation of multiple persons can be realized in different areas of the same touch screen. However, since there is no influence between different areas, the method is still a single person operation, but the different areas are integrated into one touch screen.
Therefore, in the prior art, two operation modes for the touch screen are substantially single-person operation in the same area, and for multi-person operation in the same area, after the last one-person operation is completed, the next one-person operation is required, which results in waste of processing resources of the touch screen and lower processing efficiency of the touch screen.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for processing touch data, and a touch device, so as to solve the problem of low processing efficiency of an existing touch screen.
According to a first aspect, an embodiment of the present invention provides a method for processing touch data, including:
acquiring touch information; the touch information comprises a touch identification number, coordinates of a touch point and a generation type of a touch action; the touch identification numbers correspond to the touch actions one by one, and each touch action forms a plurality of touch points; the generation type of the touch action comprises at least one of an electromagnetic pen, a finger or a palm;
determining a mode of the touch action based on the generation type of the touch action; wherein the mode of the touch action comprises writing or erasing;
and forming a touch line according to the mode of the touch action, the touch identification number and the coordinates of the touch point.
The touch data processing method provided by the embodiment of the invention is characterized in that each touch action corresponds to a unique touch identification number, and the generation types of the touch actions correspond to the modes of the touch actions one by one; namely, the touch actions generated on the same touch screen are distinguished by the touch identification numbers, and the method can realize that a plurality of people write and erase on the same touch screen at the same time without interference, thereby improving the processing efficiency of the touch screen.
With reference to the first aspect, in a first implementation manner of the first aspect, the forming a touch line according to the mode of the touch action, the touch identification number, and the coordinates of the touch point includes:
when the mode of a first touch action corresponding to the first touch identification number is erasure, extracting coordinates of two adjacent touch points formed by the first touch action;
and forming the touch line by using the extracted coordinates of the two adjacent touch points.
With reference to the first aspect or the first implementation manner, in a second implementation manner of the first aspect, the forming the touch line by using the extracted coordinates of the two adjacent touch points includes:
judging whether the coordinates of the two adjacent touch points are the same;
when the coordinates of the two adjacent touch points are different, fitting the touch line between the two adjacent touch points by using an interpolation method; wherein the color of the touch line strip is a canvas background.
According to the touch data processing method provided by the embodiment of the invention, the touch line is fitted between two adjacent touch points by using an interpolation method, so that the precision of the formed touch line is improved.
With reference to the first aspect, in a third implementation manner of the first aspect, the touch information further includes contact information between the electromagnetic pen, the finger, or the palm and the touch device; wherein the contact information is one of pressure or area;
forming a touch line according to the mode of the touch action, the touch identification number and the coordinates of the touch point, and further comprising:
acquiring the resolution of the touch equipment;
and calculating the line width of the touch line by using the contact information and the resolution.
According to the touch data processing method provided by the embodiment of the invention, the line width of the touch line is calculated according to the relation between the resolution of the touch equipment and the contact information; under the condition of ensuring the display precision of the touch lines, the pen point is formed by lines with different thicknesses, and the accuracy of touch data processing is improved.
With reference to the first aspect, in a fourth implementation manner of the first aspect, a touch device includes a capacitive screen and an electromagnetic screen that are stacked, and touch areas of the capacitive screen and the electromagnetic screen correspond to a display area of the touch device; the capacitive screen is used for responding to touch actions of the fingers or the palm, and the electromagnetic screen is used for responding to touch actions of the electromagnetic pen.
According to the touch data processing method provided by the embodiment of the invention, the overlapping of the touch areas of the capacitive screen and the electromagnetic screen is ensured through the overlapping arrangement of the capacitive screen and the electromagnetic screen, so that the erasing and the writing can be simultaneously realized in the display area of the touch equipment.
With reference to the fourth implementation manner of the first aspect, in the fifth implementation manner of the first aspect, before the step of acquiring touch information, the method further includes:
respectively establishing communication pipelines between the electromagnetic screen and the capacitive screen;
marking each of said communication pipes; and the communication pipeline corresponding to the capacitive screen is marked as a first identifier, and the communication pipeline corresponding to the electromagnetic screen is marked as a second identifier.
According to the touch data processing method provided by the embodiment of the invention, different communication pipelines are marked, so that the touch data can be distinguished from the capacitive screen or the electromagnetic screen, the generation type of the touch action can be distinguished, and the mode of the touch action can be further determined.
With reference to the fourth implementation manner of the first aspect, in the sixth implementation manner of the first aspect, the touch information further includes an identifier of the communication pipe; wherein the determining the mode of the touch action based on the generation type of the touch action comprises:
extracting a marker of the communication pipe;
when the extracted mark is the first mark, determining that the mode of the touch action is erasure;
and when the extracted mark is the second mark, determining that the mode of the touch action is writing.
According to a second aspect, an embodiment of the present invention further provides an apparatus for processing touch data, including:
the acquisition module is used for acquiring touch information; the touch information comprises a touch identification number, coordinates of a touch point and a generation type of a touch action; the touch identification numbers correspond to the touch actions one by one, and each touch action forms a plurality of touch points; the generation type of the touch action comprises at least one of an electromagnetic pen, a finger or a palm;
the mode determination module is used for determining the mode of the touch action based on the generation type of the touch action; wherein the mode of the touch action comprises writing or erasing; the generation types of the touch actions correspond to the modes of the touch actions one by one;
and the touch line forming module is used for forming a touch line according to the mode of the touch action, the touch identification number and the coordinates of the touch point.
According to the processing device of the touch data provided by the embodiment of the invention, each touch action corresponds to a unique touch identification number, and the generation types of the touch actions correspond to the modes of the touch actions one by one; the touch screen device has the advantages that touch actions generated on the same touch screen are distinguished by the touch identification numbers, multiple persons can write and erase on the same touch screen at the same time, the touch actions are not interfered with one another, and the processing efficiency of the touch screen is improved.
According to a third aspect, an embodiment of the present invention further provides a touch device, including:
the touch panel, the memory and the processor are connected with each other in a communication manner, the memory stores computer instructions, and the processor executes the computer instructions to execute the first aspect or the processing method of the touch data in any embodiment of the first aspect.
According to a fourth aspect, the present invention further provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to cause the computer to execute the first aspect, or the method for processing touch data described in any implementation manner of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method of processing touch data according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of processing touch data according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method of processing touch data according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a touch device according to an embodiment of the present invention;
fig. 5 is a block diagram of a configuration of a touch data processing apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of a configuration of a touch data processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a touch device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The inventor of the application marks each touch action, the generation type of each touch action corresponds to a unique touch action mode, and the touch equipment can realize simultaneous operation of multiple persons on the same touch screen by using the touch identification number and the touch action mode.
For example: (1) the touch screen of the touch device is a capacitive screen, and the capacitive screen can respond to the operation of fingers and palms; therefore, in the touch device, the mode corresponding to the touch action of the finger may be set in advance as writing, and the mode corresponding to the touch action of the palm may be set as erasing. The touch equipment can distinguish different touch actions by using the labels of the touch actions, and mutual noninterference among the touch actions is realized.
(2) The touch screen of the touch device is a laminated structure of a capacitive screen and an electromagnetic screen, and the electromagnetic screen can respond to the operation of an electromagnetic pen corresponding to the electromagnetic screen, and the capacitive screen can respond to the operation of fingers and a palm; therefore, in the touch device, a mode corresponding to a touch action of the electromagnetic pen may be set in advance as writing, a mode corresponding to a touch action of the finger as operation (translation, enlargement, reduction, rotation, selection, copy, deletion, or the like), and a mode corresponding to a touch action of the palm as erasing. The touch equipment can distinguish different touch actions by using the labels of the touch actions, and mutual noninterference among the touch actions is realized.
It should be noted that the touch device may be of other types, and it is only necessary to ensure that the touch device is preset with the touch action mode corresponding to the generation type of each touch action, and distinguish each touch action by using the touch identification number, so as to achieve the purpose of simultaneous operation by multiple people on the same touch screen.
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for processing touch data, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different than that presented herein.
In this embodiment, a method for processing touch data is provided, which can be used in the touch device described above, and fig. 1 is a flowchart of a method for processing touch data according to an embodiment of the present invention, as shown in fig. 1, where the flowchart includes the following steps:
and S11, acquiring touch information.
The touch information comprises a touch identification number, coordinates of a touch point and a generation type of a touch action. The touch identification numbers correspond to the touch actions one by one, and each touch action forms a plurality of touch points; the type of generation of the touch action includes at least one of an electromagnetic pen, a finger, or a palm.
The touch action is taken from pressing the touch screen to lifting the touch screen, the whole process is counted as one touch action, and each touch action can form a plurality of touch points.
S12, based on the generation type of the touch action, a mode of the touch action is determined.
Wherein the mode of the touch action comprises writing or erasing; the generation type of the touch action corresponds to the mode of the touch action one by one.
The touch action generation type in the touch equipment corresponds to the touch action mode one by one, namely the electromagnetic pen, the finger or the palm only corresponds to one touch action mode in the current operation process, so that the touch action mode can be determined based on the touch action generation type.
In the touch device, a mode of a corresponding touch action is set in advance for a generation type of the touch action. For example, four modes are provided in the touch device: (1) the mode of the touch action corresponding to the electromagnetic pen is writing, and the mode of the touch action corresponding to the finger is erasing; (2) the mode of the touch action corresponding to the electromagnetic pen is writing, the mode of the touch action corresponding to the fingers is writing, and the mode of the touch action corresponding to the palm is erasing; (3) the mode of the touch action corresponding to the fingers is writing, and the mode of the touch action corresponding to the palm is book wiping; (4) the touch action mode corresponding to the electromagnetic pen is writing, the touch action mode corresponding to the finger is operation (translation, magnification, reduction, rotation, selection, copy, deletion and the like), and the touch action mode corresponding to the palm is erasing.
Because the capacitive screen can respond to the operation of fingers and palms, and the electromagnetic screen can respond to the operation of the electromagnetic pen. Therefore, when each touch screen responds to the generation type of each touch action, the generation type of the touch action and the coordinates of the touch point can be sent to the touch equipment together, and the touch equipment can determine the mode of the touch action corresponding to each touch identification number by using the generation type of the touch action and a preset mode.
And S13, forming a touch line according to the mode of the touch action, the touch identification number and the coordinates of the touch point.
In the display area of the touch device, corresponding to each touch action, a touch line is represented in the display area, and the touch line is composed of a plurality of touch points. When the touch action mode is writing, the motion track of the touch action is displayed in the display area of the touch equipment; when the mode of the touch action is erasing, a touch line same as the background of the drawing board can be displayed in the display area of the touch device, and the touch point displayed in the display area can be removed by using the coordinates of the corresponding touch point, so that the erasing purpose is realized.
In the method for processing touch data provided in this embodiment, each touch action corresponds to a unique touch identification number, and the generation types of the touch actions correspond to the modes of the touch actions one to one; namely, the touch actions generated on the same touch screen are distinguished by the touch identification numbers, and the method can realize that a plurality of people write and erase on the same touch screen at the same time without interference, thereby improving the processing efficiency of the touch screen.
An embodiment of the present invention further provides a method for processing touch data, as shown in fig. 2, the method includes:
and S21, acquiring touch information.
The touch information comprises a touch identification number, coordinates of a touch point and a generation type of a touch action; the touch identification numbers correspond to the touch actions one by one, and each touch action forms a plurality of touch points; the type of generation of the touch action includes at least one of an electromagnetic pen, a finger, or a palm. Please refer to S11 in fig. 1, which is not described herein again.
S22, determining the touch action mode according to the generation type of the touch action.
Wherein the mode of the touch action comprises writing or erasing; the generation type of the touch action corresponds to the mode of the touch action one by one. Please refer to S12 in fig. 1, which is not described herein again.
And S23, forming a touch line according to the mode of the touch action, the touch identification number and the coordinates of the touch point.
The touch action mode may be writing, erasing, operating, or the like. In the present embodiment, the erasing is described in detail by taking the erasing as an example. Specifically, the method comprises the following steps:
s231, when the mode of the first touch action corresponding to the first touch identification number is erasing, extracting coordinates of two adjacent touch points formed by the first touch action.
And forming a plurality of touch points in each touch action, forming a first touch point from the pressing of the touch screen, and sequentially extracting the coordinates of two adjacent touch points to perform subsequent fitting of the touch line. For example, the touch identification number a1 has corresponding touch points d1, d2, d3, … …, and dn, and the coordinates of each touch point are sequentially extracted, and the coordinates of two adjacent touch points are used to perform subsequent touch line fitting.
And S232, forming a touch line by using the extracted coordinates of the two adjacent touch points.
And taking two adjacent touch points as a group, and fitting the touch lines. For example, (d1, d2), (d2, d3), (d2, d3), … …, (dn-1, dn), fitting of a touch line is performed using the coordinates of two touch points in each group. The fitted touch line strip may be the same line strip as the canvas background to cover the line of the erased area.
The method specifically comprises the following steps:
(1) and judging whether the coordinates of the two adjacent touch points are the same.
When the coordinates of two adjacent touch points are the same, indicating that one point is formed at this time, S231 is performed again; and (3) when the coordinates of the two adjacent touch points are not the same, executing the step (2).
(2) When the coordinates of two adjacent touch points are different, fitting a touch line between the two adjacent touch points by using an interpolation method; wherein the color of the touch line strip is the canvas background.
A plurality of coordinate points are formed between two adjacent touch points by utilizing an interpolation method, so that a touch line is fitted based on the coordinate points, and the fitting precision of the line is improved.
It should be noted that the erasing in this embodiment may also be implemented in other manners, and only needs to be implemented by using the touch action mode, the touch identification number, and the coordinates of the touch point, which all belong to the protection scope of the present invention.
Compared with the embodiment shown in fig. 1, the touch data processing method provided by the embodiment fits the touch line between two adjacent touch points by using an interpolation method, so that the accuracy of the formed touch line is improved.
As an optional implementation manner of this embodiment, when the mode of the first touch action corresponding to the first touch identifier is writing, a specific forming process of the touch line is similar to a forming process of the erasing operation. Different from this, write the colour of the touch lines that forms and can carry out specific settings according to actual conditions, for example, before the electromagnetism pen is writing, first select corresponding line colour, the electromagnetic screen that corresponds sends line colour together when sending touch information to touch equipment, wherein, touch identification number and line colour one-to-one correspond.
An embodiment of the present invention further provides a method for processing touch data, as shown in fig. 3, the method includes:
and S31, acquiring touch information.
The touch information comprises a touch identification number, coordinates of a touch point and a generation type of a touch action; the touch identification numbers correspond to the touch actions one by one, and each touch action forms a plurality of touch points; the type of generation of the touch action includes at least one of an electromagnetic pen, a finger, or a palm.
Please refer to the embodiment S21 shown in fig. 2 in detail, which is not described herein again.
S32, determining the touch action mode according to the generation type of the touch action.
Wherein the mode of the touch action comprises writing or erasing; the generation types of the touch actions correspond to the modes of the touch actions one by one.
Please refer to S22 in fig. 2 for details, which are not described herein.
And S33, forming a touch line according to the mode of the touch action, the touch identification number and the coordinates of the touch point.
The touch information also comprises contact information of a touch pen, a finger or a palm and the touch equipment; wherein, the contact information is one of pressure or area. The touch pen comprises an electromagnetic pen, a capacitance active pen and a capacitance passive pen. The electromagnetic pen is used for writing on the electromagnetic screen, and the capacitor active pen and the capacitor passive pen are respectively used for writing and erasing on the capacitor screen.
Specifically, when the generation type of the touch action is a touch pen, since the touch pen is provided with the pressure sensor, when the touch pen forms the touch action on the touch screen, the touch pen sends the detected pressure to the corresponding touch screen in real time, and the touch screen sends the pressure value and information such as coordinates of a touch point to the touch device. When the generation type of the touch action is a finger or a palm, the touch screen calculates the contact area by using the quantity of capacitance of the contact area between the finger and the palm and the touch equipment, and the touch screen sends the contact area and information such as touch point coordinates to the touch equipment together. And the touch equipment calculates the width of the touch line by using the acquired pressure or contact area.
Specifically, the method comprises the following steps:
s331, a resolution of the touch device is acquired.
The resolution of the touch device can be pre-stored in the touch device, or can be acquired in real time, and no matter which way is adopted, the touch device is only required to be ensured to be capable of acquiring the resolution.
And S332, calculating the line width of the touch line by using the contact information and the resolution.
The touch equipment calculates the line width of the touch line by using the linear relation between the contact information and the resolution. For example, the resolution of the touch device is 1024, and the maximum pressure that the touch device can withstand is 100N, then when the detected pressure value is x, the line width of the corresponding touch line is:
Figure BDA0001814167670000101
alternatively, other calculations may be used, and so forth.
And S333, when the mode of the first touch action corresponding to the first touch identification number is erasing, extracting the coordinates of two adjacent touch points formed by the first touch action. Please refer to S231 in fig. 2 for details, which are not described herein.
And S334, forming a touch line by using the extracted coordinates of the two adjacent touch points. Please refer to S232 in fig. 2 for details, which are not described herein.
It should be noted that the sequence of steps S331 and S332 is not limited to this, and it is only necessary to ensure that the touch device can obtain the line width of the touch line before S334.
Compared with the embodiment shown in fig. 2, in the method for processing touch data provided by the embodiment, the line width of the touch line is calculated according to the relationship between the resolution of the touch device and the contact information; under the condition of ensuring the display precision of the touch lines, the pen point is formed by lines with different thicknesses, and the accuracy of touch data processing is improved.
As an alternative implementation manner of this embodiment, as shown in fig. 4, the touch device includes a capacitive screen 105 and an electromagnetic screen 101 that are stacked, and touch areas of the capacitive screen 105 and the electromagnetic screen 101 correspond to a display area of the touch device; the capacitive screen 105 is used for responding to touch actions of fingers or palms, and the electromagnetic screen 102 is used for responding to touch actions of an electromagnetic pen.
Specifically, the capacitive screen 105 and the electromagnetic screen 102 are respectively disposed on the upper and lower surfaces of the display screen 103, and the touch areas of the capacitive screen 105 and the electromagnetic screen 102 correspond to the display area of the display screen 103. The controller corresponding to the capacitive screen 105 is a capacitive controller 106, and the controller corresponding to the electromagnetic screen 101 is an electromagnetic controller 102. When the capacitive screen responds to the touch action of the finger or the palm, the capacitive controller 106 sends the response information to the system controller 30 corresponding to the touch device; when the electromagnetic screen 102 responds to the touch action of the electromagnetic pen, the electromagnetic controller 102 sends the response information to the system controller 30 corresponding to the touch device.
Before the step of acquiring the touch information, the method further comprises:
(1) and respectively establishing communication pipelines between the electromagnetic screen and the capacitive screen.
Before the capacitive screen 105 and the electromagnetic screen 102 communicate with the system controller 30, communication pipes are established between the system controller 30 and the capacitive screen 105 and the electromagnetic screen 103, respectively.
(2) Each communication pipe is marked.
And the communication pipeline corresponding to the capacitive screen is marked as a first identifier, and the communication pipeline corresponding to the electromagnetic screen is marked as a second identifier.
Thus, the touch information also includes indicia of the communication conduit; wherein determining a mode of the touch action based on the generation type of the touch action comprises:
extracting the mark of the communication pipeline in the touch information; when the extracted mark is a first mark, determining that the mode of the touch action is erasure; and when the extracted mark is the second mark, determining the mode of the touch action as writing.
Therefore, the mode of the touch action can be distinguished through the mark of the communication pipeline, the processing efficiency of the touch data is improved, and the real-time performance of the touch action displayed in the touch equipment is ensured.
As another optional implementation manner of this embodiment, the capacitive screen and the electromagnetic screen in the touch device may also be set in other structures, and it is only necessary to ensure that the touch areas of the capacitive screen and the electromagnetic screen correspond to the display area of the touch device.
In this embodiment, a touch data processing apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated after the description is given. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
The present embodiment provides a touch data processing apparatus, as shown in fig. 5, including:
an obtaining module 51, configured to obtain touch information; the touch information comprises a touch identification number, coordinates of a touch point and a generation type of a touch action; the touch identification numbers correspond to the touch actions one by one, and each touch action forms a plurality of touch points; the type of generation of the touch action includes at least one of an electromagnetic pen, a finger, or a palm.
A mode determination module 52, configured to determine a mode of the touch action based on the generation type of the touch action; wherein the mode of the touch action comprises writing or erasing; the generation types of the touch actions correspond to the modes of the touch actions one by one.
And a touch line forming module 53, configured to form a touch line according to the mode of the touch action, the touch identification number, and the coordinates of the touch point.
In the processing apparatus for touch data provided in this embodiment, each touch action corresponds to a unique touch identification number, and the generation type of the touch action corresponds to the mode of the touch action one to one; the touch screen device has the advantages that touch actions generated on the same touch screen are distinguished by the touch identification numbers, multiple persons can write and erase on the same touch screen at the same time, the touch actions are not interfered with one another, and the processing efficiency of the touch screen is improved.
As an optional implementation manner of this embodiment, as shown in fig. 6, the module 53 for forming a touch line further includes:
the extracting unit 531 is configured to, when a mode of a first touch action corresponding to the first touch identification number is erase, extract coordinates of two adjacent touch points formed by the first touch action;
a touch line forming unit 532, configured to form the touch line by using the extracted coordinates of the two adjacent touch points.
As further alternative embodiments of this embodiment, as shown in fig. 4, the touch device includes a capacitive screen 105 and an electromagnetic screen 102 that are stacked, and touch areas of the capacitive screen 105 and the electromagnetic screen 102 correspond to a display area of the touch device; the capacitive screen 105 is used for responding to touch actions of fingers or palms, and the electromagnetic screen 102 is used for responding to touch actions of an electromagnetic pen.
The touch data processing apparatus in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and a memory executing one or more software or fixed programs, and/or other devices that can provide the above-described functions.
Further functional descriptions of the modules are the same as those of the corresponding embodiments, and are not repeated herein.
An embodiment of the present invention further provides a touch device, which has the touch data processing apparatus shown in fig. 7.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a touch device according to an alternative embodiment of the present invention, and as shown in fig. 7, the terminal may include: at least one processor 71, such as a CPU (Central Processing Unit), at least one communication interface 73, memory 74, at least one communication bus 72. Wherein a communication bus 72 is used to enable the connection communication between these components. The communication interface 73 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 73 may also include a standard wired interface and a standard wireless interface. The Memory 74 may be a high-speed RAM Memory (volatile Random Access Memory) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 74 may alternatively be at least one memory device located remotely from the processor 71. Wherein the processor 71 may be in connection with the apparatus described in fig. 5 or fig. 6, an application program is stored in the memory 74, and the processor 71 calls the program code stored in the memory 74 for performing any of the above-mentioned method steps.
The communication bus 72 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 72 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The memory 74 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard-drive, abbreviated: HDD) or a solid-state drive (english: SSD); the memory 74 may also comprise a combination of memories of the kind described above.
The processor 71 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of CPU and NP.
The processor 71 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 74 is also used for storing program instructions. The processor 71 may call program instructions to implement a method for processing touch data as shown in the embodiments of fig. 1 to 3 of the present application.
Embodiments of the present invention further provide a non-transitory computer storage medium, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions may execute the XXX processing method in any of the above method embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A method for processing touch data, comprising:
acquiring touch information; the touch information comprises a touch identification number, coordinates of a touch point and a generation type of a touch action; the touch identification numbers correspond to the touch actions one by one, and each touch action forms a plurality of touch points; the generation type of the touch action comprises at least one of an electromagnetic pen, a finger or a palm;
determining a mode of the touch action based on the generation type of the touch action; wherein the mode of the touch action comprises writing or erasing; the generation types of the touch actions correspond to the modes of the touch actions one by one;
and forming a touch line according to the mode of the touch action, the touch identification number and the coordinates of the touch point.
2. The method according to claim 1, wherein forming a touch line according to the touch action pattern, the touch identification number and the coordinates of the touch point comprises:
when the mode of a first touch action corresponding to the first touch identification number is erasure, extracting coordinates of two adjacent touch points formed by the first touch action;
and forming the touch line by using the extracted coordinates of the two adjacent touch points.
3. The method according to claim 2, wherein the forming the touch line by using the extracted coordinates of the two adjacent touch points comprises:
judging whether the coordinates of the two adjacent touch points are the same;
when the coordinates of the two adjacent touch points are different, fitting the touch line between the two adjacent touch points by using an interpolation method; wherein the color of the touch line strip is a canvas background.
4. The method according to claim 1, wherein the touch information further includes contact information of the electromagnetic pen, the finger or the palm with a touch device; wherein the contact information is one of pressure or area;
forming a touch line according to the mode of the touch action, the touch identification number and the coordinates of the touch point, and further comprising:
acquiring the resolution of the touch equipment;
and calculating the line width of the touch line by using the contact information and the resolution.
5. The method according to claim 1, wherein a touch device comprises a capacitive screen and an electromagnetic screen which are stacked, and touch areas of the capacitive screen and the electromagnetic screen correspond to a display area of the touch device; the capacitive screen is used for responding to touch actions of the fingers or the palm, and the electromagnetic screen is used for responding to touch actions of the electromagnetic pen.
6. The method of claim 5, wherein the step of obtaining touch information is preceded by:
respectively establishing communication pipelines between the electromagnetic screen and the capacitive screen;
marking each of said communication pipes; and the communication pipeline corresponding to the capacitive screen is marked as a first identifier, and the communication pipeline corresponding to the electromagnetic screen is marked as a second identifier.
7. The method of claim 6, wherein the touch information further comprises an indicia of the communication conduit; wherein the determining the mode of the touch action based on the generation type of the touch action comprises:
extracting a marker of the communication pipe;
when the extracted mark is the first mark, determining that the mode of the touch action is erasure;
and when the extracted mark is the second mark, determining that the mode of the touch action is writing.
8. An apparatus for processing touch data, comprising:
the acquisition module is used for acquiring touch information; the touch information comprises a touch identification number, coordinates of a touch point and a generation type of a touch action; the touch identification numbers correspond to the touch actions one by one, and each touch action forms a plurality of touch points; the generation type of the touch action comprises at least one of an electromagnetic pen, a finger or a palm;
the mode determination module is used for determining the mode of the touch action based on the generation type of the touch action; wherein the mode of the touch action comprises writing or erasing; the generation types of the touch actions correspond to the modes of the touch actions one by one;
and the touch line forming module is used for forming a touch line according to the mode of the touch action, the touch identification number and the coordinates of the touch point.
9. A touch device, comprising:
a touch panel, a memory and a processor, wherein the touch panel, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the processing method of touch data according to any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions for causing a computer to execute the method for processing touch data according to any one of claims 1 to 7.
CN201811134635.5A 2018-09-27 2018-09-27 Touch data processing method and device and touch equipment Active CN109542278B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811134635.5A CN109542278B (en) 2018-09-27 2018-09-27 Touch data processing method and device and touch equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811134635.5A CN109542278B (en) 2018-09-27 2018-09-27 Touch data processing method and device and touch equipment

Publications (2)

Publication Number Publication Date
CN109542278A CN109542278A (en) 2019-03-29
CN109542278B true CN109542278B (en) 2022-02-11

Family

ID=65843632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811134635.5A Active CN109542278B (en) 2018-09-27 2018-09-27 Touch data processing method and device and touch equipment

Country Status (1)

Country Link
CN (1) CN109542278B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112578987A (en) * 2020-12-25 2021-03-30 广州壹创电子科技有限公司 Off-screen interactive touch all-in-one machine and interaction method thereof
CN114968393A (en) 2021-02-19 2022-08-30 禾瑞亚科技股份有限公司 System for setting and starting touch function, touch processing device and method
CN113485570B (en) * 2021-06-17 2023-12-05 深圳软牛科技有限公司 Multi-user writing method, device, computer readable storage medium and terminal equipment
CN113986041B (en) * 2021-10-27 2023-07-21 深圳市宝泽科技有限公司 Method and system for erasing electronic data based on electronic whiteboard eraser

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587399A (en) * 2009-02-09 2009-11-25 鑫能源科技(深圳)有限公司 Electronic writing equipment and electronic writing system
CN102314274A (en) * 2011-06-30 2012-01-11 汉王科技股份有限公司 Bimodule input device and method for sending data by using same
CN202472600U (en) * 2012-01-17 2012-10-03 深圳海棠通信技术有限公司 Display device with electromagnetic touch and capacitive touch
CN103294284A (en) * 2013-05-23 2013-09-11 青岛海信电器股份有限公司 Electronic device and writing device
CN106598351A (en) * 2016-10-19 2017-04-26 青岛海信电器股份有限公司 Touch point processing method and equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5365461A (en) * 1992-04-30 1994-11-15 Microtouch Systems, Inc. Position sensing computer input device
CN100590579C (en) * 2007-05-16 2010-02-17 广东威创视讯科技股份有限公司 Multiple point touch localization method
JP2010257197A (en) * 2009-04-24 2010-11-11 Alps Electric Co Ltd Input processing apparatus
US20160266720A1 (en) * 2011-12-19 2016-09-15 Egalax_Empia Technology Inc. Touch method and touch processor
CN105573536B (en) * 2014-10-16 2018-09-07 华为技术有限公司 Processing method, the device and system of touch-control interaction
US20160209968A1 (en) * 2015-01-16 2016-07-21 Microsoft Technology Licensing, Llc Mapping touch inputs to a user input module
KR102560598B1 (en) * 2016-12-21 2023-07-28 삼성전자주식회사 Display Apparatus AND CONTROLLING METHOD THEREOF
CN108762579B (en) * 2018-06-15 2021-09-28 广州华欣电子科技有限公司 Method and system for generating handwriting of multiple pressure-sensitive pens and related components

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587399A (en) * 2009-02-09 2009-11-25 鑫能源科技(深圳)有限公司 Electronic writing equipment and electronic writing system
CN102314274A (en) * 2011-06-30 2012-01-11 汉王科技股份有限公司 Bimodule input device and method for sending data by using same
CN202472600U (en) * 2012-01-17 2012-10-03 深圳海棠通信技术有限公司 Display device with electromagnetic touch and capacitive touch
CN103294284A (en) * 2013-05-23 2013-09-11 青岛海信电器股份有限公司 Electronic device and writing device
CN106598351A (en) * 2016-10-19 2017-04-26 青岛海信电器股份有限公司 Touch point processing method and equipment

Also Published As

Publication number Publication date
CN109542278A (en) 2019-03-29

Similar Documents

Publication Publication Date Title
CN109542278B (en) Touch data processing method and device and touch equipment
CN107506162B (en) Coordinate mapping method, computer-readable storage medium, and projector
CN107844953B (en) Conference file management method, device, terminal and computer readable storage medium
BR112012024270B1 (en) method and device for judging keystroke based on touchscreen
CN109753179B (en) User operation instruction processing method and handwriting reading equipment
US9025878B2 (en) Electronic apparatus and handwritten document processing method
US20150169134A1 (en) Methods circuits apparatuses systems and associated computer executable code for providing projection based human machine interfaces
CN108932057A (en) Method of controlling operation thereof, device, storage medium and electronic equipment
CN111025039B (en) Method, device, equipment and medium for testing accuracy of touch display screen
CN104615331A (en) Corner mark processing method
CN109542569A (en) Method, apparatus, terminal and the storage medium of display language are set
CN108492349A (en) Processing method, device, equipment and the storage medium of stroke writing
CN103558957A (en) Method and device for screen operation of mobile terminal
CN104537049A (en) Picture browsing method and device
CN107122104A (en) data display method and device
CN108229428A (en) A kind of character recognition method, device, server and medium
CN109683798B (en) Text determination method, terminal and computer readable storage medium
CN110737417A (en) demonstration equipment and display control method and device of marking line thereof
CN110333780A (en) Function triggering method, device, equipment and storage medium
CN105791503A (en) Method of storing business card information in address list and apparatus thereof
EP3118731A1 (en) Method and electronic device for inputting character
CN107103096A (en) Method for information display and device
JP6318794B2 (en) Information processing apparatus and information processing program
CN113220160A (en) Touch control method and system for touch display equipment and readable storage medium
CN105511795A (en) Method for operating user interface and mobile terminal

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
GR01 Patent grant
GR01 Patent grant