Contact correction method of infrared screen and related device

The method adjusts touch point sizes on infrared screens by analyzing interference from larger touch points and pressure, improving classification accuracy and reducing false touch errors.

CN120315604APending Publication Date: 2025-07-15HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410058880.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-15
Publication Date
2025-07-15

AI Technical Summary

Technical Problem

Due to hardware limitations on the infrared screen, the contact response is abnormal, resulting in inaccurate judgment of the wrong touch scene, affecting the anti-fault touch effect and the coordinated interaction performance of the handwriting.

Method used

By obtaining the contact information that appears successively, adjust the size of the contacts after being displayed according to preset conditions, considering the impact of infrared light occlusion and screen recesses, the contact size is corrected to improve classification accuracy.

Benefits of technology

It improves the accuracy of infrared screen contact classification, improves the effect of anti-miss touch and coordinated interaction between handwriting, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120315604A_ABST
    Figure CN120315604A_ABST
Patent Text Reader

Abstract

A contact correction method for an infrared screen is used for correcting the size of a contact detected by the infrared screen and improving the accuracy of classifying the contact by the infrared screen. In the method, for two successively obtained contacts, under the condition that whether the area of the first obtained contact is greater than a first threshold value or whether the pressure applied by the first obtained contact is greater than a second threshold value, it can be determined that the first obtained contact has an influence on the size of the later obtained contact; and the size of the obtained contact is adjusted from the aspect that the size of the contact is influenced by infrared shielding or the size of the contact is influenced by screen depression, so that correction of the size of the contact is realized, and tasks such as accurate contact classification and the like can be subsequently realized based on the corrected size of the contact.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of touch screens, and in particular, to a method for correcting contact points of an infrared screen and related devices. Background Art

[0002] Currently, anti-mis-touch writing features, pen-hand coordination features, or pen-hand differential interaction scenarios on touch-enabled devices such as tablet computers or conference tablets largely rely on pen-hand touch point classification technology. Specifically, the premise for implementing the above features and interactions on touch-enabled devices is to accurately classify each contact point on the touch-enabled device into a pen tip, pen cap, finger, palm, or other types, and then make differential responses based on the classification results.

[0003] Currently, some touch screens installed on touch-enabled devices are infrared technology touch screens (abbreviated as infrared screens). An infrared screen is composed of infrared emission and reception sensing elements installed on the outer frame of the screen. The infrared emission and reception sensing elements form an infrared detection network on the screen surface. An object for touch operation (such as a finger) can change the infrared rays of the contact point, and then be converted into a touch coordinate position to achieve an operation response.

[0004] Due to the hardware limitations of the infrared screen, in some cases, abnormal contact point responses may occur on the infrared screen, thus affecting the normal use of the infrared screen. For example, in some cases, the touch of a pen tip on the infrared screen may be responded as a contact point with a larger area, thus classifying the pen tip as a finger, resulting in inaccurate determination of the mis-touch scenario, and ultimately reducing the anti-mis-touch effect of the infrared screen. Summary of the Invention

[0005] This application provides a method for correcting contact points of an infrared screen, which can correct the size of the contact points detected by the infrared screen and improve the accuracy of classifying the contact points by the infrared screen.

[0006] In the first aspect of this application, a method for correcting contact points of an infrared screen is provided, which is applied to correct the area of a contact point distorted by other contact points on the infrared screen. In this method, first, first contact point information and second contact point information are obtained. Among them, both the first contact point information and the second contact point information are contact point information detected and generated by the infrared screen through infrared emission and reception sensing elements, specifically, for example, the contact point information output by the infrared screen driver. The first contact point information is used to indicate the information of the first contact point on the infrared screen, and the second contact point information is used to indicate the information of the second contact point on the infrared screen. For example, the first contact point information may be information indicating the position, size, shape, and appearance time of the first contact point, etc. And the appearance time of the first contact point on the infrared screen is earlier than that of the second contact point, that is, the first contact point appears on the infrared screen earlier than the second contact point.

[0007] Then, when the first contact information meets the preset conditions, adjust the size of the second contact based on the first contact information and the second contact information. The preset conditions include that the area of the first contact is greater than the first threshold or the pressure exerted by the first contact on the infrared screen is greater than the second threshold. That is to say, the preset conditions actually include two conditions. One condition is that the area of the first contact is greater than the first threshold, and the other condition is that the pressure exerted by the first contact on the infrared screen is greater than the second threshold. As long as the first contact information meets any one of the two conditions included in the preset conditions, the size of the second contact can be adjusted based on the first contact information and the second contact information.

[0008] In this solution, for two contacts obtained successively, in the case where the area of the contact obtained first is greater than the first threshold or the pressure exerted by the contact obtained first is greater than the second threshold, it can be determined that the contact obtained first will affect the size of the contact obtained later. Then, adjust the size of the contact obtained later from the aspect of infrared light occlusion affecting the contact size or from the aspect of screen depression affecting the contact size, so as to correct the contact size and ensure that accurate contact classification and other tasks can be achieved based on the corrected contact size subsequently.

[0009] In a possible implementation manner, the first contact information includes the position and size of the first contact, and the second contact information includes the position and size of the second contact. When the area of the first contact is greater than the first threshold, first determine the infrared light occlusion situation caused by the first contact to the second contact based on the position relationship and size relationship between the first contact and the second contact. Then, adjust the size of the second contact based on the infrared light occlusion situation. Generally speaking, for the second contact, the more infrared light is blocked on the second contact (that is, the longer the length of the axis or side of the second contact that is blocked by infrared light), the greater the area increment of the second contact, so the size of the second contact needs to be reduced by a greater extent.

[0010] That is to say, when the area of the first contact is greater than the first threshold (i.e., the first contact is a large-area contact), it can be determined that the area of the second contact will increase due to the infrared light occlusion caused by the first contact. Then, determine the infrared light occlusion situation of the first contact to the second contact based on the first contact information and the second contact information, so as to facilitate the adjustment of the size of the second contact.

[0011] In this solution, by determining the infrared light occlusion situation of the contact based on the position relationship and size relationship between the two contacts, it is possible to effectively adjust the size of the contact adaptively based on the infrared light occlusion, ensuring that the size of the adjusted contact can be closer to the actual size value of the contact.

[0012] In a possible implementation, when determining the infrared light occlusion situation caused by the first contact on the second contact, specifically, the length of the infrared light occluded by the first contact on the second contact can be determined based on the distance between the first contact and the second contact, the length and angle of the axis on the first contact, the length and angle of the axis on the second contact, and the divergence angle of the infrared lights of the infrared screen. Wherein, when the first contact and the second contact are fitted into an ellipse, the axes of the first contact and the second contact can refer to the major axis or the minor axis of the ellipse.

[0013] In this way, when adjusting the size of the second contact, the length of the axis on the second contact can be shortened based on the length of the infrared light occluded by the first contact on the second contact.

[0014] In this solution, based on the divergence angle of the infrared lights of the infrared screen itself, and information such as the length, angle, and distance of the axes on the two contacts, the infrared light occlusion situation of one contact's axis on the other contact's axis can be determined, thereby realizing the adjustment of the axis length of the contact and improving the accuracy of adjusting the size of the contact.

[0015] In a possible implementation, the length of the axis on the first contact is obtained by compensating the axis length indicated in the first contact information based on the axis calibration coefficient. The axis calibration coefficient is obtained based on the calibration steps pre-executed on the infrared screen, and the calibration steps are used to obtain the contact information feedback by the infrared screen when touched by a preset object at different angles.

[0016] That is to say, before determining the length of the infrared light occluded by the first contact on the second contact, the length of the axis of the first contact can be compensated based on the axis calibration coefficient first, and then the length of the infrared light occluded by the first contact on the second contact can be determined based on information such as the length of the axis of the first contact.

[0017] In this solution, by guiding the user to perform calibration steps on the infrared screen in advance to determine the parameter differences between the infrared screen used by the user and the standard infrared screen, the length of the contact detected by the infrared screen can be calibrated to eliminate the influence of the errors of the infrared screen itself on the adjustment of the contact size and improve the accuracy of the adjusted contact size.

[0018] In a possible implementation, when the pressure exerted by the first contact on the infrared screen is greater than the second threshold, the first depression amount corresponding to the position of the first contact on the infrared screen can be determined based on the pressure exerted by the first contact on the infrared screen. Generally speaking, the greater the pressure exerted by the first contact on the infrared screen, the greater the first depression amount corresponding to the position of the first contact.

[0019] Then, based on the first depression amount and the distance between the first contact and the second contact, determine the second depression amount corresponding to the position of the second contact on the infrared screen. Generally, the greater the distance between the first contact and the second contact, the smaller the influence of the first depression amount on the second depression amount corresponding to the position of the second contact, and the smaller the second depression amount.

[0020] Secondly, adjust the size of the second contact based on the second depression amount. Generally speaking, the greater the second depression amount corresponding to the position of the second contact, the greater the area increment of the second contact. Moreover, there will be a certain functional relationship between the screen depression amount and the area increment of the contact.

[0021] In this solution, based on the pressure applied by the contact that appears first, estimate the depression amount at the position of the contact, and then based on the distance between the two contacts that appear successively, determine the depression amount at the position of the contact that appears later. Finally, realize determining the influence of the depression amount on the area of the contact that appears later, ensuring that the size of the contact can be adjusted based on the applied pressure.

[0022] In a possible implementation, when adjusting the size of the second contact, first obtain the depression base number of the infrared screen, which is used to indicate the screen depression amount when the infrared screen is not under pressure. Then, based on the depression base number and the second depression amount caused by the pressure applied by the first contact where the second contact is located, adjust the size of the second contact.

[0023] In this solution, by simultaneously considering the depression amount of the infrared screen itself and the depression amount caused by the pressure applied by the first contact, the actual depression amount at the position of the second contact can be accurately determined. Furthermore, based on the actual depression amount at the position of the second contact, the size of the second contact can be effectively adjusted, ensuring the accuracy of the size of the second contact after adjustment.

[0024] In a possible implementation, the depression base number is obtained based on a calibration step pre-executed on the infrared screen. The calibration step is used to obtain the contact area feedback by the infrared screen when a preset object is drawn on the infrared screen. Specifically, when the depression base number of the infrared screen is fixed, when an object (such as a writing pen) is drawn on the infrared screen, the contact area corresponding to the object detected by the infrared screen is actually fixed. Moreover, there is a direct proportional relationship between the contact area corresponding to the object and the depression base number of the infrared screen, that is, the greater the depression base number of the infrared screen, the greater the contact area corresponding to the object. Therefore, based on the direct proportional relationship between the contact area corresponding to the object and the depression base number of the infrared screen, the user can be guided to draw a specific pattern on the infrared screen based on a preset object (such as a writing pen), and the depression base number of the infrared screen can be calculated by obtaining the contact area feedback by the infrared screen.

[0025] In this solution, by guiding the user to perform a calibration step on the infrared screen in advance to determine the depression base number of the infrared screen used by the user, the depression amount at the second contact point on the infrared screen can be calibrated to eliminate the influence of the depression of the infrared screen itself on the adjustment of the contact size, and improve the accuracy of the adjusted contact size.

[0026] In a possible implementation, the pressure exerted by the first contact on the infrared screen is determined based on the change in the area of the first contact within a preset time period. For example, when the palm applies pressure to the infrared screen, as the pressure applied by the palm to the infrared screen increases, the contact area between the palm and the infrared screen also increases, resulting in an increase in the contact area detected on the infrared screen within a certain time period. Therefore, based on the change in the area of the contact within a certain time period, the pressure exerted by the contact on the infrared screen can be estimated.

[0027] In this solution, by detecting the change in the contact area within a certain time period to estimate the pressure exerted by the contact on the infrared screen, it is possible to effectively detect the pressure exerted by the contact without the need to deploy additional pressure detection hardware, reduce the hardware cost of the infrared screen, and be compatible with existing infrared screens without pressure detection hardware.

[0028] In a possible implementation, the adjusted size of the second contact is used to implement one or more of the following tasks: contact classification or contact display.

[0029] In a possible implementation, the shapes of the first contact and the second contact are oval or polygonal.

[0030] The second aspect of this application provides a contact correction device for an infrared screen, including: an acquisition module for acquiring first contact information and second contact information, where the first contact information is used to indicate information about the first contact on the infrared screen, the second contact information is used to indicate information about the second contact on the infrared screen, and the appearance time of the first contact on the infrared screen is earlier than that of the second contact; a processing module for adjusting the size of the second contact based on the first contact information and the second contact information when the first contact information meets a preset condition; where the preset condition includes that the area of the first contact is greater than a first threshold or the pressure exerted by the first contact on the infrared screen is greater than a second threshold.

[0031] In a possible implementation, the first contact information includes the position and size of the first contact, and the second contact information includes the position and size of the second contact; the processing module is specifically configured to: when the area of the first contact is greater than the first threshold, determine the infrared light blocking situation caused by the first contact to the second contact based on the positional relationship and size relationship between the first contact and the second contact; and adjust the size of the second contact based on the infrared light blocking situation.

[0032] In a possible implementation, the processing module is specifically configured to: determine the length of the infrared light blocked by the first contact on the second contact based on the distance between the first contact and the second contact, the length and angle of the axis on the first contact, the length and angle of the axis on the second contact, and the divergence angle of the infrared lights of the infrared screen; and shorten the length of the axis on the second contact based on the length of the infrared light blocked by the first contact on the second contact.

[0033] In a possible implementation, the length of the axis on the first contact is obtained by compensating the axis length indicated in the first contact information based on the axis calibration coefficient; the axis calibration coefficient is obtained based on a calibration step previously performed on the infrared screen, and the calibration step is used to obtain the contact information feedback by the infrared screen when a preset object touches it at different angles.

[0034] In a possible implementation, the processing module is specifically configured to: when the pressure applied by the first contact on the infrared screen is greater than a second threshold, determine a first depression amount corresponding to the position of the first contact on the infrared screen based on the pressure applied by the first contact on the infrared screen; determine a second depression amount corresponding to the position of the second contact on the infrared screen based on the first depression amount and the distance between the first contact and the second contact; and adjust the size of the second contact based on the second depression amount.

[0035] In a possible implementation, the obtaining module is further configured to obtain a depression base number of the infrared screen, where the depression base number is used to indicate the screen depression amount when the infrared screen is not under pressure; the processing module is specifically configured to adjust the size of the second contact based on the depression base number and the second depression amount.

[0036] In a possible implementation, the depression base number is obtained based on a calibration step previously performed on the infrared screen, and the calibration step is used to obtain the contact area feedback by the infrared screen when a preset object draws on the infrared screen.

[0037] In a possible implementation, the pressure applied by the first contact on the infrared screen is determined based on the change in the area of the first contact within a preset time period.

[0038] In a possible implementation, the adjusted size of the second contact is used to implement one or more of the following tasks: contact classification or contact display.

[0039] In a possible implementation, the shapes of the first contact and the second contact are oval or polygonal.

[0040] A third aspect of the present application provides an electronic device, including: a processor and a memory; the memory is used to store computer instructions, and when the processor executes the instructions, the electronic device is enabled to execute the methods in any of the above aspects. The electronic device may include the device in the second aspect above.

[0041] In the fourth aspect of the present application, a computer-readable storage medium is provided. Instructions are stored in the computer-readable storage medium. When the instructions are run on an electronic device, the electronic device can execute the methods in any of the above aspects.

[0042] In the fifth aspect of the present application, a computer program product containing instructions is provided. When the instructions are run on an electronic device, the electronic device can execute the methods in any of the above aspects.

[0043] In the sixth aspect of the present application, a chip is provided. The chip includes a processor and a communication interface. The communication interface is used to communicate with modules outside the shown chip. The processor is used to run a computer program or instructions, so that a device installed with the chip can execute the methods in any of the above aspects.

[0044] Among them, for the technical effects brought by any of the design methods in the second to sixth aspects, reference can be made to the technical effects brought by different implementation methods in the first aspect above, which will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a schematic diagram of inaccurate contact reporting caused by infrared light occlusion provided by an embodiment of the present application;

[0046] Figure 2 It is a schematic diagram of inaccurate contact reporting caused by accidental touch and pressing provided by an embodiment of the present application;

[0047] Figure 3 It is a schematic diagram of the structure of an electronic device 300 provided by an embodiment of the present application;

[0048] Figure 4 It is a schematic diagram of the flow of a method for correcting contacts of an infrared screen provided by an embodiment of the present application;

[0049] Figure 5 It is a schematic diagram of the flow of adjusting the size of the second contact provided by an embodiment of the present application;

[0050] Figure 6 It is a schematic diagram of the overall flow of correcting the size of contacts on an infrared screen provided by an embodiment of the present application;

[0051] Figure 7 It is a schematic diagram of the calibration steps executed by a user for an infrared light compensation algorithm provided by an embodiment of the present application;

[0052] Figure 8 It is a schematic diagram of the flow of determining the long-axis calibration coefficient on an infrared screen provided by an embodiment of the present application;

[0053] Figure 9Schematic flow diagram of an infrared light occlusion distortion compensation algorithm provided by an embodiment of the present application;

[0054] Figure 10 Schematic diagram of the long-axis influence intercept and projection distance caused by the infrared light occlusion of contact point P1 on contact point P2 provided by an embodiment of the present application;

[0055] Figure 11 Calibration steps for a screen depression compensation algorithm provided by an embodiment of the present application;

[0056] Figure 12 Schematic flow diagram of the calibration process for the depression base number of an infrared screen provided by an embodiment of the present application;

[0057] Figure 13 Pre-calibration steps for the depression base number provided by an embodiment of the present application;

[0058] Figure 14 Schematic flow diagram of the process for compensating contact points affected by depression provided by an embodiment of the present application;

[0059] Figure 15 Schematic structural diagram of a contact correction device for an infrared screen provided by an embodiment of the present application;

[0060] Figure 16 Schematic structural diagram of a computer-readable storage medium provided by an embodiment of the present application. Specific embodiments

[0061] The embodiments of the present application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Those of ordinary skill in the art can understand that with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0062] Terms such as "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such used data can be interchanged under appropriate circumstances so that the embodiments described here can be implemented in an order different from that shown or described here.

[0063] In addition, the terms "comprising", "having", and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules need not be limited to those steps or modules clearly listed, but may include other steps or modules not clearly listed or inherent to these processes, methods, products, or devices. The naming or numbering of steps that appear in this application does not mean that the steps in the method flow must be executed in the chronological / logical order indicated by the naming or numbering. The named or numbered process steps can be changed in the order of execution according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.

[0064] For ease of understanding, the technical terms involved in the embodiments of this application will be introduced below.

[0065] (1) Infrared screen

[0066] An infrared screen is short for an infrared technology touch screen. An infrared screen is composed of infrared emission and reception sensing elements installed on the outer frame of the screen. The infrared emission and reception sensing elements form an infrared detection network on the screen surface. An object for touch operation (such as a finger) can change the infrared rays at the contact point, which are then converted into the coordinate position of the touch to achieve the response of the operation.

[0067] Specifically, an infrared screen densely arranges an infrared matrix in the X and Y directions in front of the screen. By continuously scanning whether there is any infrared ray blocked by an object, it detects and locates the user's touch. An infrared screen installs an outer frame in front of the display, and there is a circuit board designed in the outer frame, so that infrared emission tubes and infrared reception tubes are arranged on the four sides of the screen, corresponding one by one to form a vertical and horizontal cross infrared matrix. After scanning a full circle, if all the infrared pairs are unobstructed, the green light is on, indicating that everything is normal.

[0068] When there is a touch, a finger or other object will block the vertical and horizontal infrared rays passing through that position. When the infrared screen scans and is sure that one infrared ray is blocked, the red light is on, indicating that there is an infrared ray blocked and there may be a touch. At the same time, it immediately switches to another coordinate to scan again. If it is found that another infrared ray on another axis is also blocked, the yellow light is on, indicating that a touch is detected, and the positions of the two infrared pairs that are found to be blocked are reported, and the position of the touch point on the screen is calculated and determined through calculation.

[0069] (2) Reporting point

[0070] A reporting point refers to the contact point information reported by the infrared screen driver to the system after processing the touch signal.

[0071] Currently, the contact classification technology based on infrared screens and passive pens mainly distinguishes between large-area false touch contacts such as pen tips, fingers, and palms based on contact area and the long and short axis information of the contacts, so as to achieve the purposes of preventing false touch writing, pen-hand coordination, and differential interaction between the pen and the hand.

[0072] Through research by the applicant, it is found that due to the hardware limitations of the infrared screen, the infrared light occlusion formed by the touch of the hand or other objects will affect the reporting of nearby contacts, causing distortion and misclassification of nearby contacts, resulting in abnormal responses of nearby contacts. For example, when the user's wrist or arm touches the screen by mistake, the touch of the pen tip on the infrared screen will be responded as a larger contact, which may cause the pen tip to be misclassified as a finger on the large infrared screen, resulting in inaccurate determination of the false touch scenario and reducing the false touch prevention effect. In the scenarios of pen-hand coordination or differential interaction between multiple people's pens and hands, the influence of hand touch on the reporting of nearby pen tip contacts will also cause the pen tip to be misclassified as a finger and thus not receive the correct response.

[0073] Specifically, when there are large-area contacts (such as contacts caused by the palm, arm, or sleeve) on the infrared screen, due to the infrared light occlusion factor, the reported area of other contacts detected in the area near the large-area contact will increase significantly. Exemplarily, please refer to Figure 1 , Figure 1 which is a schematic diagram of inaccurate contact reporting caused by infrared light occlusion provided by an embodiment of the present application. As Figure 1 shown, a large-area contact is formed by pressing the palm surface. There is an area with inaccurate contact reporting near the palm surface press. Most of the infrared light is occluded in this area, so the infrared light distribution is relatively sparse. Smaller-area contacts existing in the area with inaccurate contact reporting, such as pen tip contacts, will have part of the infrared light reception blocked by the nearby large-area contact, resulting in a significant increase in the long or short axis of the contact compared to the actual situation. Moreover, the larger the area of the large-area contact, the greater the influence range of the infrared light occlusion it forms. The farther the new contact is from the large-area contact that forms the occlusion, the smaller the influence of the large-area contact, and the smaller the increment of the reported area. For new contacts falling around the large-area contact, at the same relative distance, the more the contact range is covered by the intercept of the long axis of the large-area contact, the greater the influence on the reported area.

[0074] In addition, the touch and press on the infrared screen will exacerbate the depression of the nearby screen, resulting in an increase in the reported points of the surrounding area contacts. Please refer to Figure 2 , Figure 2 which is a schematic diagram of inaccurate contact reporting caused by false touch press provided by an embodiment of the present application. As Figure 2 shown, the greater the degree of screen depression, the higher the occluded part of the pen tip. In Figure 2Among them, the screen depression degree at position 1 is the largest, so the occluded part of the pen tip at position 1 is the highest; the screen depression degree at position 2 is medium, so the occluded part of the pen tip at position 2 is in the middle position; the screen depression degree at position 3 is the smallest, so the occluded part of the pen tip at position 3 is the lowest. Also, due to the conical structure of the pen tip, the actual reporting point of the pen tip in the screen depression area is larger than the cross-sectional area of the pen tip. That is to say, applying a little pressure to the touch part will exacerbate the screen depression degree of the infrared screen, thus exacerbating the problem of the reporting point of the nearby pen tip being too large due to false touch. The contact pressing force will be reflected to a certain extent in the contact area: the greater the pressing force, the greater the screen depression degree, and the greater the impact on the contact reporting point area in the depression area. For a new contact, the farther it is from the false touch contact pressing the screen, the less affected it is by the false touch contact, and the smaller the increment of the reporting point area.

[0075] That is to say, on the infrared screen, both the infrared light occlusion and the screen depression will affect the size of the contacts detected by the infrared screen. Among them, the infrared light occlusion is caused by the large-area contacts already existing on the infrared screen, and the screen depression is caused by the contacts that generate a large touch pressure on the infrared screen.

[0076] In view of this, this embodiment provides a method for correcting contacts of an infrared screen. When the area of the previously obtained contact is greater than the first threshold or the pressure applied by the previously obtained contact is greater than the second threshold, it can be determined that the previously obtained contact will affect the size of the subsequently obtained contact. Then, the size of the subsequently obtained contact is adjusted from the aspect of the contact size affected by the infrared light occlusion or from the aspect of the contact size affected by the screen depression, so as to achieve the correction of the contact size and ensure that subsequent tasks such as accurate contact classification can be realized based on the corrected contact size.

[0077] Reference can be made to Figure 3 , Figure 3 which is a schematic structural diagram of an electronic device 300 provided by an embodiment of the present application. Among them, Figure 3 the electronic device 300 shown in Figure 3 can be used to execute the method for correcting contacts of the infrared screen provided by this embodiment. In some possible examples, the electronic device 300 can be, for example, a touch-screen device such as a tablet computer or a conference tablet. As

[0078] The communication device 302 may include a WI-FI module, a General Packet Radioservice module, a High Definition Multimedia Interface (HDMI) module, or other communication modules of wireless communication networks / wired communication networks. The communication device 302 is used to realize data interaction between the electronic device 300 and other devices. In an embodiment of the present application, the communication device 302 may also include a communication device that supports the wireless screen projection function, such as a screen projection connection unit, etc., which is not limited in the present application. In addition, according to actual needs, the above-mentioned communication device 302 may also include interfaces such as USB interfaces, serial / parallel ports, etc., which are used to realize data interaction between internal components of electronic devices, which can be determined according to the product type of the electronic device. The present application does not limit the structure contained in the communication device 302 and its communication method, which can be determined according to the actual situation.

[0079] In some embodiments, when the communication device 302 includes multiple input interfaces, such as multiple HDMI interfaces, one of the HDMI interfaces can be selected to realize the transmission of wireless screen projection data, and other HDMI interfaces can also receive other multimedia data, so that the electronic device can normally output the multimedia data received by other HDMI interfaces in non-wireless screen projection mode.

[0080] The storage device 303 can be used to store a program for implementing the contact correction method of the infrared screen described in the following method embodiments; the processing device 301 is used to load and execute the program stored in the storage device 303 to implement each step of the contact correction method of the infrared screen.

[0081] In some embodiments, the storage device 303 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device. The present application does not describe in detail the respective structures and functions of the storage device 303 and the processing device 301, which may be determined as appropriate.

[0082] The infrared screen 304 may include a touch sensing unit (i.e., an infrared emitting and receiving sensing element) for sensing touch events on the touch display panel, a display, and other devices. The infrared screen 304 is used to display the screen provided by the electronic device 300, and obtains the user's drawing operation on the screen through the touch sensing unit, thereby updating the screen. The type of the infrared screen 304 and the working principle of its display content are not described in detail in the embodiment of the present application.

[0083] It should be understood that Figure 3The structure of the electronic device shown does not limit the electronic device in the embodiments of the present application. In practical applications, the electronic device may include more or fewer components than Figure 3 shown, or combine some components, such as at least one output device like a speaker, a vibration mechanism, a lamp, etc.; at least one input device like a keyboard, a mouse, a pickup, etc. The embodiments of the present application will not list them one by one here.

[0084] Please refer to Figure 4 , Figure 4 which is a schematic flowchart of a contact correction method for an infrared screen provided by an embodiment of the present application. As Figure 4 shown, the contact correction method for the infrared screen includes the following steps 401-402.

[0085] Step 401, obtain first contact information and second contact information. The first contact information is used to indicate information about a first contact on the infrared screen, and the second contact information is used to indicate information about a second contact on the infrared screen, and the appearance time of the first contact on the infrared screen is earlier than that of the second contact.

[0086] In this embodiment, when the infrared screen detects that an object touches the surface of the infrared screen through the infrared emission and reception sensing element, the infrared screen will generate corresponding contact information based on the detection result of the infrared emission and reception sensing element to indicate the situation of the object touching the surface of the infrared screen. Among them, both the first contact information and the second contact information are contact information detected and generated by the infrared screen through the infrared emission and reception sensing element, specifically, for example, the contact information output by the infrared screen driver. After the infrared screen generates the contact information, it will send the contact information to the upper-layer application program (such as an application program for realizing anti-mis-touch writing, pen-hand coordination, and pen-hand differential interaction) so that the upper-layer application program can perform corresponding tasks based on the contact information.

[0087] Among them, the first contact information and the second contact information are respectively used to indicate information about different contacts, that is, the information about the first contact and the second contact mentioned above. And the first contact information can specifically be used to indicate the position of the first contact (such as the x-axis coordinate and y-axis coordinate of the first contact), size, shape (such as oval or rectangle), and appearance time (that is, the time when the infrared screen detects the first contact), etc. The second contact information can specifically be used to indicate the position, size, shape, and appearance time of the second contact, etc.

[0088] Generally speaking, due to the hardware characteristics of the infrared screen, the contacts on the infrared screen are usually fitted into an ellipse or a rectangle. That is, the touch of an object of any shape on the infrared screen is often considered as an ellipse or a rectangle. That is, the first contact and the second contact can specifically be an ellipse or a rectangle. In addition to a rectangle, the first contact and the second contact can also be other polygons (such as a trapezoid, a pentagon or a hexagon, etc.), which are not specifically limited herein.

[0089] Then, in the case where the contact is fitted into an ellipse or a rectangle, in the contact information, the size of the contact can be represented by information such as the area of the contact and / or the length of a specific side on the contact. For example, in the case where the contact is fitted into an ellipse, the size of the contact can be represented by the major axis and the minor axis of the ellipse, or by the major axis and the area of the ellipse. Another example is that in the case where the contact is fitted into a rectangle, the size of the contact can be represented by the length and the width of the rectangle, or by the length and the area of the rectangle.

[0090] It should be noted that in this embodiment, the appearance time of the first contact on the infrared screen is earlier than that of the second contact, that is, the first contact appears on the infrared screen before the second contact.

[0091] Step 402, when the first contact information meets a preset condition, adjust the size of the second contact based on the first contact information and the second contact information.

[0092] In this embodiment, the adjusted size of the second contact can be used to implement one or more of the following tasks: contact classification or contact display. Specifically, contact classification means classifying contacts based on the size of the contacts (such as information such as the major axis, minor axis or area of the contacts), for example, classifying contacts into types such as a pen tip, a pen barrel, a finger, a palm or a sleeve. Contact classification can also be used to further implement anti-mis-touch writing, pen-hand coordination or pen-hand differential interaction.

[0093] Among them, the preset condition includes that the area of the first contact is greater than a first threshold value or the pressure applied by the first contact on the infrared screen is greater than a second threshold value. That is to say, the preset condition actually includes two conditions, one of which is that the area of the first contact is greater than the first threshold value, and the other condition is that the pressure applied by the first contact on the infrared screen is greater than the second threshold value. As long as the first contact information meets any one of the two conditions included in the preset condition, the size of the second contact can be adjusted based on the first contact information and the second contact information.

[0094] Exemplarily, when the area of the first contact is greater than a first threshold (i.e., the first contact is a large-area contact), it can be determined that the area of the second contact increases due to the infrared light occlusion caused by the first contact. Furthermore, based on the first contact information and the second contact information, the infrared light occlusion of the first contact on the second contact can be determined, so as to facilitate the adjustment of the size of the second contact.

[0095] When the pressure exerted by the first contact on the infrared screen is greater than a second threshold, it can be determined that the area of the second contact increases due to the screen depression caused by the first contact. Furthermore, based on the first contact information and the second contact information, the influence of the screen depression caused by the first contact on the area of the second contact can be determined, so as to facilitate the adjustment of the size of the second contact.

[0096] When the area of the first contact is greater than the first threshold and the pressure exerted by the first contact on the infrared screen is greater than the second threshold, it can be determined that the area of the second contact increases due to both the infrared light occlusion and the screen depression caused by the first contact. Furthermore, the infrared light occlusion of the first contact on the second contact and the influence of the screen depression caused by the first contact on the area of the second contact are considered simultaneously, so as to facilitate the adjustment of the size of the second contact.

[0097] Specifically, please refer to Figure 5 , Figure 5 which is a schematic flowchart of a process for adjusting the size of the second contact provided by an embodiment of the present application. As Figure 5 shown, step 402 in the above embodiment may include the following steps 4021-4024.

[0098] Step 4021: Determine whether the pressure exerted by the first contact on the infrared screen is greater than the second threshold.

[0099] Generally speaking, the greater the pressure exerted by the first contact on the infrared screen, the greater the amount of screen depression caused by the first contact on the infrared screen, and the greater the area increment of the second contact caused by the amount of screen depression. In addition, the relationship between the magnitude of the pressure exerted by the contact on the infrared screen and the amount of screen depression is related to the material of the infrared screen (such as the flexibility of the infrared screen). Therefore, in this embodiment, the second threshold can be determined based on the actual situation of the infrared screen (such as the hardware of the infrared screen and the usage scenario of the infrared screen), and the present embodiment does not make specific limitations on the second threshold.

[0100] In addition, there are various ways to obtain the pressure exerted by the first contact on the infrared screen in this embodiment.

[0101] In a possible implementation manner, when hardware such as a pressure sensor is installed on the infrared screen, the pressure exerted by the first contact on the infrared screen can be obtained through the pressure sensor.

[0102] In another possible implementation, in the case where there is no hardware on the infrared screen that can directly detect pressure, the pressure exerted by the contact can be estimated based on the change in the contact area over a certain period of time. That is, the pressure exerted by the first contact on the infrared screen is determined based on the change in the area of the first contact over a preset duration. Herein, the preset duration may be related to the cycle of the infrared screen for detecting contacts, and the specific value of the preset duration is not limited in this embodiment. For example, when the cycle of the infrared screen for detecting contacts is 20 milliseconds (i.e., the contacts are detected every 20 milliseconds), the preset duration can be set to 100 milliseconds.

[0103] Specifically, when an object touches the infrared screen and exerts pressure on the infrared screen, the pressure exerted by the object on the infrared screen gradually increases (i.e., the pressure increases from 0 to a certain value), and during the process of the pressure exerted by the object on the infrared screen gradually increasing, the contact area between the object and the infrared screen also gradually increases. For example, when the palm exerts pressure on the infrared screen, as the pressure exerted by the palm on the infrared screen becomes greater and greater, the contact area between the palm and the infrared screen also becomes larger and larger, resulting in an increasingly larger contact area detected on the infrared screen within a certain period of time. Therefore, based on the change in the area of the contact over a certain period of time, the pressure exerted by the contact on the infrared screen can be estimated.

[0104] In this solution, by detecting the change in the contact area over a certain period of time to estimate the pressure exerted by the contact on the infrared screen, it is possible to effectively detect the pressure exerted by the contact without the need to additionally deploy pressure detection hardware, reduce the hardware cost of the infrared screen, and be compatible with existing infrared screens without pressure detection hardware.

[0105] Step 4022, if the pressure exerted by the first contact on the infrared screen is greater than the second threshold, adjust the size of the second contact based on the pressure exerted by the first contact on the infrared screen.

[0106] It can be understood that when an object exerts pressure on the infrared screen, the amount of depression at the position where the object contacts the infrared screen (i.e., the position where the contact for exerting pressure is located) is the largest. For other positions on the infrared screen, the farther away from the position where the contact is located, the smaller the amount of depression. That is, in the case where the first contact exerts pressure on the infrared screen, the farther the second contact is from the first contact, the smaller the amount of depression at the position where the second contact is located; the closer the second contact is to the first contact, the closer the amount of depression at the position where the second contact is located is to the actual amount of depression caused by the first contact.

[0107] Based on the above analysis, based on the pressure exerted by the first contact on the infrared screen, this embodiment can adjust the size of the second contact in the following manner.

[0108] First, based on the pressure applied by the first contact on the infrared screen, determine the first depression amount corresponding to the position of the first contact on the infrared screen. Generally, there is a proportional functional relationship between the pressure applied by the contact and the depression amount caused by the contact, and this functional relationship is related to the screen material of the infrared screen. Therefore, by testing the infrared screen before leaving the factory, the functional relationship between pressure and depression amount can be obtained and pre-set in the infrared screen. In this way, by substituting the pressure applied by the first contact on the infrared screen into the functional relationship, the first depression amount corresponding to the position of the first contact on the infrared screen can be determined.

[0109] Then, based on the first depression amount and the distance between the first contact and the second contact, determine the second depression amount corresponding to the position of the second contact on the infrared screen. Similarly, there is an inverse proportional functional relationship between the depression amount at a certain position on the screen and the distance between this position and the contact applying the pressure. This inverse proportional functional relationship can also be detected and pre-set on the infrared screen before leaving the factory. In this way, by substituting the first depression amount and the distance between the first contact and the second contact into the inverse proportional functional relationship, the second depression amount corresponding to the position of the second contact on the infrared screen can be determined.

[0110] Secondly, based on the second depression amount, adjust the size of the second contact. Generally, the larger the second depression amount corresponding to the position of the second contact, the larger the area increment of the second contact. Moreover, there is a certain functional relationship between the screen depression amount and the area increment of the contact. In this way, by substituting the second depression amount into the functional relationship between the screen depression amount and the area increment of the contact, the area increment of the second contact can be determined, and then subtracting the area increment of the second contact from the current area of the second contact to obtain the actual area of the second contact, thus realizing the adjustment of the size of the second contact.

[0111] In this solution, based on the pressure applied by the earlier-occurring contact, the depression amount at the position of the contact is estimated. Then, based on the distance between the two contacts that appear successively, the depression amount at the position of the later-occurring contact is determined. Finally, it is ensured that the influence of the depression amount on the area of the later-occurring contact can be determined, guaranteeing that the size of the contact can be adjusted based on the applied pressure.

[0112] It should be emphasized that on the infrared screen, due to reasons such as production process limitations, external force during transportation, and temperature changes during use, there will be a certain depression base on the infrared screen itself. That is, the depression base refers to the screen depression amount that the infrared screen has when not under pressure. In this way, when considering the depression amount caused by the pressure applied by the first contact on the infrared screen, the depression base of the infrared screen itself can also be considered simultaneously, so that the actual depression amount formed on the infrared screen when the first contact applies pressure can be obtained.

[0113] Exemplarily, when adjusting the size of the second contact, the depression base number of the infrared screen can be obtained first, and this depression base number is used to indicate the screen depression amount when the infrared screen is not under pressure. Then, based on the depression base number and the second depression amount caused by the pressure applied by the first contact where the second contact is located, the size of the second contact is adjusted.

[0114] In this solution, by simultaneously considering the depression amount of the infrared screen itself and the depression amount caused by the pressure applied by the first contact, the actual depression amount at the position where the second contact is located can be accurately determined. Furthermore, based on the actual depression amount at the position where the second contact is located, the size of the second contact can be effectively adjusted to ensure the accuracy of the adjusted size of the second contact.

[0115] Optionally, the depression base number is, for example, obtained based on a calibration step pre-executed on the infrared screen, and this calibration step is used to obtain the contact area feedback by the infrared screen when a preset object is drawn on the infrared screen. Specifically, when the depression base number of the infrared screen is fixed, when an object (such as a writing pen) is drawn on the infrared screen, the contact area corresponding to this object detected by the infrared screen is actually fixed. Moreover, the contact area corresponding to the object has a proportional relationship with the depression base number of the infrared screen, that is, the larger the depression base number of the infrared screen, the larger the contact area corresponding to the object. Therefore, based on the proportional relationship between the contact area corresponding to the object and the depression base number of the infrared screen, the user can be guided to draw a specific pattern on the infrared screen based on a preset object (such as a writing pen), and the depression base number of the infrared screen can be calculated by obtaining the contact area feedback by the infrared screen.

[0116] In this solution, by guiding the user to execute a calibration step on the infrared screen in advance to determine the depression base number of the infrared screen used by the user, the depression amount at the second contact on the infrared screen can be calibrated to eliminate the influence of the depression situation of the infrared screen itself on the adjustment of the contact size, and improve the accuracy of the adjusted contact size.

[0117] Step 4023, determine whether the area of the first contact is greater than the first threshold.

[0118] If the pressure applied by the first contact on the infrared screen is not greater than the second threshold, it can be considered that the pressure applied by the first contact on the infrared screen will not have too much influence on the area of the second contact. Therefore, step 4022 can be skipped (that is, it is not necessary to adjust the size of the second contact based on the pressure applied by the first contact on the infrared screen), and step 4023 can be directly executed.

[0119] Among them, the first threshold can be determined according to the actual application scenario. For example, it can be determined according to the size of the infrared screen, the task type executed by the upper application program using the contact area, etc. This embodiment does not make specific limitations in this regard. Exemplarily, when the infrared screen is a conference tablet, the first threshold is, for example, the area size of a palm.

[0120] Step 4024, if the area of the first contact is greater than the first threshold, adjust the size of the second contact based on the positional relationship and size relationship between the first contact and the second contact.

[0121] It can be understood that when the area of the first contact is relatively large, the main factor affecting the area of the second contact is that the first contact causes infrared light occlusion to the second contact. In fact, the infrared light occlusion situation corresponding to the second contact will be affected by the size of the first contact, the size of the second contact, and the relative distance between the first contact and the second contact. Therefore, in this embodiment, the size of the second contact can be adjusted based on the positional relationship and size relationship between the first contact and the second contact.

[0122] Exemplarily, based on the positional relationship and size relationship between the first contact and the second contact, the infrared light occlusion situation caused by the first contact to the second contact can be determined. For example, when the first contact and the second contact are fitted into an ellipse, the infrared light occlusion situation of the major axis on the first contact to the major axis on the second contact can be determined based on the positional relationship and size relationship between the first contact and the second contact. Among them, the positional relationship between the first contact and the second contact can refer to the relative position between the first contact and the second contact, such as the distance between the center point of the first contact and the center point of the second contact and the direction of the center point of the first contact relative to the center point of the second contact. The size relationship between the first contact and the second contact can refer to the size of the first contact and the size of the second contact. The infrared light occlusion situation caused by the first contact to the second contact can refer to the amount of infrared light blocked on the second contact, and specifically can be measured by the length of the axis or side on the second contact that is blocked by infrared light.

[0123] Then, based on the infrared light occlusion situation, the size of the second contact can be adjusted. Generally speaking, for the second contact, the more infrared light blocked on the second contact (that is, the longer the length of the axis or side on the second contact blocked by infrared light), the greater the area increment of the second contact, so the size of the second contact needs to be reduced more significantly; the less infrared light blocked on the second contact (that is, the shorter the length of the axis or side on the second contact blocked by infrared light), the smaller the area increment of the second contact, so the size of the second contact needs to be reduced less significantly.

[0124] Generally speaking, in this solution, by determining the infrared light occlusion situation of the contact based on the positional relationship and size relationship between the two contacts, the size of the contact can be effectively adjusted adaptively based on the infrared light occlusion, ensuring that the size of the adjusted contact can better fit the actual size value of the contact.

[0125] Specifically, based on the distance between the first contact and the second contact, the length and angle of the axis on the first contact, the length and angle of the axis on the second contact, and the divergence angle of the infrared lights of the infrared screen, the length of the infrared light blocked by the first contact on the second contact can be determined. It should be noted that when the first contact and the second contact are fitted into an ellipse, the axes of the first contact and the second contact can refer to the major axis or the minor axis of the ellipse. When the first contact and the second contact are fitted into a rectangle, the axes of the first contact and the second contact can refer to the length or width of the rectangle.

[0126] Secondly, based on the length of the infrared light blocked by the first contact on the second contact, the length of the axis on the second contact can be shortened, thereby achieving the adjustment of the size of the second contact.

[0127] In this solution, based on the divergence angle of the infrared lights of the infrared screen itself, as well as information such as the length, angle, and distance of the axes on the two contacts, the infrared light blocking situation of the axis of one contact with respect to the axis of the other contact can be determined, and then the adjustment of the axis length of the contact can be achieved, improving the accuracy of adjusting the size of the contact.

[0128] It should be noted that the above describes the steps of adjusting one axis on the second contact. In the actual process of adjusting the size of the second contact, it can be the adjustment of the longer axis of the second contact (such as the major axis of the ellipse), or the adjustment of both axes on the second contact, which is not specifically limited here.

[0129] It is worth noting that there are certain errors in the arrangement density and divergence angle of the infrared lights on each infrared screen, and such errors are difficult to avoid. The errors in the arrangement density and divergence angle of the infrared lights on the infrared screen will result in inconsistent major axes of the contacts obtained when the same object is placed at the same position and the same angle on different infrared screens. Therefore, to avoid the significant influence of the errors of the infrared screen itself on the infrared light blocking situation, in this embodiment, the algorithm errors caused by the inconsistency between the infrared screen itself and the standard infrared screen parameters are offset by comparing the major axis change characteristics sampled by the user on the infrared screen with the major axis characteristics of the standard infrared screen used as the basis for compensating the contact size.

[0130] Optionally, based on the above embodiments, before determining the length of the infrared light blocked by the first contact on the second contact, the length of the axis of the first contact can be compensated based on the axis calibration coefficient first, and then the length of the infrared light blocked by the first contact on the second contact can be determined based on information such as the length of the axis of the first contact.

[0131] That is, when determining the length of the infrared light blocked by the first contact on the second contact, the length of the axis on the first contact is obtained by compensating the axis length indicated in the first contact information based on the axis calibration coefficient. The axis calibration coefficient is obtained based on a calibration step pre-executed on the infrared screen, and this calibration step is used to obtain the contact information feedback by the infrared screen when touched by a preset object at different angles.

[0132] That is to say, by guiding the user to execute the calibration step on the infrared screen in advance, the parameter difference between the infrared screen used by the user and the standard infrared screen can be determined, that is, the length difference between the infrared screen and the standard infrared screen when detecting the same object at the same position and the same angle. For example, assume that the preset object is the writing pen supporting the infrared screen. The user rotates the pen shaft of the writing pen around the center of the infrared screen for one week, so that the infrared screen can collect the lengths of the writing pen at various angles at the center of the infrared screen. In this way, by comparing the lengths of the writing pen collected by the infrared screen at various angles at the center of the infrared screen and the lengths of the writing pen collected by the standard infrared screen at various angles at the center of the infrared screen, the difference in the lengths of the writing pen collected by the infrared screen used by the user and the standard infrared screen at various angles can be determined, and thus the axis calibration coefficient can be obtained.

[0133] In this embodiment, by guiding the user to execute the calibration step on the infrared screen in advance and determining the parameter difference between the infrared screen used by the user and the standard infrared screen, the length of the contact detected by the infrared screen can be calibrated to eliminate the influence of the infrared screen's own error on the adjustment of the contact size, and improve the accuracy of the adjusted contact size.

[0134] For ease of understanding, the following will introduce in detail the contact correction method of the infrared screen provided in this embodiment with specific examples. Specifically, in this embodiment, the infrared screen contact distortion compensation algorithm can be preset on the infrared screen driver or the upper-layer application program to compensate for the size of the contact detected by the infrared screen driver, so as to realize the correction of the contact size.

[0135] For solutions such as hand-pen collaboration, hand-pen differential interaction, and anti-mis-touch writing implemented based on the hand-pen contact classification technology, it is a common phenomenon that the infrared light is blocked and the screen concavity is aggravated due to hand pressing. Therefore, in the above scenarios, the reported contact area and the long and short axes near the hand-pressing area often have a certain degree of distortion, resulting in inaccurate contact classification, inaccurate touch scene recognition, and thus a decline in user experience. Therefore, a certain degree of reported point compensation can be performed according to the reported point distortion factor analysis analyzed above to reduce the probability of misrecognition of the scene caused by distortion and improve the user experience.

[0136] However, the known conditions necessary for implementing the contact distortion compensation algorithm, in addition to the above infrared light occlusion and pressing depression rules, also include screen hardware parameters and individual error situations. For example, the divergence angle of the light emitted by the lamp beads, the arrangement density of the infrared lamp beads, the depression degree of the screen in the non-pressed state, etc. Generally speaking, there is a certain error range in the screen hardware parameters of the infrared screen among different screen individuals, forming parameter errors in the contact distortion compensation algorithm and affecting the performance stability of the contact distortion compensation algorithm among different screen individuals. Based on this, in addition to providing a contact distortion compensation algorithm for the infrared screen, this embodiment also provides a user active calibration step designed to offset the parameter errors caused by screen individual differences in the contact distortion compensation algorithm.

[0137] Generally speaking, when the user first uses the infrared screen, they must perform the calibration step at the center of the screen according to the instructions to obtain the reporting point difference base number caused by the sampling pre-calibrated screen tolerance. Based on the reporting point pre-calibration base number obtained from the initial calibration, the long-axis error coefficient in the long-axis occlusion influence intercept function and the depression base number in the depression coefficient regression function set in advance are calibrated.

[0138] During the user's use process, the infrared screen calculates the long-axis occlusion influence intercept function and the depression coefficient regression function around the contact based on the area and length and short-axis data of the first pressed contact, as well as known hardware parameters (such as the infrared light divergence angle and the lamp bead arrangement density), etc., based on the calibrated compensation algorithm function. Based on this function, for a newly emerged contact near this contact, calculate the distortion interference suffered at the position of this contact, and then subtract this interference from the long axis and area of this contact to obtain the estimated real data, so as to achieve the purpose of contact distortion compensation. At this time, based on the compensated result, contact classification can be performed, which can realize more accurate false touch prevention scenario judgment, as well as the distinction between the pen and the hand in the pen-hand coordination and pen-hand differentiation interaction scenarios.

[0139] Exemplarily, please refer to Figure 6 , Figure 6 which is a schematic diagram of the overall process for correcting the contact size on the infrared screen provided by the embodiment of the present application. As Figure 6 shown, the process for correcting the contact size on the infrared screen may include the following steps 601-607.

[0140] Step 601, based on the contact distortion data formed by the writing pen collected on the standard infrared screen, determine the linear regression function of the screen depression amount near the contact decreasing with the distance, and the linear function of the long-axis influence intercept of the occluding contact changing with the coordinates of the occluded contact.

[0141] Among them, the standard infrared screen refers to an infrared screen with relatively small pre-determined screen errors. In this embodiment, the specific parameters of the contact distortion compensation algorithm are determined based on the hardware parameters of the standard infrared screen. Therefore, when applying the contact distortion compensation algorithm to the infrared screen used by the user, the user needs to perform a calibration step to determine the parameter differences between the standard infrared screen and the infrared screen used by the user.

[0142] Step 602, during the process where the user holds the writing pen to execute the calibration step according to the guidance, calculate the depression base number of the infrared screen and the linear function of the major axis of the contact changing with the included angle with the major axis based on the collected contact data.

[0143] Step 603, calibrate the contact distortion compensation function in Step 601 based on the depression base number and the linear function of the major axis change obtained in Step 602.

[0144] That is, adjust the linear regression function of the screen depression amount decreasing with the distance obtained in Step 601 based on the depression base number of the infrared screen, and adjust the linear function of the intercept of the major axis of the occluded contact changing with the coordinates of the occluded contact based on the linear function of the major axis of the contact changing with the included angle with the major axis.

[0145] Step 604, during the process where the user uses the infrared screen, calculate the correlation function of the infrared light occlusion and depression increment influence formed by the first contact on the surrounding area based on the calibrated contact distortion compensation function and the key features of the first contact on the infrared screen.

[0146] Step 605, for the second contact of the new contact, substitute the key features of the second contact into the correlation function of the infrared light occlusion and depression increment influence in Step 604 to determine the axis increment or area increment formed by the second contact affected by the first contact.

[0147] Step 606, adjust the size of the second contact based on the axis increment or area increment of the second contact.

[0148] Step 607, perform contact classification on the second contact based on the adjusted size of the second contact to identify the current touch scenario.

[0149] It should be noted that Figure 6 The flow shown outlines the process of adjusting the size of the second contact that appears later from the aspects of infrared light occlusion and screen depression amount for the key features of the first contact that appears first. The following will separately introduce the processes of adjusting the size of the second contact from the aspects of infrared light occlusion and screen depression amount. Among them, the process of adjusting the size of the second contact from the aspect of infrared light occlusion can be implemented by using an infrared light compensation algorithm, and the process of adjusting the size of the second contact from the aspect of screen depression amount can be implemented by using a screen depression compensation algorithm.

[0150] Before adjusting the size of the second contact in terms of infrared light occlusion, the user can perform a calibration step in advance to obtain pre-calibration data for infrared light occlusion, so as to cancel the error of the subsequent infrared light compensation algorithm. Specifically, since there are certain errors in the arrangement density and divergence angle of the infrared lamps on each infrared screen, and these errors are inevitable. The errors in the arrangement density and divergence angle of the infrared lamps on the infrared screen will cause the major axis lengths of the contacts obtained by placing the same object at the same position and the same angle on different infrared screens to be inconsistent. Therefore, to avoid the significant impact of the errors of the infrared screen itself on the infrared light occlusion situation, in this embodiment, the algorithm error caused by the inconsistency between the infrared screen itself and the standard infrared screen parameters is cancelled by comparing the major axis change characteristics sampled by the user on the infrared screen with the standard infrared screen major axis characteristics used as the basis for compensating the contact size.

[0151] Exemplarily, please refer to Figure 7 , Figure 7 which is a schematic diagram of a calibration step performed by the user for the infrared light compensation algorithm provided by the embodiment of the present application. As Figure 7 shown, when the user first uses the infrared screen, the user can place the writing pen supporting the infrared screen at the center of the screen according to the instructions, fix the center of the writing pen at the center of the screen, and then rotate the writing pen one week until the infrared screen collects the major axis lengths of the writing pen at various angles at the center of the screen. Among them, the data collected by the infrared screen will be used for pre-calibrating the initially set infrared light occlusion distortion compensation algorithm.

[0152] Please refer to Figure 8 , Figure 8 which is a schematic diagram of a process for determining the major axis calibration coefficient on the infrared screen provided by the embodiment of the present application.

[0153] As Figure 8 shown, first, an infrared screen with relatively small screen error is taken as the standard screen, and a writing pen matching the standard screen is taken as the standard pen. Then, a pre-calibration step is performed on the standard screen using the standard pen, and the specific process is as Figure 7 shown. Based on a series of data of the major axis and the major axis included angle of the standard pen collected in the pre-calibration step, a linear regression function Fθ between the major axis length and the major axis included angle is calculated. Among them, the contact of the standard pen sensed on the infrared screen is fitted into an ellipse, and the major axis of the ellipse is the major axis of the standard pen; the included angle between the major axis direction of the ellipse and the y-axis of the global coordinate system is the major axis included angle. Due to the influence of factors such as the arrangement density of the infrared lamp beads on the standard screen and the divergence angle of the infrared light, different major axes will be detected when the standard pen contacts the standard screen at different angles. Therefore, the linear regression function Fθ between the major axis length and the major axis included angle can be calculated based on the collected data.

[0154] Secondly, according to the infrared light divergence angle on the standard screen, calculate the linear correlation function of the long-axis occlusion intercept formed by the long axis of the standard pen at each angle θ changing with the x coordinate, that is, the long-axis influence intercept function Gx. Specifically, by substituting the relationship between the long axis of the standard pen and the angle at each angle (i.e., the linear regression function Fθ between the long-axis length and the long-axis included angle mentioned above) into the linear function D(x) of the long-axis influence intercept of the occlusion contact changing with the coordinate, the long-axis influence intercept function Gx can be obtained. D(x) can be expressed by the following formula 1.

[0155]

[0156] Among them, D(x) represents the long-axis influence intercept of the occlusion contact, specifically the length of the long axis of the occlusion contact projected onto the y-axis of the position where the affected point is located along the infrared light divergence angle direction; l is the long axis of the occluder, a is the divergence angle of the infrared lamp bead, b is the included angle of the long axis of the occluder, and x is the abscissa of the position of the occluded contact in the coordinate system of the occluder. That is, x actually indicates the distance between the occluded contact (i.e., the second contact mentioned above) and the occlusion contact (i.e., the first contact mentioned above) on the x-axis.

[0157] When the user starts to use, the user uses the writing pen equipped on the infrared screen held by himself / herself to perform the calibration step according to Figure 7 the steps shown. In this way, when the user performs the calibration step, the infrared screen collects a series of data on the long-axis length and long-axis included angle of the pen shaft, and calculates the linear regression function F'θ between the long-axis length and the long-axis included angle.

[0158] In this way, by comparing the difference between the linear regression function F'θ corresponding to the user's infrared screen and the linear regression function Fθ corresponding to the standard screen, the linear regression function Gβ between the long-axis calibration coefficient β of any contact on the user's infrared screen and the long-axis included angle can be calculated. Among them, the linear regression function Gβ is used to compensate for the long-axis error caused by the hardware error on the user's infrared screen.

[0159] After obtaining the long-axis influence intercept function Gx and the long-axis calibration coefficient function Gβ on the infrared screen held by the user based on the above steps, for the problem of contact distortion caused by infrared light occlusion when the user uses the infrared screen, it can be compensated based on Figure 9 the process shown. Among them, Figure 9 is a schematic flow chart of an infrared light occlusion distortion compensation algorithm provided by an embodiment of the present application. As Figure 9 shown, the execution process of the infrared light occlusion distortion compensation algorithm includes the following steps 1-step.

[0160] Step 1, a large-area contact point P1 is detected to be pressed on the infrared screen. Among them, the large-area contact point P1 is, for example, the first contact point mentioned above, and the area of the large-area contact point P1 is greater than the first threshold value.

[0161] Step 2, obtain the major axis length M1 and the major axis angle θ1 of the large-area contact point P1.

[0162] Step 3, based on the major axis calibration coefficient function Gβ (i.e., the linear regression function between the major axis calibration coefficient and the major axis included angle) obtained through pre-calibration in the previous calibration step, perform error compensation on the major axis length M1 of the large-area contact point P1 to obtain the true major axis length M1' of the large-area contact point P1.

[0163] Step 4, substitute the major axis length M1' and the included angle θ1 of P1 into the major axis influence intercept function Gx obtained in the previous step to obtain a linear correlation function Gx' related to the occlusion influence intercept caused by P1 and the position coordinates of other contact points.

[0164] Step 5, detect that a new contact point P2 is pressed, and start calculating the major axis increment caused by the occlusion influence of P1 on P2. Among them, the new contact point P2 is, for example, the second contact point mentioned above.

[0165] Step 6, substitute the position (x, y) of P2 into the occlusion influence intercept function Gx' of P1 obtained in Step 4 to obtain the major axis intercept ΔM of its position blocked by P1.

[0166] Step 7, calculate the projection distance L of the major axis intercept of P1 on the major axis of the contact point P2 according to the major axis intercept ΔM, the major axis length M2 and the major axis included angle θ2 of the new contact point P2.

[0167] Exemplarily, please refer to Figure 10 , Figure 10 which is a schematic diagram of the major axis influence intercept and projection distance formed by the infrared light occlusion of the contact point P1 on the contact point P2 provided by the embodiment of the present application. As Figure 10 shown, the contact point P1 occludes the infrared light emitted on the left side (i.e., the y-axis). Based on the parameters shown in the occlusion influence intercept function Gx', that is, the major axis of the contact point P1, the divergence angle of the infrared lamp beads, the major axis included angle of the contact point P1, and the distance between the contact points P1 and P2 on the x-axis, the major axis influence intercept (the length of the major axis of the contact point P1 projected onto the y-axis of the position of the contact point P2 along the infrared light divergence angle direction) can be determined. In this way, based on the major axis intercept ΔM, the major axis length M2 and the major axis included angle θ2 of the new contact point P2, the projection distance L of the major axis intercept of P1 on the major axis of the contact point P2 can be further calculated based on the trigonometric function relationship.

[0168] Step 8, calculate the true major axis length M2' of the contact point P2 based on the center point position and the major axis length M2 of the contact point P2, and the projection distance L.

[0169] Wherein, M2' = M2 - L + |y0 - y| / cosθ2; y0 is the y-axis coordinate value of the contact point P1, and y is the y-axis coordinate value of the contact point P2.

[0170] Step 9, calculate the true area of the contact point P2 according to the compensated major axis length M2' to facilitate subsequent tasks such as contact point classification.

[0171] The above describes the process of adjusting the size of the second contact from the aspect of infrared light occlusion. The following will introduce the process of adjusting the size of the second contact from the aspect of the screen depression amount.

[0172] Before adjusting the size of the second contact from the aspect of the screen depression amount, the user can perform a calibration step in advance to obtain the depression base number of the infrared screen, so as to cancel the error of the subsequent screen depression compensation algorithm.

[0173] Specifically, to solve the influence of the depression base number of the infrared screen on the contact area, when the user first uses the infrared screen or perceives that the touch effect has decreased, the user can perform Figure 11 the calibration step shown. Among them, Figure 11 is a calibration step for the screen depression compensation algorithm provided by the embodiment of the present application. As Figure 11 shown, the user needs to hold the writing pen equipped with the infrared screen and perform a tracing writing along the marked trajectory at the marked position in the center of the screen. To collect the contact information of the pen tip at different angles, the best example is to trace the number 8, but the actual application is not limited to this.

[0174] Exemplarily, please refer to Figure 12 Figure 12 which is a schematic diagram of the calibration process for the depression base number of the infrared screen provided by the embodiment of the present application. As Figure 12 shown, the calibration process for the depression base number of the infrared screen includes the following multiple steps.

[0175] Step 1, use an infrared screen with a small screen depression degree as a standard screen, and use the writing pen equipped with the standard screen to perform the pre-calibration step as Figure 11 shown. Among them, this pre-calibration step not only needs to collect the pen tip contact at the center of the screen, but also needs to collect the pen tip contact at different distances from the center of the screen respectively.

[0176] ​Step 2: Based on the contact area data at each position collected in the pre-calibration step, perform a linear regression on the decreasing relationship between the depression base number g of the standard screen and the distance d of the contact from the center, to obtain the depression base number function G0(d). Among them, one parameter included in the G0(d) function is the depression base number at the center of the screen, which is mapped from the contact area of the sampling point at the center of the standard screen. Specifically, G0(d) = g(1 – a*d), where g is the depression base number of the standard screen, a is the slope of the sample linear relationship obtained by linear regression, and d is the distance between the contact and the center position of the standard screen.

[0177] Step 3: Press at multiple set pressure levels in regions on the standard screen (denoted as sampling data S1), and perform standard pen touch sampling at each distance near the pressing area (denoted as sampling data S2), so as to calculate the influence of the depression increment formed by pressing on the contact area at each distance. Specifically, the area increment caused by the depression can be obtained by performing a linear regression on the reported point area in the sampling data S2 and the relative distance d between the pressing point and the sampling point. At the set pressure level Ln, it is denoted as the regression function F(d, Ln).

[0178] Among them, F(d,Ln) = a*Ln(1 - b*d); F(d,Ln) is the area increment caused by the depression; a is the coefficient related to the pressure level; Ln is the pressure level; b is the slope of the sample linear relationship obtained by regression; d is the distance between the contact and the pressing point.

[0179] Step 4: When the user first uses the infrared screen held to write, guide the user to perform the calibration step as Figure 11 shown.

[0180] Step 5: Compare the nib contact data collected in the user calibration step with the nib data sampled in the pre-calibration before leaving the factory, and adjust the depression base number at the center of the screen in the depression base number function G0(d), so as to obtain the depression decreasing function G(d).

[0181] As Figure 13 shown, Figure 13 is a pre-calibration step for the depression base number provided by an embodiment of the present application. As Figure 13 shown, after pressing at the contact point P1 first, based on the above steps, the depression increment at positions with different distances from the contact point P1 can be sampled.

[0182] Exemplarily, please refer to Figure 14 , Figure 14 which is a schematic flow chart for compensating the contact points affected by the depression provided by an embodiment of the present application. As Figure 14 shown, the process of compensating the contact points affected by the depression includes the following multiple steps.

[0183] (1) When the first contact point P1 is detected, calculate the influence of the depression base number on the contact area at the position where P1 is located based on the depression base number decreasing function G(d) obtained in the calibration step, that is, the percentage increase in the contact area caused by the depression of the screen itself for the first contact point P1.

[0184] (2) Based on the percentage increase in the area of the first contact point P1, perform depression base number compensation on the first contact point, and subtract the depression increment from the reported area of the first contact point to obtain the true area S1 of the first contact point.

[0185] (3) When the second contact point P2 is detected, first perform area increment compensation on the second contact point P2 caused by the screen depression base number, that is, refer to the above steps (1) and (2) to obtain the area S2 of the second contact point P2 after the first compensation.

[0186] (4) Based on the gradient change of the true area of the first contact point P1 within a certain time duration, estimate the pressure level L formed by pressing the first contact point.

[0187] (5) Based on the position information of the first contact point P1 and the second contact point P2, calculate the relative distance dx between the two contact points.

[0188] (6) Substitute the pressure level L of the first contact point and the relative distance dx between the first contact point P1 and the second contact point P2 into the depression increment decreasing linear regression function F(d, Ln) at different Ln pressure levels obtained in the pre-calibration step, and calculate the percentage increase in the depression increment caused by the pressing pressure of the first contact point P1 at the position where the second contact point P2 is located.

[0189] (7) Based on the area S2 of the second contact point P2 after the first compensation obtained in step (3), perform a second compensation for the depression increment caused by the first contact point P1, that is, subtract the percentage increase in the area caused by the depression obtained in step (6) from the area S2 to obtain the true area S2' of the second contact point.

[0190] The above mainly introduces the solution provided by the embodiments of the present application from the perspective of the method. It can be understood that in order for the electronic device to implement the above functions, it includes the corresponding hardware structure and / or software module for executing each function. Those skilled in the art should easily realize that, combined with the modules and algorithm steps of each example described in the embodiments disclosed in this article, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0191] Embodiments of the present application can divide functional modules of an electronic device according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division of modules in the embodiments of the present application is illustrative, only a logical function division, and there may be other division methods in actual implementation.

[0192] The apparatus and device for executing the above method in the embodiments of the present application will be described in detail below.

[0193] Reference may be made to Figure 15 , Figure 15 which is a schematic structural diagram of a contact correction device for an infrared screen provided by an embodiment of the present application. As Figure 15 shown, the contact correction device for the infrared screen includes: an acquisition module 1501, configured to acquire first contact information and second contact information, where the first contact information is used to indicate information of a first contact on the infrared screen, the second contact information is used to indicate information of a second contact on the infrared screen, and the appearance time of the first contact on the infrared screen is earlier than that of the second contact; a processing module 1502, configured to adjust the size of the second contact based on the first contact information and the second contact information when the first contact information meets a preset condition; where the preset condition includes that the area of the first contact is greater than a first threshold or the pressure applied by the first contact on the infrared screen is greater than a second threshold.

[0194] In a possible implementation manner, the first contact information includes the position and size of the first contact, and the second contact information includes the position and size of the second contact; the processing module 1502 is specifically configured to: when the area of the first contact is greater than the first threshold, determine the infrared light blocking situation caused by the first contact to the second contact based on the positional relationship and size relationship between the first contact and the second contact; and adjust the size of the second contact based on the infrared light blocking situation.

[0195] In a possible implementation manner, the processing module 1502 is specifically configured to: determine the length of the infrared light blocked by the first contact on the second contact based on the distance between the first contact and the second contact, the length and angle of the axis on the first contact, the length and angle of the axis on the second contact, and the divergence angle of the infrared lamp of the infrared screen; and shorten the length of the axis on the second contact based on the length of the infrared light blocked by the first contact on the second contact.

[0196] In a possible implementation, the length of the upper axis of the first contact is obtained by compensating the axis length indicated in the first contact information based on an axis calibration coefficient; the axis calibration coefficient is obtained based on a calibration step pre - performed on the infrared screen, and the calibration step is used to obtain the contact information feedback by the infrared screen when a preset object touches it at different angles.

[0197] In a possible implementation, the processing module 1502 is specifically configured to: when the pressure applied by the first contact on the infrared screen is greater than a second threshold, determine a first depression amount corresponding to the position of the first contact on the infrared screen based on the pressure applied by the first contact on the infrared screen; determine a second depression amount corresponding to the position of the second contact on the infrared screen based on the first depression amount and the distance between the first contact and the second contact; and adjust the size of the second contact based on the second depression amount.

[0198] In a possible implementation, the acquisition module 1501 is further configured to acquire a depression base number of the infrared screen, where the depression base number is used to indicate the screen depression amount when the infrared screen is not under pressure; the processing module 1502 is specifically configured to adjust the size of the second contact based on the depression base number and the second depression amount.

[0199] In a possible implementation, the depression base number is obtained based on a calibration step pre - performed on the infrared screen, and the calibration step is used to obtain the contact area feedback by the infrared screen when a preset object draws on the infrared screen.

[0200] In a possible implementation, the pressure applied by the first contact on the infrared screen is determined based on the change of the area of the first contact within a preset time period.

[0201] In a possible implementation, the adjusted size of the second contact is used to implement one or more of the following tasks: contact classification or contact display.

[0202] In a possible implementation, the shapes of the first contact and the second contact are oval or polygonal.

[0203] It should be noted that the information interaction, execution process, etc. among the modules / or components in the above device are based on the same concept as the corresponding method embodiments in this application. For specific content, reference can be made to the descriptions in the method embodiments shown above in this application, and details will not be repeated here. Figures 4 - 14

[0204] Figures 4 - 14 It should be noted that for the specific implementation manners of the device and the beneficial effects brought, reference can be made to the descriptions in the corresponding method embodiments, and details will not be repeated one by one here.

[0205] ​​An embodiment of the present application further provides an electronic device, including: a processor and a memory; the memory is used to store computer instructions, and when the processor executes the instructions, the electronic device is caused to execute the method in any of the above aspects. The electronic device may include the Figure 15 contact correction device of the infrared screen in the corresponding embodiment above.

[0206] An embodiment of the present application further provides a computer-readable storage medium, including instructions, which when running on a computer, cause the computer to control the electronic device to execute any implementation manner shown in the foregoing method embodiments.

[0207] Reference may be made to Figure 16 , Figure 16 which is a schematic structural diagram of a computer-readable storage medium provided by an embodiment of the present application. The present application also provides a computer-readable storage medium. In some embodiments, the methods disclosed in the above embodiments may be implemented as computer program instructions encoded in a machine-readable format on a computer-readable storage medium or encoded on other non-transitory media or articles.

[0208] Figure 16 Schematically shown is a conceptual partial view of an example computer-readable storage medium arranged according to at least some of the embodiments shown herein. The example computer-readable storage medium includes a computer program for executing a computer process on a computing device.

[0209] In one embodiment, the computer-readable storage medium 1600 is provided using a signal-bearing medium 1601. The signal-bearing medium 1601 may include one or more program instructions 1602, which when run by one or more processors may provide the functions or parts of the functions described in the above embodiments.

[0210] In some examples, the signal-bearing medium 1601 may include a computer-readable medium 1603, such as but not limited to, a hard disk drive, a compact disc (CD), a digital video disc (DVD), a digital tape, a memory, a ROM, or a RAM, etc.

[0211] In some embodiments, the signal-bearing medium 1601 may include a computer-recordable medium 1604, such as but not limited to, a memory, a read / write (R / W) CD, an R / W DVD, etc. In some embodiments, the signal-bearing medium 1601 may include a communication medium 1605, such as but not limited to, a digital and / or analog communication medium (e.g., a fiber optic cable, a waveguide, a wired communication link, a wireless communication link, etc.). Thus, for example, the signal-bearing medium 1601 may be conveyed by a wireless form of the communication medium 1605 (e.g., a wireless communication medium compliant with the IEEE 802.X standard or other transmission protocols).

[0212] One or more program instructions 1602 can be, for example, computer-executable instructions or logic-implemented instructions. In some examples, a computing device of a computing device can be configured to provide various operations, functions, or actions in response to program instructions 1602 communicated to the computing device via one or more of a computer-readable medium 1603, a computer-recordable medium 1604, and / or a communication medium 1605.

[0213] It should be further noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the device embodiments provided in this application, the connection relationships between the modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines.

[0214] Through the description of the above embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware. Of course, it can also be implemented by dedicated hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc. Generally, functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures for implementing the same function can also be diverse, such as analog circuits, digital circuits, or dedicated circuits. However, for this application, software program implementation is a better implementation method in more cases. Based on such an understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a floppy disk, a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disc of a computer, and includes several instructions for causing a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods of various embodiments of this application.

[0215] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product.

[0216] A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via wired (such as coaxial cable, fiber optic, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a training device or a data center that includes one or more integrated available media. The available medium may be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.

Claims

1. A contact correction method for an infrared screen, characterized in that Including: Obtaining first contact information and second contact information, where the first contact information is used to indicate information of a first contact on an infrared screen, the second contact information is used to indicate information of a second contact on the infrared screen, and the appearance time of the first contact on the infrared screen is earlier than that of the second contact; When the first contact information meets a preset condition, adjusting the size of the second contact based on the first contact information and the second contact information; Wherein, the preset condition includes that the area of the first contact is greater than a first threshold or the pressure applied by the first contact on the infrared screen is greater than a second threshold.

2. The method according to claim 1, wherein The first contact information includes the position and size of the first contact, and the second contact information includes the position and size of the second contact; The adjusting the size of the second contact based on the first contact information includes: When the area of the first contact is greater than the first threshold, determining the infrared light occlusion situation caused by the first contact to the second contact based on the positional relationship and size relationship between the first contact and the second contact; Adjusting the size of the second contact based on the infrared light occlusion situation.

3. The method according to claim 2, wherein The determining the infrared light occlusion situation caused by the first contact to the second contact based on the positional relationship and size relationship between the first contact and the second contact includes: Based on the distance between the first contact and the second contact, the length and angle of the axis on the first contact, the length and angle of the axis on the second contact, and the infrared light divergence angle of the infrared screen, determining the length of the infrared light occluded by the first contact on the second contact; The adjusting the size of the second contact based on the infrared light occlusion situation includes: Shortening the length of the axis on the second contact based on the length of the infrared light occluded by the first contact on the second contact.

4. The method according to claim 3, wherein The length of the axis on the first contact is obtained by compensating the axis length indicated in the first contact information based on an axis calibration coefficient; The axis calibration coefficient is obtained based on a calibration step pre-executed on the infrared screen, and the calibration step is used to obtain the contact information feedback by the infrared screen when touched by a preset object at different angles.

5. The method according to any one of claims 1 to 4, characterized in that, The adjusting the size of the second contact based on the first contact information includes: When the pressure applied by the first contact on the infrared screen is greater than the second threshold, determining a first depression amount corresponding to the position of the first contact on the infrared screen based on the pressure applied by the first contact on the infrared screen; Determining a second depression amount corresponding to the position of the second contact on the infrared screen based on the first depression amount and the distance between the first contact and the second contact; Adjusting the size of the second contact based on the second depression amount.

6. The method according to claim 5, wherein The adjusting the size of the second contact based on the second depression amount includes: Obtaining a depression base number of the infrared screen, where the depression base number is used to indicate the screen depression amount when the infrared screen is not under pressure; Adjusting the size of the second contact based on the depression base number and the second depression amount.

7. The method according to claim 6, wherein The depression base number is obtained based on a calibration step previously performed on the infrared screen, and the calibration step is used to obtain the contact area feedback by the infrared screen when a preset object is drawn on the infrared screen.

8. The method according to any one of claims 1-7, characterized in that, The pressure exerted by the first contact on the infrared screen is determined based on the change in the area of the first contact within a preset time period.

9. The method according to any one of claims 1-8, characterized in that The adjusted size of the second contact is used to implement one or more of the following tasks: contact classification or contact display.

10. The method according to any one of claims 1-9, characterized in that The shapes of the first contact and the second contact are oval or polygonal.

11. A contact correction device for an infrared screen, characterized in that, Including: An acquisition module, configured to acquire first contact information and second contact information, where the first contact information is used to indicate information about a first contact on the infrared screen, the second contact information is used to indicate information about a second contact on the infrared screen, and the appearance time of the first contact on the infrared screen is earlier than that of the second contact; A processing module, configured to adjust the size of the second contact based on the first contact information and the second contact information when the first contact information meets a preset condition; Wherein, the preset condition includes that the area of the first contact is greater than a first threshold or the pressure exerted by the first contact on the infrared screen is greater than a second threshold.

12. The device according to claim 11, wherein The first contact information includes the position and size of the first contact, and the second contact information includes the position and size of the second contact; The processing module is specifically configured to: When the area of the first contact is greater than the first threshold, determine the infrared light occlusion situation caused by the first contact to the second contact based on the positional relationship and size relationship between the first contact and the second contact; Adjust the size of the second contact based on the infrared light occlusion situation.

13. The device according to claim 12, wherein The processing module is specifically configured to: Based on the distance between the first contact and the second contact, the length and angle of the upper axis of the first contact, the length and angle of the upper axis of the second contact, and the divergence angle of the infrared lamp of the infrared screen, determine the length of the infrared light blocked by the first contact on the second contact; Shorten the length of the upper axis of the second contact based on the length of the infrared light blocked by the first contact on the second contact.

14. The device according to claim 13, characterized in that, The length of the upper axis of the first contact is obtained by compensating the axis length indicated in the first contact information based on an axis calibration coefficient; The axis calibration coefficient is obtained based on a calibration step previously performed on the infrared screen, and the calibration step is used to obtain the contact information feedback by the infrared screen when it is touched by a preset object at different angles.

15. The device according to any one of claims 11-14, characterized in that, The processing module is specifically configured to: When the pressure exerted by the first contact on the infrared screen is greater than the second threshold, determine a first depression amount corresponding to the position of the first contact on the infrared screen based on the pressure exerted by the first contact on the infrared screen; Determine a second depression amount corresponding to the position of the second contact on the infrared screen based on the first depression amount and the distance between the first contact and the second contact; Adjust the size of the second contact based on the second depression amount.

16. The device according to claim 15, wherein The obtaining module is further configured to obtain a depression base number of the infrared screen, where the depression base number is used to indicate the screen depression amount when the infrared screen is not under pressure; The processing module is specifically configured to adjust the size of the second contact based on the depression base number and the second depression amount.

17. The device according to claim 16, characterized in that, The depression base number is obtained based on a calibration step pre-executed on the infrared screen, and the calibration step is used to obtain the contact area feedback by the infrared screen when a preset object is drawn on the infrared screen.

18. The device according to any one of claims 11-17, characterized in that The pressure applied by the first contact on the infrared screen is determined based on the change of the area of the first contact within a preset time period.

19. An electronic device, characterized in that, It includes a memory and a processor; the memory stores code, and the processor is configured to execute the code. When the code is executed, the electronic device executes the method according to any one of claims 1 to 10.

20. A computer storage medium, characterized in that, The computer storage medium stores instructions, and when the instructions are executed by a computer, the computer implements the method according to any one of claims 1 to 10.

21. A computer program product, characterized in that, The computer program product stores instructions, and when the instructions are executed by a computer, the computer implements the method according to any one of claims 1 to 10.