CN116301440B - Signal processing method, device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN116301440B
CN116301440B CN202310579833.7A CN202310579833A CN116301440B CN 116301440 B CN116301440 B CN 116301440B CN 202310579833 A CN202310579833 A CN 202310579833A CN 116301440 B CN116301440 B CN 116301440B
Authority
CN
China
Prior art keywords
node
touch
signal corresponding
determining
touch signal
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
CN202310579833.7A
Other languages
Chinese (zh)
Other versions
CN116301440A (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.)
Shenzhen Xihua Technology Co Ltd
Original Assignee
Shenzhen Xihua 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 Shenzhen Xihua Technology Co Ltd filed Critical Shenzhen Xihua Technology Co Ltd
Priority to CN202310579833.7A priority Critical patent/CN116301440B/en
Publication of CN116301440A publication Critical patent/CN116301440A/en
Application granted granted Critical
Publication of CN116301440B publication Critical patent/CN116301440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • G06F3/04186Touch location disambiguation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)

Abstract

The embodiment of the application discloses a signal processing method, a signal processing device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a first channel number a of the non-original touch screen in the transverse direction and a second channel number b of the non-original touch screen in the longitudinal direction; acquiring a first touch signal corresponding to each node in a plurality of nodes in a touch area; acquiring a third channel number e of the original touch screen in the transverse direction and a fourth channel number f of the original touch screen in the longitudinal direction; determining a target direction and a first ratio corresponding to the target direction based on a, b, e and f; determining a second touch signal corresponding to each node in the touch area based on the target direction, the first ratio and the first touch signal corresponding to each node in the touch area; and sending a second touch signal corresponding to each node in the touch area to the second processor.

Description

Signal processing method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of touch screens, and in particular, to a signal processing method, a signal processing device, an electronic device, and a storage medium.
Background
Currently, for a certain user equipment with a touch screen, such as a mobile phone, there are an original touch screen and a non-original touch screen; instead of the original touch screen, the number of channels in the lateral or longitudinal direction of the original touch screen is generally different. For example, the number of channels of the non-original touch screen in the transverse direction is 18, and the number of channels in the longitudinal direction is 32, and at this time, the number of nodes formed by the channels of the non-original touch screen is 32×18; the number of channels of the original touch screen in the transverse direction is 18, and the number of channels of the original touch screen in the longitudinal direction is 36, and at this time, the number of nodes formed by the channels of the original touch screen is 36×18. For the mobile phone, the distribution of the adapted channels is 36 rows and 18 columns corresponding to the original touch screen, but the distribution of the channels of 32 rows and 18 columns corresponding to the original touch screen is not adapted to the mobile phone.
When the mobile phone adopts a non-original touch screen, a user can acquire a touch signal corresponding to each node in a touch area when touching the non-original touch screen; then, sending a touch signal corresponding to each node in the touch area to an application processor (Application Processor, AP) of the mobile phone; the AP of the mobile phone calculates the corresponding coordinates of the touch area, namely the touch position of the user, based on the touch signal of each node in the touch area received from the non-original touch screen.
However, since the non-original touch screen is not adapted to the mobile phone, the deviation between the coordinate calculated based on the touch signal of each node in the touch area received from the non-original touch screen and the real coordinate is large, for example, the real coordinate corresponds to the application a (i.e. the application the user really wants to click on), the calculated coordinate corresponds to the application B, and then the AP of the mobile phone will respond to the touch of the user for the application B, not the touch of the application a, so that the accuracy of determining the touch position of the user when the user touches on the non-original touch screen is reduced. Therefore, how to improve the accuracy of determining the touch position of the user when the user touches the non-original touch screen is a problem to be solved.
Disclosure of Invention
The embodiment of the application provides a signal processing method, a device, electronic equipment and a storage medium, which improve the accuracy of determining the touch position of a user when the user touches a non-original touch screen.
In a first aspect, an embodiment of the present application provides a signal processing method, applied to a first processor, where the first processor is located on a non-original touch screen, the method including:
acquiring a first channel number a of a non-original touch screen in the transverse direction and a second channel number b of the non-original touch screen in the longitudinal direction, wherein the node number formed by the channels of the non-original touch screen in the transverse direction and the longitudinal direction is a x b, and both a and b are positive integers;
acquiring a first touch signal corresponding to each node in a plurality of nodes in a touch area, wherein the first touch signal corresponding to each node in the touch area forms a matrix of c x d, c and d are positive integers, c is more than or equal to 1 and less than or equal to b, and d is more than or equal to 1 and less than or equal to a;
acquiring a third channel number e of the original touch screen in the transverse direction and a fourth channel number f of the original touch screen in the longitudinal direction, wherein e and f are positive integers;
determining a target direction and a first ratio corresponding to the target direction based on a, b, e and f, wherein the target direction comprises a transverse direction and/or a longitudinal direction, and the first ratio is a ratio of the number of channels of the original touch screen in the target direction to the number of channels of the non-original touch screen in the target direction;
Determining a second touch signal corresponding to each node in the touch area based on the target direction, the first ratio and the first touch signal corresponding to each node in the touch area;
and sending a second touch signal corresponding to each node in the touch area to the second processor.
In a second aspect, an embodiment of the present application provides a signal processing apparatus, where the signal processing apparatus is located on a non-original touch screen, the signal processing apparatus including: a transceiver unit and a processing unit;
the processing unit is used for acquiring a first channel number a of the non-original touch screen in the transverse direction and a second channel number b of the non-original touch screen in the longitudinal direction, wherein the node number formed by the channels of the non-original touch screen in the transverse direction and the longitudinal direction is a x b, and both a and b are positive integers;
the processing unit is used for acquiring a first touch signal corresponding to each node in the plurality of nodes in the touch area, wherein the first touch signal corresponding to each node in the touch area forms a matrix of c x d, c and d are positive integers, c is more than or equal to 1 and less than or equal to b, and d is more than or equal to 1 and less than or equal to a;
the processing unit is used for acquiring a third channel number e of the original touch screen in the transverse direction and a fourth channel number f of the original touch screen in the longitudinal direction, wherein e and f are positive integers;
The processing unit is used for determining a target direction and a first ratio corresponding to the target direction based on a, b, e and f, wherein the target direction comprises a transverse direction and/or a longitudinal direction, and the first ratio is a ratio of the number of channels of the original touch screen in the target direction to the number of channels of the non-original touch screen in the target direction;
the processing unit is used for determining a second touch signal corresponding to each node in the touch area based on the target direction, the first ratio and the first touch signal corresponding to each node in the touch area;
and the receiving and transmitting unit is used for transmitting a second touch signal corresponding to each node in the touch area to the second processor.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory, the processor being connected to the memory, the memory being for storing a computer program, the processor being for executing the computer program stored in the memory to cause the electronic device to perform the method as in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing a computer program that causes a computer to perform the method as in the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer being operable to cause a computer to perform a method as in the first aspect.
The embodiment of the application has the following beneficial effects:
firstly, acquiring a first channel number a of a non-original touch screen in the transverse direction and a second channel number b of the non-original touch screen in the longitudinal direction, wherein the node number formed by the channels of the non-original touch screen in the transverse direction and the longitudinal direction is a x b, and both a and b are positive integers; the method comprises the steps of obtaining a first touch signal corresponding to each node in a plurality of nodes in a touch area, wherein the first touch signal corresponding to each node in the plurality of nodes in the touch area forms a matrix of c x d, c and d are positive integers, c is more than or equal to 1 and less than or equal to b, and d is more than or equal to 1 and less than or equal to a; the method comprises the steps of obtaining a third channel number e of an original touch screen in the transverse direction and a fourth channel number f of the original touch screen in the longitudinal direction, wherein e and f are positive integers; then, determining a target direction and a first ratio corresponding to the target direction based on a, b, e and f, wherein the target direction comprises a transverse direction and/or a longitudinal direction; then, determining a second touch signal corresponding to each node in the touch area based on the target direction, the first ratio and the first touch signal corresponding to each node in the touch area; that is, based on a, b, e and f, determining a target direction, then processing a first touch signal corresponding to a node corresponding to a channel of the touch area in the target direction based on a first ratio to obtain a second touch signal corresponding to each node in the touch area, that is, determining the target direction based on the number of channels of the original touch screen and the non-original touch screen, and then processing the first touch signal corresponding to each node in the touch area under the angle of the non-original touch screen to obtain a second touch signal corresponding to each node in the touch area under the angle of the original touch screen or adapted to user equipment (such as a mobile phone, a tablet, a computer and the like) with the touch screen; and finally, sending a second touch signal corresponding to each node in the touch area to the second processor, so that the second processor calculates the coordinates of the touch area in the target direction based on the second touch signal corresponding to each node in the touch area, for example, if the target direction is transverse, the abscissa of the touch area is calculated, and at the moment, the coordinates in the target direction are the same as the real coordinates in the target direction or have small deviation from the real coordinates in the target direction, thereby improving the accuracy of determining the touch position of the user when the user touches the non-original touch screen.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a channel of a non-original touch screen according to an embodiment of the present application;
fig. 2 is a schematic diagram of a signal processing system according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a signal processing method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a first touch signal corresponding to each node in a touch area according to an embodiment of the present application;
fig. 5 is a flowchart of a method for determining a second touch signal corresponding to each node in a touch area according to an embodiment of the present application;
fig. 6 is a schematic flow chart of determining a third touch signal corresponding to each node in the ith dimension according to an embodiment of the present application;
FIG. 7 is a schematic diagram of determining a second touch signal corresponding to each node in a touch area based on a target direction, a first ratio, and a first touch signal corresponding to each node in the touch area according to an embodiment of the present application;
Fig. 8 is a schematic diagram of determining a sixth touch signal corresponding to each node in a x b nodes based on a fifth touch signal corresponding to each node in a second remaining nodes, original data, and a second touch signal corresponding to each node in a touch area according to an embodiment of the present application;
fig. 9 is a functional unit block diagram of a signal processing device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," "third," and "fourth" and the like in the description and in the claims and drawings are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, result, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
First, in order to facilitate understanding of the embodiments of the present application, related terms to which the present application relates are explained and explained first.
Original touch screen and non-original touch screen: the original touch screen is a screen which is not modified and can be perfectly adapted to the electrical equipment (such as a mobile phone), the non-original screen is a modified screen, and the modified screen has the problems of insensitivity, inaccurate touch precision and the like; in addition, the original touch screen and the non-original touch screen of the same electronic device have the same size and different channel numbers.
Target direction: including the transverse and/or longitudinal directions, or alternatively, the X-direction and/or the Y-direction.
Number of channels: referring to fig. 1, fig. 1 is a schematic diagram of a channel of a non-original touch screen according to an embodiment of the present application, as shown in fig. 1, the number of channels of the non-original touch screen in the transverse direction is a number (i.e., 1, 2, 3, 4, 5, 6, 7, 8, 9, …, a) and the number of channels of the non-original touch screen in the longitudinal direction is b (i.e., 1, 2, 3, 4, 5, 6, 7, 8, …, b).
Node number: the number of effective data can be obtained when the signals of each channel are sampled, for example, referring still to fig. 1, the number of nodes formed by a channels in the transverse direction and b channels in the longitudinal direction is a×b, and it can be understood that the a×b nodes respectively correspond to a×b rectangular small lattices in fig. 1, that is, the number of effective data can be obtained when the signals of a+b channels are sampled is a×b.
Referring to fig. 2, fig. 2 is a schematic diagram of a signal processing system according to an embodiment of the application. The signal processing system comprises a first processor 201 and a second processor 202; the first processor 201 is located on a non-original touch screen, and the second processor 202 is a processor of a user device (such as a mobile phone, a tablet, a computer, etc.), where the second processor 202 may be an application processor of the user device, and is mainly used for data processing and the like. It can be understood that after the original touch screen of the user equipment is damaged, the non-original touch screen can be installed on the user equipment to be used as the touch screen of the user equipment; the first processor 201 and the second processor 202 establish a communication connection, and the manner of the communication connection is not limited by the present application. In addition, the appearance information such as the shape and pattern of the first processor 201 and the second processor 202 shown in fig. 2 is merely an example, and the present application is not limited thereto; and the specific location of the first processor 201 on the non-original touch screen is not limited by the present application, and the specific location of the second processor 202 on the user device is not limited by the present application, and the location of the first processor 201 on the non-original touch screen and the location of the second processor 202 on the user device in fig. 2 are only examples.
For a certain user device, such as a mobile phone, when a non-original touch screen is adopted and a touch is generated on the non-original touch screen, the first processor 201 processes a first touch signal corresponding to each node in the touch area to obtain a second touch signal corresponding to each node in the touch area, and then the first processor 201 sends the second touch signal corresponding to each node in the touch area to the second processor 202, specifically:
first, the first processor 201 obtains a first channel number a of the non-original touch screen in a transverse direction and a second channel number b of the non-original touch screen in a longitudinal direction, wherein the node numbers formed by the channels of the non-original touch screen in the transverse direction and the longitudinal direction are a×b; the method comprises the steps of obtaining a first touch signal corresponding to each node in a plurality of nodes in a touch area, wherein the first touch signal corresponding to each node in the plurality of nodes in the touch area forms a matrix of c, c is more than or equal to 1 and less than or equal to b, and d is more than or equal to 1 and less than or equal to a; acquiring a third channel number e of the original touch screen in the transverse direction and a fourth channel number f of the original touch screen in the longitudinal direction; then, the first processor 201 determines a target direction and a first ratio corresponding to the target direction based on a, b, e and f, wherein the target direction comprises a transverse direction and/or a longitudinal direction, and the first ratio is a ratio of the number of channels of the original touch screen in the target direction to the number of channels of the non-original touch screen in the target direction; then, the first processor 201 determines a second touch signal corresponding to each node in the touch area based on the target direction, the first ratio, and the first touch signal corresponding to each node in the plurality of nodes in the touch area; finally, the first processor 201 sends a second touch signal corresponding to each node in the touch area to the second processor 202, so that after receiving the second touch signal corresponding to each node in the touch area, the second processor 202 calculates coordinates of the touch area based on the second touch signal corresponding to each node, and then responds to the touch of the user on the non-original touch screen based on the coordinates.
It can be seen that, in the embodiment of the present application, by acquiring the first channel number a of the non-original touch screen in the transverse direction and the second channel number b of the non-original touch screen in the longitudinal direction, the node number formed by the channels of the non-original touch screen in the transverse direction and the longitudinal direction is a×b; the method comprises the steps of obtaining a first touch signal corresponding to each node in a plurality of nodes in a touch area, wherein the first touch signal corresponding to each node in the plurality of nodes in the touch area forms a matrix of c, c is more than or equal to 1 and less than or equal to b, and d is more than or equal to 1 and less than or equal to a; acquiring a third channel number e of the original touch screen in the transverse direction and a fourth channel number f of the original touch screen in the longitudinal direction; then, determining a target direction and a first ratio corresponding to the target direction based on a, b, e and f, wherein the target direction comprises a transverse direction and/or a longitudinal direction; then, determining a second touch signal corresponding to each node in the touch area based on the target direction, the first ratio and the first touch signal corresponding to each node in the touch area; that is, based on a, b, e and f, determining a target direction, then processing a first touch signal corresponding to a node corresponding to a channel of the touch area in the target direction based on a first ratio to obtain a second touch signal corresponding to each node in the touch area, that is, determining the target direction based on the number of channels of the original touch screen and the non-original touch screen, and then processing the first touch signal corresponding to each node in the touch area under the angle of the non-original touch screen to obtain a second touch signal corresponding to each node in the touch area under the angle of the original touch screen or adapted to user equipment (such as a mobile phone, a tablet, a computer and the like) with the touch screen; and finally, sending a second touch signal corresponding to each node in the touch area to the second processor, so that the second processor calculates the coordinates of the touch area in the target direction based on the second touch signal corresponding to each node in the touch area, for example, if the target direction is transverse, the abscissa of the touch area is calculated, and at the moment, the coordinates in the target direction are the same as the real coordinates in the target direction or have small deviation from the real coordinates in the target direction, thereby improving the accuracy of determining the touch position of the user when the user touches the non-original touch screen.
Referring to fig. 3, fig. 3 is a flowchart of a signal processing method according to an embodiment of the present application, where the method is applied to a first processor, and the first processor is located on a non-original touch screen, and includes, but is not limited to, steps 301 to 306:
301: the first processor acquires a first channel number a of the non-original touch screen in the transverse direction and a second channel number b of the non-original touch screen in the longitudinal direction.
The node number formed by the channels of the non-original touch screen in the transverse direction and the longitudinal direction is a, and a and b are positive integers. For example, referring to the example of fig. 1, as shown in fig. 1, the number of first channels of the non-original touch screen in the transverse direction is a (i.e. 1, 2, 3, 4, 5, 6, 7, 8, 9, …, a), the number of second channels in the longitudinal direction is b (i.e. 1, 2, 3, 4, 5, 6, 7, 8, …, b), and at this time, the number of nodes formed by the a channels in the transverse direction and the b channels in the longitudinal direction is a×b, which can be understood as a×b nodes respectively correspond to a×b rectangular small lattices in fig. 1.
302: the first processor acquires a first touch signal corresponding to each of a plurality of nodes in the touch area.
The first touch signal corresponding to each node in the plurality of nodes in the touch area forms a matrix of c x d, namely a matrix of c rows and d columns, c and d are positive integers, c is more than or equal to 1 and less than or equal to b, d is more than or equal to 1 and less than or equal to a, namely the number of the plurality of nodes in the touch area is c x d. For example, based on the schematic diagram of fig. 1, referring to fig. 4, fig. 4 is a schematic diagram of a first touch signal corresponding to each node in a touch area according to an embodiment of the present application, as shown in fig. 4, a "solid shadow circle" is a touch area corresponding to a touch of a non-original touch screen, and the area of the "solid shadow circle" totally involves 9 nodes: namely, a node of a 5 th channel in the transverse direction and a 4 th channel in the longitudinal direction, a node of a 5 th channel in the transverse direction and a 5 th channel in the longitudinal direction, a node of a 5 th channel in the transverse direction and a 6 th channel in the longitudinal direction, a node of a 6 th channel in the transverse direction and a 5 th channel in the longitudinal direction, a node of a 6 th channel in the transverse direction and a 6 th channel in the longitudinal direction, a node of a 7 th channel in the transverse direction and a 4 th channel in the longitudinal direction, a node of a 7 th channel in the transverse direction and a 5 th channel in the longitudinal direction, and a node of a 7 th channel in the transverse direction and a 6 th channel in the longitudinal direction; therefore, the plurality of nodes in the touch area, which is the rectangle of 3*3 in fig. 4, are the above 9 nodes, the first touch signal corresponding to each node of the 9 nodes in the touch area forms a matrix of 3*3 (at this time, c=3, d=3), and the first touch signals corresponding to each node of the 9 nodes are respectively: s11, S12, S13, S21, S22, S23, S31, S32, S33.
303: the first processor acquires a third channel number e of the original touch screen in the transverse direction and a fourth channel number f of the original touch screen in the longitudinal direction.
In an embodiment of the application, wherein e and f are both positive integers; the number of channels in the lateral and longitudinal directions of the original touch screen may be stored in advance. Thus, the original touch screen can be obtained with the number of channels e in the transverse direction and the number of channels f in the longitudinal direction.
304: the first processor determines a target direction and a first ratio corresponding to the target direction based on a, b, e, and f.
The target direction includes a transverse direction and/or a longitudinal direction, that is, the target direction may be a transverse direction, may be a longitudinal direction, and may also include a transverse direction and a longitudinal direction, where the first ratio is a ratio of a number of channels of the original touch screen in the target direction to a number of channels of the non-original touch screen in the target direction. Thus, step 204 may be embodied as: if a is not equal to e and b=f, determining the target direction as the transverse direction, and determining a first ratio corresponding to the transverse direction as the ratio of e to a; if a=e and b+.f, determining the target direction as the longitudinal direction, and determining the first ratio corresponding to the longitudinal direction as the ratio of f to b; if a is not equal to e and b is not equal to f, determining the target direction as the transverse direction and the longitudinal direction, determining the first ratio corresponding to the transverse direction as the ratio of e to a, and determining the first ratio corresponding to the longitudinal direction as the ratio of f to b. For example, if a=e and b+.f, the target direction is determined to be the longitudinal direction, and the first ratio=f/b corresponding to the longitudinal direction is determined, in practical application, how many decimal places the first ratio is reserved may be set in a custom manner to reduce the calculation.
It should be noted that, if the number of channels in the target direction is different between the original touch screen and the non-original touch screen, the coordinates in the target direction generated by the first touch signal of each node in the touch area and the real coordinates in the target direction are greatly different. For example, if the target direction is assumed to be only the vertical direction, the coordinate (i.e., Y coordinate) in the vertical direction (also understood as Y coordinate) generated based on the first touch signal of each node in the touch area is different from the real coordinate (i.e., real Y coordinate) in the vertical direction and has a large deviation, and the coordinate (i.e., X coordinate) in the horizontal direction (also understood as X coordinate) generated based on the first touch signal of each node in the touch area is the same as or has a small deviation from the real coordinate (i.e., real X coordinate) in the horizontal direction. Therefore, the first touch signal of each node in the touch area needs to be processed based on the longitudinal direction and the first ratio to obtain the second touch signal corresponding to each node in the touch area, at this time, the true Y coordinate deviation of the Y coordinate generated based on the second touch signal corresponding to each node in the touch area is very small and even the same, and it can be ensured that the X coordinate generated based on the second touch signal corresponding to each node in the touch area is unchanged, that is, the X coordinate is still the same as the X coordinate, that is, the Y coordinate identical to or smaller than the true Y coordinate is obtained, meanwhile, the X coordinate (that is, the same as the true X coordinate) is ensured to be unchanged, and further the touch precision, that is, the accuracy and the precision of determining the touch position are improved.
305: the first processor determines a second touch signal corresponding to each node in the touch area based on the target direction, the first ratio, and the first touch signal corresponding to each node in the touch area.
In the embodiment of the present application, step 305 may specifically refer to fig. 5, and fig. 5 is a flowchart of a method for determining a second touch signal corresponding to each node in a touch area according to the embodiment of the present application, including, but not limited to, steps 501-503:
501: and determining a third touch signal corresponding to each node in the ith dimension.
The matrix with the i-th dimension of c x d is the first or last dimension in the target direction, for example, when the target direction is transverse, the i-th dimension is the first or last column in the matrix with the c x d, and when the target direction is longitudinal, the i-th dimension is the first or last row in the matrix with the c x d. For example, based on the above example, referring to fig. 6, fig. 6 is a schematic diagram of determining a third touch signal corresponding to each node in the ith dimension according to the embodiment of the present application, as shown in fig. 6, assuming that a matrix of c×d is a matrix of 3*3 in fig. 6 (including 9 first touch signals corresponding to 9 nodes in a touch area), 9 elements in the matrix of 3*3 are 9 first touch signals corresponding to 9 nodes (i.e. S11, S12, S13, S21, S22, S23, S31, S32, S33) respectively in sequence: 68. 149, 148, 90, 255, 70, 151, 150; if a=18, b=32, e=18, f=36, the target direction is longitudinal, the first ratio is f/b=36/32=1.125; if the i-th dimension is the last dimension of the matrix of 3*3 in the longitudinal direction, i.e. i=3 at this time, the matrix of 3*3 determines that the third touch signals corresponding to each node in the 3-th dimension (i.e. 3 rd row) in the longitudinal direction are respectively: 70. 151, 150, i.e. the third touch signal corresponding to each node in row 3 corresponds to the first touch signal corresponding to each node in row 3 in the matrix of 3*3, respectively.
502: and determining a fourth touch signal corresponding to each node in the ith dimension based on the first ratio and the third touch signal corresponding to each node in the ith dimension.
In an embodiment of the present application, based on the assumptions and examples made above, step 502 may specifically include, but is not limited to, steps S11-S13:
s11: a first barycentric coordinate in the target direction is determined based on a first touch signal corresponding to each of a plurality of nodes in the touch region.
Based on the above example, if the target direction is vertical, the 9 first touch signals corresponding to the 9 nodes in the touch area are sequentially: 68. 149, 148, 90, 255, 70, 151, 150, or, in other words, the first touch signals corresponding to 3 nodes in the 1 st dimension (i.e. row 1) in the longitudinal direction in the matrix of 3*3 are 68, 149, 148 in turn, the first touch signals corresponding to 3 nodes in the 2 nd dimension (i.e. row 2) in the longitudinal direction are 90, 255 in turn, and the first touch signals corresponding to 3 nodes in the 3 rd dimension (i.e. row 3) in the longitudinal direction are 70, 151, 150 in turn; then, calculating first sums=68+149+148+90+255+255+70+151+150=1336 of 9 first touch signals corresponding to 9 nodes in the touch area; determining a second sum = (68+149+148) ×1+ (90+255) ×2+ (70+151+150) ×3=2678 based on the first touch signal in each row and the row corresponding to each row; the first barycentric coordinate in the longitudinal direction is then determined, i.e. the first barycentric Y coordinate is 2678/1336= 2.004491018 (here the reserved decimal places can be determined according to custom requirements).
S12: a second barycentric coordinate in the target direction is determined based on the first ratio and the first barycentric coordinate.
Illustratively, still based on the above examples and assumptions, since the first ratio is equal to 1.125 and the first barycentric coordinate is 2.004491018, the second barycentric coordinate in the machine direction, i.e., the second barycentric Y coordinate, is the product of the first ratio and the first barycentric coordinate, i.e., 1.125 x 2.004491018= 2.2550524 (where the reserved decimal numbers can be determined according to the custom requirements).
S13: and determining a fourth touch signal corresponding to each node in the ith dimension based on the second center coordinates and the third touch signal corresponding to each node in the ith dimension.
In the embodiment of the present application, step S13 specifically includes: first, third center coordinates in a target direction are determined based on first touch signals corresponding to each of the first remaining nodes. For example, still based on the above example, the first touch signal corresponding to each node in the first remaining nodes in the matrix of 3*3 except the first touch signal corresponding to each node in the 3 rd dimension (i.e., row 3) is the first touch signal corresponding to each node in row 1 in the matrix of 3*3 (i.e., 63, 149, 148) and the first touch signal corresponding to each node in row 2 (i.e., 90, 255); then, calculating a third sum=68+149+148+90+255+255=965 of the first touch signals corresponding to each node in the first remaining nodes except the first touch signal corresponding to each node in the 3 rd dimension in the matrix of 3*3, i.e., calculating a third sum of the first touch signals corresponding to each node in the 1 st row and the 2 nd row; then, based on the first touch signal of each node in the 1 st row and the 2 nd row and the row number corresponding to each row (i.e. the row number corresponding to the 1 st row is 1 and the row number corresponding to the 2 nd row is 2), determining a fourth sum= (68+149+148) ×1+ (90+255+255) ×2=1565; thus, the third center of gravity, i.e., the third center of gravity, Y, coordinate in the machine direction is the ratio of the fourth sum to the third sum, 1565/965= 1.6217617 (here the reserved decimal place is determined according to the custom requirements).
Further, fourth center-of-gravity coordinates in the target direction are determined based on the third touch signal corresponding to each node in the i-th dimension. For example, still based on the above example, the third touch signal corresponding to each node in the 3 rd dimension (i.e. 3 rd row) is: 70. 151, 150, then a fifth sum = 70+151+150 = 371 is determined; then, based on the third touch signal corresponding to each node in the 3 rd row and the row number of the 3 rd row (the row number of the 3 rd row is 3), determining a sixth sum= (70+151+150) ×3=1113; thus, the fourth center-of-gravity coordinate in the longitudinal direction, i.e., the fourth center-of-gravity Y coordinate, is the ratio of the sixth sum to the fifth sum, i.e., 1113/371=3.
And finally, determining a fourth touch signal corresponding to each node in the ith dimension based on the second center coordinates, the third center coordinates, the fourth center coordinates and the third touch signal corresponding to each node in the ith dimension.
Illustratively, still based on the above examples and assumptions, first determining a first difference of the second center-of-gravity coordinates from the third center-of-gravity coordinates, namely (2.2550524-1.6217617); and determining a second difference between the fourth center coordinates and the second center coordinates, namely (3-2.2550524); determining a second ratio, which is (2.2550524-1.6217617)/(3-2.2550524) = 0.8501145 (here, the reserved decimal places are determined according to the custom requirement), based on the first difference and the second difference; and finally, determining a fourth touch signal corresponding to each node in the ith dimension based on the third touch signal corresponding to each node in the ith dimension and the second ratio, namely multiplying the third touch signal corresponding to each node in the 3 rd row (namely 70, 151 and 150) by the second ratio to obtain fourth touch signals corresponding to each node in the 3 rd row, wherein the fourth touch signals are respectively as follows: 146.68726, 337.67295 and 336.00015, the rounding is as follows: 146. 337, 336.
503: and determining a second touch signal corresponding to each node in the touch area based on the fourth touch signal corresponding to each node in the i-th dimension and the first touch signal corresponding to each node in the first residual nodes.
Wherein the first remaining nodes are nodes in the matrix of c x d except for each node value in the i-th dimension. For example, still based on the above example and assumption, based on the fourth touch signal (i.e., 146, 337, 336) corresponding to each node in the 3 rd dimension (i.e., 3 rd row, i=3), and the first touch signal corresponding to each node in the first remaining nodes, i.e., the first touch signal corresponding to each node in the 3*3 matrix except the first touch signal corresponding to each node in the 3 rd dimension, i.e., the first touch signal corresponding to each node in the 1 st row (i.e., 68, 149, 148) and the first touch signal corresponding to each node in the 2 nd row (i.e., 90, 255), the second touch signal corresponding to 9 nodes in the touch area is determined, i.e., the first touch signal corresponding to each node in the 1 st row is determined as the second touch signal corresponding to each node in the 1 st row, the first touch signal corresponding to each node in the 2 nd row is determined as the second touch signal corresponding to each node in the 2 nd row, and the fourth touch signal corresponding to each node in the 3 nd row is determined as the second touch signal corresponding to each node in the fourth row. That is, the first touch signal corresponding to each node in the 1 st row and the 2 nd row in the matrix (i.e. in the touch area) of 3*3 is not changed, and only the first touch signal corresponding to each node in the 3 rd row is processed to obtain the second touch signal corresponding to each node in the 3 rd row, in this example, only the first touch signal corresponding to each node in the row needs to be changed, that is, only the first touch signal corresponding to each node in the row in the touch area needs to be processed, so that the calculation efficiency is accelerated.
For easy understanding, referring to fig. 7 still based on the above example, fig. 7 is a schematic diagram of determining a second touch signal corresponding to each node in the touch area based on the target direction, the first ratio, and the first touch signal corresponding to each node in the touch area according to the embodiment of the present application, and as shown in fig. 7, first determining, from a matrix of 3*3, a third touch signal corresponding to each node in 3 rd dimension (i.e. 3 rd row) in the longitudinal direction is: 70. 151, 150; then referring to the principle of step S11, based on the 9 first touch signals (i.e. 68, 149, 148, 90, 255, 70, 151, 150, respectively) corresponding to the 9 nodes in the touch area, a first barycentric coordinate in the longitudinal direction is determined as follows: 2.004491018; then based on the first ratio, which in the above example is 1.125, multiplied by the first barycentric coordinate, the second barycentric coordinate is determined as: 2.2550524; then referring to the principle of step S13, based on the first touch signal (i.e. 68, 149, 148) corresponding to each node in row 1 and the first touch signal (i.e. 90, 255) corresponding to each node in row 2 in the matrix of 3*3, the third center coordinates are determined as: 1.6217617; then determining that the fourth center-of-gravity coordinate is 3 based on the third touch signal (70, 151, 150) corresponding to each node in the 3 rd dimension (i.e. 3 rd row); then, referring to the principle of step S13, based on the second center of gravity coordinate, the third center of gravity coordinate, the fourth center of gravity coordinate, and the third touch signal corresponding to each node in the 3 rd dimension in the longitudinal direction, it is determined that the fourth touch signals corresponding to each node in the 3 rd dimension in the longitudinal direction are respectively: 146. 337, 336; finally, referring to the principle of step 503, based on the fourth touch signal corresponding to each node in the 3 rd dimension in the longitudinal direction, and the first touch signal corresponding to each node in the 1 st row (i.e. 68, 149, 148) and the first touch signal corresponding to each node in the 2 nd row (i.e. 90, 255) in the matrix of 3*3, 9 second touch signals corresponding to 9 nodes in the touch area are determined in sequence: 68. 149, 148, 90, 255, 146, 337, 336.
306: the first processor sends a second touch signal corresponding to each node in the touch area to the second processor.
In an embodiment of the present application, step 206 may specifically be: determining a fifth touch signal according to a signal value corresponding to each node in the second remaining nodes, wherein the second remaining nodes are nodes except for a plurality of nodes in the touch area of the non-original touch screen, that is, the non-original touch screen corresponds to a/b nodes, the touch area corresponds to c/d nodes, the second remaining nodes are each node except for c/d nodes corresponding to the touch area in the a/b nodes, and the value of the fifth touch signal is customized according to requirements, for example, the value can be zero; acquiring original data of an original touch screen, wherein the original data can be prestored, and the original data is a sampling value obtained by sampling nodes formed by a channel of the original touch screen when the original touch screen is not in touch control; determining a sixth touch signal corresponding to each node in the a-b nodes based on the fifth touch signal corresponding to each node in the second remaining nodes, the original data and the second touch signal corresponding to each node in the touch area, for example, respectively, the difference value between the original data and the fifth touch signal corresponding to each node in the second remaining nodes and the second touch signal corresponding to each node in the touch area; and finally, sending a sixth touch signal corresponding to each node in the a-b nodes to the second processor, so that after the second processor receives the sixth touch signal corresponding to each node in the a-b nodes, the second processor can obtain a change value of the touch signal corresponding to each node in the touch area based on the pre-stored original data and the sixth touch signal corresponding to each node to calculate the coordinate corresponding to the touch area, and the calculated coordinate corresponding to the touch area is the same as or has smaller deviation from the real coordinate.
As shown in fig. 8, the first number of channels of the non-original touch screen in the transverse direction is a (i.e. 1, 2, 3, 4, 5, …, a), the second number of channels of the non-original touch screen in the longitudinal direction is b (i.e. 1, 2, 3, 4, 5, 6, 7, 8, …, b), and the number of nodes formed by the a channels in the transverse direction and the b channels in the longitudinal direction is a×b, which can be understood as that the a×b nodes respectively correspond to a×b rectangular lattices in fig. 8; the 9 second touch signals corresponding to the 9 nodes in the touch area are sequentially as follows: 68. 149, 148, 90, 255, 146, 337, 336; then determining a fifth touch signal according to the signal value corresponding to each node in the second remaining nodes, namely determining the signal value corresponding to each node except for 9 second touch signals corresponding to 9 nodes in the touch area in the a-b nodes as zero, and obtaining a seventh touch signal corresponding to each node in the a-b nodes in fig. 8 based on the fifth touch signal corresponding to each node in the second remaining nodes and the 9 second touch signals corresponding to 9 nodes in the touch area; then, obtaining pre-stored original data of the original touch screen, for example, assuming that the original data is 2000; and then obtaining a sixth touch signal corresponding to each node in the a x b nodes based on a difference value between the original data and a fifth touch signal corresponding to each node in the second remaining nodes and a second touch signal corresponding to each node in the touch area, namely the original data and a seventh touch signal corresponding to each node in the a x b nodes, wherein the 9 sixth touch signals corresponding to the 9 nodes in the touch area are respectively: 1932. 1851, 1852, 1910, 1745, 1854, 1663, 1664, and the sixth touch signal corresponding to a node except for 9 nodes in the open touch region is 2000. It should be noted that the data values (such as the number of channels of the original touch screen and the non-original touch screen in the lateral direction and the longitudinal direction, the original data of the original touch screen, the first touch signal, the fifth touch signal, etc.) shown in all embodiments of the present application are merely for convenience of understanding and are merely illustrative of principles, and are not representative of actual values.
In addition, if it is assumed that the initial coordinate calculated by the second processor based on the first touch signal corresponding to each node in the touch area is (X0, Y0); when the target direction is one of the transverse direction and the longitudinal direction, for example, when the target direction is the transverse direction, the number of channels of the non-original touch screen in the transverse direction is different from that of channels of the original touch screen, namely, the number of channels of the non-original touch screen in the transverse direction is not matched with user equipment (such as a mobile phone), or a second processor is not matched, at the moment, the deviation between X0 and the true X coordinate is larger, and the deviation between Y0 and the true Y coordinate is the same or smaller; then, according to the embodiment of the application, a second touch signal corresponding to each node in the touch area corresponding to the transverse direction is obtained and sent to the second processing, so that the second processor can calculate the first coordinate corresponding to the touch area based on the second touch signal corresponding to each node in the touch area, and the first coordinate is marked as (X1, Y1), X1 is the transverse coordinate, Y1 is the longitudinal coordinate, at the moment, the X1 is the same as the real X coordinate or has smaller deviation, and Y1 is the same as Y0.
Similarly, when the target direction is the longitudinal direction, the number of channels of the non-original touch screen in the longitudinal direction is different from that of channels of the original touch screen in the longitudinal direction, namely, the number of channels of the non-original touch screen in the longitudinal direction is not matched with the user equipment (such as a mobile phone), or is not matched with the second processor, at the moment, the deviation between Y0 and the true Y coordinate is larger, and the deviation between X0 and the true X coordinate is the same or smaller; and then, according to the embodiment of the application, obtaining and sending a second touch signal corresponding to each node in the touch area longitudinally corresponding to the second processing, so that the second processor can calculate a second coordinate corresponding to the touch area based on the second touch signal corresponding to each node in the touch area, and the second coordinate is marked as (X2 and Y2), wherein at the moment, Y2 is the same as or smaller in deviation from the real Y coordinate, and X2 is the same as X0.
Similarly, when the target directions are the transverse direction and the longitudinal direction, the number of channels of the non-original touch screen in the transverse direction and the longitudinal direction is different from that of channels of the original touch screen in the transverse direction and the longitudinal direction, namely the number of channels of the non-original touch screen in the longitudinal direction is not matched with user equipment (such as a mobile phone) or is not matched with a second processor, at the moment, Y0 and the true Y coordinate deviation are larger, and X0 and the true X coordinate deviation are also larger; then, according to the embodiment of the application, the second touch signal corresponding to each node in the touch area corresponding to the lateral direction and the second touch signal corresponding to each node in the touch area corresponding to the longitudinal direction can be obtained respectively, then the second touch signal corresponding to each node in the touch area corresponding to the lateral direction and the second touch signal corresponding to each node in the touch area corresponding to the longitudinal direction are sent to the second processor respectively, so that the second processor calculates the third coordinate as (X3, Y3) based on the second touch signal corresponding to each node in the touch area corresponding to the lateral direction, and calculates the fourth coordinate as (X4, Y4) based on the second touch signal corresponding to each node in the touch area corresponding to the longitudinal direction, at this time, the X3 is the same as or has smaller deviation from the true X coordinate, the Y4 is the same as or has smaller deviation from the true Y coordinate, and then the X3 and Y4 can be determined as the lateral coordinate and the longitudinal coordinate in the coordinates corresponding to the touch area respectively, that is (X3, Y4).
It can be seen that, in the embodiment of the present application, by acquiring the first channel number a of the non-original touch screen in the transverse direction and the second channel number b of the non-original touch screen in the longitudinal direction, the node number formed by the channels of the non-original touch screen in the transverse direction and the longitudinal direction is a×b; the method comprises the steps of obtaining a first touch signal corresponding to each node in a plurality of nodes in a touch area, wherein the first touch signal corresponding to each node in the plurality of nodes in the touch area forms a matrix of c, c is more than or equal to 1 and less than or equal to b, and d is more than or equal to 1 and less than or equal to a; acquiring a third channel number e of the original touch screen in the transverse direction and a fourth channel number f of the original touch screen in the longitudinal direction; then, determining a target direction and a first ratio corresponding to the target direction based on a, b, e and f, wherein the target direction comprises a transverse direction and/or a longitudinal direction; then, determining a second touch signal corresponding to each node in the touch area based on the target direction, the first ratio and the first touch signal corresponding to each node in the touch area; that is, based on a, b, e and f, determining a target direction, then processing a first touch signal corresponding to a node corresponding to a channel of the touch area in the target direction based on a first ratio to obtain a second touch signal corresponding to each node in the touch area, that is, determining the target direction based on the number of channels of the original touch screen and the non-original touch screen, and then processing the first touch signal corresponding to each node in the touch area under the angle of the non-original touch screen to obtain a second touch signal corresponding to each node in the touch area under the angle of the original touch screen or adapted to user equipment (such as a mobile phone, a tablet, a computer and the like) with the touch screen; and finally, sending a second touch signal corresponding to each node in the touch area to the second processor, so that the second processor calculates the coordinates of the touch area in the target direction based on the second touch signal corresponding to each node in the touch area, for example, if the target direction is transverse, the abscissa of the touch area is calculated, and at the moment, the coordinates in the target direction are the same as the real coordinates in the target direction or have small deviation from the real coordinates in the target direction, thereby improving the accuracy of determining the touch position of the user when the user touches the non-original touch screen.
Referring to fig. 9, fig. 9 is a block diagram illustrating functional units of a signal processing device according to an embodiment of the present application, where the signal processing device is located on a non-original touch screen; as shown in fig. 9, the signal processing apparatus 900 includes: a transceiver unit 901 and a processing unit 902;
a processing unit 902, configured to obtain a first channel number a of the non-original touch screen in a transverse direction and a second channel number b of the non-original touch screen in a longitudinal direction, where the number of nodes formed by the channels of the non-original touch screen in the transverse direction and the longitudinal direction is a×b, and a and b are both positive integers;
the processing unit 902 is configured to obtain a first touch signal corresponding to each node in the plurality of nodes in the touch area, where the first touch signal corresponding to each node in the touch area forms a matrix of c×d, c and d are positive integers, c is greater than or equal to 1 and less than or equal to b, and d is greater than or equal to 1 and less than or equal to a;
a processing unit 902, configured to obtain a third channel number e of the original touch screen in a transverse direction and a fourth channel number f of the original touch screen in a longitudinal direction, where e and f are both positive integers;
a processing unit 902, configured to determine a target direction and a first ratio corresponding to the target direction based on a, b, e, and f, where the target direction includes a transverse direction and/or a longitudinal direction, and the first ratio is a ratio of a number of channels of the original touch screen in the target direction to a number of channels of the non-original touch screen in the target direction;
The processing unit 902 is configured to determine a second touch signal corresponding to each node in the touch area based on the target direction, the first ratio, and the first touch signal corresponding to each node in the touch area;
the transceiver 901 is configured to send a second touch signal corresponding to each node in the touch area to the second processor.
In one embodiment of the present application, the processing unit 902 is specifically configured to, based on the target direction, the first ratio, and the first touch signal corresponding to each node in the touch area, determine the second touch signal corresponding to each node in the touch area:
determining a third touch signal corresponding to each node in the ith dimension, wherein the ith dimension is a first dimension or a last dimension of a matrix of c x d in the target direction;
determining a fourth touch signal corresponding to each node in the ith dimension based on the first ratio and the third touch signal corresponding to each node in the ith dimension;
and determining a second touch signal corresponding to each node in the touch area based on a fourth touch signal corresponding to each node in the i-th dimension and a first touch signal corresponding to each node in the first residual nodes, wherein the first residual nodes are nodes except for each node value in the i-th dimension in a matrix of c x d.
In one embodiment of the present application, the processing unit 902 is specifically configured to, based on the first ratio and the third touch signal corresponding to each node in the i-th dimension, determine the fourth touch signal corresponding to each node in the i-th dimension:
determining a first barycentric coordinate in a target direction based on a first touch signal corresponding to each of a plurality of nodes in a touch area;
determining a second barycentric coordinate in the direction of the target based on the first ratio and the first barycentric coordinate;
and determining a fourth touch signal corresponding to each node in the ith dimension based on the second center coordinates and the third touch signal corresponding to each node in the ith dimension.
In one embodiment of the present application, the processing unit 902 is specifically configured to, based on the second center of gravity coordinate and the third touch signal corresponding to each node in the i-th dimension, determine the fourth touch signal corresponding to each node in the i-th dimension:
determining a third center coordinate in the target direction based on the first touch signal corresponding to each of the first remaining nodes;
determining a fourth center-of-gravity coordinate in the target direction based on a third touch signal corresponding to each node in the i-th dimension;
and determining a fourth touch signal corresponding to each node in the ith dimension based on the second center coordinates, the third center coordinates, the fourth center coordinates and the third touch signal corresponding to each node in the ith dimension.
In one embodiment of the present application, the processing unit 902 is specifically configured to determine, based on the second center-of-gravity coordinate, the third center-of-gravity coordinate, the fourth center-of-gravity coordinate, and the third touch signal corresponding to each node in the i-th dimension, a fourth touch signal corresponding to each node in the i-th dimension:
determining a first difference between the second center coordinates and the third center coordinates;
determining a second difference between the fourth center-of-gravity coordinate and the second center-of-gravity coordinate;
determining a second ratio based on the first difference and the second difference;
and determining a fourth touch signal corresponding to each node in the ith dimension based on the third touch signal corresponding to each node in the ith dimension and the second ratio.
In one embodiment of the present application, in sending the second touch signal corresponding to each node in the touch area to the second processor, the processing unit 902 is specifically configured to:
determining a fifth touch signal according to the signal value corresponding to each node in the second residual nodes, wherein the second residual nodes are nodes except for a plurality of nodes in the touch area of the non-original touch screen;
acquiring original data of an original touch screen, wherein the original data is a sampling value obtained by sampling nodes formed by channels of the original touch screen when the original touch screen is not in touch control;
Determining a sixth touch signal corresponding to each node in the a-b nodes based on the fifth touch signal corresponding to each node in the second remaining nodes, the original data and the second touch signal corresponding to each node in the touch area;
the transceiver 901 is specifically configured to send a sixth touch signal corresponding to each node in the a×b nodes to the second processor.
In one embodiment of the present application, the processing unit 902 is specifically configured to, in determining the target direction and the first ratio corresponding to the target direction based on a, b, e, and f:
if a is not equal to e and b=f, determining the target direction as the transverse direction, and determining a first ratio corresponding to the transverse direction as the ratio of e to a;
if a=e and b+.f, determining the target direction as the longitudinal direction, and determining the first ratio corresponding to the longitudinal direction as the ratio of f to b;
if a is not equal to e and b is not equal to f, determining the target direction as the transverse direction and the longitudinal direction, determining the first ratio corresponding to the transverse direction as the ratio of e to a, and determining the first ratio corresponding to the longitudinal direction as the ratio of f to b.
Referring to fig. 10, fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 10, the electronic device 1000 includes a transceiver 1001, a processor 1002, and a memory 1003. Which are connected by a bus 1004. The memory 1003 is used to store computer programs and data, and the data stored in the memory 1003 can be transferred to the processor 1002.
The processor 1002 is configured to read a computer program in the memory 1003 to:
acquiring a first channel number a of a non-original touch screen in the transverse direction and a second channel number b of the non-original touch screen in the longitudinal direction, wherein the node number formed by the channels of the non-original touch screen in the transverse direction and the longitudinal direction is a x b, and both a and b are positive integers;
acquiring a first touch signal corresponding to each node in a plurality of nodes in a touch area, wherein the first touch signal corresponding to each node in the touch area forms a matrix of c x d, c and d are positive integers, c is more than or equal to 1 and less than or equal to b, and d is more than or equal to 1 and less than or equal to a;
acquiring a third channel number e of the original touch screen in the transverse direction and a fourth channel number f of the original touch screen in the longitudinal direction, wherein e and f are positive integers;
determining a target direction and a first ratio corresponding to the target direction based on a, b, e and f, wherein the target direction comprises a transverse direction and/or a longitudinal direction, and the first ratio is a ratio of the number of channels of the original touch screen in the target direction to the number of channels of the non-original touch screen in the target direction;
determining a second touch signal corresponding to each node in the touch area based on the target direction, the first ratio and the first touch signal corresponding to each node in the touch area;
The control transceiver 1001 transmits a second touch signal corresponding to each node in the touch area to the second processor.
Specifically, the transceiver 1001 may be the transceiver unit 901 of the signal processing apparatus 900 in the embodiment of fig. 9, and the processor 1002 may be the processing unit 902 of the signal processing apparatus 900 in the embodiment of fig. 9.
In a specific implementation, the processor 1002 described in the embodiment of the present application may execute other implementations described in all embodiments corresponding to the signal processing method provided in the embodiment of the present application, which are not described herein again.
It should be understood that the electronic device in the present application may include a smart Phone (such as an Android mobile Phone, an iOS mobile Phone, a Windows Phone mobile Phone, etc.), a tablet computer, a palm computer, a notebook computer, a mobile internet device MID (Mobile Internet Devices, abbreviated as MID) or a wearable device, etc. The above-described electronic devices are merely examples and are not intended to be exhaustive and include, but are not limited to, the above-described electronic devices. In practical applications, the electronic device may further include: intelligent vehicle terminals, computer devices, etc.
The embodiment of the present application also provides a computer-readable storage medium storing a computer program that is executed by a processor to implement part or all of the steps of any one of the signal processing methods described in the above method embodiments.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps of any one of the signal processing methods described in the method embodiments above.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are alternative embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, such as a division of units, merely a division of logic functions, and there may be additional divisions in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units described above may be implemented either in hardware or in software program modules.
The integrated units, if implemented in the form of software program modules and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in whole or in part in the form of a software product stored in a memory, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the application, wherein the principles and embodiments of the application are explained in detail using specific examples, the above examples being provided solely to facilitate the understanding of the method and core concepts of the application; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the idea of the present application, the present disclosure should not be construed as limiting the present application in summary.

Claims (8)

1. A signal processing method, applied to a first processor, where the first processor is located on a non-native touch screen, the method comprising:
acquiring a first channel number a of the non-original touch screen in the transverse direction and a second channel number b of the non-original touch screen in the longitudinal direction, wherein the node number formed by the channels of the non-original touch screen in the transverse direction and the longitudinal direction is a x b, and both a and b are positive integers;
Acquiring a first touch signal corresponding to each node in a plurality of nodes in a touch area, wherein the first touch signal corresponding to each node in the touch area forms a matrix of c x d, c and d are positive integers, c is more than or equal to 1 and less than or equal to b, and d is more than or equal to 1 and less than or equal to a;
acquiring a third channel number e of the original touch screen in the transverse direction and a fourth channel number f of the original touch screen in the longitudinal direction, wherein e and f are positive integers;
determining a target direction and a first ratio corresponding to the target direction based on a, b, e and f, wherein the target direction comprises the transverse direction and/or the longitudinal direction, and the first ratio is a ratio of the number of channels of the original touch screen in the target direction to the number of channels of the non-original touch screen in the target direction;
based on the target direction, the first ratio, and the first touch signal corresponding to each node in the touch area, determining the second touch signal corresponding to each node in the touch area specifically includes: determining a third touch signal corresponding to each node in an ith dimension, wherein the ith dimension is a first dimension or a last dimension of the matrix of c x d in the target direction; determining a first barycentric coordinate in the target direction based on a first touch signal corresponding to each of a plurality of nodes in the touch area; determining a second barycentric coordinate in the target direction based on the first ratio and the first barycentric coordinate; determining a fourth touch signal corresponding to each node in the ith dimension based on the second center coordinates and the third touch signals corresponding to each node in the ith dimension; determining a second touch signal corresponding to each node in the touch area based on a fourth touch signal corresponding to each node in the i-th dimension and a first touch signal corresponding to each node in a first residual node, wherein the first residual node is a node except for each node in the i-th dimension in the c-x-d matrix;
And sending the second touch signal corresponding to each node in the touch area to a second processor.
2. The method of claim 1, wherein the determining a fourth touch signal corresponding to each node in the i-th dimension based on the second centroid coordinates and the third touch signal corresponding to each node in the i-th dimension comprises:
determining a third center coordinate in the target direction based on a first touch signal corresponding to each of the first remaining nodes;
determining a fourth center-of-gravity coordinate in the target direction based on a third touch signal corresponding to each node in the i-th dimension;
and determining a fourth touch signal corresponding to each node in the ith dimension based on the second center coordinates, the third center coordinates, the fourth center coordinates and the third touch signal corresponding to each node in the ith dimension.
3. The method of claim 2, wherein the determining the fourth touch signal corresponding to each node in the i-th dimension based on the second center-of-gravity coordinate, the third center-of-gravity coordinate, the fourth center-of-gravity coordinate, and the third touch signal corresponding to each node in the i-th dimension comprises:
Determining a first difference between the second center coordinates and the third center coordinates;
determining a second difference of the fourth center-of-gravity coordinate and the second center-of-gravity coordinate;
determining a second ratio based on the first difference and the second difference;
and determining a fourth touch signal corresponding to each node in the ith dimension based on the third touch signal corresponding to each node in the ith dimension and the second ratio.
4. A method according to any one of claims 1-3, wherein the sending, to a second processor, a second touch signal corresponding to each node in the touch area includes:
determining a fifth touch signal according to a signal value corresponding to each node in second residual nodes, wherein the second residual nodes are nodes of the non-original touch screen except for a plurality of nodes in the touch area;
acquiring original data of the original touch screen, wherein the original data is a sampling value obtained by sampling nodes formed by channels of the original touch screen when the original touch screen is not in touch control;
determining a sixth touch signal corresponding to each node in the a×b nodes based on a fifth touch signal corresponding to each node in the second remaining nodes, the original data, and a second touch signal corresponding to each node in the touch area;
And sending a sixth touch signal corresponding to each node in the a-b nodes to the second processor.
5. The method of claim 1, wherein determining a target direction and a first ratio corresponding to the target direction based on a, b, e, and f comprises:
if a is not equal to e and b=f, determining the target direction as the transverse direction, and determining a first ratio corresponding to the transverse direction as a ratio of e to a;
if a=e and b+.f, determining the target direction as the longitudinal direction, and determining a first ratio corresponding to the longitudinal direction as a ratio of f to b;
if a is not equal to e and b is not equal to f, determining the target direction as the transverse direction and the longitudinal direction, determining a first ratio corresponding to the transverse direction as a ratio of e to a, and determining a first ratio corresponding to the longitudinal direction as a ratio of f to b.
6. A signal processing apparatus, the apparatus comprising: a transceiver unit and a processing unit;
the processing unit is used for acquiring a first channel number a of the non-original touch screen in the transverse direction and a second channel number b of the non-original touch screen in the longitudinal direction, wherein the node number formed by the channels of the non-original touch screen in the transverse direction and the longitudinal direction is a x b, and both a and b are positive integers;
The processing unit is used for acquiring a first touch signal corresponding to each node in a plurality of nodes in a touch area, wherein the first touch signal corresponding to each node in the touch area forms a matrix of c x d, c and d are positive integers, c is more than or equal to 1 and less than or equal to b, and d is more than or equal to 1 and less than or equal to a;
the processing unit is used for acquiring a third channel number e of the original touch screen in the transverse direction and a fourth channel number f of the original touch screen in the longitudinal direction, wherein e and f are positive integers;
the processing unit is used for determining a target direction and a first ratio corresponding to the target direction based on a, b, e and f, wherein the target direction comprises the transverse direction and/or the longitudinal direction, and the first ratio is a ratio of the number of channels of the original touch screen in the target direction to the number of channels of the non-original touch screen in the target direction;
the processing unit is configured to determine, based on the target direction, the first ratio, and a first touch signal corresponding to each node in the touch area, a second touch signal corresponding to each node in the touch area, and specifically includes: determining a third touch signal corresponding to each node in an ith dimension, wherein the ith dimension is a first dimension or a last dimension of the matrix of c x d in the target direction; determining a first barycentric coordinate in the target direction based on a first touch signal corresponding to each of a plurality of nodes in the touch area; determining a second barycentric coordinate in the target direction based on the first ratio and the first barycentric coordinate; determining a fourth touch signal corresponding to each node in the ith dimension based on the second center coordinates and the third touch signals corresponding to each node in the ith dimension; determining a second touch signal corresponding to each node in the touch area based on a fourth touch signal corresponding to each node in the i-th dimension and a first touch signal corresponding to each node in a first residual node, wherein the first residual node is a node except for each node in the i-th dimension in the c-x-d matrix;
The transceiver unit is configured to send a second touch signal corresponding to each node in the touch area to the second processor.
7. An electronic device, comprising: a processor and a memory, the processor being connected to the memory, the memory being for storing a computer program, the processor being for executing the computer program stored in the memory to cause the electronic device to perform the method of any one of claims 1-5.
8. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which is executed by a processor to implement the method of any of claims 1-5.
CN202310579833.7A 2023-05-23 2023-05-23 Signal processing method, device, electronic equipment and storage medium Active CN116301440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310579833.7A CN116301440B (en) 2023-05-23 2023-05-23 Signal processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310579833.7A CN116301440B (en) 2023-05-23 2023-05-23 Signal processing method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116301440A CN116301440A (en) 2023-06-23
CN116301440B true CN116301440B (en) 2023-08-29

Family

ID=86818942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310579833.7A Active CN116301440B (en) 2023-05-23 2023-05-23 Signal processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116301440B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589613A (en) * 2016-01-28 2016-05-18 华为技术有限公司 Touch point location method and apparatus, and terminal device
CN106055992A (en) * 2016-06-07 2016-10-26 广东欧珀移动通信有限公司 Method for processing touch operation and terminal
CN110162230A (en) * 2019-05-24 2019-08-23 京东方科技集团股份有限公司 Recognition methods, device and the storage medium of touch location
CN110462568A (en) * 2017-12-14 2019-11-15 深圳市汇顶科技股份有限公司 Coordinate determination method, device, electronic equipment and the storage medium of stylus
CN112783369A (en) * 2021-01-15 2021-05-11 青岛海信商用显示股份有限公司 Touch detection method and touch equipment
CN112860104A (en) * 2021-01-27 2021-05-28 北京小米移动软件有限公司 Calibration method and device for coordinate deviation of touch screen, mobile terminal and storage medium
CN112947791A (en) * 2021-03-12 2021-06-11 深圳市汇顶科技股份有限公司 Method and device for multi-channel touch detection in touch screen
CN114327150A (en) * 2022-01-05 2022-04-12 深圳康咏科技有限公司 Method, device and equipment for acquiring touch coordinates and storage medium
CN114504808A (en) * 2022-01-24 2022-05-17 网易(杭州)网络有限公司 Information processing method, information processing apparatus, storage medium, processor, and electronic apparatus
WO2022188325A1 (en) * 2021-03-12 2022-09-15 深圳市汇顶科技股份有限公司 Method and apparatus for touch detection of multiple channels in touch screen
CN115390691A (en) * 2021-05-24 2022-11-25 广州视源电子科技股份有限公司 Touch screen positioning method and device, storage medium and interactive panel
CN115576441A (en) * 2021-06-21 2023-01-06 青岛海信商用显示股份有限公司 Display device, touch point determination method and device
CN116125176A (en) * 2023-01-30 2023-05-16 武汉海微科技有限公司 Touch precision detection method, device, equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8717315B2 (en) * 2009-10-06 2014-05-06 Pixart Imaging Inc. Touch-control system and touch-sensing method thereof
TWI502474B (en) * 2013-11-28 2015-10-01 Acer Inc Method for operating user interface and electronic device thereof

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589613A (en) * 2016-01-28 2016-05-18 华为技术有限公司 Touch point location method and apparatus, and terminal device
CN106055992A (en) * 2016-06-07 2016-10-26 广东欧珀移动通信有限公司 Method for processing touch operation and terminal
CN110462568A (en) * 2017-12-14 2019-11-15 深圳市汇顶科技股份有限公司 Coordinate determination method, device, electronic equipment and the storage medium of stylus
CN110162230A (en) * 2019-05-24 2019-08-23 京东方科技集团股份有限公司 Recognition methods, device and the storage medium of touch location
CN112783369A (en) * 2021-01-15 2021-05-11 青岛海信商用显示股份有限公司 Touch detection method and touch equipment
CN112860104A (en) * 2021-01-27 2021-05-28 北京小米移动软件有限公司 Calibration method and device for coordinate deviation of touch screen, mobile terminal and storage medium
CN112947791A (en) * 2021-03-12 2021-06-11 深圳市汇顶科技股份有限公司 Method and device for multi-channel touch detection in touch screen
WO2022188325A1 (en) * 2021-03-12 2022-09-15 深圳市汇顶科技股份有限公司 Method and apparatus for touch detection of multiple channels in touch screen
CN115390691A (en) * 2021-05-24 2022-11-25 广州视源电子科技股份有限公司 Touch screen positioning method and device, storage medium and interactive panel
CN115576441A (en) * 2021-06-21 2023-01-06 青岛海信商用显示股份有限公司 Display device, touch point determination method and device
CN114327150A (en) * 2022-01-05 2022-04-12 深圳康咏科技有限公司 Method, device and equipment for acquiring touch coordinates and storage medium
CN114504808A (en) * 2022-01-24 2022-05-17 网易(杭州)网络有限公司 Information processing method, information processing apparatus, storage medium, processor, and electronic apparatus
CN116125176A (en) * 2023-01-30 2023-05-16 武汉海微科技有限公司 Touch precision detection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN116301440A (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN111815755B (en) Method and device for determining blocked area of virtual object and terminal equipment
CN109324749B (en) Drawing method, drawing device, storage medium and electronic equipment
JP2020509506A (en) Method, apparatus, device, and storage medium for determining camera posture information
CN106445243B (en) Touch response device and method of intelligent equipment
CN107885871A (en) Synchronous superposition method, system, interactive system based on cloud computing
CN110286768A (en) Dummy object display methods, terminal device and computer readable storage medium
CN104866185A (en) Control interface display method and device
CN111556337A (en) Media content implantation method, model training method and related device
CN114327201A (en) Cloud mobile phone control method and device and computer equipment
CN116301440B (en) Signal processing method, device, electronic equipment and storage medium
EP3309660B1 (en) Method for detecting input device, and detection device
CN112860105A (en) Touch position determination method and device, electronic equipment and readable storage medium
US20170168581A1 (en) Method and Device for Controlling Operation Components Based on Somatosensory
CN110743161A (en) Virtual object control method, device, terminal and storage medium
CN109753217A (en) Dynamic keyboard operating method, device, storage medium and electronic equipment
CN112988913B (en) Data processing method and related device
CN104238947A (en) Target key determining method and device of touch screen
CN114860088A (en) Input method, device, equipment and storage medium
CN108153447A (en) A kind of method, system and device for triggering application
CN105487801B (en) Progress bar adjusting method and mobile terminal
CN116563804A (en) Point cloud labeling method, device, equipment and storage medium
CN109782925B (en) Processing method and device and electronic equipment
CN109362027B (en) Positioning method, device, equipment and storage medium
CN103024091A (en) Method and device for acquiring real physical address of network client
CN116339546B (en) Method and device for processing original data of touch screen, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant