Touch position detection method, touch display driving device, equipment and storage medium
By calibrating the touch data of the irregular sensing area in the touch screen and converting it into the touch data of the regular area, the problem of inaccurate touch position detection caused by interference from irregular area is solved, and the response accuracy of the touch screen is improved.
Patent Information
- Application Number
- CN202411676602.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-21
- Publication Date
- 2025-03-14
AI Technical Summary
In the touch screen, the presence of irregular sensing areas causes inaccurate touch position detection and reduces the response accuracy.
By acquiring a plurality of first touch data, data calibration is performed, and converted into a plurality of second touch data, the latter corresponding to a regular calibration area to reduce interference from irregular areas and improve the accuracy of touch position.
It effectively improves the accuracy of touch position, enhances the response accuracy of the touch screen, and reduces interference from irregular areas to the detection process.
Smart Images

Figure CN119620881A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of touch technology, and in particular to a touch position detection method, a touch display driving device, equipment and a storage medium. Background Art
[0002] In recent years, touch screens have been widely used in more and more electronic devices. Users can generate touch operations on the touch screens, and the electronic devices can determine the touch position corresponding to the touch operation, and then respond to the user's touch operation at the touch position.
[0003] In the related art, after a touch operation is acquired, touch data corresponding to a plurality of sensing areas in the touch screen are detected, and then the touch position is determined directly according to the touch data corresponding to the plurality of sensing areas.
[0004] There may be irregular areas among the multiple sensing areas in the touch screen. For example, the sensing area at the edge of the touch screen needs to be set to an arc shape to match the edge shape of the touch screen. The touch data corresponding to these irregular areas may be at a different level from the touch data corresponding to the regular areas. For example, the level of the touch data corresponding to the irregular areas may be too small or too large due to the size of the irregular areas being too small or too large, thereby interfering with the detection process of the touch position, resulting in inaccurate touch position determination and reducing the response accuracy of the touch screen. Summary of the invention
[0005] The embodiments of the present application provide a touch position detection method, a touch display driving device, a device and a storage medium, which can be used to improve the accuracy of the determined touch position. The technical solution is as follows:
[0006] On the one hand, an embodiment of the present application provides a touch position detection method, the method comprising:
[0007] Based on the touch operation on the touch screen, a plurality of first touch data are acquired, wherein the plurality of first touch data correspond to a plurality of sensing areas, and at least one of the plurality of sensing areas is an irregular area;
[0008] Performing data calibration on the plurality of first touch data to obtain a plurality of second touch data, wherein the plurality of second touch data corresponds to a plurality of calibration areas, the plurality of calibration areas are all regular areas, and the plurality of calibration areas are determined based on the plurality of sensing areas;
[0009] Based on the plurality of second touch data, a touch position of the touch operation on the touch screen is determined.
[0010] In a possible implementation manner, the performing data calibration on the plurality of first touch data to obtain the plurality of second touch data includes:
[0011] Performing data segmentation on the plurality of first touch data to obtain a plurality of third touch data;
[0012] Performing data integration on the plurality of third touch data to obtain a plurality of fourth touch data;
[0013] Data compensation is performed on the plurality of fourth touch data to obtain the plurality of second touch data.
[0014] In a possible implementation, determining the touch position of the touch operation on the touch screen based on the plurality of second touch data includes:
[0015] Performing touch recognition on the plurality of second touch data, and determining a target calibration area among the plurality of calibration areas according to the recognition result;
[0016] Determining target display coordinates according to first logical coordinates of the target calibration area, wherein the first logical coordinates are used to locate the position of the target calibration area in the multiple calibration areas, and the target display coordinates are coordinates of pixels touched by the touch operation in the touch screen;
[0017] A touch position of the touch operation on the touch screen is determined based on the target display coordinates.
[0018] In a possible implementation, determining the target display coordinates according to the first logical coordinates of the target calibration area includes:
[0019] According to a first conversion relationship between the logical coordinates of the calibration area and the logical coordinates of the sensing area, converting the first logical coordinates into second logical coordinates of the target sensing area, wherein the second logical coordinates are used to locate the position of the target sensing area in the plurality of sensing areas;
[0020] According to a second conversion relationship between the logical coordinates and the display coordinates of the sensing area, the second logical coordinates are converted into the target display coordinates.
[0021] In a possible implementation, determining the touch position of the touch operation on the touch screen based on the target display coordinates includes:
[0022] Determine a target expansion area where the target display coordinates are located in n expansion areas, wherein the n expansion areas are obtained by pre-dividing the logical coordinate area, the logical coordinate area is an area covered by all display coordinates obtained by converting the logical coordinates of all sensing areas, and n is an integer greater than 1;
[0023] Expanding the target display coordinates according to the expansion coefficient corresponding to the target expansion area to obtain a plurality of expansion coordinates;
[0024] Based on the positions corresponding to the multiple expanded coordinates in the touch screen, a touch position of the touch operation in the touch screen is determined.
[0025] In a possible implementation, the acquiring of a plurality of first touch data based on a touch operation on the touch screen includes:
[0026] Based on the touch operation, obtaining a plurality of original touch data;
[0027] The plurality of original touch data are pre-processed to obtain the plurality of first touch data.
[0028] In another aspect, a touch display driving device is provided, the device comprising a processor, wherein the processor is configured to:
[0029] Based on the touch operation on the touch screen, a plurality of first touch data are acquired, wherein the plurality of first touch data correspond to a plurality of sensing areas, and at least one of the plurality of sensing areas is an irregular area;
[0030] Performing data calibration on the plurality of first touch data to obtain a plurality of second touch data, wherein the plurality of second touch data corresponds to a plurality of calibration areas, the plurality of calibration areas are all regular areas, and the plurality of calibration areas are determined based on the plurality of sensing areas;
[0031] Based on the plurality of second touch data, a touch position of the touch operation on the touch screen is determined.
[0032] In a possible implementation, the processor is configured to:
[0033] Performing data segmentation on the plurality of first touch data to obtain a plurality of third touch data;
[0034] Performing data integration on the plurality of third touch data to obtain a plurality of fourth touch data;
[0035] Data compensation is performed on the plurality of fourth touch data to obtain the plurality of second touch data.
[0036] In a possible implementation, the processor is configured to:
[0037] Performing touch recognition on the plurality of second touch data, and determining a target calibration area among the plurality of calibration areas according to the recognition result;
[0038] Determining target display coordinates according to first logical coordinates of the target calibration area, wherein the first logical coordinates are used to locate the position of the target calibration area in the multiple calibration areas, and the target display coordinates are coordinates of pixels touched by the touch operation in the touch screen;
[0039] A touch position of the touch operation on the touch screen is determined based on the target display coordinates.
[0040] In a possible implementation, the processor is configured to:
[0041] According to a first conversion relationship between the logical coordinates of the calibration area and the logical coordinates of the sensing area, converting the first logical coordinates into second logical coordinates of the target sensing area, wherein the second logical coordinates are used to locate the position of the target sensing area in the plurality of sensing areas;
[0042] According to a second conversion relationship between the logical coordinates and the display coordinates of the sensing area, the second logical coordinates are converted into the target display coordinates.
[0043] In a possible implementation, the processor is configured to:
[0044] Determine a target expansion area where the target display coordinates are located in n expansion areas, wherein the n expansion areas are obtained by pre-dividing the logical coordinate area, the logical coordinate area is an area covered by all display coordinates obtained by converting the logical coordinates of all sensing areas, and n is an integer greater than 1;
[0045] Expanding the target display coordinates according to the expansion coefficient corresponding to the target expansion area to obtain a plurality of expansion coordinates;
[0046] Based on the positions corresponding to the multiple expanded coordinates in the touch screen, a touch position of the touch operation in the touch screen is determined.
[0047] In a possible implementation, the processor is configured to:
[0048] Based on the touch operation, obtaining a plurality of original touch data;
[0049] The plurality of original touch data are pre-processed to obtain the plurality of first touch data.
[0050] On the other hand, a touch display driving device is provided, the device comprising:
[0051] A sensing module, configured to obtain a plurality of first touch data based on a touch operation in the touch screen, wherein the plurality of first touch data corresponds to a plurality of sensing areas, and at least one of the plurality of sensing areas is an irregular area;
[0052] a correction module, configured to perform data calibration on the plurality of first touch data to obtain a plurality of second touch data, wherein the plurality of second touch data corresponds to a plurality of calibration areas, the plurality of calibration areas are all regular areas, and the plurality of calibration areas are determined based on the plurality of sensing areas;
[0053] A determination module is used to determine a touch position of the touch operation on the touch screen based on the plurality of second touch data.
[0054] In one possible implementation, the correction module is used to perform data segmentation on the multiple first touch data to obtain multiple third touch data; perform data integration on the multiple third touch data to obtain multiple fourth touch data; and perform data compensation on the multiple fourth touch data to obtain the multiple second touch data.
[0055] In one possible implementation, the determination module is used to perform touch recognition on the multiple second touch data, and determine a target calibration area among the multiple calibration areas based on the recognition result; determine a target display coordinate based on first logical coordinates of the target calibration area, the first logical coordinates being used to locate the position of the target calibration area among the multiple calibration areas, the target display coordinates being the coordinates of pixels in the touch screen touched by the touch operation; and determine a touch position of the touch operation on the touch screen based on the target display coordinates.
[0056] In one possible implementation, the determination module is used to convert the first logical coordinates into second logical coordinates of the target sensing area according to a first conversion relationship between the logical coordinates of the calibration area and the logical coordinates of the sensing area, wherein the second logical coordinates are used to locate the position of the target sensing area among the multiple sensing areas; and convert the second logical coordinates into the target display coordinates according to a second conversion relationship between the logical coordinates of the sensing area and the display coordinates.
[0057] In one possible implementation, the determination module is used to determine a target expansion area where the target display coordinates are located among n expansion areas, where the n expansion areas are obtained by pre-dividing a logical coordinate area, where the logical coordinate area is an area covered by all display coordinates obtained by converting the logical coordinates of all sensing areas, and n is an integer greater than 1; according to an expansion coefficient corresponding to the target expansion area, the target display coordinates are expanded to obtain a plurality of expansion coordinates; and based on the positions corresponding to the plurality of expansion coordinates in the touch screen, the touch position of the touch operation in the touch screen is determined.
[0058] In a possible implementation, the sensing module is used to obtain a plurality of original touch data based on the touch operation; and pre-process the plurality of original touch data to obtain the plurality of first touch data.
[0059] In another aspect, an electronic device is provided, the electronic device comprising:
[0060] Touch display panel;
[0061] And any of the above-mentioned touch display driving devices, wherein the touch display driving device is used to provide a touch position detection signal to the touch display panel.
[0062] On the other hand, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded by a processor and executes any of the above-mentioned touch position detection methods.
[0063] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0064] The technical solution provided by the embodiment of the present application is that, in the case where there are irregular areas among the multiple sensing areas, after obtaining multiple first touch data according to the touch operation, the multiple first touch data are first calibrated, and then the touch position is determined according to the second touch data obtained after the data calibration. The second touch data is the touch data corresponding to the regular area, and the touch position is determined according to the touch data corresponding to the regular area, which can reduce the interference of the irregular area, improve the accuracy of the determined touch position, and thus improve the response accuracy of the touch screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0066] Figure 1 It is a schematic diagram of an implementation environment provided by an embodiment of the present application;
[0067] Figure 2 is a flow chart of a touch position detection method provided in an embodiment of the present application;
[0068] Figure 3 is a schematic diagram of an arrangement of multiple sensing areas provided in an embodiment of the present application;
[0069] Figure 4It is a schematic diagram of dividing a plurality of sensing areas into regions provided in an embodiment of the present application;
[0070] Figure 5 is a schematic diagram of regional integration of multiple first regions provided in an embodiment of the present application;
[0071] Figure 6 is a schematic diagram of performing regional compensation on multiple second regions provided in an embodiment of the present application;
[0072] Figure 7 is a schematic diagram of a process of obtaining second touch data provided by an embodiment of the present application;
[0073] Figure 8 is a schematic diagram of a correction direction brought about by an offset coefficient provided in an embodiment of the present application;
[0074] Fig. 9 is a schematic diagram of the relationship between a logical coordinate area and a display area provided in an embodiment of the present application;
[0075] Fig.10 is a schematic diagram of an arrangement relationship of multiple expansion areas provided in an embodiment of the present application;
[0076] Fig.11 is a schematic diagram of an edge expansion process provided by an embodiment of the present application;
[0077] Fig.12 is a schematic diagram of a module used in a process of realizing touch position detection provided by an embodiment of the present application;
[0078] Fig.13 is a structural schematic diagram of a touch display driving device provided in an embodiment of the present application;
[0079] Fig.14 is a structural schematic diagram of another touch display driving device provided in an embodiment of the present application;
[0080] Fig.15 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0081] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0082] With the improvement of people's living standards and the rapid development of science and technology, the development of the consumer electronics industry has been greatly promoted, and various touch technologies have been increasingly widely used in electronic devices. Based on this, touch screens have been widely used in more and more electronic devices. Users can generate touch operations on the touch screen, and the electronic device can detect the touch position corresponding to the touch operation, and then respond to the user's touch operation at the touch position.
[0083] In the related art, after a touch operation is acquired, touch data corresponding to a plurality of sensing areas in the touch screen are detected, and then the touch position is determined directly according to the touch data corresponding to the plurality of sensing areas.
[0084] Taking a capacitive touch screen as an example, a capacitive touch screen detects touches through a set of capacitive sensors. When a user touches the screen, these sensors measure the change in capacitance at the touch point and convert it into an electrical signal. The collected electrical signals are amplified, filtered, and processed by the signal processing circuit to obtain touch data. These processes can remove noise and enhance the signal, thereby improving the accuracy and stability of the touch data. After signal processing, the touch screen applies a touch positioning algorithm to process the touch data to determine the touch position of the touch operation. These algorithms can be based on different principles and technologies, such as capacitance difference, multi-touch, and pattern recognition. Based on the results of the touch positioning algorithm, the touch screen calculates the logical coordinates, which are usually performed in the sensor screen coordinate system, with one sensor representing a point in the coordinate axis. The logical coordinates are converted into the coordinates of the pixels on the touch screen to determine the touch position. The coordinates of the pixels on the touch screen are coordinates in the touch screen coordinate system, for example, the upper left corner of the touch screen is the origin of the touch screen coordinate system, the horizontal direction is the X axis of the touch screen coordinate system, and the vertical direction is the Y axis of the touch screen coordinate system. In some embodiments, after the touch position is determined, the touch position is reported for subsequent processing.
[0085] In some touch screen designs, the layout of sensors may not be regular. Sensors may be unevenly distributed on the surface of the touch screen, which may lead to inaccurate touch positions or false touches. Irregular sensor layouts may cause the touch screen to respond unevenly to touch inputs. In other words, there may be irregular areas among the multiple sensing areas in the touch screen, and the touch data corresponding to these irregular areas may be at different magnitudes from the touch data corresponding to regular areas. For example, the magnitude of the touch data corresponding to the irregular areas may be too small or too large due to reasons such as the size of the irregular areas being too small or too large, thereby interfering with the touch position detection process, resulting in inaccurate touch positions being determined, and reducing the response accuracy of the touch screen. Therefore, it is crucial to provide a touch position detection method that can improve the accuracy of the touch position.
[0086] Figure 1 A schematic diagram of an implementation environment of the touch position detection method provided in an embodiment of the present application is shown. The implementation environment may include: an electronic device 11.
[0087] The electronic device 11 includes a touch screen for sensing touch operations on the electronic device 11. The touch screen includes a protective layer and a touch sensing layer, and the electronic device 11 also includes a touch processing module electrically connected to the touch sensing layer. Among them, the touch sensing layer includes a plurality of touch sensors. When performing touch sensing, an external object (such as a user's finger) performs a touch operation on the upper surface of the protective layer away from the touch sensing layer, and the touch sensor located near the touch position generates touch data related to the external object. The touch processing module is used to calculate the actual touch position of the external object based on the acquired position information of each touch sensor and the touch data corresponding to each touch sensor.
[0088] Optionally, the protective layer may include a transparent material, such as but not limited to transparent glass, transparent polymer, any other transparent material, etc. The protective layer may be a single-layer structure or a multi-layer structure. The protective layer is roughly a thin plate with a predetermined length, width, and thickness. It is understandable that the protective layer may include a plastic film, a tempered film, or other film layers attached by the user during actual use. The upper surface of the protective layer may be the outermost surface of the electronic device 11. When performing touch sensing, the external object directly contacts the upper surface of the protective layer to perform a touch operation.
[0089] Optionally, the touch sensor may be a variety of sensors using different touch principles, such as but not limited to: a sensor based on an ultrasonic touch sensing principle, a sensor based on a capacitive touch sensing principle, and a sensor based on an optical touch sensing principle, etc. In the embodiment of the present application, the touch sensor using the capacitive touch sensing principle is used as an example for description.
[0090] Optionally, the electronic device 11 can be any electronic product that can interact with the user through a touch screen, such as a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a tablet computer, a smart car machine, a smart TV, a smart speaker, a car terminal, etc.
[0091] Those skilled in the art should understand that the above-mentioned electronic device 11 is only an example, and other existing or future electronic devices that are applicable to the present application should also be included in the protection scope of the present application and are included here by reference.
[0092] The present application provides a touch position detection method which can be applied to the above Figure 1 The touch position detection method can be applied to an electronic device, for example, the touch position detection method can be applied to a touch processing module in an electronic device. Figure 2 As shown, the touch position detection method provided in the embodiment of the present application may include the following steps 201 to 203.
[0093] In step 201, based on a touch operation on the touch screen, a plurality of first touch data are acquired, the plurality of first touch data correspond to a plurality of sensing areas, and at least one of the plurality of sensing areas is an irregular area.
[0094] There are multiple sensors in the touch screen for sensing touch operations. The embodiment of the present application does not limit the number and type of sensors in the touch screen. By way of example, the types of sensors in the touch screen may include but are not limited to sensors based on ultrasonic touch sensing principles, sensors based on capacitive touch sensing principles, and sensors based on optical touch sensing principles, etc.
[0095] When the user touches the screen, multiple sensors in the touch screen will measure the electrical signals caused by the touch operation. The collected electrical signals will be amplified, filtered and processed by the signal processing circuit to obtain touch data. After the user generates a touch operation, each sensor in the touch screen will obtain the touch data corresponding to the area where the sensor is located (that is, the sensing area) in the above manner. In the embodiment of the present application, the area where each sensor is located is referred to as a sensing area, that is, there are multiple sensing areas in the touch screen.
[0096] In the embodiment of the present application, at least one of the multiple sensing areas is an irregular area. In an exemplary embodiment, any sensing area being an irregular area includes at least one of the following: any sensing area is irregular in shape; any sensing area is irregular in position in the touch screen; any sensing area is irregular in size.
[0097] The method for determining whether the shape of a sensing area is regular can be set based on experience, or can be flexibly adjusted according to the application scenario, and the embodiments of the present application do not limit this. Exemplarily, the method for determining whether the shape of a sensing area is regular can be: if the shape of a sensing area is any regular shape among at least one preset regular shape, then the shape of the sensing area is determined to be regular; if the shape of a sensing area is not any regular shape, then the shape of the sensing area is determined to be irregular. At least one regular shape can be flexibly set based on experience, and exemplarily, at least one regular shape can include a rectangle, a circle, etc.
[0098] For example, taking at least one regular shape including only rectangles as an example, the irregular shape of any sensing area may mean that the shape of any sensing area is not a rectangle, that is, the shape of any sensing area is other shapes than a rectangle, such as the shape of any sensing area is a trapezoid.
[0099] The method for determining whether the position of a sensing area in the touch screen is regular can be set based on experience, or can be flexibly adjusted according to the application scenario, and the embodiments of the present application do not limit this. Exemplarily, the method for determining whether the position of a sensing area in the touch screen is regular can be: if the position of a sensing area in the touch screen is any candidate position among the preset multiple candidate positions, then the position of the sensing area in the touch screen is determined to be regular; if the position of a sensing area in the touch screen is not any candidate position, then the position of the sensing area in the touch screen is determined to be irregular. Exemplarily, the position of a sensing area in the touch screen is not any candidate position and may include but is not limited to: the position of a sensing area in the touch screen covers at least two candidate positions among the multiple candidate positions; the position of a sensing area in the touch screen only covers part of a candidate position. It should be noted that in the case where the position of a sensing area in the touch screen covers at least two candidate positions among the multiple candidate positions, for a candidate position among the at least two candidate positions, the candidate position may be fully or partially covered by the one sensing area.
[0100] Multiple candidate positions can be obtained by dividing the touch screen. Exemplarily, multiple candidate positions may refer to the positions of a*b areas obtained by dividing the touch screen into a equal parts in the length direction and b equal parts in the width direction. a is an integer not less than 1, and b is an integer not less than 1. For example, taking the position where the multiple candidate positions include the above-mentioned a*b areas as an example, the irregular position of any sensing area in the touch screen may mean that the position of any sensing area in the touch screen is not one of the positions of the a*b areas. For example, the position of any sensing area in the touch screen covers two, three or more positions among the positions of the a*b areas.
[0101] The method for determining whether the size of a sensing area is regular can be set based on experience, or can be flexibly adjusted according to the application scenario, and the embodiments of the present application do not limit this. Exemplarily, the method for determining whether the size of a sensing area is regular can be: if the difference between the size of a sensing area and the reference size is not greater than the difference threshold, the size of the sensing area is determined to be regular; if the difference between the size of a sensing area and the reference size is greater than the difference threshold, the size of the sensing area is determined to be irregular. The reference size and the difference threshold can be set based on experience, or can be flexibly adjusted according to the application scenario, and the embodiments of the present application do not limit this. Exemplarily, the size can be expressed by area.
[0102] For example, taking the reference size as 100 and the difference threshold as 5, the irregular size of any sensing area may mean that the difference between the size of any sensing area and 100 is greater than 5. For example, the size of any sensing area is 90, or the size of any sensing area is 120, etc.
[0103] Exemplarily, the reasons for the presence of irregular sensing areas in the multiple sensing areas may include, but are not limited to: the touch screen is an irregular screen, the multiple sensors are arranged unevenly, the shapes of the multiple sensors are greatly different, the sizes of the multiple sensors are greatly different, etc.
[0104] In an exemplary embodiment, the process of acquiring a plurality of first touch data based on a touch operation on the touch screen includes: acquiring a plurality of original touch data based on the touch operation; and acquiring a plurality of first touch data based on the plurality of original touch data.
[0105] Raw touch data is touch data directly obtained based on touch operation. For example, when a user touches the screen, each sensor in the touch screen will measure the electrical signal brought by the touch operation, and the collected electrical signal will be amplified, filtered and processed by the signal processing circuit to obtain raw touch data. The raw touch data can be considered as the raw touch data corresponding to the sensing area where the sensor is located. In other words, each raw touch data corresponds to a sensing area.
[0106] The representation form of the raw touch data is related to the type of sensor. For example, if the sensor is a sensor based on the capacitive touch sensing principle, the representation form of the raw touch data may be a change in capacitance.
[0107] After the original touch data is acquired, first touch data is acquired based on the original touch data. The representation form of the first touch data may be the same as the representation form of the original touch data.
[0108] Exemplarily, based on the plurality of original touch data, a method of acquiring the plurality of first touch data may be: directly using the plurality of original touch data as the plurality of first touch data.
[0109] Exemplarily, based on multiple original touch data, multiple first touch data can be obtained by preprocessing the multiple original touch data. Preprocessing the multiple original touch data to obtain the first touch data is conducive to improving the reliability of the first touch data.
[0110] The method used for preprocessing the multiple raw touch data can be selected based on experience, or can be flexibly adjusted based on demand, and the embodiments of the present application do not limit this. Exemplarily, the method for preprocessing the multiple raw touch data can be to filter the multiple raw touch data using a filtering algorithm, or to compensate the multiple raw touch data using a compensation algorithm, or to filter and compensate the multiple raw touch data using a filtering algorithm and a compensation algorithm. The filtering algorithm and the compensation algorithm can be flexibly selected based on demand.
[0111] The number of the plurality of first touch data may be the same as the number of the plurality of original touch data, or may be different from the number of the plurality of original touch data, which is not limited in the embodiments of the present application. In an exemplary embodiment, the number of the plurality of first touch data is the same as the number of the plurality of original touch data, that is, after preprocessing each original touch data, one first touch data is obtained.
[0112] In an exemplary embodiment, the number of the plurality of first touch data is the same as the number of the plurality of sensing areas, that is, each first touch data corresponds to a sensing area, and different first touch data correspond to different sensing areas.
[0113] In step 202, data calibration is performed on the plurality of first touch data to obtain a plurality of second touch data, the plurality of second touch data corresponds to a plurality of calibration areas, the plurality of calibration areas are all regular areas, and the plurality of calibration areas are determined based on a plurality of sensing areas.
[0114] Since there are irregular sensing areas among the multiple sensing areas, if the touch position is determined directly using the multiple first touch data corresponding to the multiple sensing areas, it is very likely that the first touch data corresponding to the irregular sensing areas will be at different levels from the first touch data corresponding to the regular sensing areas, which will interfere with the detection process of the touch position, resulting in an inaccurate touch position and reducing the response accuracy of the touch screen. Therefore, in the embodiment of the present application, after determining the multiple first touch data, the multiple first touch data are calibrated so as to determine the touch position according to the multiple touch data obtained after the data calibration, thereby improving the accuracy of the touch position.
[0115] In the embodiment of the present application, the multiple touch data obtained after the data calibration are referred to as multiple second touch data. The multiple calibration areas corresponding to the multiple second touch data are all regular areas, that is, the multiple second touch data are touch data corresponding to the multiple regular areas respectively. By converting the multiple first touch data into the multiple second touch data, it is helpful to improve the accuracy of the touch position determined subsequently. In an exemplary embodiment, one second touch data corresponds to one calibration area, that is, each second touch data corresponds to one calibration area, and different second touch data correspond to different calibration areas.
[0116] The number of the plurality of second touch data may be the same as the number of the plurality of first touch data, or may be different from the number of the plurality of first touch data, which is related to the method used for performing data calibration on the plurality of first touch data.
[0117] The multiple calibration areas are determined based on the multiple sensing areas. For example, the multiple calibration areas are multiple regular areas obtained after performing regional calibration on the multiple sensing areas. A calibration area may be a sensing area itself, may include a partial area of at least one sensing area, or may include multiple sensing areas.
[0118] In one possible implementation, the process of determining multiple calibration areas based on multiple sensing areas includes: performing regional segmentation on the multiple sensing areas to obtain multiple first areas; performing regional integration on the multiple first areas to obtain multiple second areas; and performing regional compensation on the multiple second areas to obtain multiple calibration areas.
[0119] Dividing the multiple sensing regions into regions refers to dividing each sensing region of at least one sensing region among the multiple sensing regions into multiple regions, that is, a first region may be a sensing region itself or a partial region of a sensing region.
[0120] Regional integration of multiple first regions refers to integrating each group of first regions in at least one group of first regions among the multiple first regions into one region, that is, a second region may be a first region itself, or may be a region obtained by integrating multiple first regions.
[0121] Performing regional compensation on multiple second areas means compensating each second area of at least one second area among the multiple second areas into a regular area, that is, a calibration area may be a second area itself, or may be an area obtained after performing regional compensation on a second area.
[0122] The method of dividing multiple sensing areas, integrating multiple first areas, and compensating multiple second areas can be flexibly set according to experience, or determined according to preliminary experimental results. The embodiments of the present application do not limit this, as long as the multiple calibration areas finally obtained are regular areas.
[0123] For example, the arrangement of multiple sensing areas is as follows Figure 3 When dividing multiple sensing areas, follow the Figure 4 The area obtained after the segmentation is divided according to the segmentation line (dashed line) shown in FIG. Figure 4 The dividing lines shown in FIG. 1 divide the plurality of sensing regions into regions to obtain a plurality of first regions. Figure 5 As shown, the first areas that are not in the same sensing area and are located between two adjacent cutting lines are integrated to obtain multiple second areas. After obtaining multiple second areas, Figure 6 In the manner shown, the second area which is not a rectangle is compensated into a rectangular area, so that a plurality of regular calibration areas are obtained.
[0124] In a possible implementation, the process of performing data calibration on the plurality of first touch data to obtain the plurality of second touch data includes the following steps 21 to 23:
[0125] Step 2021: divide the plurality of first touch data into data segments to obtain a plurality of third touch data.
[0126] The method of dividing the plurality of first touch data may be set based on experience, or may be flexibly adjusted based on demand, and the embodiment of the present application does not limit this.
[0127] In an exemplary embodiment, the process of dividing the plurality of first touch data to obtain the plurality of third touch data includes: dividing the plurality of first touch data based on the region division method of the plurality of sensing regions to obtain the plurality of third touch data. Exemplarily, one third touch data corresponds to one first region.
[0128] In an exemplary embodiment, a process of performing data segmentation on multiple first touch data based on a regional segmentation method of multiple sensing areas to obtain multiple third touch data includes: determining data segmentation parameters based on the regional segmentation method of multiple sensing areas; performing data segmentation on multiple first touch data according to the data segmentation parameters to obtain multiple third touch data.
[0129] Exemplarily, the process of determining data segmentation parameters based on a regional segmentation method of multiple sensing areas includes: traversing each sensing area, and when the currently traversed sensing area is divided, determining the data segmentation sub-parameters corresponding to the first touch data corresponding to the sensing area according to the ratios of the areas of the multiple areas into which the sensing area is divided to the area of the sensing area; after traversing all the sensing areas, obtaining data segmentation parameters including at least one data segmentation sub-parameter corresponding to the first touch data.
[0130] Exemplarily, the data segmentation parameters include at least one data segmentation sub-parameter corresponding to the first touch data, and the data segmentation sub-parameter corresponding to any first touch data is used to indicate how to segment the any first touch data. The process of segmenting multiple first touch data according to the data segmentation parameters to obtain multiple third touch data includes: traversing each first touch data, if the currently traversed first touch data does not correspond to the data segmentation sub-parameter, then directly taking the first touch data as a third touch data; if the currently traversed first touch data corresponds to the data segmentation sub-parameter, then segmenting the first touch data according to the segmentation method indicated by the data segmentation sub-parameter corresponding to the first touch data, and taking each touch data obtained after the segmentation as a third touch data; after traversing all the first touch data, multiple third touch data are obtained. In other words, a third touch data may be a first touch data itself, or may be a part of the data segmented from a first touch data.
[0131] Exemplarily, segmenting a first touch data refers to segmenting the first touch data according to a certain ratio. For example, assuming that a data segmentation subparameter corresponding to a first touch data indicates that the first touch data is segmented according to a ratio of 40% and 60%, then if the first touch data is 100, after the first touch data is segmented, two third touch data of 40 and 60 are obtained.
[0132] Step 2022: Integrate the plurality of third touch data to obtain a plurality of fourth touch data.
[0133] The method of integrating the plurality of third touch data may be set based on experience, or may be flexibly adjusted based on demand, and the embodiment of the present application does not limit this.
[0134] In an exemplary embodiment, the process of integrating the plurality of third touch data to obtain the plurality of fourth touch data includes: integrating the plurality of third touch data based on the regional integration method of the plurality of first regions to obtain the plurality of fourth touch data. Exemplarily, one fourth touch data corresponds to one second region.
[0135] In an exemplary embodiment, a process of integrating multiple third touch data based on a regional integration method of multiple first areas to obtain multiple fourth touch data includes: determining data integration parameters based on the regional integration method of multiple first areas; and integrating multiple third touch data according to the data integration parameters to obtain multiple fourth touch data.
[0136] Exemplarily, the process of determining data integration parameters based on the regional integration method of multiple first areas includes: traversing each unintegrated first area, and when the currently traversed first area is integrated with other first areas into one area, using a parameter for indicating the integration of the third touch data corresponding to the first area and the third touch data corresponding to the other first areas as a data integration sub-parameter; after traversing all the unintegrated first areas, obtaining a data integration parameter including at least one data integration sub-parameter.
[0137] Exemplarily, the data integration parameter includes at least one data integration sub-parameter, one data integration sub-parameter is used to indicate that a group of third touch data is integrated, and different data integration sub-parameters are used to indicate that different third touch data are integrated. The process of integrating multiple third touch data according to the data integration parameter to obtain multiple fourth touch data includes: traversing each data integration sub-parameter, each time a data integration sub-parameter is traversed, a group of third touch data indicated by the data integration sub-parameter is integrated to obtain a fourth touch data; after traversing all the data integration sub-parameters, the third touch data that has not been integrated is directly used as the fourth touch data, so that multiple fourth touch data are obtained. In other words, a fourth touch data may be a third touch data itself, or it may be data obtained by integrating multiple third touch data.
[0138] Exemplarily, integrating the plurality of third touch data refers to adding the plurality of third touch data. For example, assuming that a data integration sub-parameter is used to indicate integrating the third touch data 1 and the third touch data 2, the third touch data 1 is 40, and the third touch data 2 is 50, then after integrating the third touch data 1 and the third touch data 2 according to the data integration sub-parameter, a fourth touch data of 90 is obtained.
[0139] Step 2023: Perform data compensation on the plurality of fourth touch data to obtain a plurality of second touch data.
[0140] The method of performing data compensation on the plurality of fourth touch data may be set based on experience, or may be flexibly adjusted based on demand, and the embodiment of the present application does not limit this.
[0141] In an exemplary embodiment, the process of performing data compensation on the plurality of fourth touch data to obtain the plurality of second touch data includes: performing data compensation on the plurality of fourth touch data based on the area compensation method of the plurality of second areas to obtain the plurality of second touch data.
[0142] In an exemplary embodiment, a process of performing data compensation on a plurality of fourth touch data based on an area compensation method of a plurality of second areas to obtain a plurality of second touch data includes: determining data compensation parameters based on the area compensation method of a plurality of second areas; performing data compensation on a plurality of fourth touch data according to the data compensation parameters to obtain a plurality of second touch data.
[0143] Exemplarily, the process of determining data compensation parameters based on regional compensation of multiple second areas includes: traversing each second area, and when the currently traversed second area is compensated, determining the data compensation sub-parameter corresponding to the fourth touch data corresponding to the second area according to the ratio of the area of the compensated area corresponding to the second area to the area of the second area; after traversing all the second areas, obtaining data compensation parameters including at least one data compensation sub-parameter corresponding to the fourth touch data.
[0144] Exemplarily, the data compensation parameter includes at least one data compensation sub-parameter corresponding to the fourth touch data, and the data compensation sub-parameter corresponding to any fourth touch data is used to indicate how to compensate the any fourth touch data. The process of performing data compensation on multiple fourth touch data according to the data compensation parameter to obtain multiple second touch data includes: traversing each fourth touch data, if the currently traversed fourth touch data does not correspond to the data compensation sub-parameter, then directly taking the fourth touch data as a second touch data; if the currently traversed fourth touch data corresponds to the data compensation sub-parameter, then compensating the fourth touch data according to the compensation method indicated by the data compensation sub-parameter corresponding to the fourth touch data, and taking the touch data obtained after compensation as a second touch data; after traversing all the fourth touch data, multiple second touch data are obtained. In other words, a second touch data may be a fourth touch data itself, or may be data obtained after compensating a fourth touch data.
[0145] Exemplarily, compensating a fourth touch data refers to multiplying the fourth touch data by a certain coefficient. For example, assuming that the data compensation sub-parameter corresponding to the fourth touch data indicates that the fourth touch data is enlarged by 1.2 times, then if the fourth touch data is 100, after compensating the fourth touch data, a second touch data of 120 is obtained.
[0146] Data calibration is achieved through data segmentation, data integration and data compensation. The data calibration has a high standardization, which is conducive to improving the reliability of data calibration, thereby improving the reliability of multiple second touch data obtained after data calibration and improving the reliability of the determined touch position.
[0147] For example, the process of acquiring the second touch data can be as follows: Figure 7 Acquire a plurality of first touch data; perform data segmentation on the plurality of first touch data to obtain a plurality of third touch data; perform data integration on the plurality of third touch data to obtain a plurality of fourth touch data; perform data compensation on the plurality of fourth touch data to obtain a plurality of second touch data.
[0148] In step 203, based on the plurality of second touch data, a touch position of the touch operation on the touch screen is determined.
[0149] The second touch data is touch data corresponding to a regular area. Determining the touch position based on the touch data corresponding to the regular area can reduce interference from irregular areas, improve the accuracy of the determined touch position, and further improve the response accuracy of the touch screen.
[0150] In a possible implementation, based on the plurality of second touch data, the process of determining the touch position of the touch operation on the touch screen includes the following steps 2031 to 2033:
[0151] Step 2031: Perform touch recognition on the plurality of second touch data, and determine a target calibration area from the plurality of calibration areas according to the recognition result.
[0152] Exemplarily, any touch recognition algorithm may be used to perform touch recognition on multiple second touch data. For example, different touch recognition algorithms may perform touch recognition based on different principles and technologies (such as capacitance difference, multi-touch and pattern recognition, etc.).
[0153] In an exemplary embodiment, the recognition result may include second touch data satisfying the touch condition among the plurality of second touch data. For example, the touch data satisfying the touch condition may refer to touch data greater than a reference threshold.
[0154] For example, a method of determining a target calibration area from a plurality of calibration areas according to the recognition result may be: taking each calibration area corresponding to each second touch data satisfying the touch condition as a target calibration area.
[0155] Exemplarily, the method of determining the target calibration area from the multiple calibration areas according to the recognition result may also be: determining at least one touch area according to the recognition result, and one touch area includes at least one calibration area; for any touch area, determining the centroid corresponding to the any touch area according to the second touch data corresponding to at least one calibration area in the any touch area, and taking the calibration area where the centroid is located as the target calibration area corresponding to the any touch area. Exemplarily, different touch areas may refer to areas touched by different fingers of the user.
[0156] Step 2032: Determine the target display coordinates according to the first logical coordinates of the target calibration area, the first logical coordinates are used to locate the position of the target calibration area in the multiple calibration areas, and the target display coordinates are the coordinates of the pixels touched by the touch operation in the touch screen.
[0157] In an exemplary embodiment, the target display coordinates are determined based on the first logical coordinates of the target calibration area, including: according to a first conversion relationship between the logical coordinates of the calibration area and the logical coordinates of the sensing area, the first logical coordinates are converted into second logical coordinates of the target sensing area, the second logical coordinates being used to locate the position of the target sensing area in multiple sensing areas; according to a second conversion relationship between the logical coordinates of the sensing area and the display coordinates, the second logical coordinates are converted into the target display coordinates.
[0158] The first conversion relationship is used to indicate how to convert the logical coordinates of the calibration area into the logical coordinates of the sensing area. Exemplarily, the first conversion relationship can be determined by a technician according to the way of converting the sensing area into the calibration area.
[0159] The embodiment of the present application does not limit the representation method of the first conversion relationship. For example, the first conversion relationship can be represented by a function; for another example, the first conversion relationship can be represented by an offset coefficient corresponding to the calibration area. The offset coefficient corresponding to the calibration area refers to the coefficient that the logical coordinates corresponding to the calibration area need to be multiplied in the process of converting the logical coordinates corresponding to the calibration area to the logical coordinates of the sensing area. For example, the offset coefficient is related to the segmentation position of the sensing area, and the offset coefficient of the calibration area determined according to the smaller segmentation area is larger.
[0160] Exemplarily, the process of converting the first logical coordinates into the second logical coordinates according to the first conversion relationship can be called the process of correcting the first logical coordinates based on the offset coefficient. Exemplarily, the correction direction brought by the offset coefficient can be as follows: Figure 8 As shown. Taking the center line of the regular sensing area as the reference, the correction directions are the two directions away from the center line. In the same correction direction, the area farther away from the center line has a smaller corresponding offset coefficient (the lighter the color of the arrow, the smaller the offset coefficient).
[0161] After obtaining the second logical coordinates, the second logical coordinates need to be converted into display coordinates of the touch screen, and the conversion process is implemented based on the second conversion relationship. The second conversion relationship can be obtained based on the touch screen pixel information and the sensing area arrangement information. The process of converting the logical coordinates of the sensing area into the target display coordinates can be understood as a process of enlarging the logical coordinates of the sensing area according to the pixel spacing between the sensing areas, and converting the scale on the logical coordinates into the scale of the pixels on the touch screen.
[0162] In an exemplary embodiment, determining the target display coordinates according to the first logical coordinates of the target calibration area includes: converting the first logical coordinates into the target display coordinates according to the third conversion relationship between the logical coordinates and the display coordinates of the calibration area. If the electronic device directly records the third conversion relationship between the logical coordinates and the display coordinates of the calibration area after determining the calibration area, the first logical coordinates can be directly converted into the target display coordinates according to the third conversion relationship, thereby improving the conversion efficiency.
[0163] For example, the number of target calibration areas may be one or more. If the number of target calibration areas is more than one, it is necessary to determine the target display coordinates corresponding to each target calibration area according to step 2032. For example, the number of target display coordinates corresponding to each target calibration area is one or more.
[0164] Step 2033: Determine the touch position of the touch operation on the touch screen based on the target display coordinates.
[0165] Exemplarily, when there are multiple target calibration areas, determining the touch position of the touch operation on the touch screen based on the target display coordinates means determining the touch position of the touch operation on the touch screen based on the target display coordinates corresponding to each target calibration area.
[0166] In an exemplary embodiment, the position corresponding to the target display coordinates is directly used as the touch position of the touch operation on the touch screen to improve the efficiency of determining the touch position.
[0167] In an exemplary embodiment, the process of determining the touch position of a touch operation on a touch screen based on the target display coordinates includes the following steps a to c:
[0168] Step a: Determine the target expansion area where the target display coordinates are located among the n expansion areas. The n expansion areas are obtained by dividing the logical coordinate area. The logical coordinate area is the area covered by all display coordinates obtained by converting the logical coordinates of all sensing areas. n is an integer greater than 1.
[0169] In an exemplary embodiment, the origin of the logical coordinates of the sensing area is the center point of the sensing area in the first row and first column on the touch screen, and the origin of the touch screen display coordinates is the upper left corner of the touch screen, that is, the origin of the logical coordinates of the sensing area is not aligned with the origin of the touch screen display coordinates. Therefore, the logical coordinate area is smaller than the display area of the touch screen, that is, the logical coordinate area does not cover the entire display area of the touch screen. For example, the relationship between the logical coordinate area and the display area can be seen in Fig. 9 .
[0170] In an exemplary embodiment, the value of n can be flexibly set based on experience. The n expansion areas are arranged radially outward from the center of the logical coordinate area, that is, the first expansion area is the area where the center of the logical coordinate area is located, and the jth expansion area is located outside the j-1th expansion area, where j is a positive integer less than or equal to n. For example, taking the value of n as 3, the arrangement relationship of the first expansion area (area A), the second expansion area (area B), and the third expansion area (area C) can be seen in Fig.10 .
[0171] Each of the n expansion areas corresponds to an expansion coefficient. Exemplarily, the expansion coefficient corresponding to the i-th expansion area is used to align the i-th expansion area with the i+1-th expansion area, where i is a positive integer less than n; the expansion coefficient corresponding to the n-th expansion area is used to align the n-th expansion area with the display area. Exemplarily, aligning two areas means expanding the boundary of the area with a smaller area so that it coincides with the boundary of the area with a larger area.
[0172] For example, the expansion coefficients corresponding to different expansion areas may be the same or different, which is related to the way the expansion areas are divided, and the embodiments of the present application are not limited to this.
[0173] Exemplarily, there are multiple target display coordinates, and determining the target expansion area where the target display coordinate is located in the n expansion areas means respectively determining the target expansion area where each target display coordinate is located in the n expansion areas.
[0174] Step b: Expand the target display coordinates according to the expansion coefficient corresponding to the target expansion area to obtain a plurality of expansion coordinates.
[0175] Exemplarily, there are multiple target display coordinates, and the target display coordinates are expanded according to the expansion coefficient corresponding to the target expansion area where each target display coordinate is located, to obtain multiple expanded coordinates corresponding to the target display coordinate. The principle of obtaining multiple expanded coordinates corresponding to each target display coordinate is the same. Next, a process of obtaining multiple expanded coordinates corresponding to a target display coordinate is described by taking one target display coordinate as an example.
[0176] In an exemplary embodiment, the process of expanding the target display coordinates according to the expansion coefficient corresponding to the target expansion area to obtain multiple expanded coordinates includes: when the target expansion area is the i-th expansion area, expanding the target display coordinates according to the expansion coefficient corresponding to the i-th expansion area to obtain multiple first coordinates; if there is a first coordinate in the multiple first coordinates that is in the i+1-th expansion area, expanding the multiple first coordinates according to the expansion coefficient corresponding to the i+1-th expansion area to obtain multiple second coordinates; if the multiple second coordinates are all in the i+1-th expansion area or i+1 is equal to n, using the multiple second coordinates as multiple expanded coordinates.
[0177] Exemplarily, the process of expanding the target display coordinates according to the expansion coefficient corresponding to the i-th expansion area to obtain multiple expansion coordinates includes: determining a square area with the target display coordinates as the center and the expansion coefficient corresponding to the i-th expansion area as the side length, and using the coordinates of the pixels in the square area as the multiple expansion coordinates.
[0178] For example, the arrangement of n expansion areas is as follows Fig.10 Taking the example shown, the logical coordinate area is divided into three areas, A, B, and C, and a different expansion coefficient is used for each area. In the first stage, the coordinates in area A are expanded for the first time, and the expansion coefficient a is used for the first expansion to obtain the coordinates after the first expansion; if the coordinates after the first stage expansion enter the more peripheral area B, a second expansion is performed, and the coefficient b is used for the second expansion; then, if the coordinates after two expansions enter the outermost area C, a third expansion is performed, and the coefficient c is used for the third expansion. After multiple stages of expansion, the final coordinates are obtained, and their coordinate area is aligned with the display area. In other words, the embodiment of the present application provides a multi-stage edge expansion method to ensure the expansion effect.
[0179] Step c: determining the touch position of the touch operation on the touch screen based on the positions corresponding to the multiple expanded coordinates on the touch screen.
[0180] Exemplarily, there are multiple target display coordinates, and positions on the touch screen corresponding to multiple expanded coordinates corresponding to each target display coordinate are determined as touch positions of the touch operation on the touch screen.
[0181] For example, the process of determining the expansion coordinates according to the second logical coordinates may be referred to as an edge expansion process. The edge expansion process may be as follows: Fig.11 After obtaining the second logical coordinate, the second logical coordinate is converted into the target display coordinate according to the second conversion relationship; the logical coordinate area is divided into n expansion areas; the target display coordinate is expanded according to the n expansion areas to obtain multiple expansion coordinates. The edge expansion module enables the display area of the entire touch screen to report points normally.
[0182] In an exemplary embodiment, after the touch position is determined, the touch position can be input into a post-processing module for filtering, touch point tracking, touch point coordinate reporting, waterproofing, and accidental touch prevention.
[0183] For example, the process of touch position detection can be based on Fig.12 The module implementation shown. The pre-processing module is responsible for processing the original touch data, including some filtering algorithms and compensation algorithms. After obtaining the pre-processed touch data, it is sent to the data calibration module. The data calibration module will calibrate the touch data according to the information of the special-shaped area of the touch screen, the sensor arrangement information and the sensor size information, and record the offset coefficient of the logical coordinates of the sensing area. After obtaining the calibrated touch data, it is sent to the touch algorithm module. The touch algorithm module searches for the touch area and calculates its centroid coordinates after determining the touch area. When calculating the centroid coordinates, it needs to be corrected in combination with the offset coefficient to obtain the final logical coordinates. After obtaining the logical coordinates, it is sent to the edge expansion module. The edge expansion module first converts the logical coordinates into display coordinates according to the pixel information and sensor information of the touch screen. After obtaining the preliminary display coordinates, the display coordinates are further corrected according to the multiple expansion areas divided, and different expansion coefficients are used for different expansion areas. After obtaining the corrected display coordinates, it is sent to the post-processing module for post-processing.
[0184] The touch position detection method provided in the embodiment of the present application first divides, integrates and compensates the touch data corresponding to the irregular sensing area, and then uses a multi-stage edge expansion algorithm to allow the edge area of the touch screen to report points normally, while improving the accuracy of reporting points in the edge area and improving the touch effect of the irregular touch area. Based on the touch position detection method provided in the embodiment of the present application, the touch screen with irregular sensor shape and arrangement can be effectively calibrated, and the reporting point coordinates of the edge area of the touch screen can be effectively calculated, which can solve the problem of inaccurate calculation of the edge coordinates of the touch screen.
[0185] The touch position detection method provided in the embodiment of the present application can solve the problem of invalid touch area and realize more accurate edge touch; in addition, it can also cope with scenarios such as irregular touch screens and irregular sensors, improve the problem of decreased touch accuracy due to hardware design limitations, and improve the user's touch experience.
[0186] In the embodiment of the present application, when there are irregular areas among the multiple sensing areas, after obtaining multiple first touch data according to the touch operation, the multiple first touch data are first calibrated, and then the touch position is determined according to the second touch data obtained after the data calibration. The second touch data is the touch data corresponding to the regular area, and the touch position is determined according to the touch data corresponding to the regular area, which can reduce the interference of the irregular area, improve the accuracy of the determined touch position, and thus improve the response accuracy of the touch screen.
[0187] See also Fig.13 , an embodiment of the present application provides a touch display driving device, the device includes a processor 1301, and the processor 1301 is configured to:
[0188] Based on the touch operation on the touch screen, a plurality of first touch data are acquired, the plurality of first touch data correspond to a plurality of sensing areas, and at least one of the plurality of sensing areas is an irregular area;
[0189] Performing data calibration on the plurality of first touch data to obtain a plurality of second touch data, wherein the plurality of second touch data corresponds to a plurality of calibration areas, the plurality of calibration areas are all regular areas, and the plurality of calibration areas are determined based on the plurality of sensing areas;
[0190] Based on the plurality of second touch data, a touch position of the touch operation on the touch screen is determined.
[0191] In a possible implementation, the processor 1301 is configured to:
[0192] Performing data segmentation on the plurality of first touch data to obtain a plurality of third touch data;
[0193] integrating the plurality of third touch data to obtain a plurality of fourth touch data;
[0194] Data compensation is performed on the plurality of fourth touch data to obtain a plurality of second touch data.
[0195] In a possible implementation, the processor 1301 is configured to:
[0196] Performing touch recognition on the plurality of second touch data, and determining a target calibration area from the plurality of calibration areas according to the recognition result;
[0197] Determine the target display coordinates according to the first logical coordinates of the target calibration area, the first logical coordinates are used to locate the position of the target calibration area in the multiple calibration areas, and the target display coordinates are the coordinates of the pixels touched by the touch operation in the touch screen;
[0198] The touch position of the touch operation on the touch screen is determined based on the target display coordinates.
[0199] In a possible implementation, the processor 1301 is configured to:
[0200] According to a first conversion relationship between the logical coordinates of the calibration area and the logical coordinates of the sensing area, the first logical coordinates are converted into second logical coordinates of the target sensing area, where the second logical coordinates are used to locate the position of the target sensing area in the plurality of sensing areas;
[0201] According to a second conversion relationship between the logical coordinates and the display coordinates of the sensing area, the second logical coordinates are converted into target display coordinates.
[0202] In a possible implementation, the processor 1301 is configured to:
[0203] Determine the target expansion area where the target display coordinates are located in the n expansion areas, the n expansion areas are obtained by pre-dividing the logical coordinate area, the logical coordinate area is the area covered by all display coordinates obtained by converting the logical coordinates of all sensing areas, and n is an integer greater than 1;
[0204] Expand the target display coordinates according to the expansion coefficient corresponding to the target expansion area to obtain multiple expansion coordinates;
[0205] Based on the positions corresponding to the multiple expanded coordinates in the touch screen, a touch position of the touch operation in the touch screen is determined.
[0206] In a possible implementation, the processor 1301 is configured to:
[0207] Based on the touch operation, a plurality of raw touch data are obtained;
[0208] Preprocessing is performed on a plurality of original touch data to obtain a plurality of first touch data.
[0209] For example, Figure 1 The touch processing module shown in FIG. 1 is a module in the processor 1301 , and the processor 1301 can implement the above functions through the touch processing module.
[0210] The device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process and beneficial effects are detailed in the method embodiments, which will not be repeated here.
[0211] See also Fig.14 , an embodiment of the present application provides another touch display driving device, the device comprising:
[0212] The sensing module 1401 is used to obtain a plurality of first touch data based on a touch operation on the touch screen, where the plurality of first touch data corresponds to a plurality of sensing areas, and at least one of the plurality of sensing areas is an irregular area;
[0213] A correction module 1402 is used to perform data calibration on the plurality of first touch data to obtain a plurality of second touch data, wherein the plurality of second touch data corresponds to a plurality of calibration areas, the plurality of calibration areas are all regular areas, and the plurality of calibration areas are determined based on the plurality of sensing areas;
[0214] The determination module 1403 is used to determine a touch position of the touch operation on the touch screen based on the plurality of second touch data.
[0215] In one possible implementation, the correction module 1402 is used to perform data segmentation on the multiple first touch data to obtain multiple third touch data; perform data integration on the multiple third touch data to obtain multiple fourth touch data; and perform data compensation on the multiple fourth touch data to obtain multiple second touch data.
[0216] In one possible implementation, the determination module 1403 is used to perform touch recognition on multiple second touch data, and determine a target calibration area in multiple calibration areas based on the recognition result; determine the target display coordinates based on the first logical coordinates of the target calibration area, the first logical coordinates are used to locate the position of the target calibration area in the multiple calibration areas, and the target display coordinates are the coordinates of the pixels touched by the touch operation in the touch screen; determine the touch position of the touch operation in the touch screen based on the target display coordinates.
[0217] In one possible implementation, the determination module 1403 is used to convert the first logical coordinates into the second logical coordinates of the target sensing area according to a first conversion relationship between the logical coordinates of the calibration area and the logical coordinates of the sensing area, the second logical coordinates being used to locate the position of the target sensing area in multiple sensing areas; and convert the second logical coordinates into the target display coordinates according to a second conversion relationship between the logical coordinates of the sensing area and the display coordinates.
[0218] In one possible implementation, the determination module 1403 is used to determine the target expansion area where the target display coordinates are located among the n expansion areas, where the n expansion areas are obtained by pre-dividing the logical coordinate area, and the logical coordinate area is the area covered by all display coordinates obtained by converting the logical coordinates of all sensing areas, and n is an integer greater than 1; according to the expansion coefficient corresponding to the target expansion area, the target display coordinates are expanded to obtain multiple expansion coordinates; based on the corresponding positions of the multiple expansion coordinates in the touch screen, the touch position of the touch operation in the touch screen is determined.
[0219] In a possible implementation, the sensing module 1401 is configured to obtain a plurality of original touch data based on a touch operation; and pre-process the plurality of original touch data to obtain a plurality of first touch data.
[0220] The device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process and beneficial effects are detailed in the method embodiments, which will not be repeated here.
[0221] Fig.15 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may be: a smart phone, a tablet computer, a player, a laptop computer or a desktop computer.
[0222] like Fig.15 As shown, the electronic device includes a touch display panel 1501 and a touch display driving device 1502, and the touch display driving device 1502 is used to provide a touch position detection signal to the touch display panel 1501. For example, the touch display driving device 1502 can be Fig.13 or Fig.14 The touch display driving device shown.
[0223] Exemplarily, the touch display driving device 1502 includes a processor, which can Figure 2 The touch position detection method shown determines the touch position, and then generates a touch position detection signal to be provided to the touch display panel 1501 according to the touch position. The embodiment of the present application does not limit the form of the touch position detection signal, as long as it can indicate the specific touch position. Exemplarily, after acquiring the touch position detection signal, the touch display panel 1501 controls the display content of the touch screen according to the touch position detection signal.
[0224] Those skilled in the art will understand that Fig.15 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine some components, or adopt a different component arrangement.
[0225] In an exemplary embodiment, a computer-readable storage medium is further provided, wherein at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded by a processor and executes any of the above touch position detection methods. Fig.13 Processor 1301 is shown in FIG.
[0226] In one possible implementation, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0227] In an exemplary embodiment, a computer program or a computer program product is also provided, the computer program or the computer program product comprising computer instructions, the computer instructions are loaded by a processor and execute any of the above touch position detection methods. Fig.13 Processor 1301 is shown in FIG.
[0228] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the touch operation involved in this application is obtained with full authorization.
[0229] The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the application described here can be implemented in an order other than those illustrated or described here. The embodiments described in the above exemplary embodiments do not represent all embodiments consistent with the application. On the contrary, they are only examples of devices and methods consistent with some aspects of the application.
[0230] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0231] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A touch position detection method, characterized in that: The method comprises: Based on the touch operation on the touch screen, a plurality of first touch data are acquired, wherein the plurality of first touch data correspond to a plurality of sensing areas, and at least one of the plurality of sensing areas is an irregular area; Performing data calibration on the plurality of first touch data to obtain a plurality of second touch data, wherein the plurality of second touch data corresponds to a plurality of calibration areas, the plurality of calibration areas are all regular areas, and the plurality of calibration areas are determined based on the plurality of sensing areas; Based on the plurality of second touch data, a touch position of the touch operation on the touch screen is determined.
2. The method according to claim 1, characterized in that The step of performing data calibration on the plurality of first touch data to obtain a plurality of second touch data includes: Performing data segmentation on the plurality of first touch data to obtain a plurality of third touch data; Performing data integration on the plurality of third touch data to obtain a plurality of fourth touch data; Data compensation is performed on the plurality of fourth touch data to obtain the plurality of second touch data.
3. The method according to claim 1, characterized in that The determining, based on the plurality of second touch data, a touch position of the touch operation on the touch screen includes: Performing touch recognition on the plurality of second touch data, and determining a target calibration area among the plurality of calibration areas according to the recognition result; Determining target display coordinates according to first logical coordinates of the target calibration area, wherein the first logical coordinates are used to locate the position of the target calibration area in the multiple calibration areas, and the target display coordinates are coordinates of pixels touched by the touch operation in the touch screen; A touch position of the touch operation on the touch screen is determined based on the target display coordinates.
4. The method according to claim 3, characterized in that The step of determining the target display coordinates according to the first logical coordinates of the target calibration area includes: According to a first conversion relationship between the logical coordinates of the calibration area and the logical coordinates of the sensing area, converting the first logical coordinates into second logical coordinates of the target sensing area, wherein the second logical coordinates are used to locate the position of the target sensing area in the plurality of sensing areas; According to a second conversion relationship between the logical coordinates and the display coordinates of the sensing area, the second logical coordinates are converted into the target display coordinates.
5. The method according to claim 3, characterized in that: The determining the touch position of the touch operation on the touch screen based on the target display coordinates includes: Determine a target expansion area where the target display coordinates are located in n expansion areas, wherein the n expansion areas are obtained by pre-dividing the logical coordinate area, the logical coordinate area is an area covered by all display coordinates obtained by converting the logical coordinates of all sensing areas, and n is an integer greater than 1; Expanding the target display coordinates according to the expansion coefficient corresponding to the target expansion area to obtain a plurality of expansion coordinates; Based on the positions corresponding to the multiple expanded coordinates in the touch screen, a touch position of the touch operation in the touch screen is determined.
6. The method according to any one of claims 1 to 5, characterized in that: The acquiring of a plurality of first touch data based on the touch operation on the touch screen includes: Based on the touch operation, obtaining a plurality of original touch data; The plurality of original touch data are pre-processed to obtain the plurality of first touch data.
7. A touch display driving device, characterized in that: The apparatus comprises a processor configured to: Based on the touch operation on the touch screen, a plurality of first touch data are acquired, wherein the plurality of first touch data correspond to a plurality of sensing areas, and at least one of the plurality of sensing areas is an irregular area; Performing data calibration on the plurality of first touch data to obtain a plurality of second touch data, wherein the plurality of second touch data corresponds to a plurality of calibration areas, the plurality of calibration areas are all regular areas, and the plurality of calibration areas are determined based on the plurality of sensing areas; Based on the plurality of second touch data, a touch position of the touch operation on the touch screen is determined.
8. The device according to claim 7, characterized in that The processor is configured to: Performing data segmentation on the plurality of first touch data to obtain a plurality of third touch data; Performing data integration on the plurality of third touch data to obtain a plurality of fourth touch data; Data compensation is performed on the plurality of fourth touch data to obtain the plurality of second touch data.
9. The device according to claim 7, characterized in that The processor is configured to: Performing touch recognition on the plurality of second touch data, and determining a target calibration area among the plurality of calibration areas according to the recognition result; Determining target display coordinates according to first logical coordinates of the target calibration area, wherein the first logical coordinates are used to locate the position of the target calibration area in the multiple calibration areas, and the target display coordinates are coordinates of pixels touched by the touch operation in the touch screen; A touch position of the touch operation on the touch screen is determined based on the target display coordinates.
10. The device according to claim 9, characterized in that The processor is configured to: According to a first conversion relationship between the logical coordinates of the calibration area and the logical coordinates of the sensing area, converting the first logical coordinates into second logical coordinates of the target sensing area, wherein the second logical coordinates are used to locate the position of the target sensing area in the plurality of sensing areas; According to a second conversion relationship between the logical coordinates and the display coordinates of the sensing area, the second logical coordinates are converted into the target display coordinates.
11. The device according to claim 9, characterized in that The processor is configured to: Determine a target expansion area where the target display coordinates are located in n expansion areas, wherein the n expansion areas are obtained by pre-dividing the logical coordinate area, the logical coordinate area is an area covered by all display coordinates obtained by converting the logical coordinates of all sensing areas, and n is an integer greater than 1; Expanding the target display coordinates according to the expansion coefficient corresponding to the target expansion area to obtain a plurality of expansion coordinates; Based on the positions corresponding to the multiple expanded coordinates in the touch screen, a touch position of the touch operation in the touch screen is determined.
12. The device according to any one of claims 7 to 11, characterized in that: The processor is configured to: Based on the touch operation, obtaining a plurality of original touch data; The plurality of original touch data are pre-processed to obtain the plurality of first touch data.
13. A touch display driving device, characterized in that: The device comprises: A sensing module, configured to obtain a plurality of first touch data based on a touch operation in the touch screen, wherein the plurality of first touch data corresponds to a plurality of sensing areas, and at least one of the plurality of sensing areas is an irregular area; a correction module, configured to perform data calibration on the plurality of first touch data to obtain a plurality of second touch data, wherein the plurality of second touch data corresponds to a plurality of calibration areas, the plurality of calibration areas are all regular areas, and the plurality of calibration areas are determined based on the plurality of sensing areas; A determination module is used to determine a touch position of the touch operation on the touch screen based on the plurality of second touch data.
14. An electronic device, characterized in that: include: Touch display panel; And the touch display driving device according to any one of claims 7 to 12, or the touch display driving device according to claim 13, wherein the touch display driving device is used to provide a touch position detection signal to the touch display panel.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one computer program, and the at least one computer program is loaded by a processor to execute the touch position detection method according to any one of claims 1 to 6.