Pixel-linked capacitive touch screen edge error compensation method

Through the pixel linkage method, the screen pixel coordinates are calculated using capacitive sensing points and screen resolution, and the calibration equation is constructed based on pressure signals, which solves the problem of low edge error compensation efficiency of capacitive touch screens, and achieves efficient error correction and accurate touch control.

CN119088245AActive Publication Date: 2024-12-06SHENZHEN HIPI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411115430.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-12-06
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

The existing capacitive touch screens are inaccurate in the edge area. The calibration method requires multiple acquisitions of calibration points and calculating compensation coefficients, which consumes a lot of computing power and has a slow computing speed.

Method used

Using pixel linkage method, by receiving touch edge calibration instructions, obtaining capacitive sensing points and screen resolution, calculating resolution interpolation coefficients, generating screen pixel coordinates, building calibration equations based on pressure signals, correcting initial screen coordinates, and achieving edge error compensation .

Benefits of technology

The edge error calibration steps of capacitive touch screen are simplified, the calculation efficiency is improved, the computing power required for error compensation is reduced, and the touch accuracy is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088245A_ABST
    Figure CN119088245A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of touch screen calibration, and discloses a pixel-linked capacitive touch screen edge error compensation method, which comprises the following steps of: acquiring a plurality of capacitive sensing points, importing the plurality of capacitive sensing points into a physical sensing coordinate system to obtain a plurality of physical coordinates, the method comprises the following steps: acquiring a resolution interpolation coefficient, generating a plurality of screen pixel coordinates by a plurality of capacitive sensing points, acquiring a sensing area, acquiring a plurality of to-be-detected point sets according to the sensing area, and executing the following operations on the to-be-detected point sets: acquiring an identification matrix based on the to-be-detected point sets, generating a pixel image based on the identification matrix, and receiving a plurality of pressure signals from a tester, obtaining and extracting a plurality of test point coordinates according to the plurality of pressure signals, constructing a calibration equation according to the plurality of test point coordinates and the plurality of to-be-detected points, and completing the edge error compensation of the capacitive touch screen based on pixel linkage based on the calibration equation. The invention mainly aims to simplify the step of calibrating the edge error of the capacitive touch screen by using the image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a pixel-linked capacitive touch screen edge error compensation method, belonging to the technical field of touch screen calibration. Background Art

[0002] With the continuous development of science and technology, touch screens have been widely used and have great room for development. However, in the use of capacitive touch screens, especially in the edge areas, it is very easy to encounter the problem of inaccurate touch.

[0003] Currently, the calibration method of the touch screen is mainly that the tester repeatedly touches the edge area multiple times and calibrates according to the error of each touch.

[0004] Although the above materials can be calibrated, when compensating for edge errors, a large number of calibration points need to be collected, and a calibration compensation coefficient needs to be calculated for each calibration point, which requires a lot of computing power and the computing speed needs to be improved. Summary of the invention

[0005] The present invention provides a pixel-linked capacitive touch screen edge error compensation method, device and computer-readable storage medium, the main purpose of which is to simplify the steps of calibrating the edge error of the capacitive touch screen using an image.

[0006] To achieve the above object, the present invention provides a pixel-linked capacitive touch screen edge error compensation method, comprising:

[0007] receiving a touch edge calibration instruction, and starting the touch screen according to the touch edge calibration instruction, wherein the touch screen comprises: a capacitive sensing unit, a data processing unit and a screen display unit;

[0008] Acquire a plurality of capacitive sensing points based on the capacitive sensing unit, and import the plurality of capacitive sensing points into a pre-constructed physical sensing coordinate system using a data processing unit to obtain a plurality of physical coordinates, wherein the plurality of capacitive sensing points are composed of (M×N) intersections formed by (M+N) capacitive touch sensors, and the capacitive sensing points correspond to the physical coordinates one by one;

[0009] Acquiring a screen resolution based on a screen display unit, calculating a resolution interpolation coefficient using the screen resolution and the plurality of capacitive sensing points, and generating a plurality of screen pixel coordinates using the resolution interpolation coefficient, the plurality of capacitive sensing points, and a pre-constructed initial screen coordinate system;

[0010] Acquire a sensing area of ​​the display in the screen display unit, and acquire multiple to-be-detected point sets according to the sensing area and a preset number of detections, wherein the number of the multiple to-be-detected point sets is equal to the number of detections, and each to-be-detected point set includes multiple to-be-detected points;

[0011] The following operations are performed on each of the multiple to-be-detected point sets:

[0012] Acquire an identification matrix based on the initial screen coordinate system and the set of points to be detected, and generate a pixel image in a display of a screen display unit based on a data processing unit and the identification matrix;

[0013] Receiving a plurality of pressure signals from a tester based on a pixel image, after confirming that the number of the plurality of pressure signals is consistent with the number of points to be detected in a set of points to be detected, obtaining a compression measurement matrix according to the plurality of pressure signals, and extracting a plurality of test point coordinates based on the compression measurement matrix, wherein the test point coordinates correspond to the pressure signals one by one;

[0014] A calibration equation is constructed according to the coordinates of multiple test points and multiple points to be tested, and multiple screen pixel coordinates in the initial screen coordinate system are corrected based on the calibration equation to obtain a corrected screen coordinate set, and pixel-linked capacitive touch screen edge error compensation is completed based on the corrected screen coordinate set.

[0015] Optionally, the generating a plurality of screen pixel coordinates by using the resolution interpolation coefficient, a plurality of capacitive sensing points and a pre-constructed initial screen coordinate system includes:

[0016] A first horizontal compensation coefficient, a first vertical compensation coefficient, a second horizontal compensation coefficient, and a second vertical compensation coefficient are obtained based on the initial screen coordinate system and the physical sensing coordinate system, and a plurality of screen pixel coordinates are calculated based on the resolution interpolation coefficient, a plurality of capacitive sensing points, a first horizontal compensation coefficient, a first vertical compensation coefficient, a second horizontal compensation coefficient, and a second vertical compensation coefficient, wherein the calculation formula of the screen pixel coordinates is as follows:

[0017]

[0018] Wherein, (x, y) represents the screen pixel coordinates, x represents the horizontal coordinate in the screen pixel coordinates, y represents the vertical coordinate in the screen pixel coordinates, J represents the resolution interpolation coefficient, (G-1) represents the maximum horizontal coordinate value of the screen pixel coordinates in the initial screen coordinate system, (H-1) represents the maximum vertical coordinate value of the screen pixel coordinates in the initial screen coordinate system, M represents that there are M rows of capacitance sensing points in the multiple capacitance sensing points, N represents that there are N columns of capacitance sensing points in the multiple capacitance sensing points, a represents the first horizontal compensation coefficient between the origin in the physical coordinates and the origin in the initial screen coordinate system in the horizontal axis direction, a represents the first vertical compensation coefficient between the origin in the physical coordinates and the origin in the initial screen coordinate system in the vertical axis direction, c represents the second horizontal compensation coefficient between the origin in the physical coordinates and the origin in the initial screen coordinate system in the horizontal axis direction, d represents the second vertical compensation coefficient between the origin in the physical coordinates and the origin in the initial screen coordinate system in the vertical axis direction, p represents the horizontal coordinate of the touch point sensed by the multiple capacitance sensing points, and q represents the vertical coordinate of the touch point sensed by the multiple capacitance sensing points.

[0019] Optionally, the acquiring a first horizontal compensation coefficient, a first vertical compensation coefficient, a second horizontal compensation coefficient, and a second vertical compensation coefficient based on the initial screen coordinate system and the physical sensing coordinate system includes:

[0020] The first horizontal compensation coefficient, the first vertical compensation coefficient, the second horizontal compensation coefficient and the second vertical compensation coefficient are calculated using the initial screen coordinate system and the physical sensing coordinate system. The calculation formula is as follows:

[0021]

[0022]

[0023] Where A represents the first edge distance between the origin in the physical coordinate system and the origin in the initial screen coordinate system in the horizontal direction, and D PX Indicates the distance between two adjacent horizontal coordinates in the physical coordinate system. B indicates the first edge distance between the origin in the physical coordinate system and the origin in the initial screen coordinate system in the vertical direction. D PY Represents the distance between two adjacent vertical coordinates in the physical coordinates, C represents the second edge distance between the origin in the physical coordinates and the origin in the initial screen coordinate system in the horizontal direction, and D represents the second edge distance between the origin in the physical coordinates and the origin in the initial screen coordinate system in the vertical direction.

[0024] Optionally, the acquiring of multiple sets of points to be detected according to the sensing area and a preset number of detection times includes:

[0025] Connecting two diagonal lines of the sensing area, obtaining four side lines of the sensing area based on the sensing area, taking the four side lines of the sensing area as sketch entities, making equidistant entities at a preset distance inside the sensing area, and dividing the sensing area according to the equidistant entities, the four side lines of the sensing area and the two diagonal lines to obtain a plurality of unit sensing areas, wherein the plurality of unit sensing areas include four unit sensing areas;

[0026] Acquire four vertices of the sensing area to obtain a vertex detection set, and copy the vertex detection set to obtain multiple vertex detection sets, wherein the number of vertex detection sets in the multiple vertex detection sets is equal to the number of detection times;

[0027] The following operations are performed on the vertex detection sets in the multiple vertex detection sets:

[0028] Extracting unit sensing areas from the plurality of unit sensing areas in sequence, and randomly extracting a plurality of unit area detection points from the extracted unit sensing areas, and summarizing the extracted unit area detection points to obtain a unit detection point set. Summarizing the vertex detection set and the unit detection point set to obtain a point set to be detected;

[0029] The point sets to be detected are summarized to obtain multiple point sets to be detected corresponding to the number of detection times.

[0030] Optionally, acquiring an identification matrix based on the initial screen coordinate system and the set of points to be detected includes:

[0031] Construct a zero matrix according to the initial screen coordinates, where the zero matrix is ​​a zero matrix with G rows and H columns;

[0032] Extract the points to be detected from the set of points to be detected in sequence, and perform the following operations on the extracted points to be detected:

[0033] Acquire the coordinates of the extracted points to be detected based on the initial screen coordinate system, map the coordinates of the points to be detected to the zero matrix, obtain the initial matrix element positions, and assign the elements corresponding to the initial matrix element positions to 1;

[0034] After confirming that all the points to be detected in the set of points to be detected have been extracted, an identification matrix is ​​obtained.

[0035] Optionally, generating a pixel image in a display of a screen display unit based on the data processing unit and the identification matrix includes:

[0036] Extracting elements in the identification matrix in sequence using a data processing unit, and determining the extracted elements;

[0037] If the extracted element is 0, assign the extracted element a value of 255;

[0038] If the extracted element is 1, assign the extracted element to 0;

[0039] After confirming that all elements in the identification matrix are assigned values, the assigned identification matrix is ​​imported into a pre-constructed image coordinate system, and based on the imported assigned image coordinate system, a pixel image is generated in the display of the screen display unit of the identification matrix.

[0040] Optionally, the receiving a plurality of pressure signals from the tester based on the pixel image, after confirming that the number of the plurality of pressure signals is consistent with the number of points to be detected in the set of points to be detected, comprises:

[0041] Acquire a timer based on the pixel image, wherein the timer is preset with a judgment frequency;

[0042] Initializing the touch interrupt pin and the initial number of pressure signals of the display screen, wherein the initial touch interrupt pin is at a high level and the initial number of pressure signals is 0;

[0043] After the preset detection time has passed based on the timer confirmation;

[0044] If the touch interrupt pin is at a low level, the pressure signal from the tester is obtained based on the pre-built analog-to-digital conversion unit, and the second detection time is obtained according to the pressure signal. After the second detection time is confirmed according to the timer, it is determined whether the touch interrupt pin is at a high level. If the touch interrupt pin is at a high level, it is confirmed that the extraction of the current pressure signal is ended, and an incremental operation is performed on the initial pressure signal number to obtain the incremental signal number. Otherwise, an abnormality is prompted on the display screen;

[0045] If the touch interrupt pin is at a low level, an abnormality will be prompted on the display screen;

[0046] Compare the number of incremental signals with the number of points to be detected in the set of points to be detected;

[0047] If the number of incremental signals is equal to the number of points to be detected in the set of points to be detected, confirming that the number of the plurality of pressure signals is consistent with the number of points to be detected in the set of points to be detected;

[0048] Otherwise, an abnormality is prompted on the display screen, the received pressure signal set is obtained, and the abnormal detection point set is obtained based on the received pressure signal set and multiple points to be detected, an abnormal identification matrix is ​​generated using the abnormal detection point set, an abnormal pixel image is generated based on the abnormal representation matrix, and the abnormal pixel image is used as the pixel image, and the step of obtaining a timer based on the pixel image is returned until it is confirmed that the number of the multiple pressure signals is consistent with the number of points to be detected in the point set to be detected.

[0049] Optionally, constructing a calibration equation according to the coordinates of multiple test points and multiple points to be detected includes:

[0050] Get the maximum horizontal coordinate value and the maximum vertical coordinate value in the screen pixel coordinate system to obtain the maximum screen horizontal value and the maximum screen vertical value;

[0051] Constructing a horizontal value interval according to the maximum screen horizontal value, dividing the horizontal value interval by a preset equidistant division method to obtain a unit horizontal value interval sequence, and obtaining a unit vertical value interval sequence according to the maximum screen vertical value, wherein the unit horizontal value interval sequence includes a plurality of unit horizontal value intervals, and the plurality of unit horizontal value intervals are sorted in ascending order of numerical values;

[0052] Acquire a median horizontal coordinate sequence according to the coordinates of the multiple test points, extract the median horizontal coordinates from the median horizontal coordinate sequence in sequence, and map the extracted median horizontal coordinates to the unit horizontal value interval to which the extracted median horizontal coordinates belong, thereby obtaining a fuzzy horizontal coordinate interval;

[0053] Summarizing the fuzzy horizontal coordinate intervals to obtain a fuzzy horizontal coordinate interval set, wherein the fuzzy horizontal coordinate interval set includes one or more different fuzzy horizontal coordinate intervals, and using the fuzzy horizontal coordinate interval set to update the unit horizontal value interval sequence to obtain an updated horizontal value interval sequence;

[0054] Determine the optimized horizontal coordinate set based on the updated horizontal value interval sequence;

[0055] Determine the number of median horizontal coordinates included in the optimized horizontal coordinate set, and if the number of median horizontal coordinates is less than 3, it is prompted that the point set to be detected is abnormal;

[0056] Otherwise, the optimized ordinate set is obtained based on the unit ordinate value interval sequence;

[0057] An available calibration coordinate set is output based on the optimized abscissa set and the optimized ordinate set, and a calibration equation is constructed based on the calibration equation.

[0058] Optionally, acquiring a median horizontal coordinate sequence according to the coordinates of the multiple test points includes:

[0059] Acquire a horizontal coordinate sequence according to the coordinates of the multiple test points, extract horizontal coordinate sequences from the horizontal coordinate sequence in sequence, and perform the following operations on the extracted first horizontal coordinates:

[0060] Acquire the next first horizontal coordinate adjacent to the extracted first horizontal coordinate in the horizontal coordinate sequence to obtain the second horizontal coordinate, and calculate the median horizontal coordinate based on the first horizontal coordinate and the second horizontal coordinate;

[0061] Sum up the median abscissas to get the median abscissa sequence.

[0062] Optionally, the step of determining an optimized horizontal coordinate set based on the updated horizontal value interval sequence includes:

[0063] Extracting update cross-value intervals from the update cross-value interval sequence in sequence, and finding the median horizontal coordinate from the extracted update cross-value intervals;

[0064] If there is zero median horizontal coordinate in the extracted update horizontal value interval, the extracted update horizontal value interval is skipped;

[0065] If there is a median abscissa in the extracted updated abscissa interval, then the first abscissa corresponding to the existing median abscissa is output as the optimized abscissa;

[0066] If there are multiple median horizontal coordinates in the extracted update horizontal value interval, the first horizontal coordinate corresponding to the median horizontal coordinate with the smallest value among the multiple median horizontal coordinates is selected and output as the optimized horizontal coordinate;

[0067] Summarize the optimized horizontal coordinates to obtain the optimized horizontal coordinate set.

[0068] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0069] at least one processor; and,

[0070] a memory communicatively connected to the at least one processor; wherein,

[0071] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to implement the above-mentioned pixel-linked capacitive touch screen edge error compensation method.

[0072] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned pixel-linked capacitive touch screen edge error compensation method.

[0073] Compared with the problems described in the background technology, the present invention receives a touch edge calibration instruction, starts the touch screen according to the touch edge calibration instruction, obtains multiple capacitive sensing points based on the capacitive sensing unit, uses the data processing unit to import the multiple capacitive sensing points into a pre-constructed physical sensing coordinate system to obtain multiple physical coordinates, obtains the screen resolution based on the screen display unit, calculates the resolution interpolation coefficient using the screen resolution and the multiple capacitive sensing points, generates multiple screen pixel coordinates using the resolution interpolation coefficient, multiple capacitive sensing points and the pre-constructed initial screen coordinate system, and constructs the screen pixel coordinates through the resolution interpolation coefficient. Therefore, using the same set of physical sensing coordinate systems and the same set of multiple capacitive sensing points, different resolution interpolation coefficients can be set to be applicable to different screen resolutions. The present invention obtains the sensing area of ​​the display in the screen display unit, obtains multiple sets of points to be detected according to the sensing area and the preset number of detection times, and performs the following operations on the sets of points to be detected in the multiple sets of points to be detected: obtains an identification matrix based on the initial screen coordinate system and the set of points to be detected, generates a pixel image in the display of the screen display unit based on the data processing unit and the identification matrix, and the present invention prompts the tester to the point to be detected that needs to be touched through the pixel image. The present invention receives multiple pressure signals from the tester based on the pixel image, and after confirming that the number of the multiple pressure signals is consistent with the number of points to be detected in the set of points to be detected, the present invention removes the jitter in the pressure signal through a timer, briefly reduces the noise in the pressure signal, and also determines the number of pressure signals, optimizes the misjudgment in the process of extracting the pressure signal of the tester using the timer and the touch interrupt pin, and further improves the accuracy of obtaining the pressure signal. The present invention obtains a compression measurement matrix based on the multiple pressure signals, extracts multiple test point coordinates based on the compression measurement matrix, constructs a calibration equation based on the multiple test point coordinates and the multiple points to be detected, corrects the multiple screen pixel coordinates in the initial screen coordinate system based on the calibration equation, obtains a corrected screen coordinate set, and completes the capacitive touch screen edge error compensation based on pixel linkage based on the corrected screen coordinate set. The present invention extracts multiple test point coordinates with reasonable intervals from the multiple test point coordinates to calculate the calibration equation, reduces the amount of calculation, and makes the calibration equation more representative. Therefore, the pixel-linked capacitive touch screen edge error compensation method, device, electronic device and computer-readable storage medium proposed by the present invention mainly aim to simplify the steps of calibrating the edge error of the capacitive touch screen using an image. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1 A schematic diagram of a flow chart of a pixel-linked capacitive touch screen edge error compensation method provided by an embodiment of the present invention;

[0075] Figure 2A schematic structural diagram of an electronic device for implementing the pixel-linked capacitive touch screen edge error compensation method provided by an embodiment of the present invention.

[0076] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION

[0077] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0078] The embodiment of the present application provides a pixel-linked capacitive touch screen edge error compensation method. The execution subject of the pixel-linked capacitive touch screen edge error compensation method includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the pixel-linked capacitive touch screen edge error compensation method can be executed by software or hardware installed in a terminal device or a server device. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.

[0079] Embodiment 1:

[0080] Reference Figure 1 FIG. 1 is a flow chart of a method for compensating edge errors of a capacitive touch screen with pixel linkage provided by an embodiment of the present invention. In this embodiment, the method for compensating edge errors of a capacitive touch screen with pixel linkage includes:

[0081] S1. Receive a touch edge calibration instruction, and start the touch screen according to the touch edge calibration instruction.

[0082] Furthermore, the touch screen includes: a capacitive sensing unit, a data processing unit and a screen display unit.

[0083] It should be noted that the touch edge calibration instruction is an instruction issued by the tester to correct the relationship between the display and touch in the capacitive touch screen. In the embodiment of the present invention, the touch screen is a capacitive touch screen, the capacitive sensing unit is a unit in which a capacitor is installed in the capacitive touch screen and can sense the position of the touch of the tester on the display according to the capacitance, the data processing unit is a unit for processing data, and the screen display unit is a unit including a display for displaying computer content.

[0084] S2. Acquire a plurality of capacitive sensing points based on the capacitive sensing unit, and use a data processing unit to import the plurality of capacitive sensing points into a pre-constructed physical sensing coordinate system to obtain a plurality of physical coordinates.

[0085] Furthermore, the plurality of capacitive sensing points are formed by (M×N) intersections formed by (M+N) capacitive touch sensors, and the capacitive sensing points correspond to the physical coordinates one by one.

[0086] It should be noted that the physical sensing coordinates are the coordinates of multiple capacitive sensing points in the touch screen, and the physical coordinates are the coordinates of the capacitive sensing points in the physical sensing coordinates. For ease of understanding, taking a matrix as an example, the first row and first column of the matrix are the first row and first column of the capacitive sensing points in the physical coordinates in the physical sensing coordinates, and so on. Therefore, the origin, horizontal axis and vertical axis of the physical sensing coordinate system are consistent with the origin, horizontal axis and vertical axis when the image coordinate system is constructed. The construction of the image coordinate system is a prior art and will not be repeated here.

[0087] S3. Acquire a screen resolution based on a screen display unit, calculate a resolution interpolation coefficient using the screen resolution and the plurality of capacitive sensing points, and generate a plurality of screen pixel coordinates using the resolution interpolation coefficient, the plurality of capacitive sensing points, and a pre-constructed initial screen coordinate system.

[0088] It can be understood that the resolution interpolation coefficient is a coefficient used to increase the physical resolution corresponding to multiple capacitive sensing points. For example, if the physical resolution formed by (M×N) capacitive sensing points is M×N, then the screen resolution of the touch screen can be increased to M×N×K according to the resolution interpolation coefficient using the interpolation algorithm. 2 , where K represents the resolution interpolation coefficient. The screen pixel coordinates are the pixel coordinates displayed on the touch screen.

[0089] It should be noted that the construction of the initial screen coordinate system is the same as the construction of the image coordinate system, which will not be repeated here.

[0090] Furthermore, the generating a plurality of screen pixel coordinates by using the resolution interpolation coefficient, a plurality of capacitive sensing points and a pre-constructed initial screen coordinate system includes:

[0091] A first horizontal compensation coefficient, a first vertical compensation coefficient, a second horizontal compensation coefficient, and a second vertical compensation coefficient are obtained based on the initial screen coordinate system and the physical sensing coordinate system, and a plurality of screen pixel coordinates are calculated based on the resolution interpolation coefficient, a plurality of capacitive sensing points, a first horizontal compensation coefficient, a first vertical compensation coefficient, a second horizontal compensation coefficient, and a second vertical compensation coefficient, wherein the calculation formula of the screen pixel coordinates is as follows:

[0092]

[0093] Wherein, (x, y) represents the screen pixel coordinates, x represents the horizontal coordinate in the screen pixel coordinates, y represents the vertical coordinate in the screen pixel coordinates, J represents the resolution interpolation coefficient, (G-1) represents the maximum horizontal coordinate value of the screen pixel coordinates in the initial screen coordinate system, (H-1) represents the maximum vertical coordinate value of the screen pixel coordinates in the initial screen coordinate system, M represents that there are M rows of capacitance sensing points in the multiple capacitance sensing points, N represents that there are N columns of capacitance sensing points in the multiple capacitance sensing points, a represents the first horizontal compensation coefficient between the origin in the physical coordinates and the origin in the initial screen coordinate system in the horizontal axis direction, a represents the first vertical compensation coefficient between the origin in the physical coordinates and the origin in the initial screen coordinate system in the vertical axis direction, c represents the second horizontal compensation coefficient between the origin in the physical coordinates and the origin in the initial screen coordinate system in the horizontal axis direction, d represents the second vertical compensation coefficient between the origin in the physical coordinates and the origin in the initial screen coordinate system in the vertical axis direction, p represents the horizontal coordinate of the touch point sensed by the multiple capacitance sensing points, and q represents the vertical coordinate of the touch point sensed by the multiple capacitance sensing points.

[0094] Furthermore, the obtaining of the first horizontal compensation coefficient, the first vertical compensation coefficient, the second horizontal compensation coefficient and the second vertical compensation coefficient based on the initial screen coordinate system and the physical sensing coordinate system includes:

[0095] The first horizontal compensation coefficient, the first vertical compensation coefficient, the second horizontal compensation coefficient and the second vertical compensation coefficient are calculated using the initial screen coordinate system and the physical sensing coordinate system. The calculation formula is as follows:

[0096]

[0097]

[0098] Where A represents the first edge distance between the origin in the physical coordinate system and the origin in the initial screen coordinate system in the horizontal direction, and D PX Indicates the distance between two adjacent horizontal coordinates in the physical coordinate system. B indicates the first edge distance between the origin in the physical coordinate system and the origin in the initial screen coordinate system in the vertical direction. D PY Represents the distance between two adjacent vertical coordinates in the physical coordinates, C represents the second edge distance between the origin in the physical coordinates and the origin in the initial screen coordinate system in the horizontal direction, and D represents the second edge distance between the origin in the physical coordinates and the origin in the initial screen coordinate system in the vertical direction.

[0099] It should be noted that the first edge distance between the origin in the physical coordinates and the origin in the initial screen coordinate system in the horizontal axis direction is the distance between the two origins in the horizontal axis. The touch point is the point where the inspector touches the touch screen.

[0100] For ease of explanation, taking the plane rectangular coordinate system as an example, assuming that the origin in the physical coordinates is (0,0) and the origin in the initial screen coordinate system is (0.1,0.2), then the distance between the two origins on the horizontal axis is: 0.1-0=0.1. At this time, the first edge distance between the origin in the physical coordinates and the origin in the initial screen coordinate system in the horizontal direction is equal to 0.1. Similarly, the first edge distance between the origin in the physical coordinates and the origin in the initial screen coordinate system in the vertical direction is 0.2. Assuming that the distance between two adjacent vertical coordinates in the physical coordinates is 1, then in the physical sensing coordinate system, other physical coordinates distributed around the origin (0,0) include: (0,1), (1,0) and (1,1). When the origin in the initial screen coordinate system is (0.1,0.2), the second edge distance between the origin in the physical coordinates and the origin in the initial screen coordinate system in the horizontal direction is 1-0.1=0.9, and the second edge distance between the origin in the physical coordinates and the origin in the initial screen coordinate system in the vertical direction is 1-0.2=0.8.

[0101] S4. Obtain a sensing area of ​​the display in the screen display unit, and obtain multiple point sets to be detected according to the sensing area and a preset number of detections, wherein the number of the multiple point sets to be detected is equal to the number of detections, and each point set to be detected includes multiple points to be detected.

[0102] It should be noted that the sensing area is the largest rectangular area that can be effectively sensed by multiple capacitive sensing points in the display, and the number of detections is the number of times the inspector detects the capacitive touch screen. The set of points to be detected is the set of points to be detected in a capacitive touch screen. For example, in one detection, the inspector needs to touch 10 different points on the display to complete the detection, so these different points are the set of points to be detected. During the entire capacitive touch screen touch edge calibration instruction process, the inspector needs to complete the number of detections corresponding to the number of detections.

[0103] Furthermore, the step of obtaining a plurality of to-be-detected point sets according to the sensing area and the preset number of detections includes:

[0104] Connecting two diagonal lines of the sensing area, obtaining four side lines of the sensing area based on the sensing area, taking the four side lines of the sensing area as sketch entities, making equidistant entities at a preset distance inside the sensing area, and dividing the sensing area according to the equidistant entities, the four side lines of the sensing area and the two diagonal lines to obtain a plurality of unit sensing areas, wherein the plurality of unit sensing areas include four unit sensing areas;

[0105] Acquire four vertices of the sensing area to obtain a vertex detection set, and copy the vertex detection set to obtain multiple vertex detection sets, wherein the number of vertex detection sets in the multiple vertex detection sets is equal to the number of detection times;

[0106] The following operations are performed on the vertex detection sets in the multiple vertex detection sets:

[0107] Extracting unit sensing areas from the plurality of unit sensing areas in sequence, and randomly extracting a plurality of unit area detection points from the extracted unit sensing areas, and summarizing the extracted unit area detection points to obtain a unit detection point set. Summarizing the vertex detection set and the unit detection point set to obtain a point set to be detected;

[0108] The point sets to be detected are summarized to obtain multiple point sets to be detected corresponding to the number of detection times.

[0109] It can be understood that, for ease of understanding, a 4×4 matrix is ​​taken as an example, and the 4×4 matrix is ​​as follows:

[0110]

[0111] Suppose that we connect a 11 、a 14 、a 41 and a 44 The enclosed area formed is the sensing area, and the two diagonal lines connecting the sensing area are the connecting lines a 11 and a 44 Then connect a 14 and a 41 , the four edges of the sensing area are: a 11 to a 14 is the first edge, a 14 to a 44 is the second edge, a 44 to a 41 is the third sideline, a 41 to a 11 is the fourth side line, the sketch entity is the closed rectangle formed by the four sides of the sensing area, the equidistant entity is a rectangle similar to the closed rectangle formed by the four sides of the sensing area made according to the sketch entity, and if the length multiplied by the width of the closed rectangle formed by the four sides of the sensing area is: (a×b), and the preset distance is c, then the length multiplied by the width of the rectangle corresponding to the equidistant entity is: ((ac)×(bc)). The unit sensing area is the area outside the closed area formed by the equidistant entity and within the closed area formed by the sensing area. According to the above division, in the 4×4 matrix, a 11 、a 12 、a 13 、a 14 、a 23 、a 22 The closed area formed by sequential connection is a unit sensing area, and so on. The four vertices are the four vertices in the sensing area, and the method of selecting the four vertices is the same as the method of selecting the four vertices of a rectangle, which will not be repeated here.

[0112] It should be noted that the unit area detection point is a detection point randomly extracted from the unit sensing area.

[0113] It is understandable that in the present invention, in each process of extracting the set of points to be detected, the four vertices of the sensing area are extracted. This is because the four vertices of the sensing area are where edge errors and sensing failures are most likely to occur. Therefore, an additional vertex detection set is added in each detection, which is beneficial to calibrate the edge errors of the four vertices of the sensing area.

[0114] S5. Perform the following operations on each of the plurality of point sets to be detected: obtain an identification matrix based on the initial screen coordinate system and the point set to be detected, and generate a pixel image in a display of a screen display unit based on the data processing unit and the identification matrix.

[0115] Furthermore, the acquiring of the identification matrix based on the initial screen coordinate system and the set of points to be detected includes:

[0116] Construct a zero matrix according to the initial screen coordinates, where the zero matrix is ​​a zero matrix with G rows and H columns;

[0117] Extract the points to be detected from the set of points to be detected in sequence, and perform the following operations on the extracted points to be detected:

[0118] Acquire the coordinates of the extracted points to be detected based on the initial screen coordinate system, map the coordinates of the points to be detected to the zero matrix, obtain the initial matrix element positions, and assign the elements corresponding to the initial matrix element positions to 1;

[0119] After confirming that all the points to be detected in the set of points to be detected have been extracted, an identification matrix is ​​obtained.

[0120] Furthermore, the generating of a pixel image in a display of a screen display unit based on the data processing unit and the identification matrix includes:

[0121] Extracting elements in the identification matrix in sequence using a data processing unit, and determining the extracted elements;

[0122] If the extracted element is 0, assign the extracted element a value of 255;

[0123] If the extracted element is 1, assign the extracted element to 0;

[0124] After confirming that all elements in the identification matrix are assigned values, the assigned identification matrix is ​​imported into a pre-constructed image coordinate system, and based on the imported assigned image coordinate system, a pixel image is generated in the display of the screen display unit of the identification matrix.

[0125] It can be understood that, according to the above content, the screen resolution in the embodiment of the present invention is: G×H. The coordinates of the points to be detected are the coordinates of the points to be detected in the initial screen coordinate system, the initial matrix element positions are the positions of the coordinates of the points to be detected in the identification matrix, and the identification matrix is ​​a matrix obtained by mapping all the coordinates of the points to be detected to the zero matrix and assigning all the elements corresponding to the coordinates of the points to be detected to 1. The pixel image is an image obtained according to the identification matrix.

[0126] For example, let the coordinates of the point to be detected in the initial screen coordinate system be (1,1) and the zero matrix be (b pq ) M×N Then the initial matrix element position is b 11 , and represents b in the matrix 11 The corresponding element is 1, and in the pixel image, the pixel with pixel coordinates (1,1) has a grayscale value of 255, and so on, which will not be repeated here.

[0127] S6. Receive multiple pressure signals from the tester based on the pixel image, confirm that the number of the multiple pressure signals is consistent with the number of points to be detected in the set of points to be detected, obtain a compression measurement matrix according to the multiple pressure signals, and extract multiple test point coordinates based on the compression measurement matrix, wherein the test point coordinates correspond one-to-one to the pressure signals.

[0128] It should be noted that the pressure signal is the signal obtained by the data processing unit after the tester presses the touch screen. The compression measurement matrix is ​​a matrix obtained based on the compressed sensing theory and multiple pressure signals to obtain the position where the tester presses the touch screen. The test point coordinates are the coordinates obtained based on the position where the tester presses the touch screen after the tester presses the touch screen, and the coordinate system of the test point coordinates is consistent with the screen pixel coordinate system. And the test point coordinates are obtained by analyzing the pressure signal.

[0129] Further, the receiving of a plurality of pressure signals from the tester based on the pixel image, after confirming that the number of the plurality of pressure signals is consistent with the number of the points to be detected in the set of points to be detected, comprises:

[0130] Acquire a timer based on the pixel image, wherein the timer is preset with a judgment frequency;

[0131] Initializing the touch interrupt pin and the initial number of pressure signals of the display screen, wherein the initial touch interrupt pin is at a high level and the initial number of pressure signals is 0;

[0132] After the preset detection time has passed based on the timer confirmation;

[0133] If the touch interrupt pin is at a low level, the pressure signal from the tester is obtained based on the pre-built analog-to-digital conversion unit, and the second detection time is obtained according to the pressure signal. After the second detection time is confirmed according to the timer, it is determined whether the touch interrupt pin is at a high level. If the touch interrupt pin is at a high level, it is confirmed that the extraction of the current pressure signal is ended, and an incremental operation is performed on the initial pressure signal number to obtain the incremental signal number. Otherwise, an abnormality is prompted on the display screen;

[0134] If the touch interrupt pin is at a low level, an abnormality will be prompted on the display screen;

[0135] Compare the number of incremental signals with the number of points to be detected in the set of points to be detected;

[0136] If the number of incremental signals is equal to the number of points to be detected in the set of points to be detected, confirming that the number of the plurality of pressure signals is consistent with the number of points to be detected in the set of points to be detected;

[0137] Otherwise, an abnormality is prompted on the display screen, the received pressure signal set is obtained, and the abnormal detection point set is obtained based on the received pressure signal set and multiple points to be detected, an abnormal identification matrix is ​​generated using the abnormal detection point set, an abnormal pixel image is generated based on the abnormal representation matrix, and the abnormal pixel image is used as the pixel image, and the step of obtaining a timer based on the pixel image is returned until it is confirmed that the number of the multiple pressure signals is consistent with the number of points to be detected in the point set to be detected.

[0138] It can be understood that the judgment frequency is the frequency of the timer judging the touch interrupt pin, the initial number of pressure signals is the number of pressure signals for effective reception, the preset detection time is 10ms, the analog-to-digital conversion unit is a unit for realizing the AD conversion function, the second detection time is 10ms, and the incremental operation is an operation of adding one to the initial number of pressure signals. For example, if the initial number of pressure signals is 0, then after performing an incremental operation on the initial number of pressure signals, the initial number of pressure signals is 1, and at this time 1 is the incremental number of signals.

[0139] Furthermore, the received pressure signal set is a set of pressure signals that can be effectively detected by the touch screen. For example, the tester presses (1,1) in the screen pixel coordinate system, and through the above judgment, it is found that (1,1) is not included in the received pressure signal set. In this case, (1,1) is the abnormal detection point in the abnormal detection point set.

[0140] It should be noted that the purpose of setting the abnormal detection point is to optimize the misjudgment in the process of extracting the pressure signal of the detector using the timer and the touch interrupt pin, and further improve the accuracy of obtaining the pressure signal. The abnormal identification matrix is ​​similar to the identification matrix and is generated by the abnormal detection point set. The abnormal pixel image is similar to the pixel image and is generated by the abnormal identification matrix.

[0141] S7. Construct a calibration equation according to the coordinates of multiple test points and multiple points to be detected, correct the multiple screen pixel coordinates in the initial screen coordinate system based on the calibration equation to obtain a corrected screen coordinate set, and complete the capacitive touch screen edge error compensation based on pixel linkage based on the corrected screen coordinate set.

[0142] Furthermore, the calibration equation is constructed according to the coordinates of multiple test points and multiple points to be detected, including:

[0143] Get the maximum horizontal coordinate value and the maximum vertical coordinate value in the screen pixel coordinate system to obtain the maximum screen horizontal value and the maximum screen vertical value;

[0144] Constructing a horizontal value interval according to the maximum screen horizontal value, dividing the horizontal value interval by a preset equidistant division method to obtain a unit horizontal value interval sequence, and obtaining a unit vertical value interval sequence according to the maximum screen vertical value, wherein the unit horizontal value interval sequence includes a plurality of unit horizontal value intervals, and the plurality of unit horizontal value intervals are sorted in ascending order of numerical values;

[0145] Acquire a median horizontal coordinate sequence according to the coordinates of the multiple test points, extract the median horizontal coordinates from the median horizontal coordinate sequence in sequence, and map the extracted median horizontal coordinates to the unit horizontal value interval to which the extracted median horizontal coordinates belong, thereby obtaining a fuzzy horizontal coordinate interval;

[0146] Summarizing the fuzzy horizontal coordinate intervals to obtain a fuzzy horizontal coordinate interval set, wherein the fuzzy horizontal coordinate interval set includes one or more different fuzzy horizontal coordinate intervals, and using the fuzzy horizontal coordinate interval set to update the unit horizontal value interval sequence to obtain an updated horizontal value interval sequence;

[0147] Determine the optimized horizontal coordinate set based on the updated horizontal value interval sequence;

[0148] Determine the number of median horizontal coordinates included in the optimized horizontal coordinate set, and if the number of median horizontal coordinates is less than 3, it is prompted that the point set to be detected is abnormal;

[0149] Otherwise, the optimized ordinate set is obtained based on the unit ordinate value interval sequence;

[0150] An available calibration coordinate set is output based on the optimized abscissa set and the optimized ordinate set, and a calibration equation is constructed based on the calibration equation.

[0151] It can be understood that the calibration equation is an equation for calibrating both the horizontal coordinates and the vertical coordinates of all coordinates in the screen pixel coordinate system. Therefore, the calibration equation includes the horizontal coordinate equation and the vertical coordinate equation, and the correction equation is as follows:

[0152]

[0153] Among them, X t Indicates the horizontal coordinate of the corrected screen coordinate set, Y t Indicates the ordinate of the corrected screen coordinate in the corrected screen coordinate set. θ, μ, ρ, τ and ω are correction coefficients. L Indicates the horizontal coordinate of the available calibration coordinate set, Y L Represents the ordinate of an available calibration coordinate in the set of available calibration coordinates.

[0154] It should be noted that the correction coefficient is obtained based on the available calibration coordinate set. The horizontal value interval is the interval from zero to the maximum screen horizontal value. For example, if the maximum screen horizontal value is 2000, the horizontal value interval is [0, 2000]. With 1000 as the equally spaced dividing point, the unit horizontal value interval is divided into [0, 1000) and [1000, 2000], and the unit horizontal value interval sequence is: [0, 1000), [1000, 2000].

[0155] For example, if the median horizontal coordinate sequence is: 2, 4, 100, 300, 700, and the unit horizontal value interval sequence is: [0, 100), [100, 200), [200, 300), [300, 400), [400, 500), [500, 600), [600, 700], the median horizontal coordinate is extracted as 2, and the median horizontal coordinate 2 is mapped to the unit horizontal value interval to which the median horizontal coordinate belongs, then the corresponding unit horizontal value interval is [0, 100), and the fuzzy horizontal coordinate interval is [ 0,100), and the fuzzy horizontal coordinate interval includes the information that the extracted median horizontal coordinate is 0, and so on, a fuzzy horizontal coordinate interval set is obtained. At this time, the fuzzy horizontal coordinate interval set is: [0,100), [100,200), [100,200), [300,400), [600,700], and each fuzzy horizontal coordinate interval in the fuzzy horizontal coordinate interval set includes the median horizontal coordinate contained therein. For example, the fuzzy horizontal coordinate interval [0,100) includes the median horizontal coordinates: 2,4.

[0156] It is understandable that the optimized horizontal coordinate set is a plurality of test point coordinates randomly selected from the updated horizontal value interval sequence with reasonable intervals. However, when there are too few test point coordinates with reasonable intervals, the calibration equation cannot be solved, so it is necessary to judge the coordinates of the plurality of test points with reasonable intervals.

[0157] It should be noted that this step extracts multiple test point coordinates with reasonable intervals from multiple test point coordinates to calculate the calibration equation, which reduces the amount of calculation and makes the calibration equation more representative.

[0158] Furthermore, the acquiring of a median horizontal coordinate sequence according to the coordinates of the plurality of test points includes:

[0159] Acquire a horizontal coordinate sequence according to the coordinates of the multiple test points, extract horizontal coordinate sequences from the horizontal coordinate sequence in sequence, and perform the following operations on the extracted first horizontal coordinates:

[0160] Acquire the next first horizontal coordinate adjacent to the extracted first horizontal coordinate in the horizontal coordinate sequence to obtain the second horizontal coordinate, and calculate the median horizontal coordinate based on the first horizontal coordinate and the second horizontal coordinate;

[0161] Sum up the median abscissas to get the median abscissa sequence.

[0162] It should be noted that the abscissa sequence is a sequence of abscissas of multiple test point coordinates in ascending order. The first abscissa is the abscissa extracted from the abscissa sequence, the second abscissa is the next first abscissa adjacent to the extracted first abscissa in the abscissa sequence, and the median abscissa is the coordinate formed by the mean of the first abscissa and the second abscissa. For example, if the first abscissa is 0 and the second abscissa is 100, the median abscissa is 50.

[0163] Further, the step of determining the optimized horizontal coordinate set based on the updated horizontal value interval sequence includes:

[0164] Extracting update cross-value intervals from the update cross-value interval sequence in sequence, and finding the median horizontal coordinate from the extracted update cross-value intervals;

[0165] If there is zero median horizontal coordinate in the extracted update horizontal value interval, the extracted update horizontal value interval is skipped;

[0166] If there is a median abscissa in the extracted updated abscissa interval, then the first abscissa corresponding to the existing median abscissa is output as the optimized abscissa;

[0167] If there are multiple median horizontal coordinates in the extracted update horizontal value interval, the first horizontal coordinate corresponding to the median horizontal coordinate with the smallest value among the multiple median horizontal coordinates is selected and output as the optimized horizontal coordinate;

[0168] Summarize the optimized horizontal coordinates to obtain the optimized horizontal coordinate set.

[0169] It should be noted that, for example, if the first horizontal coordinate is 0 and the second horizontal coordinate is 2, the median horizontal coordinate is 1. Furthermore, when outputting the optimized horizontal coordinate, the first horizontal coordinate is output as 0.

[0170] Further, after confirming that the number of median horizontal coordinates is greater than or equal to 3, the optimized horizontal coordinates are extracted from the optimized horizontal coordinate set in sequence, and based on the extracted optimized horizontal coordinates, all test point coordinates having the same horizontal coordinate as the extracted optimized horizontal coordinate are extracted from multiple test point coordinates to obtain a first available calibration coordinate set;

[0171] Obtaining a second available calibration sequence coordinate set using the unit longitudinal value interval;

[0172] The first available calibration coordinate set and the second available calibration coordinate set are aggregated to obtain an available calibration coordinate set.

[0173] It should be noted that the embodiment of the present invention first extracts the first available calibration coordinate set from the coordinates of multiple test points with the horizontal coordinate as the reference, and the intervals between the horizontal coordinates divide the horizontal axis as equally as possible. After retaining the first available calibration coordinate set, the second available calibration coordinate set is extracted from the coordinates of multiple test points with the intervals between the vertical coordinates as equally as possible. Therefore, when the multiple available calibration coordinates included in the available calibration coordinate set are viewed from the horizontal coordinate alone, each available calibration coordinate is as far as possible on the entire horizontal axis, and when viewed from the vertical coordinate alone, each available calibration coordinate is as far as possible on the entire vertical axis. The purpose is to make the multiple points to be detected as dispersed as possible, not just limited to a certain area.

[0174] Compared with the problems described in the background technology, the present invention receives a touch edge calibration instruction, starts the touch screen according to the touch edge calibration instruction, obtains multiple capacitive sensing points based on the capacitive sensing unit, uses the data processing unit to import the multiple capacitive sensing points into a pre-constructed physical sensing coordinate system to obtain multiple physical coordinates, obtains the screen resolution based on the screen display unit, calculates the resolution interpolation coefficient using the screen resolution and the multiple capacitive sensing points, generates multiple screen pixel coordinates using the resolution interpolation coefficient, multiple capacitive sensing points and the pre-constructed initial screen coordinate system, and constructs the screen pixel coordinates through the resolution interpolation coefficient. Therefore, using the same set of physical sensing coordinate systems and the same set of multiple capacitive sensing points, different resolution interpolation coefficients can be set to be applicable to different screen resolutions. The present invention obtains the sensing area of ​​the display in the screen display unit, obtains multiple sets of points to be detected according to the sensing area and the preset number of detection times, and performs the following operations on the sets of points to be detected in the multiple sets of points to be detected: obtains an identification matrix based on the initial screen coordinate system and the set of points to be detected, generates a pixel image in the display of the screen display unit based on the data processing unit and the identification matrix, and the present invention prompts the tester to the point to be detected that needs to be touched through the pixel image. The present invention receives multiple pressure signals from the tester based on the pixel image, and after confirming that the number of the multiple pressure signals is consistent with the number of points to be detected in the set of points to be detected, the present invention removes the jitter in the pressure signal through a timer, briefly reduces the noise in the pressure signal, and also determines the number of pressure signals, optimizes the misjudgment in the process of extracting the pressure signal of the tester using the timer and the touch interrupt pin, and further improves the accuracy of obtaining the pressure signal. The present invention obtains a compression measurement matrix based on the multiple pressure signals, extracts multiple test point coordinates based on the compression measurement matrix, constructs a calibration equation based on the multiple test point coordinates and the multiple points to be detected, corrects the multiple screen pixel coordinates in the initial screen coordinate system based on the calibration equation, obtains a corrected screen coordinate set, and completes the capacitive touch screen edge error compensation based on pixel linkage based on the corrected screen coordinate set. The present invention extracts multiple test point coordinates with reasonable intervals from the multiple test point coordinates to calculate the calibration equation, reduces the amount of calculation, and makes the calibration equation more representative. Therefore, the pixel-linked capacitive touch screen edge error compensation method, device, electronic device and computer-readable storage medium proposed by the present invention mainly aim to simplify the steps of calibrating the edge error of the capacitive touch screen using an image.

[0175] Embodiment 2:

[0176] like Figure 2 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing a method for compensating edge errors of a capacitive touch screen with pixel linkage provided by an embodiment of the present invention.

[0177] The electronic device 1 may include a processor 10, a memory 11, a bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a pixel-linked capacitive touch screen edge error compensation program.

[0178] Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. The memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a mobile hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the edge error compensation program of the pixel-linked capacitive touch screen, but also be used to temporarily store data that has been output or is to be output.

[0179] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (such as pixel-linked capacitive touch screen edge error compensation programs, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device 1 and process data.

[0180] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0181] Figure 2 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 2 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0182] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0183] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.

[0184] Optionally, the electronic device 1 may further include a user interface, which may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.

[0185] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0186] The pixel-linked capacitive touch screen edge error compensation program stored in the memory 11 in the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:

[0187] receiving a touch edge calibration instruction, and starting the touch screen according to the touch edge calibration instruction, wherein the touch screen comprises: a capacitive sensing unit, a data processing unit and a screen display unit;

[0188] Acquire a plurality of capacitive sensing points based on the capacitive sensing unit, and import the plurality of capacitive sensing points into a pre-constructed physical sensing coordinate system using a data processing unit to obtain a plurality of physical coordinates, wherein the plurality of capacitive sensing points are composed of (M×N) intersections formed by (M+N) capacitive touch sensors, and the capacitive sensing points correspond to the physical coordinates one by one;

[0189] Acquiring a screen resolution based on a screen display unit, calculating a resolution interpolation coefficient using the screen resolution and the plurality of capacitive sensing points, and generating a plurality of screen pixel coordinates using the resolution interpolation coefficient, the plurality of capacitive sensing points, and a pre-constructed initial screen coordinate system;

[0190] Acquire a sensing area of ​​the display in the screen display unit, and acquire multiple to-be-detected point sets according to the sensing area and a preset number of detections, wherein the number of the multiple to-be-detected point sets is equal to the number of detections, and each to-be-detected point set includes multiple to-be-detected points;

[0191] The following operations are performed on each of the multiple to-be-detected point sets:

[0192] Acquire an identification matrix based on the initial screen coordinate system and the set of points to be detected, and generate a pixel image in a display of a screen display unit based on a data processing unit and the identification matrix;

[0193] Receiving a plurality of pressure signals from a tester based on a pixel image, after confirming that the number of the plurality of pressure signals is consistent with the number of points to be detected in a set of points to be detected, obtaining a compression measurement matrix according to the plurality of pressure signals, and extracting a plurality of test point coordinates based on the compression measurement matrix, wherein the test point coordinates correspond to the pressure signals one by one;

[0194] A calibration equation is constructed according to the coordinates of multiple test points and multiple points to be tested, and multiple screen pixel coordinates in the initial screen coordinate system are corrected based on the calibration equation to obtain a corrected screen coordinate set, and pixel-linked capacitive touch screen edge error compensation is completed based on the corrected screen coordinate set.

[0195] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figure 1 to Figure 2 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0196] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0197] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:

[0198] receiving a touch edge calibration instruction, and starting the touch screen according to the touch edge calibration instruction, wherein the touch screen comprises: a capacitive sensing unit, a data processing unit and a screen display unit;

[0199] Acquire a plurality of capacitive sensing points based on the capacitive sensing unit, and import the plurality of capacitive sensing points into a pre-constructed physical sensing coordinate system using a data processing unit to obtain a plurality of physical coordinates, wherein the plurality of capacitive sensing points are composed of (M×N) intersections formed by (M+N) capacitive touch sensors, and the capacitive sensing points correspond to the physical coordinates one by one;

[0200] Acquiring a screen resolution based on a screen display unit, calculating a resolution interpolation coefficient using the screen resolution and the plurality of capacitive sensing points, and generating a plurality of screen pixel coordinates using the resolution interpolation coefficient, the plurality of capacitive sensing points, and a pre-constructed initial screen coordinate system;

[0201] Acquire a sensing area of ​​the display in the screen display unit, and acquire multiple to-be-detected point sets according to the sensing area and a preset number of detections, wherein the number of the multiple to-be-detected point sets is equal to the number of detections, and each to-be-detected point set includes multiple to-be-detected points;

[0202] The following operations are performed on each of the multiple to-be-detected point sets:

[0203] Acquire an identification matrix based on the initial screen coordinate system and the set of points to be detected, and generate a pixel image in a display of a screen display unit based on a data processing unit and the identification matrix;

[0204] Receiving a plurality of pressure signals from a tester based on a pixel image, after confirming that the number of the plurality of pressure signals is consistent with the number of points to be detected in a set of points to be detected, obtaining a compression measurement matrix according to the plurality of pressure signals, and extracting a plurality of test point coordinates based on the compression measurement matrix, wherein the test point coordinates correspond to the pressure signals one by one;

[0205] A calibration equation is constructed according to the coordinates of multiple test points and multiple points to be tested, and multiple screen pixel coordinates in the initial screen coordinate system are corrected based on the calibration equation to obtain a corrected screen coordinate set, and pixel-linked capacitive touch screen edge error compensation is completed based on the corrected screen coordinate set.

[0206] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0207] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0208] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0209] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A pixel-linked capacitive touch screen edge error compensation method, characterized in that: The method comprises: receiving a touch edge calibration instruction, and starting the touch screen according to the touch edge calibration instruction, wherein the touch screen comprises: a capacitive sensing unit, a data processing unit and a screen display unit; Acquire a plurality of capacitive sensing points based on the capacitive sensing unit, and import the plurality of capacitive sensing points into a pre-constructed physical sensing coordinate system using a data processing unit to obtain a plurality of physical coordinates, wherein the plurality of capacitive sensing points are composed of (M×N) intersections formed by (M+N) capacitive touch sensors, and the capacitive sensing points correspond to the physical coordinates one by one; Acquiring a screen resolution based on a screen display unit, calculating a resolution interpolation coefficient using the screen resolution and the plurality of capacitive sensing points, and generating a plurality of screen pixel coordinates using the resolution interpolation coefficient, the plurality of capacitive sensing points, and a pre-constructed initial screen coordinate system; Acquire a sensing area of ​​the display in the screen display unit, and acquire multiple to-be-detected point sets according to the sensing area and a preset number of detections, wherein the number of the multiple to-be-detected point sets is equal to the number of detections, and each to-be-detected point set includes multiple to-be-detected points; The following operations are performed on each of the multiple to-be-detected point sets: Acquire an identification matrix based on the initial screen coordinate system and the set of points to be detected, and generate a pixel image in a display of a screen display unit based on a data processing unit and the identification matrix; Receiving a plurality of pressure signals from a tester based on a pixel image, after confirming that the number of the plurality of pressure signals is consistent with the number of points to be detected in a set of points to be detected, obtaining a compression measurement matrix according to the plurality of pressure signals, and extracting a plurality of test point coordinates based on the compression measurement matrix, wherein the test point coordinates correspond to the pressure signals one by one; A calibration equation is constructed according to the coordinates of multiple test points and multiple points to be tested, and multiple screen pixel coordinates in the initial screen coordinate system are corrected based on the calibration equation to obtain a corrected screen coordinate set, and pixel-linked capacitive touch screen edge error compensation is completed based on the corrected screen coordinate set.

2. The pixel-linked capacitive touch screen edge error compensation method according to claim 1, characterized in that: The step of generating a plurality of screen pixel coordinates by using the resolution interpolation coefficient, a plurality of capacitive sensing points and a pre-constructed initial screen coordinate system includes: A first horizontal compensation coefficient, a first vertical compensation coefficient, a second horizontal compensation coefficient, and a second vertical compensation coefficient are obtained based on the initial screen coordinate system and the physical sensing coordinate system, and a plurality of screen pixel coordinates are calculated based on the resolution interpolation coefficient, a plurality of capacitive sensing points, a first horizontal compensation coefficient, a first vertical compensation coefficient, a second horizontal compensation coefficient, and a second vertical compensation coefficient, wherein the calculation formula of the screen pixel coordinates is as follows: Wherein, (x, y) represents the screen pixel coordinates, x represents the horizontal coordinate in the screen pixel coordinates, y represents the vertical coordinate in the screen pixel coordinates, J represents the resolution interpolation coefficient, (G-1) represents the maximum horizontal coordinate value of the screen pixel coordinates in the initial screen coordinate system, (H-1) represents the maximum vertical coordinate value of the screen pixel coordinates in the initial screen coordinate system, M represents that there are M rows of capacitance sensing points in the multiple capacitance sensing points, N represents that there are N columns of capacitance sensing points in the multiple capacitance sensing points, a represents the first horizontal compensation coefficient between the origin in the physical coordinates and the origin in the initial screen coordinate system in the horizontal axis direction, a represents the first vertical compensation coefficient between the origin in the physical coordinates and the origin in the initial screen coordinate system in the vertical axis direction, c represents the second horizontal compensation coefficient between the origin in the physical coordinates and the origin in the initial screen coordinate system in the horizontal axis direction, d represents the second vertical compensation coefficient between the origin in the physical coordinates and the origin in the initial screen coordinate system in the vertical axis direction, p represents the horizontal coordinate of the touch point sensed by the multiple capacitance sensing points, and q represents the vertical coordinate of the touch point sensed by the multiple capacitance sensing points.

3. The pixel-linked capacitive touch screen edge error compensation method according to claim 2, characterized in that: The obtaining of the first horizontal compensation coefficient, the first vertical compensation coefficient, the second horizontal compensation coefficient and the second vertical compensation coefficient based on the initial screen coordinate system and the physical sensing coordinate system includes: The first horizontal compensation coefficient, the first vertical compensation coefficient, the second horizontal compensation coefficient and the second vertical compensation coefficient are calculated using the initial screen coordinate system and the physical sensing coordinate system. The calculation formula is as follows: Where A represents the first edge distance between the origin in the physical coordinate system and the origin in the initial screen coordinate system in the horizontal direction, and D PX Indicates the distance between two adjacent horizontal coordinates in the physical coordinate system. B indicates the first edge distance between the origin in the physical coordinate system and the origin in the initial screen coordinate system in the vertical direction. D PY Represents the distance between two adjacent vertical coordinates in the physical coordinates, C represents the second edge distance between the origin in the physical coordinates and the origin in the initial screen coordinate system in the horizontal direction, and D represents the second edge distance between the origin in the physical coordinates and the origin in the initial screen coordinate system in the vertical direction.

4. The pixel-linked capacitive touch screen edge error compensation method according to claim 3, characterized in that: The step of obtaining a plurality of to-be-detected point sets according to the sensing area and the preset number of detection times includes: Connecting two diagonal lines of the sensing area, obtaining four side lines of the sensing area based on the sensing area, taking the four side lines of the sensing area as sketch entities, making equidistant entities at a preset distance inside the sensing area, and dividing the sensing area according to the equidistant entities, the four side lines of the sensing area and the two diagonal lines to obtain a plurality of unit sensing areas, wherein the plurality of unit sensing areas include four unit sensing areas; Acquire four vertices of the sensing area to obtain a vertex detection set, and copy the vertex detection set to obtain multiple vertex detection sets, wherein the number of vertex detection sets in the multiple vertex detection sets is equal to the number of detection times; The following operations are performed on the vertex detection sets in the multiple vertex detection sets: Extracting unit sensing areas from the plurality of unit sensing areas in sequence, and randomly extracting a plurality of unit area detection points from the extracted unit sensing areas, and summarizing the extracted unit area detection points to obtain a unit detection point set. Summarizing the vertex detection set and the unit detection point set to obtain a point set to be detected; The point sets to be detected are summarized to obtain multiple point sets to be detected corresponding to the number of detection times.

5. The pixel-linked capacitive touch screen edge error compensation method according to claim 4, characterized in that: The acquiring of the identification matrix based on the initial screen coordinate system and the set of points to be detected includes: Construct a zero matrix according to the initial screen coordinates, where the zero matrix is ​​a zero matrix with G rows and H columns; Extract the points to be detected from the set of points to be detected in sequence, and perform the following operations on the extracted points to be detected: Acquire the coordinates of the extracted points to be detected based on the initial screen coordinate system, map the coordinates of the points to be detected to the zero matrix, obtain the initial matrix element positions, and assign the elements corresponding to the initial matrix element positions to 1; After confirming that all the points to be detected in the set of points to be detected have been extracted, an identification matrix is ​​obtained.

6. The pixel-linked capacitive touch screen edge error compensation method according to claim 5, characterized in that: The method of generating a pixel image in a display of a screen display unit based on a data processing unit and an identification matrix includes: Extracting elements in the identification matrix in sequence using a data processing unit, and determining the extracted elements; If the extracted element is 0, assign the extracted element a value of 255; If the extracted element is 1, assign the extracted element to 0; After confirming that all elements in the identification matrix are assigned values, the assigned identification matrix is ​​imported into a pre-constructed image coordinate system, and based on the imported assigned image coordinate system, a pixel image is generated in the display of the screen display unit of the identification matrix.

7. The pixel-linked capacitive touch screen edge error compensation method according to claim 6, characterized in that: The receiving of a plurality of pressure signals from the tester based on the pixel image and confirming that the number of the plurality of pressure signals is consistent with the number of the points to be detected in the set of points to be detected comprises: Acquire a timer based on the pixel image, wherein the timer is preset with a judgment frequency; Initializing the touch interrupt pin and the initial number of pressure signals of the display screen, wherein the initial touch interrupt pin is at a high level and the initial number of pressure signals is 0; After the preset detection time has passed based on the timer confirmation; If the touch interrupt pin is at a low level, the pressure signal from the tester is obtained based on the pre-built analog-to-digital conversion unit, and the second detection time is obtained according to the pressure signal. After the second detection time is confirmed according to the timer, it is determined whether the touch interrupt pin is at a high level. If the touch interrupt pin is at a high level, it is confirmed that the extraction of the current pressure signal is ended, and an incremental operation is performed on the initial pressure signal number to obtain the incremental signal number. Otherwise, an abnormality is prompted on the display screen; If the touch interrupt pin is at a low level, an abnormality will be prompted on the display screen; Compare the number of incremental signals with the number of points to be detected in the set of points to be detected; If the number of incremental signals is equal to the number of points to be detected in the set of points to be detected, confirming that the number of the plurality of pressure signals is consistent with the number of points to be detected in the set of points to be detected; Otherwise, an abnormality is prompted on the display screen, the received pressure signal set is obtained, and the abnormal detection point set is obtained based on the received pressure signal set and multiple points to be detected, an abnormal identification matrix is ​​generated using the abnormal detection point set, an abnormal pixel image is generated based on the abnormal representation matrix, and the abnormal pixel image is used as the pixel image, and the step of obtaining a timer based on the pixel image is returned until it is confirmed that the number of the multiple pressure signals is consistent with the number of points to be detected in the point set to be detected.

8. The pixel-linked capacitive touch screen edge error compensation method according to claim 7, characterized in that: The calibration equation is constructed according to the coordinates of multiple test points and multiple points to be detected, including: Get the maximum horizontal coordinate value and the maximum vertical coordinate value in the screen pixel coordinate system to obtain the maximum screen horizontal value and the maximum screen vertical value; Constructing a horizontal value interval according to the maximum screen horizontal value, dividing the horizontal value interval by a preset equidistant division method to obtain a unit horizontal value interval sequence, and obtaining a unit vertical value interval sequence according to the maximum screen vertical value, wherein the unit horizontal value interval sequence includes a plurality of unit horizontal value intervals, and the plurality of unit horizontal value intervals are sorted in ascending order of numerical values; Acquire a median horizontal coordinate sequence according to the coordinates of the multiple test points, extract the median horizontal coordinates from the median horizontal coordinate sequence in sequence, and map the extracted median horizontal coordinates to the unit horizontal value interval to which the extracted median horizontal coordinates belong, thereby obtaining a fuzzy horizontal coordinate interval; Summarizing the fuzzy horizontal coordinate intervals to obtain a fuzzy horizontal coordinate interval set, wherein the fuzzy horizontal coordinate interval set includes one or more different fuzzy horizontal coordinate intervals, and using the fuzzy horizontal coordinate interval set to update the unit horizontal value interval sequence to obtain an updated horizontal value interval sequence; Determine the optimized horizontal coordinate set based on the updated horizontal value interval sequence; Determine the number of median horizontal coordinates included in the optimized horizontal coordinate set, and if the number of median horizontal coordinates is less than 3, it is prompted that the point set to be detected is abnormal; Otherwise, the optimized ordinate set is obtained based on the unit ordinate value interval sequence; An available calibration coordinate set is output based on the optimized abscissa set and the optimized ordinate set, and a calibration equation is constructed based on the calibration equation.

9. The pixel-linked capacitive touch screen edge error compensation method according to claim 8, characterized in that: The step of obtaining a median horizontal coordinate sequence according to the coordinates of the multiple test points includes: Acquire a horizontal coordinate sequence according to the coordinates of the multiple test points, extract horizontal coordinate sequences from the horizontal coordinate sequence in sequence, and perform the following operations on the extracted first horizontal coordinates: Acquire the next first horizontal coordinate adjacent to the extracted first horizontal coordinate in the horizontal coordinate sequence to obtain the second horizontal coordinate, and calculate the median horizontal coordinate based on the first horizontal coordinate and the second horizontal coordinate; Sum up the median abscissas to get the median abscissa sequence.

10. The pixel-linked capacitive touch screen edge error compensation method according to claim 9, characterized in that: The step of determining the optimized horizontal coordinate set based on the updated horizontal value interval sequence includes: Extracting update cross-value intervals from the update cross-value interval sequence in sequence, and finding the median horizontal coordinate from the extracted update cross-value intervals; If there is zero median horizontal coordinate in the extracted update horizontal value interval, the extracted update horizontal value interval is skipped; If there is a median abscissa in the extracted updated abscissa interval, then the first abscissa corresponding to the existing median abscissa is output as the optimized abscissa; If there are multiple median horizontal coordinates in the extracted update horizontal value interval, the first horizontal coordinate corresponding to the median horizontal coordinate with the smallest value among the multiple median horizontal coordinates is selected and output as the optimized horizontal coordinate; Summarize the optimized horizontal coordinates to obtain the optimized horizontal coordinate set.

Citation Information

Patent Citations

  • Precision calibration method of infrared touch screen, electronic equipment and storage medium

    CN108037854A

  • Touch screen calibration method and device

    CN113268158A

  • Method for detecting and correcting input accuracy of capacitive touch screen

    CN115079867A

  • Touch display method, graphical interface and related device

    CN115562514A

  • Method for operating touch of touch screen having camera

    KR101137003B1