CN110794994A - Method and device for determining real contact - Google Patents

Method and device for determining real contact Download PDF

Info

Publication number
CN110794994A
CN110794994A CN201910922037.2A CN201910922037A CN110794994A CN 110794994 A CN110794994 A CN 110794994A CN 201910922037 A CN201910922037 A CN 201910922037A CN 110794994 A CN110794994 A CN 110794994A
Authority
CN
China
Prior art keywords
determining
intersection
light path
clustering
real contact
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910922037.2A
Other languages
Chinese (zh)
Inventor
李永波
邓华芹
林冀蓬
徐文树
李鸾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Timelink Echnology Co Ltd
Original Assignee
Shenzhen Timelink Echnology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Timelink Echnology Co Ltd filed Critical Shenzhen Timelink Echnology Co Ltd
Priority to CN201910922037.2A priority Critical patent/CN110794994A/en
Publication of CN110794994A publication Critical patent/CN110794994A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/042Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means

Landscapes

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

Abstract

The application is suitable for the technical field of data processing, and provides a method for determining a real contact, which is applied to an infrared touch screen and comprises the following steps: determining an occluded light path; and determining a real contact in the intersection point according to the position relation between the intersection point corresponding to the shielded light path and the shielded light path. By the method, the real contact in the intersection point can be accurately determined, so that the probability of misoperation is greatly reduced.

Description

Method and device for determining real contact
Technical Field
The application belongs to the technical field of data processing, and particularly relates to a method and a device for determining a real contact.
Background
The basic structures of infrared touch screen products in the current market are very similar, and usually, an infrared transmitting element and an infrared receiving element are arranged around an outer frame of the touch screen, so that an infrared optical network is formed on the surface of the screen, the infrared transmitting element transmits infrared rays according to a preset transmitting sequence, the infrared receiving element receives the infrared rays, and whether each optical path is shielded or not is detected, so that whether a contact exists or not is judged.
However, the touch points determined by the above method include real touch points and dummy touch points, and the current infrared touch screen has low recognition accuracy for real touch points, which is likely to cause misoperation.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining a real touch point, and can solve the problem that the existing infrared touch screen is low in recognition precision of the real touch point and high in probability of misoperation.
In a first aspect, an embodiment of the present application provides a method for determining a true touch point, where the method for determining a true touch point is applied to an infrared touch screen, and the method for determining a true touch point includes:
determining an occluded light path;
and determining a real contact in the intersection point according to the position relation between the intersection point corresponding to the shielded light path and the shielded light path.
In a first possible implementation manner of the first aspect, before the determining, according to a position relationship between an intersection point corresponding to the blocked light path and the blocked light path, a real contact in the intersection point includes:
clustering the intersection points based on the coordinates of the intersection points corresponding to the shielded light paths to obtain first clustering results corresponding to the intersection points, wherein each first clustering result at least comprises one intersection point;
correspondingly, the determining a real contact in the intersection point according to the position relationship between the intersection point corresponding to the blocked light path and the blocked light path includes:
and determining a real contact in the first clustering result according to the position relation between the intersection point corresponding to the shielded light path and the shielded light path.
Based on the first possible implementation manner of the first aspect of the present application, in a second possible implementation manner, the determining, according to a position relationship between an intersection point corresponding to the blocked light path and the blocked light path, a real contact in the first clustering result, where the number of the first clustering results is greater than or equal to two, includes:
sequencing the first clustering results according to the intersection point density of the first clustering results;
and determining a real contact in the first clustering result according to the position relation and the sequencing result between the intersection point corresponding to the shielded light path and the shielded light path.
Based on the first possible implementation manner of the first aspect of the present application, in a third possible implementation manner, the clustering the intersection point based on the coordinate of the intersection point corresponding to the blocked light path to obtain the first clustering result corresponding to the intersection point includes:
and clustering the intersection points based on the coordinates of the intersection points corresponding to the shielded light paths and a preset rectangular range to obtain a first clustering result corresponding to the intersection points.
Based on the second possible implementation manner of the first aspect of the present application, in a fourth possible implementation manner, the determining a real contact in the first clustering result according to the position relationship and the sorting result between the intersection corresponding to the blocked light path and the blocked light path includes:
step a, each real contact in the intersection points corresponding to the shielded light paths is determined according to the position relation between the intersection points corresponding to the shielded light paths and the sequencing result, the shielded light paths corresponding to the determined real contacts are abandoned, and if the number of the remaining shielded light paths is larger than or equal to the dynamic threshold of the number of the light paths, the real contacts in the intersection points corresponding to the remaining shielded light paths are determined according to the position relation between the remaining shielded light paths and the intersection points corresponding to the remaining shielded light paths and the sequencing result.
Based on the fourth possible implementation manner of the first aspect of the present application, in a fifth possible implementation manner, the method further includes:
b, if the number of the remaining blocked light paths is smaller than the dynamic threshold of the number of the light paths, and the number of the remaining blocked light paths is larger than or equal to the preset re-clustering number value, re-clustering the intersection points corresponding to the remaining blocked light paths based on the coordinates of the intersection points corresponding to the remaining blocked light paths to obtain second clustering results, wherein each second clustering result at least comprises one intersection point corresponding to the remaining blocked light path, and determining a real contact in the second clustering results according to the position relationship between the blocked light paths and the intersection points corresponding to the remaining blocked light paths;
and c, acquiring a union of all the real contact points determined in the step a and all the real contact points determined in the step b, and determining the union as the real contact points in the intersection points in all the shielded light paths.
Based on the fourth possible implementation manner of the first aspect of the present application, in a sixth possible implementation manner, after discarding the blocked light path corresponding to the determined real contact, the method includes:
and determining the dynamic threshold value of the number of the optical paths according to the position relation between the intersection points of the remaining shielded optical paths and the remaining shielded optical paths.
In a second aspect, an embodiment of the present application provides an apparatus for determining a real touch point, where the apparatus for determining a real touch point is applied to an infrared touch screen, and the apparatus for determining a real touch point includes:
an optical path determining unit for determining a blocked optical path;
and the real contact point determining unit is used for determining a real contact point in the intersection point according to the position relation between the intersection point corresponding to the shielded light path and the shielded light path.
In a third aspect, an embodiment of the present application provides a terminal device, including: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method of determining the real contact point when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including: the computer-readable storage medium stores a computer program which, when being executed by a processor, carries out the steps of the method of determining the real contact point as described.
In a fifth aspect, the present application provides a computer program product, which when run on a terminal device, causes the terminal device to execute the steps of the method for determining a true contact according to any one of the first aspect.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Compared with the prior art, the embodiment of the application has the advantages that: because the pseudo contact is an intersection point formed by intersecting the blocked light paths where the at least two real contacts are located, infrared rays emitted by the touch screen can pass through the pseudo contact but cannot pass through the real contact, so that the position relationship between the real contact and the blocked light paths and the position relationship between the pseudo contact and the blocked light paths have great difference, therefore, the real contact in the intersection point can be accurately determined according to the position relationship between the intersection point corresponding to the blocked light paths and the blocked light paths, and the probability of misoperation is greatly reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of a method for determining a true contact according to an embodiment of the present application;
fig. 2 is a schematic diagram of an intersection to be clustered according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for determining a true touch point according to another embodiment of the present application;
FIG. 4 is a diagram illustrating a first clustering result according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus for determining a true contact according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
The method for determining the real contact point provided by the embodiment of the application can be applied to terminal devices such as a mobile phone, a tablet personal computer, a wearable device, a vehicle-mounted device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA) and the like, and the embodiment of the application does not limit the specific type of the terminal device at all.
The first embodiment is as follows:
fig. 1 shows a schematic flowchart of a first method for determining a real touch point, which is applied to an infrared touch screen and detailed as follows:
optionally, in order to improve the accuracy of determining the real touch point of the infrared touch screen, the distance between the infrared emitting elements on the same side of the infrared touch screen is smaller than or equal to a specified distance, and the distance between the infrared receiving elements on the same side of the infrared touch screen is also smaller than or equal to a specified distance.
By way of example and not limitation, the specified pitch is 6 mm.
Step S101, determining the blocked light path.
Specifically, the step S101 includes: and determining the shielded light path according to the infrared emission data and the infrared receiving data.
By way of example and not limitation, the step S101 may specifically be: determining an infrared optical network on the surface of a screen of an infrared touch screen according to infrared emission data and infrared reception data, and determining a blocked light path according to an area covered by the infrared optical network and a cavity area, wherein the cavity area is as follows: the screen surface area that the infrared optical network cannot cover without a touch event.
The sum of the area covered by the infrared optical network, the area of the blocked light path and the area of the hollow area is the area of the surface of the screen, so that the blocked light path can be determined according to the area covered by the infrared optical network and the hollow area.
If a touch event occurs, the touch object forms a shadow on the surface of the screen, and the larger the area of the shadow is, the larger the touch area is.
In some embodiments, the blocked light path is: the blocked light path of the shadow larger than or equal to the preset shadow area is passed through, so that the real touch point with a larger touch area, for example, the real touch point caused by the palm or the finger, can be determined more accurately through the subsequent step S102.
In some embodiments, the blocked light path is: the blocked light path of the shadow smaller than the preset shadow area is passed through, so that the real touch point with a larger touch area, for example, the real touch point caused by the touch object smaller than the finger, can be more accurately determined through the subsequent step S102.
Optionally, after the step S101, the shielded light path is abstracted into a line segment corresponding to the shielded light path by using a topological characteristic of infrared light, so that when the shielded light path is processed in a subsequent step, the line segment corresponding to the shielded light path can be adopted, and a determination process of a real contact is easier.
By way of example and not limitation, the line segment corresponding to the blocked light path may be as shown in fig. 2.
And S102, determining a real contact in the intersection point according to the position relation between the intersection point corresponding to the shielded light path and the shielded light path.
Specifically, the step S102 includes: and if the blocked light path only passes through one intersection point, determining the intersection point as a real contact point, or determining the intersection point corresponding to the blocked light path with the number of the light paths passing through the same intersection point being greater than or equal to a preset light path number threshold value as the real contact point.
In the embodiment of the application, because the pseudo contacts are the intersection points formed by the intersection of the shielded light paths where the at least two real contacts are located, the infrared rays emitted by the touch screen can pass through the pseudo contacts and cannot pass through the real contacts, so that the position relation between the real contacts and the shielded light paths and the position relation between the pseudo contacts and the shielded light paths have great difference, and therefore, the real contacts in the intersection points can be accurately determined according to the intersection points corresponding to the shielded light paths and the position relation between the shielded light paths, and the probability of misoperation is greatly reduced.
Example two:
fig. 3 shows a schematic flowchart of a second method for determining a real touch point, which is provided in the embodiment of the present application, where the method for determining a real touch point is applied to an infrared touch screen, and step S301 in this embodiment is the same as step S101 in the first embodiment, and is not described again here:
step S301, the blocked light path is determined.
Step S302, clustering the intersection points based on the coordinates of the intersection points corresponding to the shielded light paths to obtain first clustering results corresponding to the intersection points, wherein each first clustering result at least comprises one intersection point.
Specifically, the step S302 includes: and determining the position relation between the intersection points based on the coordinates of the intersection points corresponding to the shielded light paths in a preset coordinate system, and clustering the intersection points according to the position relation between the intersection points to obtain a first clustering result corresponding to the intersection points.
Optionally, since the constraint condition of the first clustering result is added, the disorder of the clustering process can be reduced, and in order to improve the clustering efficiency, step S302 includes: and clustering the intersection points based on the coordinates of the intersection points corresponding to the shielded light paths and a preset rectangular range to obtain a first clustering result corresponding to the intersection points.
Specifically, a first intersection point to be clustered is determined based on coordinates of an intersection point corresponding to the shielded light path, a first clustering result is generated according to the first intersection point to be clustered and a preset rectangular range, and if an Nth intersection point to be clustered is within a preset search range of a Qth first clustering result, the Nth intersection point to be clustered is determined as an intersection point in the Qth first clustering result; and if the Nth intersection point to be clustered is not in the preset search range of any first clustering result, generating a new first clustering result according to the Nth intersection point to be clustered and a preset rectangular range, and repeating the steps until all the intersection points are clustered, wherein N is a positive integer equal to or greater than two, and Q is a positive integer less than N.
As an example and not by way of limitation, assuming that N is 2, determining a distance between an intersection point corresponding to the blocked light path and an origin of a preset coordinate system based on coordinates of the intersection point corresponding to the blocked light path, determining an intersection point with a minimum distance from the origin of the preset coordinate system as a first intersection point to be clustered, generating a first clustering result according to the first intersection point to be clustered and a preset rectangular range, and if a second intersection point to be clustered is within a preset search range of the first clustering result, determining the second intersection point to be clustered as an intersection point in the first clustering result; as shown in fig. 2, if the second intersection point to be clustered is not within the preset search range of the first clustering result, the second first clustering result is generated according to the second intersection point to be clustered and the preset rectangular range.
If the preset rectangular range is not equal to the preset search range, after the nth to-be-clustered intersection point is determined as an intersection point in the qth first clustering result, the rectangular range of the qth first clustering result needs to be re-determined, where the rectangular range is the boundary range of the qth first clustering result, so that the boundary range of the qth first clustering result includes the nth to-be-clustered intersection point.
Optionally, after the step S302, the method includes: merging the first clustering results with intersection in the boundary range, or/and determining the distance between the first clustering results, merging the first clustering results meeting the condition that the distance between the first clustering results is less than the preset clustering result distance, wherein the distance between the first clustering results can be equivalent to the distance between the central points of the boundary range of the first clustering results. The first clustering results can be merged, so that the determination efficiency of the real contact in the first clustering results in the subsequent steps is greatly improved.
Step S303, determining a real contact in the first clustering result according to the position relationship between the intersection point corresponding to the blocked light path and the blocked light path.
By way of example and not limitation, assuming that the first clustering result includes a first clustering result P1 and a first clustering result P2, a true touch point in P1 is determined according to a positional relationship between an intersection corresponding to the occluded light path and the occluded light path, a true touch point in P2 is determined according to a positional relationship between an intersection corresponding to the occluded light path and the occluded light path, and a union of the true touch point in P1 and the true touch point in P2 is determined as the true touch point in the entire first clustering result.
Optionally, to a certain extent, since the intersection density of the first clustering result can represent the probability that the corresponding intersection is the true contact, the higher the intersection density is, the higher the probability that the corresponding intersection is the true contact is, in order to facilitate the determination of the intersection with the higher probability of being the true contact, therefore, the number of the first clustering results is greater than or equal to two, and correspondingly, the step S303 includes:
step A1, sequencing the first clustering results according to the intersection point density of the first clustering results;
and A2, determining the real contact in the first clustering result according to the position relation and the sequencing result between the intersection point corresponding to the blocked light path and the blocked light path.
Optionally, in order to determine the intersection density of the first clustering result more accurately, before the step a1, the method includes: determining the intersection point density of the first clustering result according to a preset density calculation formula, wherein the preset density calculation formula is as follows: the intersection density of the first clustering result is equal to the total number of intersections of the first clustering result/the area of the boundary range of the first clustering result.
Specifically, the step a1 includes: and sequencing the first clustering results according to the intersection point density of the first clustering results, wherein the higher the intersection point density of the first clustering results is, the earlier the sequencing corresponding to the first clustering results is, and the earlier the sequencing is, the priority treatment is represented.
Because the pseudo contact is an intersection point formed by intersecting the blocked light paths where the at least two real contacts are located, infrared rays emitted by the touch screen can pass through the pseudo contact but cannot pass through the real contact, so that the position relationship between the real contact and the blocked light paths and the position relationship between the pseudo contact and the blocked light paths have great difference, therefore, the real contact in the intersection point can be accurately determined according to the position relationship between the intersection point corresponding to the blocked light paths and the blocked light paths, and the probability of misoperation is greatly reduced.
Optionally, the step a2 includes:
step a, each real contact in the intersection points corresponding to the shielded light paths is determined according to the position relation between the intersection points corresponding to the shielded light paths and the sequencing result, the shielded light paths corresponding to the determined real contacts are abandoned, and if the number of the remaining shielded light paths is larger than or equal to the dynamic threshold of the number of the light paths, the real contacts in the intersection points corresponding to the remaining shielded light paths are determined according to the position relation between the remaining shielded light paths and the intersection points corresponding to the remaining shielded light paths and the sequencing result.
Because the pseudo contacts are intersection points formed by intersecting the shielded light paths where the at least two real contacts are located, by utilizing the idea of a greedy algorithm, each real contact in the intersection points corresponding to the shielded light paths is determined according to the position relation between the intersection points corresponding to the shielded light paths and the sequencing result, the shielded light paths corresponding to the determined real contacts are abandoned, the pseudo contacts can be gradually resolved, and the real contacts in the intersection points are accurately determined.
By way of example and not limitation, as shown in FIG. 4, assume that the ordering results are: the first clustering result P1 is prior to the first clustering result P2, i.e., the first clustering result P1 needs to be processed first. The first clustering result P1 comprises three intersection points corresponding to the blocked light paths, namely intersection points T1, T2 and T3, the T1 is determined to be a real contact point according to the position relation between the T1 and the blocked light paths b1, b2 and b3, the blocked light paths b1, b2 and b3 corresponding to the T1 are abandoned, and the fake point T2 is eliminated; since the number of the remaining blocked light paths in the first clustering result P1 is 3 and is greater than the dynamic threshold 2 for the number of light paths corresponding to the first clustering result P1, it is determined that T3 is a true touch point according to the position relationship between T3 and the blocked light paths c1, c2 and c3, and the blocked light paths c1, c2 and c3 corresponding to T3 are discarded. By analogy, the true touch points in the first clustering result P2 are determined.
Optionally, in order to improve that it can be determined more accurately whether the intersection point of the remaining blocked optical paths is a real contact, after discarding the blocked optical path corresponding to the determined real contact, the method includes: and determining the dynamic threshold value of the number of the optical paths according to the position relation between the intersection points of the remaining shielded optical paths and the remaining shielded optical paths.
Specifically, the clustering feature of the first clustering result is determined according to the position relationship between the intersection points of the remaining occluded optical paths and the remaining occluded optical paths, and the clustering feature includes but is not limited to: and determining the dynamic threshold of the number of the light paths according to the clustering characteristics by the area of the boundary range of the first clustering result or/and the number of the intersection points of the first clustering result.
Optionally, in order to avoid the missing detection of the real contact, therefore, the method for determining the real contact further includes:
b, if the number of the remaining blocked light paths is smaller than the dynamic threshold of the number of the light paths, and the number of the remaining blocked light paths is larger than or equal to the preset re-clustering number value, re-clustering the intersection points corresponding to the remaining blocked light paths based on the coordinates of the intersection points corresponding to the remaining blocked light paths to obtain second clustering results, wherein each second clustering result at least comprises one intersection point corresponding to the remaining blocked light path, and determining a real contact in the second clustering results according to the position relationship between the blocked light paths and the intersection points corresponding to the remaining blocked light paths;
and c, acquiring a union of all the real contact points determined in the step a and all the real contact points determined in the step b, and determining the union as the real contact points in the intersection points in all the shielded light paths.
Taking the following example to illustrate step c, assuming that all the real contacts determined in step a are T1, T2 and T3, and all the real contacts determined in step b are T4, T5 and T6, a union of all the real contacts determined in step a and all the real contacts determined in step b, i.e., T1, T2, T3, T4, T5 and T6, is obtained, and T1, T2, T3, T4, T5 and T6 are determined as the real contacts in the intersection points in all the occluded optical paths.
In the embodiment of the application, the intersection points are clustered based on the coordinates of the intersection points corresponding to the shielded light paths to obtain first clustering results corresponding to the intersection points, each first clustering result at least comprises one intersection point, and then the real contact points in the first clustering results are determined according to the position relationship between the intersection points corresponding to the shielded light paths and the shielded light paths.
Example three:
corresponding to the above embodiment, fig. 5 shows a schematic structural diagram of an apparatus for determining a real touch point provided in an embodiment of the present application, where the apparatus for determining a real touch point is applied to an infrared touch screen, and for convenience of explanation, only the portions related to the embodiment of the present application are shown.
The device for determining the real contact includes: a light path determination unit 501 and a real contact point determination unit 502.
The optical path determining unit 501 is configured to determine an occluded optical path.
Optionally, the device for determining the real contact further includes: and (5) an abstract unit.
The abstraction unit is to: after the optical path determining unit 501 executes the determination of the blocked optical path, the blocked optical path is abstracted into a line segment corresponding to the blocked optical path by using the topological characteristic of infrared rays, so that the line segment corresponding to the blocked optical path can be adopted when the blocked optical path is processed in the subsequent steps, and the determination process of the real contact is easier.
The real contact point determining unit 502 is configured to determine a real contact point in the intersection point according to a position relationship between the intersection point corresponding to the blocked light path and the blocked light path.
Optionally, the device for determining the real contact further includes: and a clustering unit.
The clustering unit is used for: before the real contact determining unit 502 determines a real contact in the intersection points according to the position relationship between the intersection point corresponding to the occluded light path and the occluded light path, clustering the intersection points based on the coordinates of the intersection points corresponding to the occluded light path to obtain first clustering results corresponding to the intersection points, where each first clustering result at least includes one intersection point; correspondingly, when the real contact point determining unit 502 determines the real contact point in the intersection point according to the position relationship between the intersection point corresponding to the blocked light path and the blocked light path, specifically, the real contact point determining unit is configured to: and determining a real contact in the first clustering result according to the position relation between the intersection point corresponding to the shielded light path and the shielded light path.
Optionally, the number of the first clustering results is greater than or equal to two, and correspondingly, when the determining, by the real contact determining unit 502, the real contact in the first clustering results according to the position relationship between the intersection corresponding to the blocked light path and the blocked light path is executed, specifically: sequencing the first clustering results according to the intersection point density of the first clustering results; and determining a real contact in the first clustering result according to the position relation and the sequencing result between the intersection point corresponding to the shielded light path and the shielded light path.
Optionally, in order to determine the intersection point density of the first clustering result more accurately, before the real contact point determining unit 502 performs the sorting of the first clustering results according to the intersection point density of the first clustering results, the intersection point density of the first clustering results is determined according to a preset density calculation formula, where the preset density calculation formula is: the intersection density of the first clustering result is equal to the total number of intersections of the first clustering result/the area of the boundary range of the first clustering result.
Optionally, when the clustering unit performs clustering on the intersection point based on the coordinate of the intersection point corresponding to the blocked light path to obtain the first clustering result corresponding to the intersection point, the clustering unit is specifically configured to: and clustering the intersection points based on the coordinates of the intersection points corresponding to the shielded light paths and a preset rectangular range to obtain a first clustering result corresponding to the intersection points.
Optionally, the device for determining the real contact further includes: and a merging unit.
The merging unit is used for: after the clustering unit determines the real contact in the intersection point according to the position relationship between the intersection point corresponding to the shielded light path and the shielded light path, merging the first clustering results with intersection in the boundary range, or/and determining the distance between the first clustering results, merging the first clustering results meeting the condition that the distance between the first clustering results is smaller than the preset clustering result distance, wherein the distance between the first clustering results can be equivalent to the distance between the central points of the boundary range of the first clustering results. The first clustering results can be merged, so that the determination efficiency of the real contact in the first clustering results in the subsequent steps is greatly improved.
Optionally, when the real contact determining unit 502 determines the real contact in the first clustering result according to the position relationship between the intersection corresponding to the blocked light path and the sorting result, specifically configured to: and a, each real contact in the intersection points corresponding to the shielded light paths is determined according to the position relation between the intersection points corresponding to the shielded light paths and the sequencing result, the shielded light paths corresponding to the determined real contacts are abandoned, and if the number of the remaining shielded light paths is greater than or equal to the dynamic threshold of the number of the light paths, the real contacts in the intersection points corresponding to the remaining shielded light paths are determined according to the position relation between the remaining shielded light paths and the intersection points corresponding to the remaining shielded light paths and the sequencing result.
Optionally, the real contact point determining unit 502 is further configured to: if the number of the remaining blocked light paths is smaller than the dynamic threshold of the number of the light paths, and the number of the remaining blocked light paths is larger than or equal to the preset re-clustering number value, re-clustering the intersection points corresponding to the remaining blocked light paths based on the coordinates of the intersection points corresponding to the remaining blocked light paths to obtain second clustering results, wherein each second clustering result at least comprises one intersection point corresponding to the remaining blocked light path, and determining a real contact in the second clustering results according to the position relationship between the blocked light paths and the intersection points corresponding to the remaining blocked light paths; and c, acquiring a union of all the real contact points determined in the step a and all the real contact points determined in the step b, and determining the union as the real contact points in the intersection points in all the shielded light paths.
Optionally, the real contact point determining unit 502 is further configured to: and after the blocked light path corresponding to the determined real contact point is abandoned, determining a dynamic threshold value of the light path quantity according to the position relation between the intersection points of the remaining blocked light path and the remaining blocked light path.
In the embodiment of the application, because the pseudo contacts are the intersection points formed by the intersection of the shielded light paths where the at least two real contacts are located, the infrared rays emitted by the touch screen can pass through the pseudo contacts and cannot pass through the real contacts, so that the position relation between the real contacts and the shielded light paths and the position relation between the pseudo contacts and the shielded light paths have great difference, and therefore, the real contacts in the intersection points can be accurately determined according to the intersection points corresponding to the shielded light paths and the position relation between the shielded light paths, and the probability of misoperation is greatly reduced.
Example four:
fig. 6 is a schematic structural diagram of a terminal device for determining a true contact according to an embodiment of the present application. As shown in fig. 6, the determination terminal device 6 of the real contact of the embodiment includes: at least one processor 60 (only one shown in fig. 6), a memory 61, and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, the processor 60 implementing the steps in any of the various real contact determination method embodiments described above when executing the computer program 62.
The terminal device 6 for determining the real contact may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal equipment for determining the real contact point may include, but is not limited to, a processor 60 and a memory 61. It will be understood by those skilled in the art that fig. 6 is merely an example of the terminal device 6 for determining the actual contact points, and does not constitute a limitation of the terminal device 6 for determining the actual contact points, and may include more or less components than those shown, or some components in combination, or different components, such as an input-output device, a network access device, and the like.
The Processor 60 may be a Central Processing Unit (CPU), and the Processor 60 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may in some embodiments be an internal storage unit of the determination terminal device 6 of the real contact point, for example a hard disk or a memory of the determination terminal device 6 of the real contact point. The memory 61 may also be an external storage device of the terminal device 6 for determining the real contact point in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are equipped on the terminal device 6 for determining the real contact point. Further, the memory 61 may also include both an internal storage unit of the determination terminal device 6 of the real contact and an external storage device. The memory 61 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, and other programs, such as program codes of the computer program. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, because the contents of information interaction, execution process, and the like between the above units are based on the same concept as that of the embodiment of the method of the present application, specific functions and technical effects thereof may be specifically referred to a part of the embodiment of the method, and details thereof are not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or apparatus capable of carrying computer program code to a photographing terminal device, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed network device and method may be implemented in other ways. For example, the above described network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical functional division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for determining a real touch point is applied to an infrared touch screen, and comprises the following steps:
determining an occluded light path;
and determining a real contact in the intersection point according to the position relation between the intersection point corresponding to the shielded light path and the shielded light path.
2. The method for determining the real contact point according to claim 1, wherein before determining the real contact point in the intersection point according to the position relationship between the intersection point corresponding to the blocked light path and the blocked light path, the method comprises:
clustering the intersection points based on the coordinates of the intersection points corresponding to the shielded light paths to obtain first clustering results corresponding to the intersection points, wherein each first clustering result at least comprises one intersection point;
correspondingly, the determining a real contact in the intersection point according to the position relationship between the intersection point corresponding to the blocked light path and the blocked light path includes:
and determining a real contact in the first clustering result according to the position relation between the intersection point corresponding to the shielded light path and the shielded light path.
3. The method for determining the real contact point according to claim 2, wherein the number of the first clustering results is greater than or equal to two, and correspondingly, the determining the real contact point in the first clustering results according to the position relationship between the intersection point corresponding to the blocked light path and the blocked light path comprises:
sequencing the first clustering results according to the intersection point density of the first clustering results;
and determining a real contact in the first clustering result according to the position relation and the sequencing result between the intersection point corresponding to the shielded light path and the shielded light path.
4. The method for determining the real contact point according to claim 2, wherein the clustering the intersection point based on the coordinates of the intersection point corresponding to the occluded light path to obtain the first clustering result corresponding to the intersection point comprises:
and clustering the intersection points based on the coordinates of the intersection points corresponding to the shielded light paths and a preset rectangular range to obtain a first clustering result corresponding to the intersection points.
5. The method for determining the real contact point according to claim 3, wherein the determining the real contact point in the first clustering result according to the position relationship between the intersection point corresponding to the blocked light path and the sorting result comprises:
step a, each real contact in the intersection points corresponding to the shielded light paths is determined according to the position relation between the intersection points corresponding to the shielded light paths and the sequencing result, the shielded light paths corresponding to the determined real contacts are abandoned, and if the number of the remaining shielded light paths is larger than or equal to the dynamic threshold of the number of the light paths, the real contacts in the intersection points corresponding to the remaining shielded light paths are determined according to the position relation between the remaining shielded light paths and the intersection points corresponding to the remaining shielded light paths and the sequencing result.
6. The method for determining a true touch point according to claim 5, further comprising:
b, if the number of the remaining blocked light paths is smaller than the dynamic threshold of the number of the light paths, and the number of the remaining blocked light paths is larger than or equal to the preset re-clustering number value, re-clustering the intersection points corresponding to the remaining blocked light paths based on the coordinates of the intersection points corresponding to the remaining blocked light paths to obtain second clustering results, wherein each second clustering result at least comprises one intersection point corresponding to the remaining blocked light path, and determining a real contact in the second clustering results according to the position relationship between the blocked light paths and the intersection points corresponding to the remaining blocked light paths;
and c, acquiring a union of all the real contact points determined in the step a and all the real contact points determined in the step b, and determining the union as the real contact points in the intersection points in all the shielded light paths.
7. The method for determining the real contact point according to claim 5, wherein after discarding the blocked light path corresponding to the determined real contact point, the method comprises:
and determining the dynamic threshold value of the number of the optical paths according to the position relation between the intersection points of the remaining shielded optical paths and the remaining shielded optical paths.
8. A device for determining a real touch point, wherein the device for determining a real touch point is applied to an infrared touch screen, and the device for determining a real touch point comprises:
an optical path determining unit for determining a blocked optical path;
and the real contact point determining unit is used for determining a real contact point in the intersection point according to the position relation between the intersection point corresponding to the shielded light path and the shielded light path.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201910922037.2A 2019-09-27 2019-09-27 Method and device for determining real contact Pending CN110794994A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910922037.2A CN110794994A (en) 2019-09-27 2019-09-27 Method and device for determining real contact

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910922037.2A CN110794994A (en) 2019-09-27 2019-09-27 Method and device for determining real contact

Publications (1)

Publication Number Publication Date
CN110794994A true CN110794994A (en) 2020-02-14

Family

ID=69439911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910922037.2A Pending CN110794994A (en) 2019-09-27 2019-09-27 Method and device for determining real contact

Country Status (1)

Country Link
CN (1) CN110794994A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114385025A (en) * 2020-10-22 2022-04-22 青岛海信商用显示股份有限公司 Touch positioning method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419663A (en) * 2011-08-03 2012-04-18 北京汇冠新技术股份有限公司 Multipoint identification method and system for infrared touch screen
CN103677441A (en) * 2012-09-18 2014-03-26 北京汇冠新技术股份有限公司 Infrared multipoint identification method, infrared multipoint identification device and infrared touch screen
CN104615311A (en) * 2015-02-10 2015-05-13 青岛海信电器股份有限公司 Positioning method and device for touch screen and touch screen equipment
CN105373267A (en) * 2015-12-14 2016-03-02 广州华欣电子科技有限公司 Multi-point identification method and device of infrared touch screen and infrared touch screen
CN107831953A (en) * 2017-12-14 2018-03-23 青岛海信电器股份有限公司 A kind of infrared touch panel scan method, device and infrared touch control device
CN107967083A (en) * 2017-12-18 2018-04-27 青岛海信电器股份有限公司 The definite method and device of touch point

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419663A (en) * 2011-08-03 2012-04-18 北京汇冠新技术股份有限公司 Multipoint identification method and system for infrared touch screen
CN103677441A (en) * 2012-09-18 2014-03-26 北京汇冠新技术股份有限公司 Infrared multipoint identification method, infrared multipoint identification device and infrared touch screen
CN104615311A (en) * 2015-02-10 2015-05-13 青岛海信电器股份有限公司 Positioning method and device for touch screen and touch screen equipment
CN105373267A (en) * 2015-12-14 2016-03-02 广州华欣电子科技有限公司 Multi-point identification method and device of infrared touch screen and infrared touch screen
CN107831953A (en) * 2017-12-14 2018-03-23 青岛海信电器股份有限公司 A kind of infrared touch panel scan method, device and infrared touch control device
CN107967083A (en) * 2017-12-18 2018-04-27 青岛海信电器股份有限公司 The definite method and device of touch point

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114385025A (en) * 2020-10-22 2022-04-22 青岛海信商用显示股份有限公司 Touch positioning method, device, equipment and storage medium
CN114385025B (en) * 2020-10-22 2024-05-07 青岛海信商用显示股份有限公司 Touch positioning method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US20220036648A1 (en) Method and terminal device for determining occluded area of virtual object
KR20170030613A (en) Touch classification
CN108255602B (en) Task combination method and terminal equipment
CN108399025B (en) Method and device for correcting identification deviation and terminal equipment
CN110489015B (en) Touch point determining method and device, touch screen and display
CN109949306B (en) Reflecting surface angle deviation detection method, terminal device and storage medium
CN110910334B (en) Instance segmentation method, image processing device and computer readable storage medium
CN113392794A (en) Vehicle over-line identification method and device, electronic equipment and storage medium
CN114676040A (en) Test coverage verification method and device and storage medium
CN112733531A (en) Virtual resource allocation method and device, electronic equipment and computer storage medium
CN113934312B (en) Touch object identification method based on infrared touch screen and terminal equipment
CN109961516B (en) Surface acquisition method, device and non-transitory computer readable recording medium
CN114374392A (en) Data compression storage method and device, terminal equipment and readable storage medium
CN110794994A (en) Method and device for determining real contact
CN114691356A (en) Data parallel processing method and device, computer equipment and readable storage medium
CN111694992A (en) Data processing method and device
CN107071553B (en) Method, device and computer readable storage medium for modifying video and voice
CN112966466A (en) Circuit board substrate selection method and device, terminal equipment and storage medium
CN110113712B (en) Positioning processing method and device
CN110942445B (en) Contact identification method and device of infrared touch screen, terminal equipment and storage medium
CN113591862A (en) Text recognition method and device
CN110647519B (en) Method and device for predicting missing attribute value in test sample
CN113066006B (en) Airborne laser radar point cloud data resolving method and device and electronic equipment
CN113672159B (en) Wind control method, wind control device, computing equipment and computer storage medium
CN112100180B (en) Method and device for determining position range, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200214

RJ01 Rejection of invention patent application after publication