CN115390691A - Touch screen positioning method and device, storage medium and interactive panel - Google Patents

Touch screen positioning method and device, storage medium and interactive panel Download PDF

Info

Publication number
CN115390691A
CN115390691A CN202110569926.2A CN202110569926A CN115390691A CN 115390691 A CN115390691 A CN 115390691A CN 202110569926 A CN202110569926 A CN 202110569926A CN 115390691 A CN115390691 A CN 115390691A
Authority
CN
China
Prior art keywords
touch
touch screen
heat map
data
acquiring
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
CN202110569926.2A
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202110569926.2A priority Critical patent/CN115390691A/en
Publication of CN115390691A publication Critical patent/CN115390691A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • 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/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic 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/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • G06F3/0445Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means using two or more layers of sensing electrodes, e.g. using two layers of electrodes separated by a dielectric layer

Landscapes

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

Abstract

The embodiment of the application discloses a touch screen positioning method, a touch screen positioning device, a storage medium and an interactive flat plate, wherein the method comprises the following steps: the method comprises the steps of obtaining touch data corresponding to touch operation input on a touch screen, generating a heat map corresponding to the touch screen based on the touch data, and determining coordinate values of the touch operation on the touch screen based on the heat map. By the method, the touch data corresponding to the touch operations on the touch screens of different touch technologies can be converted into the heat map, and then the touch points can be positioned, so that for manufacturers who make various types of touch screens, the technical development and maintenance cost can be reduced on the basis of adapting to different touch technologies.

Description

Touch screen positioning method and device, storage medium and interactive panel
Technical Field
The present application relates to the field of touch technologies, and in particular, to a touch screen positioning method and apparatus, a storage medium, and an interactive tablet.
Background
The existing touch screen is complex in technology and mainly comprises a resistive touch screen, a capacitive touch screen, an infrared touch screen, a surface acoustic wave touch screen, an electromagnetic induction touch screen, an elastic wave touch screen and the like. In these different touch screen technologies, signals are acquired by various sensors to form a specific data sequence, and then the touch points are located by corresponding algorithms. Because the technologies are integrated, the development, the transplantation and the fusion of the positioning algorithm of the touch screen of different technologies are difficult, the communication and the popularization of the technologies are not facilitated, and particularly, for a manufacturer who makes various types of touch screens, higher technical development and maintenance cost are needed.
Disclosure of Invention
The embodiment of the application provides a touch screen positioning method, a touch screen positioning device, a storage medium and an interactive flat plate, and aims to solve the technical problem of how to reduce the technical development and maintenance cost for various touch screen manufacturers in the related art. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a touch screen positioning method, where the method includes:
acquiring touch data corresponding to touch operation input on a touch screen, and generating a heat map corresponding to the touch screen based on the touch data;
and determining coordinate values of the touch operation on the touch screen based on the heat map.
In a second aspect, an embodiment of the present application provides a touch screen positioning apparatus, including:
the data processing module is used for acquiring touch data corresponding to touch operation input on the touch screen and generating a heat map corresponding to the touch screen based on the touch data;
and the data positioning module is used for determining coordinate values of the touch operation on the touch screen based on the heat map.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
when the scheme of the embodiment of the application is executed, touch data corresponding to touch operation input on the touch screen are obtained, a heat map corresponding to the touch screen is generated based on the touch data, and the coordinate value of the touch operation on the touch screen is determined based on the heat map. By the method, the touch data corresponding to the touch operation on the touch screens can be converted into the heat map for the touch screens with different touch technologies, and then the touch points can be positioned, so that for manufacturers who make various types of touch screens, the technical development and maintenance cost can be reduced on the basis of adapting to different touch technologies.
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 embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
Fig. 1 is a scene schematic diagram of a touch screen positioning method provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a touch screen positioning method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a touch screen positioning method according to an embodiment of the present application;
fig. 4 is an infrared circuit diagram in a touch screen positioning method provided by an embodiment of the present application;
FIG. 5 is a heat map in a touch screen positioning method according to an embodiment of the present disclosure;
fig. 6 is a schematic flowchart of a touch screen positioning method according to an embodiment of the present application;
FIG. 7 is a heat map of another touch screen positioning method provided by an embodiment of the present application;
FIG. 8 is a schematic structural diagram of a touch screen positioning apparatus provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of an interactive tablet according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In the following description, the terms "first" and "second" are used for descriptive purposes only and are not intended to indicate or imply relative importance. The following description provides embodiments of the present application, where various embodiments may be substituted or combined, and thus the present application is intended to include all possible combinations of the same and/or different embodiments described. Thus, if one embodiment includes features a, B, C and another embodiment includes features B, D, this application should also be construed as including embodiments that include all other possible combinations of one or more of a, B, C, D, although such embodiments may not be explicitly recited in the following text.
The following description provides examples, and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements described without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as appropriate. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.
Fig. 1 is a schematic view of a scene of a touch screen positioning method according to an embodiment of the present application.
In the figure, 101 is an interactive tablet, 102 is a touch screen outer frame, and the touch screen outer frame 102 and the interactive tablet 101 can be connected through a USB interface.
The interactive panel 101 may be various electronic devices with display screens, including but not limited to a flat-panel television, a CRT television, a rear projection television, a portable computer, a desktop computer, etc., and if the interactive panel 101 is a television, the control system corresponding to the interactive panel 101 may be an android system. The interactive tablet 101 may be hardware or software. When the interactive tablet 101 is software, it can be installed in the electronic devices listed above. Which may be implemented as multiple software or software modules (e.g., to provide distributed services) or as a single software or software module, and is not particularly limited herein. When the interactive tablet 101 is hardware, a display device and a camera may be further installed thereon, and the display of the display device may be various devices capable of implementing a display function, for example: the display device may be a Cathode ray tube (CR) display, a Light-emitting diode (LED) display, an electronic ink screen, a Liquid Crystal Display (LCD), a Plasma Display Panel (PDP), or the like. The user can utilize the display device on the interactive tablet 101 to view the displayed text, pictures, video, etc.
Touch screens of different touch technologies exist in the prior art, including but not limited to resistive touch screens, capacitive touch screens, infrared touch screens, surface acoustic wave touch screens, electromagnetic induction touch screens, elastic wave touch screens, and the like. Touch screen technologies with a high market occupation are mainly capacitive touch screens and infrared touch screens. The infrared touch screen is composed of an infrared transmitter and an infrared receiver which are arranged on an outer frame of the touch screen, an infrared detection network is formed on the surface of the screen, and any touch object can change the infrared rays on a contact point to realize the operation of the touch screen. The capacitive touch screen is characterized in that long and narrow electrodes are plated on the four sides of the touch screen, a low-voltage alternating current electric field is formed in a conductor, a coupling capacitor is formed between a finger and the conductor layer due to a human body electric field when the touch screen is touched, currents emitted by the electrodes on the four sides flow to contacts, the intensity of the currents is inversely proportional to the distance from the finger to the electrodes, a controller behind the touch screen calculates the proportion and intensity of the currents, and the position of a touch point is accurately calculated.
In some embodiments, the interactive tablet acquires touch data corresponding to a touch operation input on a touch screen, generates a heat map corresponding to the touch screen based on the touch data, and determines coordinate values of the touch operation on the touch screen based on the heat map. By the method, the touch data corresponding to the touch operation on the touch screens with different touch technologies can be converted into the heat map, and then the touch points can be positioned, so that for manufacturers who make various types of touch screens, the technical development and maintenance cost can be reduced on the basis of adapting to different touch technologies.
The present application will be described in detail with reference to specific examples.
In the following method embodiments, for convenience of description, only the execution subject of each step is taken as the interactive tablet for description.
Referring to fig. 2, a schematic flow chart of a touch screen positioning method provided in an embodiment of the present application is shown, where the method in the embodiment of the present application may include the following steps:
s201, acquiring touch data corresponding to touch operation input on the touch screen, and generating a heat map corresponding to the touch screen based on the touch data.
The touch screen according to the embodiment of the present application may include, but is not limited to, an infrared touch screen and a capacitive touch screen. The touch operation refers to a pressing operation, a clicking operation, a sliding operation, and the like, which a user performs on a touch screen with a finger or a writing pen. Because the touch operation corresponds to one or more touch points, the signal values of the touch points and the non-touch points in the touch screen are different, and the touch data are the signal values of the touch points and the non-touch points in a two-dimensional plane where the whole touch screen is located.
Wherein the heat map is a graphical representation of data that uses a color coding system to represent different user behavior values. In a two-dimensional plane where the same touch screen is located, the signal value of the touch point and the signal value of the non-touch point are different, and the heat map is used for representing different user behavior values, so that the heat map can embody the touch point and the non-touch point.
For the infrared touch screen, the infrared emitters and the infrared receivers are distributed on the outer frame of the touch screen, and the infrared matrixes which are crossed transversely and vertically are correspondingly formed. If a user performs a touch operation on the touch screen, a touch point corresponding to the touch operation may block infrared rays. If the infrared ray is blocked, the infrared receiver corresponding to the infrared ray may not receive the signal, or only may receive a part of the signal, so that the signal value of the infrared receiver becomes smaller, the signal change value of the infrared receiver increases, and the touch data of the infrared touch screen is the signal change value of the infrared receiver. Further, after the signal variation values of the infrared receivers are acquired, the positions of the infrared transmitters and the positions of the infrared receivers corresponding to the signal variation values can be determined. And further, drawing a corresponding infrared diagram according to the position of the infrared transmitter and the position of the infrared receiver, determining a checkerboard which has a preset resolution, does not have a filling value and is consistent with the size of the infrared diagram, dividing the checkerboard into a plurality of small lattices, and enabling each small lattice to generate a pixel point. The number of infrared rays passing through each small cell can be filled in each small cell as a square grid value, and then each small cell is filled with color to obtain a heat map.
For a capacitive touch screen, the most widely used projection-type mutual capacitance capacitive screen is generally a mutual capacitance capacitive screen, which uses a plurality of nano indium tin oxide ITO layers to make horizontal electrodes and vertical electrodes, and is different from a self-capacitance screen in that a capacitor is formed at the crossing position of two groups of electrodes, that is, the two groups of electrodes respectively form two poles of the capacitor. When a finger touches the capacitive screen, a portion of the charge flows down the finger to ground, thereby affecting the coupling between the two electrodes near the touch point and changing the capacitance between the two electrodes. When the mutual capacitance is detected, the transverse electrodes sequentially send out excitation signals, and the longitudinal electrodes simultaneously receive signals, so that the capacitance value of the intersection point of all the transverse electrodes and the longitudinal electrodes, namely the capacitance value of the two-dimensional plane where the whole touch screen is located, can be obtained. Further, the capacitance change values of all the intersection points of the two-dimensional plane of the whole touch screen can be obtained, so that the touch data of the capacitive screen are the capacitance change values of all the intersection points. Furthermore, a grid diagram with the same size as the two-dimensional plane where the touch screen is located can be adopted, each intersection point corresponds to each small grid in the grid diagram, the capacitance change value of each intersection point is filled in each small grid, and then each small grid is filled with color to obtain the heat map.
S202, determining coordinate values of the touch operation on the touch screen based on the heat map.
Specifically, a touch point and a non-touch point can be distinguished according to the heat map, for example, colors of small lattices in the heat map may be different, and a smaller lattice with a brighter color indicates that a signal value of the point is larger, which indicates that the point is a contact point. Since the size information of the touch screen, including the height of the touch screen and the width of the touch screen, can be determined, further, the side length of each small grid in the heat map can be determined, and the position of the touch point in the heat map can be determined, so that the coordinate value of the touch point in the touch screen can be determined.
When the scheme of the embodiment of the application is executed, touch data corresponding to touch operation input on the touch screen are obtained, a heat map corresponding to the touch screen is generated based on the touch data, and the coordinate value of the touch operation on the touch screen is determined based on the heat map. By the method, the touch data corresponding to the touch operation on the touch screens can be converted into the heat map for the touch screens with different touch technologies, and then the touch points can be positioned, so that for manufacturers who make various types of touch screens, the technical development and maintenance cost can be reduced on the basis of adapting to different touch technologies.
Please refer to fig. 3, which is a schematic flowchart of a touch screen positioning method provided in an embodiment of the present application, and is applied to an infrared touch screen. As shown in fig. 3, the method of the embodiment of the present application may include the steps of:
s301, when the touch screen is determined to exist, acquiring the equipment information of the touch screen, and determining the initialization state of hardware equipment and a communication channel in the equipment information.
The device information of the embodiment of the present application may include, but is not limited to, a touch screen type (capacitive/infrared type, etc.), a touch screen height, a touch screen width, a touch screen manufacturer, a touch screen version, a transmitter position, a receiver position, a transmitter number, and a receiver number.
Specifically, device information from the touch screen is received while connected to the touch screen. For different types of touch screens, the device information may be transmitted in a uniform data format. For example, the interactive tablet receives a plurality of bytes of data sent by the touch screen, and for the data, the 0 th byte and the 1 st byte represent the number T _ n of transmission channels; the 2 nd byte and the 3 rd byte represent the number R _ n of reception channels; byte 4 indicates the touch screen type (capacitive/infrared, etc); bytes 5, 6 and 7 represent the touchscreen vendor; the 8 th, 9 th, 10 th, and 11 th bytes represent a screen width; the 12 th byte, the 13 th byte, the 14 th byte and the 15 th byte represent the height of the screen, and the subsequent bytes of data represent the information of the transmitter position, the receiver position and the like. If the infrared touch screen is adopted, the subsequent (T _ n + R _ n) × 8 bytes represent the coordinates of each LED lamp (the coordinates of one lamp occupy 8 bytes); in the case of a capacitive touch screen, the subsequent (T _ n + R _ n) × 8 bytes indicate the positions of the emitter and the receiver. Therefore, the device information of different types of touch screens can be transmitted according to the data format. Determining the initialization state of the hardware device and the communication channel in the device information may be understood as determining whether the hardware device and the communication channel are in a normal state. The hardware equipment mainly refers to a transmitter and a receiver, the interactive flat plate mainly sends a check instruction for checking whether the hardware equipment and the communication channel are in a normal state to a microprocessor in a touch screen outer frame circuit board, and the microprocessor feeds back a check result corresponding to the check instruction to the interactive flat plate so as to determine whether the hardware equipment and the communication channel are in the normal state. The microprocessor checks whether the hardware equipment is normal, such as an LED lamp, detects the data of the lamp, and if the data is in a normal range, the lamp can be determined to be normal. The communication channel is checked for normality, for example, the microprocessor checks whether the channel is clear by sending some verification information and receiving a response.
Optionally, when the device information in the unified data format is transmitted between the touch screen and the interactive tablet, the microprocessor may compress the device information, and transmit the compressed device information to the interactive tablet to increase the data transmission speed, so that the interactive tablet needs to decompress the data after receiving the compressed data.
And S302, if the initialization states of the hardware equipment and the communication channel are normal states, acquiring touch data corresponding to touch operation input on the touch screen.
Specifically, the embodiment of the application mainly aims at the infrared touch screen, and the touch data acquired from the infrared touch screen mainly refers to the signal change value of each infrared receiver. It is understood that the signal variation value of the infrared receiver may be the signal value of the infrared receiver after contact minus the signal value of the infrared receiver before non-contact in the initial state. Since the signal values of the ir receivers are transmitted by the ir transmitters on the opposite side, a two-dimensional array can be used to represent the signal variation values, with the ir transmitters as rows and the ir receivers as columns, or with the ir transmitters as columns and the ir receivers as rows. For example, if there are 246 emitting lamps and 246 receiving lamps in an infrared touch screen, the signal values obtained from the infrared touch screen are a two-dimensional array of 246 rows and 246 columns. See the partial two-dimensional array shown in table 3.1, where the rows represent the emitting lamps and the columns the receiving lamps, and the values in the table are the signal variation values of the individual receiving lamps after contact.
TABLE 3.1
-1 1 1 -2 1 8 28 0 0 0
-3 -2 -1 -2 -1 8 54 -2 4 0
-2 -4 -2 -4 -1 8 18 1 -1 -2
-1 -3 -1 2 -1 43 18 0 0 -2
-3 -2 0 4 17 30 -1 -1 -1 -1
-3 -1 0 4 48 5 -1 -2 0 0
-4 -1 -1 7 66 4 -3 -1 -3 0
-3 0 0 33 20 4 -1 -2 0 -1
S303, drawing an infrared light path diagram based on the touch data, wherein the infrared light path diagram comprises a plurality of straight lines.
Specifically, the infrared transmitter and the infrared receiver corresponding to the signal change value larger than the threshold value may be determined according to the two-dimensional array in the touch data, and further, a light path diagram between the infrared transmitter and the infrared receiver may be drawn. Since a touch point may block a plurality of infrared rays, it may occur that a plurality of rays converge at one point, as shown in the infrared diagram of fig. 4, in which a plurality of infrared rays converge at one point.
S304, dividing the infrared light path diagram into a first square diagram with preset resolution, determining the number of straight lines passing through each square in the first square diagram, and filling the number of the straight lines serving as square values in the first square diagram to obtain a first heat diagram.
Specifically, the infrared light road map including a plurality of straight lines may be divided into pixels with a preset resolution, the pixels form a first grid map, and each grid in the first grid map represents a pixel. For example, the infrared light pattern is divided into a first grid pattern with a resolution of 4K (3840 × 2160), and 3840 × 2160 pixels are arranged in the first grid pattern; or the infrared ray graph is divided into a first grid graph with the resolution of 2K (1920 x 1080), and 1920 x 1080 pixel points exist in the first grid graph. Further, the number of straight lines passing through each pixel point can be used as a pixel value of the pixel point, namely a square value, if the square value represents a value of R in three primary colors of RGB, and values of G and B are both 0, color filling processing is performed on the first square graph, and a first heat graph corresponding to the infrared touch screen can be obtained. Referring to the heat map shown in fig. 5, fig. 5 is a heat map corresponding to the infrared ray diagram shown in fig. 4, in which infrared rays are represented by white lines, and fig. 4 and 5 show an infrared ray diagram and a heat map of one touch point, according to the method of the embodiment of the present application, heat maps of more touch points can be obtained.
And S305, performing image segmentation processing on the first heat map to obtain a touch area.
The touch area represents an area where a touch point corresponding to the touch operation is located, and the corresponding non-touch area may represent an area without the touch point. Specifically, the first heat map includes a touch area and a non-touch area, and the pixel point with the R value exceeding the threshold is used as the touch point in the touch area, so that the touch area can be divided.
S306, determining a relative coordinate value of a touch point corresponding to the touch operation in the touch area, and determining a coordinate value of the touch point on the touch screen based on the relative coordinate value and the size parameter of the touch screen.
Wherein, the relative coordinate value represents the coordinate value of the touch point in the first heat map. For example, if the first heat map has 200 squares in the horizontal direction and 100 squares in the vertical direction, the coordinates of the center point of the small cell in the 1 st row and the 1 st column in the first heat map are (0.5 ), the coordinates of the center point of the small cell in the 100 th row and the 200 th column in the first heat map are (199.5, 99.5), and then (0.5 ) and (199.5, 99.5) are both called relative coordinate values. It can be understood that the size parameter of the touch screen represents a height value and a width value of the touch screen, and since the height value and the width value are known, the side length of each small lattice in the heat map can be determined, the small lattice is a square, the horizontal axis coordinate of the touch point on the touch screen is obtained by multiplying the horizontal axis coordinate of the value of the relative coordinate by the side length, and the vertical axis coordinate of the value of the relative coordinate by the side length is the vertical axis coordinate of the touch point on the touch screen. Therefore, the coordinate values of the touch point on the touch screen can be determined according to the method.
It should be noted that, for the calculation of the relative coordinate values, see table 3.2. Using formulas
Figure BDA0003081362620000091
And
Figure BDA0003081362620000092
respectively calculating the abscissa and the ordinate of the relative coordinate value. Wherein V is the square value of each small grid, D x Is the horizontal sequence number of each small cell, D y Are vertical direction numbers of each small lattice.
TABLE 3.2
2 7 6 7 9 5 1
7 13 64 143 127 30 5
8 35 303 412 404 123 9
7 35 276 354 259 58 6
7 15 46 57 25 8 2
4 7 7 4 2 2 0
When the scheme of the embodiment of the application is executed, the equipment information of the infrared touch screen is firstly acquired, the equipment information is transmitted according to a uniform data format, under the condition that hardware equipment and a communication channel in the equipment information are in normal states, the touch data of the infrared touch screen are acquired, an infrared light path diagram is drawn according to the touch data, pixel points with preset resolution are divided according to the infrared light path diagram, each pixel point is given a value and filled with color to obtain a heat diagram, and the touch points are positioned according to the heat diagram.
Fig. 6 is a schematic flow chart of a touch screen positioning method provided in an embodiment of the present application, and is applied to a capacitive touch screen. As shown in fig. 6, the method of the embodiment of the present application may include the steps of:
s601, when the touch screen is determined to exist, acquiring the equipment information of the touch screen, and determining the initialization state of hardware equipment and a communication channel in the equipment information.
Specifically, see S301 in fig. 3, which is not described herein again.
And S602, if the initialization states of the hardware equipment and the communication channel are determined to be normal states, acquiring touch data corresponding to touch operation input on the touch screen.
Specifically, the embodiment of the application mainly aims at the capacitive touch screen, and the touch data acquired from the capacitive touch screen mainly refers to capacitance change values of the receiving electrodes. It can be understood that the capacitance change value of the receiving electrode is obtained by subtracting the capacitance value of the receiving electrode before the initial state from the capacitance value of the receiving electrode after the contact, and the capacitance change value in the vicinity of the touch point is large. The capacitance change value can be expressed by using a two-dimensional array, with emitters in the horizontal direction as rows and receivers in the vertical direction as columns, or emitters in the horizontal direction as columns and receivers in the vertical direction as rows. For example, if a capacitive touch screen has 224 emitters and 124 receivers, the signal values obtained from the capacitive touch screen are a two-dimensional array of 224 rows and 124 columns. See table 6.1 for a partial two-dimensional array with rows representing emitters and columns representing receivers, where the values in the table are the capacitance change values at each electrode intersection after contact. It is clear that a larger value of the capacitance change in the table indicates that the corresponding electrode intersection is located in the touch area.
TABLE 6.1
0 0 7 5 26 19 6 7
2 69 88 90 94 76 26 22
15 845 1120 942 819 480 79 0
14 3656 4646 4606 4380 2397 62 0
21 4201 4948 5037 5099 3213 146 0
17 4141 4957 5031 5100 3155 95 0
17 3908 4790 4817 4363 2338 12 0
16 1628 2194 2029 1810 1023 0 0
S603, determining a second histogram formed by an emitter and a receiver of the touch screen, and filling a plurality of numerical values in the touch data as square grid values in the second histogram to obtain a second heat map.
Specifically, since a capacitor is formed at the intersection of the emitter and the receiver, the intersection of the two sets of electrodes forms a small lattice in the second grid diagram, and each small lattice is a pixel point. Furthermore, the capacitance change values of the electrode intersections can be filled in the second histogram as the grid values of the corresponding small grids, and the small grids with the larger capacitance change values are marked by colors, so that a second heat map corresponding to the capacitive touch screen can be obtained. For the touch data shown in table 6.1, it can be converted into a heat map as shown in fig. 7, and the white areas in fig. 7 are the touch areas shown in table 6.1.
And S604, performing image segmentation processing on the second heat map to obtain a touch area.
S605, determining a relative coordinate value of a touch point corresponding to the touch operation in the touch area, and determining a coordinate value of the touch point on the touch screen based on the relative coordinate value and the size parameter of the touch screen.
Specifically, S604 to S605 can refer to S305 to S606 shown in fig. 3, which are not described herein again.
When the scheme of the embodiment of the application is executed, the device information of the capacitive touch screen is firstly acquired, the device information is transmitted according to a uniform data format, under the condition that hardware devices and communication channels in the device information are in a normal state, the touch data of the capacitive touch screen is acquired, a second square chart formed by an emitting electrode and a receiving electrode of the touch screen is determined, capacitance change values of a plurality of electrode cross points in the touch data are filled in the second square chart as square values respectively, a second heat chart is obtained by using capacitance change values with larger color identification, and then the positioning of touch points is realized according to the second heat chart. Therefore, for manufacturers who make various types of touch screens, the technical development and maintenance cost can be reduced on the basis of realizing the positioning of the capacitive touch screen.
Please refer to fig. 8, which is a schematic structural diagram of a touch screen positioning apparatus according to an embodiment of the present disclosure. The touch screen pointing device 800 may be implemented as all or part of a server in software, hardware, or a combination of both. The apparatus 800 comprises:
the data processing module 810 is configured to obtain touch data corresponding to a touch operation input on a touch screen, and generate a heat map corresponding to the touch screen based on the touch data;
and a data positioning module 820, configured to determine coordinate values of the touch operation on the touch screen based on the heat map.
Optionally, the apparatus 800 further comprises:
the first acquisition module is used for acquiring equipment information of the touch screen when the touch screen is determined to exist, and determining the initialization states of hardware equipment and a communication channel in the equipment information;
and the second acquisition module is used for acquiring touch data corresponding to touch operation input on the touch screen if the initialization states of the hardware equipment and the communication channel are determined to be normal states.
Optionally, the first obtaining module includes:
and the first acquisition unit is used for acquiring the equipment information of the touch screen through a USB channel.
Optionally, the data processing module 810 includes:
the touch control system comprises a first processing unit, a second processing unit and a control unit, wherein the first processing unit is used for acquiring touch data corresponding to touch operation input on a touch screen and drawing an infrared light path diagram based on the touch data, and the infrared light path diagram comprises a plurality of straight lines;
the second processing unit is used for dividing the infrared light path diagram into a first square diagram with preset resolution, determining the number of straight lines passing through each square in the first square diagram, and filling the number of the straight lines serving as square values into the first square diagram to obtain a first heat diagram.
Optionally, the data processing module 810 includes:
the third processing unit is used for acquiring touch data corresponding to touch operation input on the touch screen and determining a second grid chart formed by an emitter and a receiver of the touch screen;
and the fourth processing unit is used for filling a plurality of numerical values in the touch data as square grid values in the second histogram to obtain a second heat map.
Optionally, the data positioning module 820 includes:
and the first positioning unit is used for performing image segmentation processing on the heat map to obtain a touch area and determining coordinate values of touch points corresponding to the touch operation in the touch area on the touch screen.
Optionally, the data positioning module 820 includes:
and the second positioning unit is used for determining a relative coordinate value of a touch point corresponding to the touch operation in the touch area, and determining a coordinate value of the touch point on the touch screen based on the relative coordinate value and the size parameter of the touch screen.
When the scheme of the embodiment of the application is executed, touch data corresponding to touch operation input on the touch screen are obtained, a heat map corresponding to the touch screen is generated based on the touch data, and the coordinate value of the touch operation on the touch screen is determined based on the heat map. By the method, the touch data corresponding to the touch operation on the touch screens can be converted into the heat map aiming at the touch screens with different touch technologies, and then the touch points can be positioned, so that for manufacturers who make various types of touch screens, the technology development and maintenance cost can be reduced on the basis of adapting to different touch technologies.
Referring to fig. 9, a schematic structural diagram of an interactive tablet according to an embodiment of the present application is shown, where the interactive tablet may be used to implement the touch screen positioning method in the foregoing embodiment. Specifically, the method comprises the following steps:
the memory 1220 may be used to store software programs and modules, and the processor 1290 executes various functional applications and data processing by operating the software programs and modules stored in the memory 1220. The memory 1220 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the interactive tablet, and the like. Further, the storage 1220 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 1220 may also include a memory controller to provide the processor 1290 and the input unit 1230 access to the memory 1220.
The input unit 1230 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 1230 may include a touch-sensitive surface 1231 (e.g., a touch screen, a touch pad, or a touch frame). Touch sensitive surface 1231, also referred to as a touch display screen or touch pad, can collect user touch actions on or near the touch sensitive surface 1231 (e.g., user actions on or near the touch sensitive surface 1231 using a finger, stylus, or any other suitable object or attachment) and actuate the corresponding linkage according to a predetermined program. Alternatively, the touch sensitive surface 1231 may include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and provides the touch point coordinates to the processor 1290, where the touch controller can receive and execute commands from the processor 1290. Additionally, the touch sensitive surface 1231 can be implemented in a variety of types including resistive, capacitive, infrared, and surface acoustic wave.
The display unit 1240 may be used to display information input by or provided to a user and various graphic user interfaces of the interactive tablet, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 1240 may include a Display panel 1241, and optionally, the Display panel 1241 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 1231 may overlay display panel 1241 and, when touch operation is detected on or near touch-sensitive surface 1231, processor 1290 may determine the type of touch event and, subsequently, processor 1290 may provide a corresponding visual output on display panel 1241 based on the type of touch event. Although in FIG. 9, touch-sensitive surface 1231 and display panel 1241 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 1231 may be integrated with display panel 1241 for input and output functions.
The processor 1290 is a control center of the interactive panel, connects various parts of the whole interactive panel by using various interfaces and lines, and performs various functions of the interactive panel and processes data by running or executing software programs and/or modules stored in the memory 1220 and calling data stored in the memory 1220, thereby integrally monitoring the interactive panel. Optionally, processor 1290 may include one or more processing cores; the processor 1290 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It is to be appreciated that the modem processor described above may not be integrated within processor 1290.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above-described method. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVDs, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will recognize that the embodiments described in this specification are preferred embodiments and that acts or modules referred to are not necessarily required for this application.
In the foregoing embodiments, the descriptions of the respective embodiments have their respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some service ports, indirect coupling or communication connection of devices or units, and may be electrical or in other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a memory and includes 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 of the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Those skilled in the art will appreciate that all or a portion of the steps in the methods of the above embodiments may be implemented in hardware by instructing a program to execute the steps, where the program may be stored in a computer readable memory, and the memory may include: flash disks, read-Only memories (ROMs), random Access Memories (RAMs), magnetic or optical disks, and the like.
The above are merely exemplary embodiments of the present disclosure, and the scope of the present disclosure should not be limited thereby. It is intended that all equivalent variations and modifications made in accordance with the teachings of the present disclosure be covered thereby. Embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A touch screen positioning method, the method comprising:
acquiring touch data corresponding to touch operation input on a touch screen, and generating a heat map corresponding to the touch screen based on the touch data;
and determining coordinate values of the touch operation on the touch screen based on the heat map.
2. The method of claim 1, wherein before obtaining touch data corresponding to a touch operation input on the touch screen, the method further comprises:
when the touch screen is determined to exist, acquiring equipment information of the touch screen, and determining the initialization state of hardware equipment and a communication channel in the equipment information;
the acquiring of the touch data corresponding to the touch operation input on the touch screen includes:
and if the initialization states of the hardware equipment and the communication channel are determined to be normal states, acquiring touch data corresponding to touch operation input on the touch screen.
3. The method of claim 1, wherein the obtaining device information of the touch screen comprises:
and acquiring the equipment information of the touch screen through a USB channel.
4. The method according to claim 1 or 2, wherein the touch screen is an infrared touch screen, and the acquiring touch data corresponding to a touch operation input on the touch screen and generating a heat map corresponding to the touch screen based on the touch data comprises:
acquiring touch data corresponding to touch operation input on a touch screen, and drawing an infrared light path diagram based on the touch data, wherein the infrared light path diagram comprises a plurality of straight lines;
dividing the infrared light path diagram into a first square diagram with preset resolution, determining the number of straight lines passing through each square in the first square diagram, and filling the number of straight lines serving as square values in the first square diagram to obtain a first heat map.
5. The method according to claim 1 or 2, wherein the touch screen is a capacitive touch screen, and the acquiring touch data corresponding to a touch operation input on the touch screen and generating a heat map corresponding to the touch screen based on the touch data comprises:
acquiring touch data corresponding to touch operation input on a touch screen, and determining a second grid chart formed by an emitter and a receiver of the touch screen;
and filling a plurality of numerical values in the touch data as square grid values in the second histogram to obtain a second heat map.
6. The method of claim 1, wherein the determining coordinate values of the touch operation on the touch screen based on the heat map comprises:
and performing image segmentation processing on the heat map to obtain a touch area, and determining coordinate values of touch points corresponding to the touch operation in the touch area on the touch screen.
7. The method according to claim 6, wherein the determining coordinate values of touch points on the touch screen corresponding to the touch operations in the touch area comprises:
and determining a relative coordinate value of a touch point corresponding to the touch operation in the touch area, and determining a coordinate value of the touch point on the touch screen based on the relative coordinate value and the size parameter of the touch screen.
8. A touch screen pointing device, the device comprising:
the data processing module is used for acquiring touch data corresponding to touch operation input on the touch screen and generating a heat map corresponding to the touch screen based on the touch data;
and the data positioning module is used for determining coordinate values of the touch operation on the touch screen based on the heat map.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to perform the method steps according to any one of claims 1 to 7.
10. An interactive tablet, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 7.
CN202110569926.2A 2021-05-24 2021-05-24 Touch screen positioning method and device, storage medium and interactive panel Pending CN115390691A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110569926.2A CN115390691A (en) 2021-05-24 2021-05-24 Touch screen positioning method and device, storage medium and interactive panel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110569926.2A CN115390691A (en) 2021-05-24 2021-05-24 Touch screen positioning method and device, storage medium and interactive panel

Publications (1)

Publication Number Publication Date
CN115390691A true CN115390691A (en) 2022-11-25

Family

ID=84114227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110569926.2A Pending CN115390691A (en) 2021-05-24 2021-05-24 Touch screen positioning method and device, storage medium and interactive panel

Country Status (1)

Country Link
CN (1) CN115390691A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116301440A (en) * 2023-05-23 2023-06-23 深圳曦华科技有限公司 Signal processing method, device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116301440A (en) * 2023-05-23 2023-06-23 深圳曦华科技有限公司 Signal processing method, device, electronic equipment and storage medium
CN116301440B (en) * 2023-05-23 2023-08-29 深圳曦华科技有限公司 Signal processing method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2017129007A1 (en) Touch point positioning method and apparatus, and terminal device
KR20140045300A (en) System and method for determining object information using an estimated deflection response
CN103221906A (en) Touch screen rendering system and method of operation thereof
CN101965608A (en) Method of managing applications in a multi-monitor computer system and multi-monitor computer system employing the method
CN103842940A (en) Apparatus and method for detecting a touch
KR101176104B1 (en) Interactive electric board system and management method using optical sensing pen
CN104777952A (en) Mitigating electrode interference in an integrated input device
CN103927065B (en) Touch screen and method for detecting same
US20180039378A1 (en) Touch-sensing device and touch-sensing method with unexpected-touch exclusion
WO2012129973A1 (en) Method of identifying multi-touch scaling gesture and device using the same
CN105210013B (en) Via the system and method for the input unit noise reduction for touching buffer
CN115390691A (en) Touch screen positioning method and device, storage medium and interactive panel
CN109871150B (en) Touch signal processing method and intelligent interactive panel
CN106404234A (en) Force sensor
US9507440B2 (en) Apparatus and method to detect coordinates in a pen-based display device
CN102109927A (en) Infrared touch frame control method and system and touch screen equipment
WO2015016474A1 (en) Display apparatus and control method thereof
CN107250956B (en) Method and system for binode sensing
CN110377217A (en) A kind of data processing method of touch screen, system and touch screen
CN206003066U (en) Smart mobile phone
US9146625B2 (en) Apparatus and method to detect coordinates in a penbased display device
CN109718554A (en) A kind of real-time rendering method, apparatus and terminal
CN106155429A (en) Electronic equipment, touch-control parts and method to set up thereof
US10296143B2 (en) Touch sensing device and sensing method of touch point
US10444921B2 (en) Capacitive sensing device and detection method for an irregular conductive matter in a touch event

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