Touch point processing method and device, equipment and storage medium

By using the blocking area and preset conditions of the infrared transmitting light, the target pen point when holding the pen hand is identified, the problem of misidentification of infrared touch screen is solved and the writing effect is improved.

CN118963590APending Publication Date: 2024-11-15GUANGZHOU ZHONGYUAN INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411200786.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

Existing infrared touch screens are easily misidentified as eraser tools or pen points when users hold pen hands, resulting in handwriting being accidentally erased or generated, affecting the writing effect.

Method used

When detecting the pen-holding point data, several infrared transmitter lights blocking areas and preset pen-point judgment conditions are used to identify the target pen-point to ensure that the pen-point is accurately identified while the pen-holding hand blocks infrared light.

Benefits of technology

Accurately identifying the target pen point while holding the pen hand blocks infrared light, improving the user's writing effect and avoiding the problems of accidentally touching and rubbing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963590A_ABST
    Figure CN118963590A_ABST
Patent Text Reader

Abstract

The invention discloses a touch point processing method and device, equipment and a storage medium, and the method comprises the steps: obtaining a shielding region corresponding to each infrared emission lamp when it is detected that pen holding hand point data matched with pen holding hand point data information exists at present; selecting a first infrared emission lamp which has the most shielding areas and is positioned on any side of the infrared touch frame from the plurality of infrared emission lamps, and acquiring a first shielding area which does not contain pen holding hand point data; selecting a second infrared emission lamp with the most shielding areas from a plurality of infrared emission lamps opposite to the first infrared emission lamp, and acquiring a second shielding area without pen holding hand point data; and according to an intersection area of the first shielding area and the second shielding area, processing the intersection area by utilizing shielding areas corresponding to the plurality of infrared emission lamps to obtain a candidate pen point, and judging the candidate pen point as a target pen point when the candidate pen point meets a pen point judgment condition. According to the method, the target pen point can be accurately identified under the condition that a pen holding hand shields a large amount of infrared light.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of touch screen technology, and in particular to a touch point processing method, device, electronic device and computer-readable storage medium. Background Art

[0002] When a user writes with a stylus on an infrared touch screen, the hand holding the pen and the tip of the stylus are usually placed on the infrared touch screen. At this time, the hand holding the pen may be mistakenly identified as an eraser tool and accidentally erase the normal handwriting around it, or may be mistakenly identified as a pen point and mistakenly generate handwriting.

[0003] In order to prevent accidental touches caused by a hand holding a pen, the prior art usually sets a width threshold and a height threshold for the point data of the hand holding the pen in advance, and discards the point data with a width greater than the width threshold and a height greater than the height threshold in the received infrared touch point data, so as to prevent accidental touches. However, the hand holding the pen will block a large amount of infrared light, resulting in serious interference in pen point recognition. The prior art can only discard the point data with a width greater than the width threshold and a height greater than the height threshold, and cannot accurately identify the pen point, affecting the writing effect. Summary of the invention

[0004] The present invention provides a touch point processing method, device, equipment and storage medium. When detecting the point data of a pen-holding hand, the method can utilize the shielding areas corresponding to a plurality of infrared emitting lamps and preset pen point determination conditions, and can accurately identify the target pen point when the pen-holding hand blocks a large amount of infrared light, thereby ensuring the writing effect of the user.

[0005] In order to solve the above technical problem, a first aspect of an embodiment of the present invention provides a touch point processing method, including:

[0006] When it is detected that there is currently pen-holding hand point data matching the preset pen-holding hand point data information, the shielding area corresponding to each infrared emitting lamp is obtained; wherein the shielding area is an area formed between any two light beams in the light beam group emitted by the infrared emitting lamp, and the light beam group between the any two light beams is shielded;

[0007] Selecting a first infrared emitting lamp having the largest shielding area and located on any side of the infrared touch frame from among the plurality of infrared emitting lamps, and acquiring a first shielding area corresponding to the first infrared emitting lamp and not containing the pen holding hand point data;

[0008] Select a second infrared emitting lamp with the largest shielding area from among the plurality of infrared emitting lamps opposite to the first infrared emitting lamp, and obtain a second shielding area corresponding to the second infrared emitting lamp that does not contain the pen holding hand point data;

[0009] According to the intersection area of ​​the first blocking area and the second blocking area, the intersection area is processed by using the blocking areas corresponding to the plurality of infrared emitting lamps to obtain candidate pen points;

[0010] When it is detected that the candidate pen point meets the preset pen point determination condition, the candidate pen point is determined to be a target pen point.

[0011] As a preferred solution, the step of selecting the first infrared emitting lamp having the largest shielding area and located on any side of the infrared touch frame from among the plurality of infrared emitting lamps specifically includes:

[0012] When the number of first candidate infrared emitting lamps selected from the plurality of infrared emitting lamps, which has the largest shielding area and is located on any side of the infrared touch frame is one, determining that the first candidate infrared emitting lamp is the first infrared emitting lamp;

[0013] When the number of candidate infrared emitting lamps selected from the plurality of infrared emitting lamps that have the largest shielding area and are located on the same side of the infrared touch frame is greater than one, the first candidate infrared emitting lamp corresponding to the shielding area having the smallest difference in the side bevel angles of any two light beams forming the shielding area and not containing the pen holding hand point data is selected as the first infrared emitting lamp;

[0014] The bevel angle is the angle between the light and the frame of the infrared touch frame.

[0015] As a preferred solution, the selecting of the second infrared emitting lamp having the largest shielding area from the plurality of infrared emitting lamps opposite to the first infrared emitting lamp specifically includes:

[0016] When the number of the second candidate infrared emitting lamps with the largest shielding area selected from the plurality of the infrared emitting lamps opposite to the first infrared emitting lamp is one, determining that the second candidate infrared emitting lamp is the second infrared emitting lamp;

[0017] When the number of second candidate infrared emitting lamps with the largest occlusion area selected from the plurality of infrared emitting lamps opposite to the first infrared emitting lamp is greater than one, the second candidate infrared emitting lamp corresponding to the occlusion area having the smallest difference in the side bevel angles of any two light beams forming the occlusion area and not containing the pen holding hand point data is selected as the second infrared emitting lamp;

[0018] The bevel angle is the angle between the light and the frame of the infrared touch frame.

[0019] As a preferred solution, the method of processing the intersection area using the shielding areas corresponding to the plurality of infrared emitting lamps to obtain candidate pen points specifically includes:

[0020] From the shielding areas corresponding to the plurality of infrared emitting lamps on the same side as the first infrared emitting lamp, select a third shielding area in which the difference between the side bevel angles of any two light beams forming the shielding area is the smallest and which has an overlapping area with the intersection area;

[0021] From the shielding areas corresponding to the plurality of infrared emitting lamps on the same side as the second infrared emitting lamp, select a fourth shielding area in which the difference between the side bevel angles of any two light beams forming the shielding area is the smallest and which has an overlapping area with the intersection area;

[0022] The intersection area is truncated using the third occlusion area and the fourth occlusion area, and the truncated area is used as the candidate pen point.

[0023] As a preferred solution, the method of processing the intersection area using the shielding areas corresponding to the plurality of infrared emitting lamps to obtain candidate pen points specifically includes:

[0024] Determine whether there is a third infrared emitting lamp and a fourth infrared emitting lamp on two sides of the infrared touch frame that are not opposite to the first infrared emitting lamp, respectively, and any corresponding shielding area does not contain the pen holding hand point data;

[0025] When there is at least one of the third infrared emitting lamp and / or the fourth infrared emitting lamp, a fifth shading area is selected from the shading areas corresponding to the third infrared emitting lamps and not containing the pen holding hand point data, wherein the difference between the side bevel angles of any two light beams forming the shading area is the smallest and the fifth shading area has an overlap area with the intersection area;

[0026] And / or, from the shielding areas corresponding to the fourth infrared emitting lamps and not containing the pen-holding hand point data, select a sixth shielding area in which the difference between the side bevel angles of any two light beams forming the shielding area is the smallest and which has an overlapping area with the intersection area;

[0027] The fifth occluded area and / or the sixth occluded area are / is used to perform secondary truncation processing on the truncated area, and the secondary truncation area is used as the candidate pen point.

[0028] As a preferred solution, when it is detected that the candidate pen point meets a preset pen point determination condition, determining the candidate pen point as a target pen point specifically includes:

[0029] When it is detected that no light currently passes through the candidate pen point, the size of the candidate pen point meets the preset pen point size threshold requirement, and the shape of the candidate pen point matches the preset pen point shape, the candidate pen point is determined to be the target pen point.

[0030] As a preferred solution, after detecting that the pen-holding hand point data currently exists, the method further includes:

[0031] Determine whether the target pen point exists in a preset anti-mistouch area; wherein the anti-mistouch area is a circular area with the center of the pen holding hand point data as the center and a preset length value as the radius;

[0032] When it is detected that the target pen point does not exist in the anti-mistouch area, and the moving distance of the pen-holding hand point data is greater than a preset distance threshold, the pen-holding hand point data is determined to be valid touch point data;

[0033] When the target pen point is detected to exist in the anti-mistouch area, the pen-holding hand point data is determined to be invalid touch point data, and the target pen point in the anti-mistouch area that is farthest from the center of the pen-holding hand point data is locked as valid touch point data until the touch point data of the target pen point farthest from the center of the pen-holding hand point data can no longer be detected, and it is re-determined whether the target pen point exists in the anti-mistouch area.

[0034] A second aspect of an embodiment of the present invention provides a touch point processing device, including:

[0035] The occlusion area acquisition module is used to:

[0036] When it is detected that there is currently pen-holding hand point data matching the preset pen-holding hand point data information, the shielding area corresponding to each infrared emitting lamp is obtained; wherein the shielding area is an area formed between any two light beams in the light beam group emitted by the infrared emitting lamp, and the light beam group between the any two light beams is shielded;

[0037] Selecting a first infrared emitting lamp having the largest shielding area and located on any side of the infrared touch frame from among the plurality of infrared emitting lamps, and acquiring a first shielding area corresponding to the first infrared emitting lamp and not containing the pen holding hand point data;

[0038] Select a second infrared emitting lamp with the largest shielding area from among the plurality of infrared emitting lamps opposite to the first infrared emitting lamp, and obtain a second shielding area corresponding to the second infrared emitting lamp that does not contain the pen holding hand point data;

[0039] Occlusion area processing module, used for:

[0040] According to the intersection area of ​​the first blocking area and the second blocking area, the intersection area is processed by using the blocking areas corresponding to the plurality of infrared emitting lamps to obtain candidate pen points;

[0041] Target pen point recognition module, used for:

[0042] When it is detected that the candidate pen point meets the preset pen point determination condition, the candidate pen point is determined to be a target pen point.

[0043] A third aspect of an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the touch point processing method described in any one of the first aspects when executing the computer program.

[0044] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the touch point processing method described in any one of the first aspects.

[0045] Compared with the prior art, the beneficial effect of the embodiments of the present invention is that when the pen-holding hand point data is detected, the occlusion areas corresponding to several infrared emitting lights and the preset pen point judgment conditions can be utilized to accurately identify the target pen point when the pen-holding hand blocks a large amount of infrared light, thereby ensuring the user's writing effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 is a schematic flow chart of a touch point processing method in an embodiment of the present invention;

[0047] Figure 2 Schematic diagram of the width and height of the hand holding the pen in an embodiment of the present invention;

[0048] Figure 3 is a schematic diagram of occlusion areas corresponding to candidate pen points and pen-holding hand points in an embodiment of the present invention;

[0049] Figure 4 Schematic diagram of the structure of a touch point processing device in an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] See also Figure 1 A first aspect of an embodiment of the present invention provides a touch point processing method, comprising the following steps S1 to S5:

[0052] Step S1, when it is detected that there is currently pen-holding hand point data matching the preset pen-holding hand point data information, obtaining the shielding area corresponding to each infrared emitting lamp; wherein the shielding area is an area formed between any two beams of light in the light group emitted by the infrared emitting lamp, and the light group between the any two beams of light is shielded;

[0053] Step S2, selecting a first infrared emitting lamp having the largest shielding area and located on any side of the infrared touch frame from among the plurality of infrared emitting lamps, and obtaining a first shielding area corresponding to the first infrared emitting lamp and not containing the pen holding hand point data;

[0054] Step S3, selecting a second infrared emitting lamp having the largest shielding area from a plurality of the infrared emitting lamps opposite to the first infrared emitting lamp, and obtaining a second shielding area corresponding to the second infrared emitting lamp and not containing the pen holding hand point data;

[0055] Step S4, according to the intersection area of ​​the first shielding area and the second shielding area, the intersection area is processed by using the shielding areas corresponding to the plurality of infrared emitting lamps to obtain candidate pen points;

[0056] Step S5: when it is detected that the candidate pen point meets the preset pen point determination condition, the candidate pen point is determined to be a target pen point.

[0057] Specifically, the preset pen-holding hand point data information in this embodiment includes the width threshold and height threshold of the pen-holding hand point. For example, considering that different users have different pen-holding postures, this will cause the width and height of the detected pen-holding hand point to be different. For a pen-holding hand point with a width greater than the height, the width threshold can be set to 20mm, and the height threshold can be set to 4mm; for a pen-holding hand point with a height greater than the width, the width threshold can be set to 4mm, and the height threshold can be set to 20mm. Therefore, for any touch point, if max (width, height) is greater than 20mm, and min (width, height) is greater than 4mm, the touch point is determined to be a pen-holding hand point. Of course, the width threshold and height threshold of the pen-holding hand point can be set to other values ​​according to actual application requirements, and this embodiment is not specifically limited here.

[0058] Considering that the touch point formed by the hand holding the pen on the touch screen is irregular in shape, such as Figure 2As shown, this embodiment is based on the x-axis maximum value, x-axis minimum value, y-axis maximum value and y-axis minimum value in the acquired touch point data, and uses the difference between the x-axis maximum value and the x-axis minimum value as the width value of the touch point data, and uses the difference between the y-axis maximum value and the y-axis minimum value as the height value of the touch point data. Based on the comparison result of the width value and the height value, it is determined whether the two exceed the above-mentioned preset width threshold and height threshold of the pen-holding hand point respectively. If so, it indicates that the touch point is a pen-holding hand point.

[0059] Furthermore, in order to accurately identify the target pen point, this embodiment needs to obtain the shielding area corresponding to each infrared emission light, such as Figure 3 As shown, the infrared emitting lamps arranged on the infrared touch frame emit light groups to detect touch points. When the pen tip or the hand holding the pen presses on the infrared touch screen, part of the light emitted by some infrared emitting lamps will be blocked, thereby forming a blocking area.

[0060] In order to quickly find candidate pen points other than the pen-holding hand points, this embodiment selects the first infrared emitting lamp with the largest blocked area and located on any side of the infrared touch frame from several infrared emitting lamps. It can be understood that, among the infrared emitting lamps whose emitted light is partially blocked, if there is only one blocked area, it means that the infrared emitting lamp is only blocked by the pen-holding hand, that is, it cannot detect the position of the candidate pen point. If the blocked area is greater than one, the infrared emitting lamp is blocked by not only the pen-holding hand but also the pen tip on the infrared touch screen. This embodiment directly selects the first infrared emitting lamp with the largest blocked area to ensure that the blocked area blocked only by the pen tip can be found.

[0061] Furthermore, if Figure 3 As shown, infrared emitting lamps are provided on the four frames of the infrared touch frame. If there is an infrared emitting lamp with the most blocked areas on one side, there may also be an infrared emitting lamp with the most blocked areas on the opposite side. Therefore, this embodiment selects a second infrared emitting lamp with the most blocked areas from several infrared emitting lamps opposite to the first infrared emitting lamp, and obtains another blocked area that does not contain the pen holding hand point data, that is, only blocked by the pen tip.

[0062] Furthermore, if Figure 3 As shown, an intersection area is formed between the first occlusion area and the second occlusion area. The outline of the intersection area is usually a rhombus. There must be an unfound candidate pen point waiting to be found in the intersection area. Therefore, this embodiment uses the occlusion areas corresponding to several infrared emitting lights to truncate the intersection area to obtain the candidate pen points in the intersection area.

[0063] Since the currently identified candidate pen point may be a real target pen point, or it may be a touch point accidentally touched by the user's finger during the writing process, or it may be a false hole point due to the interference of the palm and fingers, this embodiment further identifies the candidate pen point in combination with the information of the real pen tip touch point. When it is detected that the candidate pen point meets the preset pen point determination conditions, the candidate pen point is determined to be the target pen point.

[0064] The touch point processing method provided by the embodiment of the present invention can, when detecting the pen-holding hand point data, utilize the occlusion areas corresponding to several infrared emitting lights and preset pen point determination conditions. It can accurately identify the target pen point when the pen-holding hand blocks a large amount of infrared light, thereby ensuring the user's writing effect.

[0065] As a preferred solution, the step of selecting the first infrared emitting lamp having the largest shielding area and located on any side of the infrared touch frame from among the plurality of infrared emitting lamps specifically includes:

[0066] When the number of first candidate infrared emitting lamps selected from the plurality of infrared emitting lamps, which has the largest shielding area and is located on any side of the infrared touch frame is one, determining that the first candidate infrared emitting lamp is the first infrared emitting lamp;

[0067] When the number of candidate infrared emitting lamps selected from the plurality of infrared emitting lamps that have the largest shielding area and are located on the same side of the infrared touch frame is greater than one, the first candidate infrared emitting lamp corresponding to the shielding area having the smallest difference in the side bevel angles of any two light beams forming the shielding area and not containing the pen holding hand point data is selected as the first infrared emitting lamp;

[0068] The bevel angle is the angle between the light and the frame of the infrared touch frame.

[0069] Specifically, since there may be more than one infrared emitting lamp with the most occlusion areas on the same side of the infrared touch frame, when the number of candidate infrared emitting lamps with the most occlusion areas selected and located on the same side of the infrared touch frame is greater than one, considering that the stability of inclined light signals is weaker than the stability of light signals close to vertical, the first candidate infrared emitting lamp corresponding to the occlusion area with the smallest difference in the side bevel angles of the two light beams forming the occlusion area and containing no pen-holding data is taken as the first infrared emitting lamp, thereby indicating that the light emitted by the first infrared emitting lamp, which is perpendicular to the frame, is directly facing the pen tip and is blocked by the pen tip, thereby being able to more accurately identify the position of the pen tip.

[0070] As a preferred solution, the selecting of the second infrared emitting lamp having the largest shielding area from the plurality of infrared emitting lamps opposite to the first infrared emitting lamp specifically includes:

[0071] When the number of the second candidate infrared emitting lamps with the largest shielding area selected from the plurality of the infrared emitting lamps opposite to the first infrared emitting lamp is one, determining that the second candidate infrared emitting lamp is the second infrared emitting lamp;

[0072] When the number of second candidate infrared emitting lamps with the largest occlusion area selected from the plurality of infrared emitting lamps opposite to the first infrared emitting lamp is greater than one, the second candidate infrared emitting lamp corresponding to the occlusion area having the smallest difference in the side bevel angles of any two light beams forming the occlusion area and not containing the pen holding hand point data is selected as the second infrared emitting lamp;

[0073] The bevel angle is the angle between the light and the frame of the infrared touch frame.

[0074] Specifically, similar to the first infrared emitting lamp, when the number of second candidate infrared emitting lamps with the largest occlusion area selected from a number of infrared emitting lamps opposite to the first infrared emitting lamp is greater than one, considering that the stability of inclined light signals is weaker than the stability of nearly vertical light signals, the second candidate infrared emitting lamp corresponding to the occlusion area where the difference between the side bevel angles of the two light beams forming the occlusion area is the smallest and does not contain pen holding hand point data is used as the second infrared emitting lamp, thereby indicating that the light perpendicular to the frame emitted by the second infrared emitting lamp is facing the pen tip and is blocked by the pen tip, and the position of the pen tip can be identified more accurately. In addition, for the second occlusion area corresponding to the second infrared emitting lamp where the difference between the side bevel angles of any two light beams forming the occlusion area is the smallest and does not contain pen holding hand point data, and the first occlusion area corresponding to the first infrared emitting lamp where the difference between the side bevel angles of any two light beams forming the occlusion area is the smallest and does not contain pen holding hand point data, it can ensure that the intersection area between the first occlusion area and the second occlusion area is minimized, thereby significantly increasing the hit rate of finding candidate pen points.

[0075] As a preferred solution, the method of processing the intersection area using the shielding areas corresponding to the plurality of infrared emitting lamps to obtain candidate pen points specifically includes:

[0076] From the shielding areas corresponding to the plurality of infrared emitting lamps on the same side as the first infrared emitting lamp, select a third shielding area in which the difference between the side bevel angles of any two light beams forming the shielding area is the smallest and which has an overlapping area with the intersection area;

[0077] From the shielding areas corresponding to the plurality of infrared emitting lamps on the same side as the second infrared emitting lamp, select a fourth shielding area in which the difference between the side bevel angles of any two light beams forming the shielding area is the smallest and which has an overlapping area with the intersection area;

[0078] The intersection area is truncated using the third occlusion area and the fourth occlusion area, and the truncated area is used as the candidate pen point.

[0079] Specifically, in order to further narrow the intersection area to find candidate pen points therein, this embodiment selects the third and fourth occlusion areas in which the difference between the side bevel angles of any two light beams forming the occlusion areas is the smallest and which have overlapping areas with the intersection area from the occlusion areas corresponding to several infrared emitting lamps on the same side as the first infrared emitting lamp and the occlusion areas corresponding to several infrared emitting lamps on the same side as the second infrared emitting lamp, respectively. The intersection area is truncated by using these two occlusion areas, which can filter out most of the areas without touch points, thereby using the truncated areas as candidate pen points.

[0080] As a preferred solution, the method of processing the intersection area using the shielding areas corresponding to the plurality of infrared emitting lamps to obtain candidate pen points specifically includes:

[0081] Determine whether there is a third infrared emitting lamp and a fourth infrared emitting lamp on two sides of the infrared touch frame that are not opposite to the first infrared emitting lamp, respectively, and any corresponding shielding area does not contain the pen holding hand point data;

[0082] When there is at least one of the third infrared emitting lamp and / or the fourth infrared emitting lamp, a fifth shading area is selected from the shading areas corresponding to the third infrared emitting lamps and not containing the pen holding hand point data, wherein the difference between the side bevel angles of any two light beams forming the shading area is the smallest and the fifth shading area has an overlap area with the intersection area;

[0083] And / or, from the shielding areas corresponding to the fourth infrared emitting lamps and not containing the pen-holding hand point data, select a sixth shielding area in which the difference between the side bevel angles of any two light beams forming the shielding area is the smallest and which has an overlapping area with the intersection area;

[0084] The fifth occluded area and / or the sixth occluded area are / is used to perform secondary truncation processing on the truncated area, and the secondary truncation area is used as the candidate pen point.

[0085] Specifically, in order to further reduce the intersection area, this embodiment first determines whether there is a third infrared emitting lamp and a fourth infrared emitting lamp on the two sides of the infrared touch frame that are not opposite to the first infrared emitting lamp, and whether there is any corresponding blocking area that does not contain the pen holding hand point data. For example, Figure 3As shown, assuming that the first infrared emitting lamp is located at the Top edge, the side opposite to it is the Bottom edge, and the two sides not opposite to it are the Left edge and the Right edge respectively. Since the two sides not opposite to the first infrared emitting lamp may not have the third infrared emitting lamp, may not have the fourth infrared emitting lamp, may not have the third infrared emitting lamp and the fourth infrared emitting lamp at the same time, or may have the third infrared emitting lamp and the fourth infrared emitting lamp at the same time.

[0086] When the third infrared emitting lamp and the fourth infrared emitting lamp do not exist at the same time, the intersection area is cut off by using the third shielding area and the fourth shielding area.

[0087] When there is at least one third infrared emitting lamp, a fifth occlusion area is selected from the occlusion areas corresponding to each third infrared emitting lamp that do not contain pen-holding hand point data, in which the difference between the side bevel angles of any two light beams forming the occlusion area is the smallest and which has an overlapping area with the intersecting area; and then the fifth occlusion area is used to perform a secondary truncation processing on the above-mentioned truncated area to further filter out the area without touch points, and the area after the secondary truncation is used as a candidate pen point.

[0088] When there is at least one fourth infrared emitting lamp, a sixth occlusion area is selected from the occlusion areas corresponding to each fourth infrared emitting lamp that do not contain pen-holding hand point data, in which the difference between the side bevel angles of any two light beams forming the occlusion area is the smallest and which has an overlapping area with the intersecting area; and then the sixth occlusion area is used to perform a secondary truncation processing on the above-mentioned truncated area to further filter out the area without touch points, and the area after the secondary truncation is used as a candidate pen point.

[0089] When there are at least one third infrared emitting lamp and a fourth infrared emitting lamp at the same time, the fifth occlusion area and the sixth occlusion area are selected respectively according to the above process, and then the fifth occlusion area and the sixth occlusion area are used to perform secondary truncation processing on the above truncated area to maximize the filtering of the area with no touch points, and the area after the secondary truncation is used as a candidate pen point.

[0090] As a preferred solution, when it is detected that the candidate pen point meets a preset pen point determination condition, determining the candidate pen point as a target pen point specifically includes:

[0091] When it is detected that no light currently passes through the candidate pen point, the size of the candidate pen point meets the preset pen point size threshold requirement, and the shape of the candidate pen point matches the preset pen point shape, the candidate pen point is determined to be the target pen point.

[0092] It is understandable that if the currently identified candidate pen point can be passed through by light, it indicates that the candidate pen point is not the real target pen point, but a false hole point under the interference of palm and finger occlusion. Since the real pen point is usually circular, and the size is generally controlled within a certain numerical range, such as the size of 1mm to 8mm, the candidate pen point exceeding 8mm is regarded as an interference point, finger point or palm point. In addition, in this embodiment, the pen point shape to be detected can be preset as a circle, an ellipse, etc., and the candidate pen point that does not match the preset pen point shape is also regarded as an interference touch point for elimination.

[0093] As a preferred solution, after detecting that the pen-holding hand point data currently exists, the method further includes:

[0094] Determine whether the target pen point exists in a preset anti-mistouch area; wherein the anti-mistouch area is a circular area with the center of the pen holding hand point data as the center and a preset length value as the radius;

[0095] When it is detected that the target pen point does not exist in the anti-mistouch area, and the moving distance of the pen-holding hand point data is greater than a preset distance threshold, the pen-holding hand point data is determined to be valid touch point data;

[0096] When the target pen point is detected to exist in the anti-mistouch area, the pen-holding hand point data is determined to be invalid touch point data, and the target pen point in the anti-mistouch area that is farthest from the center of the pen-holding hand point data is locked as valid touch point data until the touch point data of the target pen point farthest from the center of the pen-holding hand point data can no longer be detected, and it is re-determined whether the target pen point exists in the anti-mistouch area.

[0097] Specifically, when the user's pen-holding hand falls and the corresponding pen-holding hand point data is detected, this embodiment generates an anti-mistouch area with the pen-holding hand point as the center. It can be understood that for the center of the pen-holding hand point data, the value of the x-axis is the midpoint value of its x-axis maximum value and x-axis minimum value, and the value of the y-axis is the midpoint value of its y-axis maximum value and y-axis minimum value. The radius of the anti-mistouch area can be set according to the length of the stylus used by the user, such as setting it to 30 cm, which is not specifically limited in this embodiment.

[0098] When it is detected that there is no target pen point in the anti-mistouch area, and the moving distance of the pen-holding hand point data is greater than the preset distance threshold, such as 3cm, it indicates that the user may currently want to trigger the palm erase function, that is, use the palm to move on the touch screen to act as an eraser to erase the handwriting. Therefore, the pen-holding hand point data is judged as valid touch point data at this time, so that the palm erase function can be triggered normally.

[0099] When it is detected that there is a target pen point in the anti-mistouch area, the pen-holding hand point data is determined to be invalid touch point data. If the pen-holding hand point data has been reported as valid touch point data, the pen-holding hand point data is determined to be invalid touch point data at the next touch point reporting moment, and then the target pen point farthest from the center of the pen-holding hand point data in the anti-mistouch area is locked as valid touch point data until the touch point data of the target pen point farthest from the center of the pen-holding hand point data can no longer be detected, that is, before the stylus is lifted from the infrared touch screen, the target pen point is used as valid touch point data to ensure the user's writing fluency. After the stylus is lifted from the infrared touch screen, the touch point data of the target pen point can no longer be detected, thereby releasing its valid touch point status, and re-judging whether there is a target pen point in the anti-mistouch area. At this time, the user can perform the palm wiping function or continue writing.

[0100] See also Figure 4 A second aspect of an embodiment of the present invention provides a touch point processing device, including:

[0101] The occlusion area acquisition module 11 is used to:

[0102] When it is detected that there is currently pen-holding hand point data matching the preset pen-holding hand point data information, the shielding area corresponding to each infrared emitting lamp is obtained; wherein the shielding area is an area formed between any two light beams in the light beam group emitted by the infrared emitting lamp, and the light beam group between the any two light beams is shielded;

[0103] Selecting a first infrared emitting lamp having the largest shielding area and located on any side of the infrared touch frame from among the plurality of infrared emitting lamps, and acquiring a first shielding area corresponding to the first infrared emitting lamp and not containing the pen holding hand point data;

[0104] Select a second infrared emitting lamp with the largest shielding area from among the plurality of infrared emitting lamps opposite to the first infrared emitting lamp, and obtain a second shielding area corresponding to the second infrared emitting lamp that does not contain the pen holding hand point data;

[0105] The occlusion region processing module 12 is used to:

[0106] According to the intersection area of ​​the first blocking area and the second blocking area, the intersection area is processed by using the blocking areas corresponding to the plurality of infrared emitting lamps to obtain candidate pen points;

[0107] The target pen point recognition module 13 is used for:

[0108] When it is detected that the candidate pen point meets the preset pen point determination condition, the candidate pen point is determined to be a target pen point.

[0109] As a preferred solution, the occlusion area acquisition module 11 is used to select the first infrared emitting lamp with the largest occlusion area and located on any side of the infrared touch frame from the plurality of infrared emitting lamps, specifically including:

[0110] When the number of first candidate infrared emitting lamps selected from the plurality of infrared emitting lamps, which has the largest shielding area and is located on any side of the infrared touch frame is one, determining that the first candidate infrared emitting lamp is the first infrared emitting lamp;

[0111] When the number of candidate infrared emitting lamps selected from the plurality of infrared emitting lamps that have the largest shielding area and are located on the same side of the infrared touch frame is greater than one, the first candidate infrared emitting lamp corresponding to the shielding area having the smallest difference in the side bevel angles of any two light beams forming the shielding area and not containing the pen holding hand point data is selected as the first infrared emitting lamp;

[0112] The bevel angle is the angle between the light and the frame of the infrared touch frame.

[0113] As a preferred solution, the shielding area acquisition module 11 is used to select the second infrared emitting lamp with the largest shielding area from a plurality of the infrared emitting lamps opposite to the first infrared emitting lamp, specifically including:

[0114] When the number of the second candidate infrared emitting lamps with the largest shielding area selected from the plurality of the infrared emitting lamps opposite to the first infrared emitting lamp is one, determining that the second candidate infrared emitting lamp is the second infrared emitting lamp;

[0115] When the number of second candidate infrared emitting lamps with the largest occlusion area selected from the plurality of infrared emitting lamps opposite to the first infrared emitting lamp is greater than one, the second candidate infrared emitting lamp corresponding to the occlusion area having the smallest difference in the side bevel angles of any two light beams forming the occlusion area and not containing the pen holding hand point data is selected as the second infrared emitting lamp;

[0116] The bevel angle is the angle between the light and the frame of the infrared touch frame.

[0117] As a preferred solution, the occlusion area processing module 12 is used to process the intersection area using the occlusion areas corresponding to the plurality of infrared emitting lamps to obtain candidate pen points, specifically including:

[0118] From the shielding areas corresponding to the plurality of infrared emitting lamps on the same side as the first infrared emitting lamp, select a third shielding area in which the difference between the side bevel angles of any two light beams forming the shielding area is the smallest and which has an overlapping area with the intersection area;

[0119] From the shielding areas corresponding to the plurality of infrared emitting lamps on the same side as the second infrared emitting lamp, select a fourth shielding area in which the difference between the side bevel angles of any two light beams forming the shielding area is the smallest and which has an overlapping area with the intersection area;

[0120] The intersection area is truncated using the third occlusion area and the fourth occlusion area, and the truncated area is used as the candidate pen point.

[0121] As a preferred solution, the occlusion area processing module 12 is used to process the intersection area using the occlusion areas corresponding to the plurality of infrared emitting lamps to obtain candidate pen points, and specifically includes:

[0122] Determine whether there is a third infrared emitting lamp and a fourth infrared emitting lamp on two sides of the infrared touch frame that are not opposite to the first infrared emitting lamp, respectively, and any corresponding shielding area does not contain the pen holding hand point data;

[0123] When there is at least one of the third infrared emitting lamp and / or the fourth infrared emitting lamp, a fifth shading area is selected from the shading areas corresponding to the third infrared emitting lamps and not containing the pen holding hand point data, wherein the difference between the side bevel angles of any two light beams forming the shading area is the smallest and the fifth shading area has an overlap area with the intersection area;

[0124] And / or, from the shielding areas corresponding to the fourth infrared emitting lamps and not containing the pen-holding hand point data, select a sixth shielding area in which the difference between the side bevel angles of any two light beams forming the shielding area is the smallest and which has an overlapping area with the intersection area;

[0125] The fifth occluded area and / or the sixth occluded area are / is used to perform secondary truncation processing on the truncated area, and the secondary truncation area is used as the candidate pen point.

[0126] As a preferred solution, the target pen point recognition module 13 is used to determine that the candidate pen point is a target pen point when it is detected that the candidate pen point meets the preset pen point determination condition, specifically including:

[0127] When it is detected that no light currently passes through the candidate pen point, the size of the candidate pen point meets the preset pen point size threshold requirement, and the shape of the candidate pen point matches the preset pen point shape, the candidate pen point is determined to be the target pen point.

[0128] As a preferred solution, the device further includes a valid touch point determination module, which is used to:

[0129] Determine whether the target pen point exists in a preset anti-mistouch area; wherein the anti-mistouch area is a circular area with the center of the pen holding hand point data as the center and a preset length value as the radius;

[0130] When it is detected that the target pen point does not exist in the anti-mistouch area, and the moving distance of the pen-holding hand point data is greater than a preset distance threshold, the pen-holding hand point data is determined to be valid touch point data;

[0131] When the target pen point is detected to exist in the anti-mistouch area, the pen-holding hand point data is determined to be invalid touch point data, and the target pen point in the anti-mistouch area that is farthest from the center of the pen-holding hand point data is locked as valid touch point data until the touch point data of the target pen point farthest from the center of the pen-holding hand point data can no longer be detected, and it is re-determined whether the target pen point exists in the anti-mistouch area.

[0132] The touch point processing device provided by the embodiment of the present invention can, when detecting the pen-holding hand point data, utilize the occlusion areas corresponding to a number of infrared emitting lights and preset pen point determination conditions. It can accurately identify the target pen point when the pen-holding hand blocks a large amount of infrared light, thereby ensuring the user's writing effect.

[0133] A third aspect of an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the touch point processing method described in any embodiment of the first aspect when executing the computer program.

[0134] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the electronic device.

[0135] The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the schematic diagram is merely an example of an electronic device and does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the diagram, or may combine certain components, or different components, for example, the electronic device may also include an input / output device, a network access device, a bus, etc.

[0136] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device.

[0137] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the electronic device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0138] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the touch point processing method described in any embodiment of the first aspect.

[0139] Wherein, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0140] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A touch point processing method, characterized in that: include: When it is detected that there is currently pen-holding hand point data matching the preset pen-holding hand point data information, the shielding area corresponding to each infrared emitting lamp is obtained; wherein the shielding area is an area formed between any two light beams in the light beam group emitted by the infrared emitting lamp, and the light beam group between the any two light beams is shielded; Selecting a first infrared emitting lamp having the largest shielding area and located on any side of the infrared touch frame from among the plurality of infrared emitting lamps, and acquiring a first shielding area corresponding to the first infrared emitting lamp and not containing the pen holding hand point data; Select a second infrared emitting lamp with the largest shielding area from among the plurality of infrared emitting lamps opposite to the first infrared emitting lamp, and obtain a second shielding area corresponding to the second infrared emitting lamp that does not contain the pen holding hand point data; According to the intersection area of ​​the first blocking area and the second blocking area, the intersection area is processed by using the blocking areas corresponding to the plurality of infrared emitting lamps to obtain candidate pen points; When it is detected that the candidate pen point meets the preset pen point determination condition, the candidate pen point is determined to be a target pen point.

2. The touch point processing method according to claim 1, characterized in that: The selecting, from among the plurality of infrared emitting lamps, a first infrared emitting lamp having the largest shielding area and located on any side of the infrared touch frame specifically includes: When the number of first candidate infrared emitting lamps selected from the plurality of infrared emitting lamps, which has the largest shielding area and is located on any side of the infrared touch frame is one, determining that the first candidate infrared emitting lamp is the first infrared emitting lamp; When the number of candidate infrared emitting lamps selected from the plurality of infrared emitting lamps that have the largest shielding area and are located on the same side of the infrared touch frame is greater than one, the first candidate infrared emitting lamp corresponding to the shielding area having the smallest difference in the side bevel angles of any two light beams forming the shielding area and not containing the pen holding hand point data is selected as the first infrared emitting lamp; The bevel angle is the angle between the light and the frame of the infrared touch frame.

3. The touch point processing method according to claim 1, characterized in that: The step of selecting the second infrared emitting lamp having the largest shielding area from among the plurality of infrared emitting lamps opposite to the first infrared emitting lamp specifically includes: When the number of the second candidate infrared emitting lamps with the largest shielding area selected from the plurality of the infrared emitting lamps opposite to the first infrared emitting lamp is one, determining that the second candidate infrared emitting lamp is the second infrared emitting lamp; When the number of second candidate infrared emitting lamps with the largest occlusion area selected from the plurality of infrared emitting lamps opposite to the first infrared emitting lamp is greater than one, the second candidate infrared emitting lamp corresponding to the occlusion area having the smallest difference in the side bevel angles of any two light beams forming the occlusion area and not containing the pen holding hand point data is selected as the second infrared emitting lamp; The bevel angle is the angle between the light and the frame of the infrared touch frame.

4. The touch point processing method according to claim 1, characterized in that: The processing of the intersection area by using the shielding areas corresponding to the plurality of infrared emitting lamps to obtain candidate pen points specifically includes: From the shielding areas corresponding to the plurality of infrared emitting lamps on the same side as the first infrared emitting lamp, select a third shielding area in which the difference between the side bevel angles of any two light beams forming the shielding area is the smallest and which has an overlapping area with the intersection area; From the shielding areas corresponding to the plurality of infrared emitting lamps on the same side as the second infrared emitting lamp, select a fourth shielding area in which the difference between the side bevel angles of any two light beams forming the shielding area is the smallest and which has an overlapping area with the intersection area; The intersection area is truncated using the third occlusion area and the fourth occlusion area, and the truncated area is used as the candidate pen point.

5. The touch point processing method according to claim 4, characterized in that: The method of processing the intersection area by using the shielding areas corresponding to the plurality of infrared emitting lamps to obtain candidate pen points specifically includes: Determine whether there is a third infrared emitting lamp and a fourth infrared emitting lamp on two sides of the infrared touch frame that are not opposite to the first infrared emitting lamp, respectively, and any corresponding shielding area does not contain the pen holding hand point data; When there is at least one of the third infrared emitting lamp and / or the fourth infrared emitting lamp, a fifth shading area is selected from the shading areas corresponding to the third infrared emitting lamps and not containing the pen holding hand point data, wherein the difference between the side bevel angles of any two light beams forming the shading area is the smallest and the fifth shading area has an overlap area with the intersection area; And / or, from the shielding areas corresponding to the fourth infrared emitting lamps and not containing the pen-holding hand point data, select a sixth shielding area in which the difference between the side bevel angles of any two light beams forming the shielding area is the smallest and which has an overlapping area with the intersection area; The fifth occluded area and / or the sixth occluded area are / is used to perform secondary truncation processing on the truncated area, and the secondary truncation area is used as the candidate pen point.

6. The touch point processing method according to claim 1, characterized in that: When it is detected that the candidate pen point meets the preset pen point determination condition, determining the candidate pen point as the target pen point specifically includes: When it is detected that no light currently passes through the candidate pen point, the size of the candidate pen point meets the preset pen point size threshold requirement, and the shape of the candidate pen point matches the preset pen point shape, the candidate pen point is determined to be the target pen point.

7. The touch point processing method according to claim 1, characterized in that: After detecting that the pen-holding hand point data currently exists, the method further includes: Determine whether the target pen point exists in a preset anti-mistouch area; wherein the anti-mistouch area is a circular area with the center of the pen holding hand point data as the center and a preset length value as the radius; When it is detected that the target pen point does not exist in the anti-mistouch area, and the moving distance of the pen-holding hand point data is greater than a preset distance threshold, the pen-holding hand point data is determined to be valid touch point data; When the target pen point is detected to exist in the anti-mistouch area, the pen-holding hand point data is determined to be invalid touch point data, and the target pen point in the anti-mistouch area that is farthest from the center of the pen-holding hand point data is locked as valid touch point data until the touch point data of the target pen point farthest from the center of the pen-holding hand point data can no longer be detected, and it is re-determined whether the target pen point exists in the anti-mistouch area.

8. A touch point processing device, characterized in that: include: The occlusion area acquisition module is used to: When it is detected that there is currently pen-holding hand point data matching the preset pen-holding hand point data information, the shielding area corresponding to each infrared emitting lamp is obtained; wherein the shielding area is an area formed between any two light beams in the light beam group emitted by the infrared emitting lamp, and the light beam group between the any two light beams is shielded; Selecting a first infrared emitting lamp having the largest shielding area and located on any side of the infrared touch frame from among the plurality of infrared emitting lamps, and acquiring a first shielding area corresponding to the first infrared emitting lamp and not containing the pen holding hand point data; Select a second infrared emitting lamp with the largest shielding area from among the plurality of infrared emitting lamps opposite to the first infrared emitting lamp, and obtain a second shielding area corresponding to the second infrared emitting lamp that does not contain the pen holding hand point data; Occlusion area processing module, used for: According to the intersection area of ​​the first blocking area and the second blocking area, the intersection area is processed by using the blocking areas corresponding to the plurality of infrared emitting lamps to obtain candidate pen points; Target pen point recognition module, used for: When it is detected that the candidate pen point meets the preset pen point determination condition, the candidate pen point is determined to be a target pen point.

9. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the touch point processing method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the touch point processing method according to any one of claims 1 to 7.