CN105487712B - A kind of method, apparatus and touch-screen equipment of the candidate touch point of positioning - Google Patents

A kind of method, apparatus and touch-screen equipment of the candidate touch point of positioning Download PDF

Info

Publication number
CN105487712B
CN105487712B CN201510869523.4A CN201510869523A CN105487712B CN 105487712 B CN105487712 B CN 105487712B CN 201510869523 A CN201510869523 A CN 201510869523A CN 105487712 B CN105487712 B CN 105487712B
Authority
CN
China
Prior art keywords
light path
scanning direction
voltage value
scanning
path voltage
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.)
Active
Application number
CN201510869523.4A
Other languages
Chinese (zh)
Other versions
CN105487712A (en
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.)
Hisense Visual Technology Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201510869523.4A priority Critical patent/CN105487712B/en
Publication of CN105487712A publication Critical patent/CN105487712A/en
Application granted granted Critical
Publication of CN105487712B publication Critical patent/CN105487712B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment

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 embodiment of the invention discloses the method, apparatus and touch-screen equipment of a kind of candidate touch point of positioning, are related to technical field of touch control, can improve touch spot placement accuracy.Concrete scheme is:Within a scan period, the light path voltage value in each light path on the first scanning direction and the second scanning direction is obtained;For the light path voltage value assignment of each scan blind spot on the first scanning direction and the second scanning direction;According to the light path voltage value of the light path voltage value on the first scanning direction in each light path and each scan blind spot on the first scanning direction, determine the touch area on the first scanning direction, and according to the light path voltage value of the light path voltage value on the second scanning direction in each light path and each scan blind spot on the second scanning direction, determine the touch area on the second scanning direction;The intersection for calculating the touch area and the touch area on the second scanning direction on the first scanning direction, obtains candidate touch point.During the embodiment of the present invention is applied to positioning touch point.

Description

Method and device for positioning candidate touch points and touch screen equipment
Technical Field
The invention relates to the technical field of touch control, in particular to a method and a device for positioning candidate touch points and touch screen equipment.
Background
With the proposal of a novel human-computer interaction technology, namely a touch screen technology, the input control mode of electronic products is gradually changed from the traditional keyboard or mouse control mode to the touch screen control mode. Compared with the traditional input control mode, the touch screen technology can provide more simplified man-machine interaction service for users.
Among them, the infrared touch technology is a common touch screen technology. An infrared touch screen frame adopted by the infrared touch technology is of a rectangular structure, and the infrared touch screen frame consists of a long transmitting side, a long receiving side, a short transmitting side and a short receiving side.
In the prior art, for the case of multi-touch point touch, the infrared touch technology generally calculates the intersection of touch areas formed by blocked light paths in long and short side normal scanning light paths (such as the long side normal scanning light path shown in fig. 1 and the short side normal scanning light path shown in fig. 2) and long and short side oblique scanning light paths (such as the long side oblique scanning light path shown in fig. 3 and the short side oblique scanning light path shown in fig. 4) to locate candidate touch points, so as to determine a candidate touch point set (i.e., possible touch points), and then performs true and false determination from the candidate touch points in the candidate touch point set, thereby determining a true touch point.
Specifically, in the prior art, when the infrared touch technology performs candidate touch point positioning, the blocked light path can be determined in the following manner: determining a light path voltage value corresponding to each light path according to the intensity of the light signal received by each receiving lamp on the corresponding light path (the higher the intensity of the light signal received by the receiving lamp is, the larger the light path voltage value corresponding to the light path is); and judging whether the light path voltage value is smaller than a preset binarization threshold value or not, and if the light path voltage value is smaller than the preset binarization threshold value, determining that the light path is shielded.
However, in the example of fig. 1, there are problems: since some touch points (such as the touch point 4 shown in fig. 1) are located in the scan dead zone, i.e. the spacing part between adjacent light paths (such as the touch point shown in fig. 1 is located in the spacing part between the light path 4 and the light path 5), these touch points do not block any light path; therefore, in the process of determining the blocked light path, the corresponding light path voltage value cannot be obtained by scanning, so that omission of the touch points is caused, and the positioning accuracy of the touch points is affected.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for locating candidate touch points, and a touch screen device, so as to solve the problem that touch points may be missed when scanning the touch points in the prior art, and reduce the possibility of missing the touch points, thereby improving the positioning accuracy of the touch points.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect of the embodiments of the present invention, a method for locating candidate touch points is provided, where the method is applied to a touch screen device, and the method includes:
in a scanning period, acquiring light path voltage values on each light path in a first scanning direction and light path voltage values on each light path in a second scanning direction, wherein the light path voltage values on each light path are voltage values corresponding to light signals received by a receiving lamp corresponding to each light path;
assigning values to light path voltage values of each scanning blind area in the first scanning direction and light path voltage values of each scanning blind area in the second scanning direction, wherein the light path voltage values of each scanning blind area in the first scanning direction and the light path voltage values of each scanning blind area in the second scanning direction are both smaller than a first preset voltage value, and the first preset voltage value is a light path voltage value of a light signal received by a receiving lamp corresponding to a light path when the light path is not blocked;
determining a touch area in the first scanning direction according to the light path voltage values of the light paths in the first scanning direction and the light path voltage values of the scanning blind areas in the first scanning direction, and determining the touch area in the second scanning direction according to the light path voltage values of the light paths in the second scanning direction and the light path voltage values of the scanning blind areas in the second scanning direction;
and calculating the intersection of the touch area in the first scanning direction and the touch area in the second scanning direction to obtain candidate touch points.
In a second aspect of the embodiments of the present invention, an apparatus for locating a candidate touch point is included in a touch screen device, where the apparatus includes:
an obtaining module, configured to obtain, in a scanning period, a light path voltage value on each light path in a first scanning direction and a light path voltage value on each light path in a second scanning direction, where the light path voltage value on each light path is a voltage value corresponding to a light signal received by a receiving lamp corresponding to each light path;
an assignment module, configured to assign a value to a light path voltage value of each scanning blind area in the first scanning direction and a light path voltage value of each scanning blind area in the second scanning direction, where the light path voltage value of each scanning blind area in the first scanning direction and the light path voltage value of each scanning blind area in the second scanning direction are both smaller than a first preset voltage value, and the first preset voltage value is a light path voltage value of a light signal received by a receiving lamp corresponding to a light path when the light path is not blocked;
a determining module, configured to determine a touch area in the first scanning direction according to the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction, and determine a touch area in the second scanning direction according to the light path voltage values on each light path in the second scanning direction and the light path voltage values of each scanning blind area in the second scanning direction;
and the calculating module is used for calculating the intersection of the touch area in the first scanning direction and the touch area in the second scanning direction to obtain candidate touch points.
In a third aspect of the embodiments of the present invention, there is provided a touch screen device, including:
a memory for storing a set of executable program code;
a processor configured to execute a set of executable program codes stored in the memory, and to specifically execute the method for locating a candidate touch point according to the first aspect of the embodiment of the present invention.
According to the method, the device and the touch screen equipment for positioning the candidate touch points, provided by the embodiment of the invention, the light path voltage values on each light path in the first scanning direction and the light path voltage values on each light path in the second scanning direction can be obtained in one scanning period; assigning values to the light path voltage values of all scanning blind areas in the first scanning direction and the light path voltage values of all scanning blind areas in the second scanning direction; determining a touch area in the first scanning direction according to the light path voltage values of all light paths in the first scanning direction and the light path voltage values of all scanning blind areas in the first scanning direction, and determining a touch area in the second scanning direction according to the light path voltage values of all light paths in the second scanning direction and the light path voltage values of all scanning blind areas in the second scanning direction; and calculating the intersection of the touch area in the first scanning direction and the touch area in the second scanning direction to obtain candidate touch points.
Compared with the prior art, the method has the advantages that whether the light path is shielded or not is determined according to whether the voltage value of the light path on the light path is smaller than a preset binarization threshold value or not, and omission of touch points can be avoided due to the fact that the touch points are located in scanning blind areas; in the scheme, when the candidate touch point is positioned, not only the light path voltage values on each light path are considered, but also the light path voltage values of the scanning blind areas can be assigned, the touch area is determined according to the light path voltage values on each light path and the light path voltage values of each scanning blind area, and the touch point is positioned.
Because the light path voltage value assigned to the scanning blind area is smaller than the first preset voltage value (when a light path is not shielded, the light path voltage value of the light signal received by the receiving lamp corresponding to the light path), it means that the scanning blind area contains a touch point capable of shielding the light path; therefore, in the process of positioning the candidate touch points, by combining with the light path voltage value of the scanning blind area, the problem that the touch points are missed because the touch points in the blind area do not shield any light path and the corresponding touch area cannot be determined cannot exist.
In conclusion, by the scheme, the possibility of missing touch points in the touch point positioning process can be reduced, so that the touch point positioning precision is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic view of a long-side normal scan direction according to an embodiment of the present invention;
FIG. 2 is a schematic view of a short side normal scan direction according to an embodiment of the present invention;
FIG. 3 is a schematic view of a long side scan direction according to an embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a short side sweeping direction according to an embodiment of the present invention;
FIG. 5 is a flowchart of a method for locating candidate touch points according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an intersection of touch regions according to an embodiment of the present invention;
FIG. 7 is a schematic diagram illustrating an intersection of touch areas according to another embodiment of the present invention;
FIG. 8 is a flowchart of another method for locating candidate touch points according to an embodiment of the present invention;
FIG. 9 is a flowchart of another method for locating candidate touch points according to an embodiment of the present invention;
FIG. 10 is a flowchart of another method for locating candidate touch points according to an embodiment of the present invention;
FIG. 11 is a flowchart of another method for locating candidate touch points according to an embodiment of the present invention;
fig. 12 is a schematic diagram illustrating a distribution of optical path voltage values of optical paths in a first scanning direction according to an embodiment of the present invention;
fig. 13 is a schematic diagram illustrating voltage distribution of optical paths and scanning dead zones in a first scanning direction according to an embodiment of the present invention;
fig. 14 is a schematic diagram of the distribution of the optical path voltage values of the optical paths and the scanning blind areas in the first scanning direction according to the embodiment of the present invention;
FIG. 15 is a flowchart of another method for locating candidate touch points according to an embodiment of the present invention;
fig. 16 is a schematic diagram illustrating a comparison between voltage values of light paths and light paths of scanning blind areas in a first scanning direction and a preset binarization threshold according to an embodiment of the present invention;
FIG. 17 is a schematic diagram of a touch area distribution according to an embodiment of the present invention;
FIG. 18 is a flowchart of another method for locating candidate touch points according to an embodiment of the present invention;
fig. 19 is a schematic diagram illustrating a distribution of touch areas determined based on the distribution of optical path voltage values in fig. 13 according to an embodiment of the present invention;
fig. 20 is a schematic diagram illustrating a distribution of touch areas determined based on the distribution of optical path voltage values in fig. 14 according to an embodiment of the present invention;
fig. 21 is a schematic view of a distribution of dotted broken lines of voltage values of optical paths and scanning blind areas in a first scanning direction according to an embodiment of the present invention;
FIG. 22 is a schematic diagram illustrating a distribution of touch areas determined based on the distribution of light path voltage values in FIG. 13 according to an embodiment of the present invention;
FIG. 23 is a schematic diagram of another distribution of touch areas determined based on the distribution of light path voltage values in FIG. 14 according to an embodiment of the present invention;
FIG. 24 is a flowchart of another method for locating candidate touch points according to an embodiment of the present invention;
FIG. 25 is a block diagram of an apparatus for locating candidate touch points according to an embodiment of the present invention;
FIG. 26 is a block diagram of an alternative apparatus for locating candidate touch points according to an embodiment of the present invention;
fig. 27 is a schematic composition diagram of a touch screen device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Additionally, the terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The method for positioning the candidate touch point provided by the embodiment of the invention can be applied to the process of positioning the touch point of the touch screen equipment. As shown in fig. 1 to 4, a touch screen of a touch screen device includes a long side and a short side. As shown in fig. 1 or 3, the long side of the touch screen includes a pair of transmitting and receiving sides, and as shown in fig. 2 or 4, the short side of the touch screen includes a pair of transmitting and receiving sides. The touch screen device can be an infrared touch screen device or other touch screen devices, and the touch screen device is not limited by the invention.
If the touch screen device is an infrared touch screen device, the transmitting side refers to an infrared transmitting side, and the receiving side refers to an infrared receiving side. As shown in fig. 1 to 4, the infrared signal emitting lamps and the infrared signal receiving lamps are arranged in a one-to-one correspondence, and one infrared signal emitting lamp is used to emit an infrared signal (an optical signal in the embodiment of the present invention) to the infrared signal receiving lamp corresponding to the infrared signal emitting lamp when being in an on state.
In practical applications, the number of the infrared signal transmitting lamps and the number of the infrared signal receiving lamps on the touch screen of the infrared touch screen device are determined according to the size of the touch screen of the infrared touch screen device.
Example one
An embodiment of the present invention provides a method for locating a candidate touch point, which is applied to a touch screen device, and as shown in fig. 5, the method for locating a candidate touch point includes:
s101, in one scanning period, the device for positioning the candidate touch points acquires light path voltage values on each light path in the first scanning direction and light path voltage values on each light path in the second scanning direction.
And the voltage value of the light path on each light path in the first scanning direction is the voltage value corresponding to the light signal received by the receiving lamp corresponding to each light path in the first scanning direction. The light path voltage values on the light paths in the second scanning direction are voltage values corresponding to the light signals received by the receiving lamps corresponding to the light paths in the second scanning direction. The voltage value of the light path on each light path in the first scanning direction or the second scanning direction is generally a voltage value within a range of 0-5V.
The first scanning direction is an arbitrary scanning direction on the first direction side, and the second scanning direction is an arbitrary scanning direction on the second direction side. For example, the first scanning direction may be one scanning direction on a long side of a touch screen of the touch screen device, and the second scanning direction may be one scanning direction on a short side of the touch screen device, or vice versa. The scanning direction of the long side or the short side of the touch screen device may include a forward scanning direction as shown in fig. 1 or fig. 2, and may also include a diagonal scanning direction as shown in fig. 3 or fig. 4. Preferably, the optical paths in the first scanning direction and the second scanning direction have the same inclination.
The device for locating the candidate touch points can scan in each scanning direction in one scanning period to obtain the intensity of the light signals received by the receiving lamp in each scanning direction, and then determine the light path voltage value of the light signals received by the receiving lamp in each scanning direction according to the intensity of the light signals received by the receiving lamp in each scanning direction.
It should be noted that, as a specific method for determining the optical path voltage value of the optical signal received by the receiving lamp in the scanning direction according to the intensity of the optical signal received by the receiving lamp in the scanning direction by the device for locating candidate touch points, reference may be made to the prior art, and a related method for determining the optical path voltage value of the optical signal received by the receiving lamp in the scanning direction according to the intensity of the optical signal received by the receiving lamp in the scanning direction, which is not described herein again in the embodiments of the present invention.
S102, assigning the light path voltage values of all scanning blind areas in the first scanning direction and the light path voltage values of all scanning blind areas in the second scanning direction by the device for positioning the candidate touch points.
The light path voltage value of each scanning blind area in the first scanning direction and the light path voltage value of each scanning blind area in the second scanning direction are both smaller than a first preset voltage value, and the first preset voltage value is the light path voltage value of a light signal received by a receiving lamp corresponding to a light path when the light path is not shielded. For example, assuming that the light path voltage value on each light path in the scanning direction is generally a voltage value within a range of 0-5V, the first preset voltage value may be 5V.
Exemplarily, taking the shielding situation of the touch points 1-3 on each scanning light path in fig. 1 as an example, since the light path 1, the light path 2, the light path 7, and the light path 8 are not shielded by any touch point as shown in fig. 1, the light path voltage values on the light path 1, the light path 2, the light path 7, and the light path 8 are the first preset voltage values as shown in fig. 12.
It is conceivable that the first preset voltage value is also a light path voltage value of the light signal received by the receiving lamp corresponding to the light path when a light path is not shielded after the influence of the ambient light on the light signal received by the receiving lamp is filtered.
For example, in an application scenario of the embodiment of the present invention, the apparatus for locating candidate touch points may assign the optical path voltage value of each scanning blind area in the first scanning direction and the optical path voltage value of each scanning blind area in the second scanning direction by using a preset fixed voltage value.
Preferably, in another application scenario of the embodiment of the present invention, the device for locating candidate touch points may assign a value of a light path voltage of a scanning blind area between adjacent light paths in the first scanning direction according to a light path voltage value on the adjacent light path in the first scanning direction, and assign a value of a light path voltage of a scanning blind area between adjacent light paths in the second scanning direction according to a light path voltage value on the adjacent light path in the second scanning direction. The following description of the embodiments of the present invention may be referred to for a specific method for assigning a light path voltage value according to an adjacent light path being a scanning blind area between adjacent light paths, and this embodiment is not described herein again.
The scanning light path formed by the adjacent group of transmitting and receiving lamps in the process of transmitting and receiving optical signals is the adjacent light path. Taking the scanning light path in the long-side normal scanning direction shown in fig. 1 as an example, as shown in fig. 1, the receiving lamp 1 and the transmitting lamp 1 form a group of transmitting and receiving lamps (first group of lamps for short), and the receiving lamp 2 and the transmitting lamp 2 form a group of transmitting and receiving lamps (second group of lamps for short). The scanning optical path formed by the first group of lamps in the process of transmitting and receiving optical signals is the optical path 1 shown in fig. 1, and the scanning optical path formed by the second group of lamps in the process of transmitting and receiving optical signals is the optical path 2 shown in fig. 1; thus, the optical path 1 and the optical path 2 are adjacent optical paths.
Of course, not only a group of adjacent optical paths is included in one scanning direction, as shown in fig. 1, the optical path 2 and the optical path 3 are also a group of adjacent optical paths, the optical path 3 and the optical path 4 are also a group of adjacent optical paths, the optical path 4 and the optical path 5 are also a group of adjacent optical paths, and the like.
S103, the device for positioning the candidate touch points determines the touch area in the first scanning direction according to the light path voltage values of all light paths in the first scanning direction and the light path voltage values of all scanning blind areas in the first scanning direction.
In this embodiment of the present invention, after assigning the optical path voltage values of the scanning blind areas in the first scanning direction, the device for locating candidate touch points may determine the touch area in the first scanning direction according to the optical path voltage values of the optical paths in the scanning blind areas in the first scanning direction and the optical path voltage values of the scanning blind areas in the first scanning direction by regarding the scanning blind areas in the first scanning direction as the optical paths in the first scanning direction.
In the embodiment of the present invention, the touch area in the first scanning direction is an area formed by a continuous parallel light path and a scanning blind area, which are shielded by a touch point in the first scanning direction when the touch point exists on the touch screen.
In one implementation, the device for locating candidate touch points may compare the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction with a preset binarization threshold; if the voltage value of the light path on a light path is smaller than a preset binarization threshold value, determining that the light path is a part of a touch area in a first scanning direction (referred to as a candidate light path for short); if the light path voltage value of a scanning blind area is smaller than a preset binarization threshold value, determining that the scanning blind area is a part of a touch area (referred to as a candidate blind area for short) in the first scanning direction; and then determining a touch area in the first scanning direction according to the continuous adjacent candidate light paths and the candidate blind areas.
In another implementation manner, the device for locating candidate touch points may determine the touch area in the first scanning direction according to the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction, and the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction according to the distribution of the arrangement of the receiving lamps corresponding to each light path in the first scanning direction.
And S104, determining a touch area in the second scanning direction by the device for positioning the candidate touch point according to the light path voltage values of all light paths in the second scanning direction and the light path voltage values of all scanning blind areas in the second scanning direction.
It should be noted that the method for determining the touch area in the second scanning direction by the apparatus for locating a candidate touch point according to the light path voltage values on each light path in the second scanning direction and the light path voltage values of each scanning blind area in the second scanning direction is similar to the method for determining the touch area in the first scanning direction by the apparatus for locating a candidate touch point according to the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction, and the description of the embodiment of the present invention is omitted here.
S105, the device for positioning the candidate touch points calculates the intersection of the touch area in the first scanning direction and the touch area in the second scanning direction to obtain the candidate touch points.
Exemplarily, as shown in fig. 6, it is assumed that the first scanning direction is a scanning direction on the long side of the touch screen, and the first scanning direction includes two touch areas (a touch area a and a touch area b); the second scanning direction is a scanning direction on a short side of the touch screen, the second scanning direction includes three touch areas (a touch area c, a touch area d, and a touch area e), and the device for locating candidate touch points may calculate intersections between the touch area a and the touch area b and the touch area c, the touch area d, and the touch area e, respectively, to obtain 6 candidate touch points as shown in fig. 7.
It is conceivable that the touch point candidates may be intersections of the center lines of the above-described touch areas, as shown in fig. 7. The specific method for obtaining the candidate touch point by calculating the intersection of the touch area in the first scanning direction and the touch area in the second scanning direction by the device for positioning the candidate touch point may refer to related methods in the prior art, and the details of the embodiment of the present invention are not repeated here.
The method for positioning candidate touch points provided by the embodiment of the invention can acquire the light path voltage values on each light path in the first scanning direction and the light path voltage values on each light path in the second scanning direction in one scanning period; assigning values to the light path voltage values of all scanning blind areas in the first scanning direction and the light path voltage values of all scanning blind areas in the second scanning direction; determining a touch area in the first scanning direction according to the light path voltage values of all light paths in the first scanning direction and the light path voltage values of all scanning blind areas in the first scanning direction, and determining a touch area in the second scanning direction according to the light path voltage values of all light paths in the second scanning direction and the light path voltage values of all scanning blind areas in the second scanning direction; and calculating the intersection of the touch area in the first scanning direction and the touch area in the second scanning direction to obtain candidate touch points.
Compared with the prior art, the method has the advantages that whether the light path is shielded or not is determined according to whether the voltage value of the light path on the light path is smaller than a preset binarization threshold value or not, and omission of touch points can be avoided due to the fact that the touch points are located in scanning blind areas; in the scheme, when the candidate touch point is positioned, not only the light path voltage values on each light path are considered, but also the light path voltage values of the scanning blind areas can be assigned, the touch area is determined according to the light path voltage values on each light path and the light path voltage values of each scanning blind area, and the touch point is positioned.
Because the light path voltage value assigned to the scanning blind area is smaller than the first preset voltage value (when a light path is not shielded, the light path voltage value of the light signal received by the receiving lamp corresponding to the light path), it means that the scanning blind area contains a touch point capable of shielding the light path; therefore, in the process of positioning the candidate touch points, by combining with the light path voltage value of the scanning blind area, the problem that the touch points are missed because the touch points in the blind area do not shield any light path and the corresponding touch area cannot be determined cannot exist.
In conclusion, by the scheme, the possibility of missing touch points in the touch point positioning process can be reduced, so that the touch point positioning precision is improved.
Further, in an application scenario of the embodiment of the present invention, the device for locating candidate touch points may assign the optical path voltage value of each scanning blind area in the first scanning direction and the optical path voltage value of each scanning blind area in the second scanning direction by using a preset fixed voltage value.
Specifically, as shown in fig. 8, S102 may be replaced with S102 a:
s102a, the apparatus for locating touch point candidates sets the light path voltage values of the respective scanning blind areas in the first scanning direction and the light path voltage values of the respective scanning blind areas in the second scanning direction to fixed voltage values configured in advance.
The preset fixed voltage value is smaller than a first preset voltage value.
Preferably, the means for locating the candidate touch point is configured to determine that the fixed voltage values assigned to the optical path voltage values of the respective scanning blind areas in the first scanning direction and the optical path voltage values of the respective scanning blind areas in the second scanning direction (i.e. the pre-configured fixed voltage values) are smaller than the preset binarization threshold. The preset binarization threshold value is smaller than a first preset voltage value.
It is conceivable that, if the fixed voltage values (i.e., the pre-configured fixed voltage values) assigned by the apparatus for locating candidate touch points are both smaller than the preset binarization threshold for the light path voltage values of the respective scanning blind areas in the first scanning direction and the light path voltage values of the respective scanning blind areas in the second scanning direction, even if the preset binarization threshold is subsequently used to compare the light path voltage values of the scanning blind areas to determine whether the scanning blind areas can be used as touch areas, there is no problem that the corresponding touch areas cannot be determined because the touch points in the scanning blind areas do not block any light paths, thereby causing omission of the touch points. Specifically, since the light path voltage values of the scanning blind areas are all smaller than the preset binarization threshold, the scanning blind areas can be determined to be blocked, so that the scanning blind areas can be determined to be used as a part of the touch area, and therefore omission of touch points is avoided.
In another application scenario of the embodiment of the present invention, the device for locating candidate touch points may assign a value to a light path voltage value of a scanning blind area between adjacent light paths in a scanning direction according to the light path voltage value on the adjacent light path in the scanning direction. Specifically, as shown in fig. 9, S102 may include S102b-S102 c:
s102b, the device for positioning the candidate touch point assigns the optical path voltage value of the scanning blind area between the adjacent optical paths in the first scanning direction according to the optical path voltage value on the adjacent optical paths in the first scanning direction.
For example, it is assumed that the second optical path and the third optical path are a pair of adjacent optical paths in the first scanning direction. As shown in fig. 10 or 11, S102b may specifically include S102b1-S102b3 or S102b1-S102b 3':
s102b1, the apparatus for locating a candidate touch point determines whether the light path voltage value of the second light path and the light path voltage value of the third light path are equal to the first preset voltage value, respectively.
If the optical path voltage value of the second optical path and the optical path voltage value of the third optical path are equal to the first preset voltage value, continuing to execute S102b 2; if the light path voltage value of the second light path and/or the light path voltage value of the third light path is less than the first preset voltage value, continuing to execute S102b3 or S102b 3':
s102b2, the apparatus for locating a touch point candidate sets the light path voltage value of the scanning dead zone between the second light path and the third light path to a second preset voltage value.
Exemplarily, as shown in fig. 12, since the optical path voltage value of the optical path 1 (second optical path) and the optical path voltage value of the optical path 2 (third optical path) are both equal to the first preset voltage value, the optical path voltage value of the scanning blind area 1 may be determined as the second preset voltage value as shown in fig. 13 or 14; since the optical path voltage value of the optical path 7 (second optical path) and the optical path voltage value of the optical path 8 (third optical path) are both equal to the first preset voltage value, the optical path voltage value of the scanning blind area 7 can be determined to be the second preset voltage value as shown in fig. 13 or 14.
And S102b3, setting the light path voltage value of the scanning blind area between the second light path and the third light path as the light path voltage value of the second light path, wherein the light path voltage value of the second light path is smaller than the light path voltage value of the third light path.
Illustratively, as shown in fig. 12, since the optical path voltage value of the optical path 2 (second optical path) is equal to the first preset voltage value, and the optical path voltage value of the optical path 3 (third optical path) is smaller than the first preset voltage value, the optical path voltage value of the scanning blind area 2 may be determined as the optical path voltage value of the optical path 3 as shown in fig. 13.
As shown in fig. 12, since the optical path voltage value of the optical path 3 (second optical path) and the optical path voltage value of the optical path 4 (third optical path) are both smaller than the first preset voltage value, and the optical path voltage value of the optical path 3 is smaller than the optical path voltage value of the optical path 4, the optical path voltage value of the scanning blind area 3 can be determined to be the optical path voltage value of the optical path 3 as shown in fig. 13.
As shown in fig. 12, since the optical path voltage value of the optical path 4 (second optical path) and the optical path voltage value of the optical path 5 (third optical path) are both smaller than the first preset voltage value, and the optical path voltage value of the optical path 5 is smaller than the optical path voltage value of the optical path 4, the optical path voltage value of the scanning blind area 4 can be determined as the optical path voltage value of the optical path 5 as shown in fig. 13.
As shown in fig. 12, since the optical path voltage value of the optical path 5 (second optical path) and the optical path voltage value of the optical path 6 (third optical path) are both smaller than the first preset voltage value, and the optical path voltage value of the optical path 5 is smaller than the optical path voltage value of the optical path 6, the optical path voltage value of the scanning blind area 5 can be determined as the optical path voltage value of the optical path 5 as shown in fig. 13.
As shown in fig. 12, since the optical path voltage value of the optical path 6 (second optical path) is smaller than the first preset voltage value and the optical path voltage value of the optical path 7 (third optical path) is equal to the first preset voltage value, the optical path voltage value of the scanning blind area 6 can be determined as the optical path voltage value of the optical path 6 as shown in fig. 13.
S102b 3', the touch point candidate positioning device sets the light path voltage value of the scanning blind area between the second light path and the third light path to the average value of the light path voltage value of the second light path and the light path voltage value of the third light path.
Illustratively, as shown in fig. 12, since the light path voltage value of the light path 2 (second light path) is equal to the first preset voltage value, and the light path voltage value of the light path 3 (third light path) is smaller than the first preset voltage value, the light path voltage value of the scanning blind area 2 may be determined as an average value of the light path voltage value of the light path 2 and the light path voltage value of the light path 3 as shown in fig. 14.
As shown in fig. 12, since both the optical path voltage value of the optical path 3 (second optical path) and the optical path voltage value of the optical path 4 (third optical path) are smaller than the first preset voltage value, the optical path voltage value of the scanning blind area 3 can be determined as an average value of the optical path voltage value of the optical path 3 and the optical path voltage value of the optical path 4 as shown in fig. 14.
As shown in fig. 12, since both the optical path voltage value of the optical path 4 (second optical path) and the optical path voltage value of the optical path 5 (third optical path) are smaller than the first preset voltage value, the optical path voltage value of the scanning blind area 4 can be determined as an average value of the optical path voltage value of the optical path 4 and the optical path voltage value of the optical path 5 as shown in fig. 14.
As shown in fig. 12, since both the optical path voltage value of the optical path 5 (second optical path) and the optical path voltage value of the optical path 6 (third optical path) are smaller than the first preset voltage value, the optical path voltage value of the scanning blind area 5 can be determined as an average value of the optical path voltage value of the optical path 5 and the optical path voltage value of the optical path 6 as shown in fig. 14.
Since the optical path voltage value of the optical path 6 (second optical path) is smaller than the first preset voltage value and the optical path voltage value of the optical path 7 (third optical path) is equal to the first preset voltage value as shown in fig. 12, the optical path voltage value of the scanning blind area 6 can be determined as the average value of the optical path voltage value of the optical path 6 and the optical path voltage value of the optical path 7 as shown in fig. 14.
S102c, the device for positioning the candidate touch point assigns the optical path voltage value of the scanning blind area between the adjacent optical paths in the second scanning direction according to the optical path voltage value on the adjacent optical paths in the second scanning direction.
It should be noted that, the method for assigning the optical path voltage value of the scanning blind area between the adjacent optical paths in the second scanning direction by the apparatus for positioning the candidate touch point according to the optical path voltage value on the adjacent optical path in the second scanning direction is similar to the method for assigning the optical path voltage value of the scanning blind area between the adjacent optical paths in the first scanning direction by the apparatus for positioning the candidate touch point according to the optical path voltage value on the adjacent optical path in the first scanning direction in S102b, and details of the embodiment of the present invention are not repeated here.
Further, in an implementation manner, the device for locating candidate touch points may determine whether each light path in the first scanning direction and each scanning blind area in the first scanning direction are blocked by judging whether the light path voltage value on each light path in the first scanning direction and the light path voltage value of each scanning blind area in the first scanning direction are smaller than a preset binarization threshold value, that is, whether each light path in the first scanning direction and each scanning blind area in the first scanning direction may form a part of the touch area.
Specifically, as shown in fig. 15, S103 may specifically include S103a-S103 b:
s103a, comparing the light path voltage value of each light path in the first scanning direction and the light path voltage value of each scanning blind area in the first scanning direction by the device for positioning the candidate touch point by adopting a preset binarization threshold value.
Illustratively, the optical path voltage values on the respective optical paths in the first scanning direction and the optical path voltage values of the respective scanning dead zones in the first scanning direction shown in fig. 13 are taken as an example. The device for locating the candidate touch point can use a preset binarization threshold value as shown in fig. 16 to compare the light path voltage value on each light path and the light path voltage value of each scanning blind area.
S103b, if the light path voltage value on the first light path is smaller than a preset binarization threshold value, and/or the light path voltage value of the first blind area is smaller than a preset binarization threshold value, the device for positioning candidate touch points determines the touch area in the first scanning direction.
The first light path is any one light path in the first scanning direction, and the first blind area is any one scanning blind area in the first scanning direction.
As shown in fig. 16, since the light path voltage value of the scanning blind area 1 (first blind area) is smaller than the preset binarization threshold value, the light path voltage value of the scanning blind area 2 (first blind area) is smaller than the preset binarization threshold value, the light path voltage value of the light path 3 (first light path) is smaller than the preset binarization threshold value, the light path voltage value of the scanning blind area 3 (first blind area) is smaller than the preset binarization threshold value, the light path voltage value of the scanning blind area 4 (first blind area) is smaller than the preset binarization threshold value, the light path voltage value of the light path 5 (first light path) is smaller than the preset binarization threshold value, the light path voltage value of the scanning blind area 5 (first blind area) is smaller than the preset binarization threshold value, and the light path voltage value of the scanning blind area 7 (first blind; moreover, since the scanning blind area 2 (first blind area), the optical path 3 (first optical path), and the scanning blind area 3 (first blind area) are continuous, and the scanning blind area 4 (first blind area), the optical path 5 (first optical path), and the scanning blind area 5 (first blind area) are continuous, it can be determined that the scanning direction (first scanning direction) includes four touch areas as shown in fig. 17: touch area 1, touch area 2, touch area 3, and touch area 4.
Preferably, in another possible implementation manner, as shown in fig. 18, S103 may be specifically replaced by S103 c:
s103c, the device for locating candidate touch points determines the touch area in the first scanning direction according to the magnitude of the light path voltage value on each light path in the first scanning direction and the light path voltage value of each scan blind area in the first scanning direction, and the light path voltage value on each light path in the first scanning direction and the light path voltage value of each scan blind area in the first scanning direction according to the distribution of the arrangement of the receiving lamps corresponding to each light path in the first scanning direction.
In one aspect, the method for determining the touch region in the first scan direction by the apparatus for locating a candidate touch point in S103c may include: the device for locating the candidate touch point generates a histogram of the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction according to the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction, and then determines the touch area in the first scanning direction according to the generated histogram.
Illustratively, the apparatus for locating a touch point candidate generates a histogram of the light path voltage values on the respective light paths and the light path voltage value of the scan dead zone according to the light path voltage values on the respective light paths and the light path voltage value of the scan dead zone in the first scanning direction, as shown in fig. 13 or 14.
The apparatus for locating touch point candidates can determine 3 touch regions from the histogram of light path voltage values shown in fig. 13, including the touch region 5 composed of the scanning dead zone 1 as shown in fig. 19; a touch area 6 consisting of a scanning blind area 2, a light path 3, a scanning blind area 3, a light path 4, a scanning blind area 4, a light path 5, a scanning blind area 5, a light path 6 and a scanning blind area 6; a touch area 7 consisting of a scanning blind area 7.
The apparatus for locating touch point candidates can determine 3 touch regions from the histogram of light path voltage values shown in fig. 14, including the touch region 8 composed of the scanning dead zone 1 as shown in fig. 20; a touch area 9 composed of a scanning blind area 2, a light path 3, a scanning blind area 3, a light path 4, a scanning blind area 4, a light path 5, a scanning blind area 5, a light path 6 and a scanning blind area 6; a touch area 10 consisting of the scan dead zone 7.
On the other hand, the method of determining the touch region in the first scan direction by the apparatus for locating a candidate touch point in S103c may include: the device for positioning candidate touch points generates point-like fluctuation line graphs of light path voltage values on each light path in the first scanning direction and light path voltage values of each scanning blind area in the first scanning direction, and then determines a touch area in the first scanning direction according to the generated point-like fluctuation line graphs.
Illustratively, as shown in fig. 21, the apparatus for locating a touch point candidate generates a dotted fluctuation line graph of the optical path voltage values on the respective optical paths and the optical path voltage value of the scanning blind area from the optical path voltage values on the respective optical paths in the first scanning direction and the optical path voltage value of the scanning blind area.
The apparatus for locating touch point candidates can determine 3 touch regions including the touch region 8 composed of the scanning dead zone 1 as shown in fig. 20 from the dotted fluctuation line graph of the light path voltage values shown in fig. 21; a touch area 9 composed of a scanning blind area 2, a light path 3, a scanning blind area 3, a light path 4, a scanning blind area 4, a light path 5, a scanning blind area 5, a light path 6 and a scanning blind area 6; a touch area 10 consisting of the scan dead zone 7.
Further, in order to avoid that, as shown in fig. 19 or fig. 20, the touch areas corresponding to the multiple touch points shown in fig. 1 are mixed into one touch area, which affects the positioning accuracy of the touch points, the method in the embodiment of the present invention may further include S106:
and S106, if the light path voltage value of the fourth light path is greater than the light path voltage value of the second dead zone and the light path voltage value of the fourth light path is greater than the light path voltage value of the third dead zone, dividing the scanning dead zones and the light paths on the left side and the right side of the fourth light path into two touch zones respectively by taking the fourth light path as a boundary.
The fourth light path is any one light path in the first scanning direction, and the second blind area and the third blind area are two scanning blind areas adjacent to the fourth light path in the first scanning direction.
For example, as shown in fig. 13, since the optical path voltage value of the optical path 2 (fourth optical path) is greater than the optical path voltage value of the scanning blind area 1 (second blind area), and the optical path voltage value of the optical path 2 (fourth optical path) is greater than the optical path voltage value of the scanning blind area 2 (third blind area), the device for locating candidate touch points divides the scanning blind area and the optical path on the left and right sides of the optical path 2 (fourth optical path) into two touch areas, respectively, with the optical path 2 (fourth optical path) as a boundary. That is, as shown in fig. 22, the left and right sides of the optical path 2 (fourth optical path) are divided into two touch areas: touch area 5 and touch area 6 (including touch area a and touch area b).
For example, as shown in fig. 13, since the optical path voltage value of the optical path 4 (fourth optical path) is greater than the optical path voltage value of the scanning blind area 3 (second blind area), and the optical path voltage value of the optical path 4 (fourth optical path) is greater than the optical path voltage value of the scanning blind area 4 (third blind area), the device for locating the candidate touch point divides the scanning blind area and the optical path on the left and right sides of the optical path 4 (fourth optical path) into two touch areas, respectively, with the center line of the optical path 4 (fourth optical path) as a boundary. That is, as shown in fig. 22, the touch area 6 shown in fig. 13 may be divided into two touch areas with the center line of the optical path 4 (fourth optical path) as a boundary: touch area a and touch area b.
For example, as shown in fig. 13, since the optical path voltage value of the optical path 7 (fourth optical path) is greater than the optical path voltage value of the scanning blind area 6 (second blind area), and the optical path voltage value of the optical path 7 (fourth optical path) is greater than the optical path voltage value of the scanning blind area 7 (third blind area), the device for locating the candidate touch point divides the scanning blind area and the optical path on the left and right sides of the optical path 7 (fourth optical path) into two touch areas, respectively, with the optical path 7 (fourth optical path) as a boundary. That is, as shown in fig. 22, the left and right sides of the optical path 7 (fourth optical path) are divided into two touch areas: a touch area 6 (including touch area a and touch area b) and a touch area 7.
Exemplarily, as shown in fig. 14, since the optical path voltage value of the optical path 4 (the optical path voltage value of the fourth optical path is greater than the optical path voltage value of the scanning blind area 3 (the second blind area), and the optical path voltage value of the optical path 4 (the fourth optical path) is greater than the optical path voltage value of the scanning blind area 4 (the third blind area), the optical path voltage value of the optical path 6 (the fourth optical path) is greater than the optical path voltage value of the scanning blind area 5 (the second blind area), and the optical path voltage value of the optical path 6 (the fourth optical path) is greater than the optical path voltage value of the scanning blind area 6 (the third blind area), the device for locating the candidate touch point may divide the touch area 9 shown in fig. 14 into three touch areas, i.e., a touch area c, a touch area d, and a touch area e, as shown in fig. 23.
It is conceivable that the scanning blind areas and the light paths on the left and right sides of the fourth light path are respectively divided into two touch areas by taking the fourth light path (the light path having the light path voltage value larger than the adjacent scanning blind area) as a boundary, so that the touch areas can be divided more accurately, and the positioning accuracy of the touch points can be improved.
Further, in order to more clearly and finely reflect the change of the optical path voltage value of each optical path and each scanning blind area, as shown in fig. 24, before S103 and S104, the method of the embodiment of the present invention may further include S107:
and S107, the device for positioning the candidate touch points maps the light path voltage values on all light paths in the first scanning direction, the light path voltage values of all scanning blind areas in the first scanning direction, the light path voltage values on all light paths in the second scanning direction and the light path voltage values of all scanning blind areas in the second scanning direction into analog voltage values respectively.
The value ranges of the light path voltage values on the light paths and the light path voltage values of the scanning blind areas are 0-5V, and the value range of the analog voltage value is 0-255.
Accordingly, S103 may be replaced with S103 ', and S104 may be replaced with S104':
s103', the device for positioning the candidate touch points determines the touch area in the first scanning direction according to the analog voltage values of each light path and each scanning blind area in the first scanning direction.
S104', the device for positioning the candidate touch points determines the touch area in the second scanning direction according to the analog voltage values of each light path and each scanning blind area in the second scanning direction.
It is conceivable that, compared with the optical path voltage value in the range of 0-5V, the optical path voltage value in the range of 0-255 can more clearly and finely reflect the change of the optical path voltage value of each optical path and the scanning blind area.
It should be noted that, the apparatus for locating candidate touch points determines, according to the analog voltage values of each optical path and each scanning blind area in a scanning direction, the touch area in the scanning direction, which is similar to the above-mentioned method for determining the touch area in the scanning direction according to the optical path voltage values of each optical path and the optical path voltage values of the scanning blind area in the scanning direction, and the details of the embodiment of the present invention are described here.
The method for positioning candidate touch points provided by the embodiment of the invention can acquire the light path voltage values on each light path in the first scanning direction and the light path voltage values on each light path in the second scanning direction in one scanning period; assigning values to the light path voltage values of all scanning blind areas in the first scanning direction and the light path voltage values of all scanning blind areas in the second scanning direction; determining a touch area in the first scanning direction according to the light path voltage values of all light paths in the first scanning direction and the light path voltage values of all scanning blind areas in the first scanning direction, and determining a touch area in the second scanning direction according to the light path voltage values of all light paths in the second scanning direction and the light path voltage values of all scanning blind areas in the second scanning direction; and calculating the intersection of the touch area in the first scanning direction and the touch area in the second scanning direction to obtain candidate touch points.
Compared with the prior art, the method has the advantages that whether the light path is shielded or not is determined according to whether the voltage value of the light path on the light path is smaller than a preset binarization threshold value or not, and omission of touch points can be avoided due to the fact that the touch points are located in scanning blind areas; in the scheme, when the candidate touch point is positioned, not only the light path voltage values on each light path are considered, but also the light path voltage values of the scanning blind areas can be assigned, the touch area is determined according to the light path voltage values on each light path and the light path voltage values of each scanning blind area, and the touch point is positioned.
Because the light path voltage value assigned to the scanning blind area is smaller than the first preset voltage value (when a light path is not shielded, the light path voltage value of the light signal received by the receiving lamp corresponding to the light path), it means that the scanning blind area contains a touch point capable of shielding the light path; therefore, in the process of positioning the candidate touch points, by combining with the light path voltage value of the scanning blind area, the problem that the touch points are missed because the touch points in the blind area do not shield any light path and the corresponding touch area cannot be determined cannot exist.
Example two
An embodiment of the present invention provides an apparatus for locating a candidate touch point, where the apparatus is included in a touch screen device, and as shown in fig. 25, the apparatus for locating a candidate touch point includes: an acquisition module 21, an assignment module 22, a determination module 23 and a calculation module 24.
The obtaining module 21 is configured to obtain, in a scanning period, a light path voltage value on each light path in a first scanning direction and a light path voltage value on each light path in a second scanning direction, where the light path voltage value on each light path is a voltage value corresponding to a light signal received by a receiving lamp corresponding to each light path.
The assignment module 22 assigns the light path voltage value of each scanning blind area in the first scanning direction and the light path voltage value of each scanning blind area in the second scanning direction, where the light path voltage value of each scanning blind area in the first scanning direction and the light path voltage value of each scanning blind area in the second scanning direction are both smaller than a first preset voltage value, and the first preset voltage value is a light path voltage value of a light signal received by a receiving lamp corresponding to a light path when the light path is not blocked.
The determining module 23 is configured to determine a touch area in the first scanning direction according to the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction, and determine a touch area in the second scanning direction according to the light path voltage values on each light path in the second scanning direction and the light path voltage values of each scanning blind area in the second scanning direction.
And a calculating module 24, configured to calculate an intersection of the touch area in the first scanning direction and the touch area in the second scanning direction, so as to obtain a candidate touch point.
Further, the light path voltage value of each scanning blind area in the first scanning direction and the light path voltage value of each scanning blind area in the second scanning direction are both smaller than a preset binarization threshold value.
And the preset binarization threshold value is smaller than the first preset voltage value.
Further, the assignment module 22 is specifically configured to:
assigning a value to the light path voltage value of a scanning blind area between adjacent light paths in the first scanning direction according to the light path voltage value on the adjacent light path in the first scanning direction;
and assigning the optical path voltage value of the scanning blind area between the adjacent optical paths in the second scanning direction according to the optical path voltage value on the adjacent optical path in the second scanning direction.
Further, the determining module 23 is specifically configured to:
comparing the light path voltage values of all light paths in the first scanning direction and the light path voltage values of all scanning blind areas in the first scanning direction by adopting a preset binarization threshold value;
and if the light path voltage value on the first light path is smaller than the preset binarization threshold value, and/or the light path voltage value of the first blind area is smaller than the preset binarization threshold value, determining a touch area in the first scanning direction, which is formed by the first blind area.
The first light path is any one light path in the first scanning direction, and the first blind area is any one scanning blind area in the first scanning direction.
Further, the determining module 23 is specifically configured to:
and determining a touch area in the first scanning direction according to the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction, and the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction according to the distribution condition of the arrangement of the receiving lamps corresponding to each light path in the first scanning direction.
Further, the adjacent light paths in the first scanning direction include: a second optical path and a third optical path.
The assignment module 22 is specifically configured to:
if the light path voltage value of the second light path and/or the light path voltage value of the third light path is smaller than the first preset voltage value, setting the light path voltage value of the scanning blind area between the second light path and the third light path as the light path voltage value of the second light path, wherein the light path voltage value of the second light path is smaller than the light path voltage value of the third light path;
or if the light path voltage value of the second light path and/or the light path voltage value of the third light path is smaller than the first preset voltage value, setting the light path voltage value of the scanning blind area between the second light path and the third light path as the average value of the light path voltage value of the second light path and the light path voltage value of the third light path;
or if the light path voltage value of the second light path and the light path voltage value of the third light path are equal to the first preset voltage value, setting the light path voltage value of the scanning blind area between the second light path and the third light path as a second preset voltage value.
And when a light path is completely shielded, the second preset voltage value is the light path voltage value of the light signal received by the receiving lamp corresponding to the light path.
Further, as shown in fig. 26, the apparatus for locating a candidate touch point may further include: an emulation module 25.
An analog module 25, configured to map, before the determining module 23 determines the touch area in the first scanning direction, the light path voltage values on each light path in the first scanning direction, the light path voltage values of each scanning blind area in the first scanning direction, the light path voltage values on each light path in the second scanning direction, and the light path voltage values of each scanning blind area in the second scanning direction as analog voltage values, respectively, where a range of the light path voltage values on each light path and the light path voltage values of the scanning blind areas is 0-5V, and a range of the analog voltage values is 0-255.
The determining module 23 is specifically configured to determine the touch area in the first scanning direction according to the analog voltage values of each light path and each scanning blind area in the first scanning direction.
Further, the determining module 23 is specifically configured to, if the light path voltage value of the fourth light path is greater than the light path voltage value of the second dead zone and the light path voltage value of the fourth light path is greater than the light path voltage value of the third dead zone, divide the scanning dead zones and the light paths on the left and right sides of the fourth light path into two touch zones respectively with the fourth light path as a boundary.
The fourth light path is any one light path in the first scanning direction, and the second blind area and the third blind area are two scanning blind areas adjacent to the fourth light path in the first scanning direction.
It should be noted that, for specific description of some functional modules in the device for locating candidate touch points provided in the embodiment of the present invention, reference may be made to corresponding contents in the embodiment of the method of the present invention, and details are not described here again.
An embodiment of the present invention provides a touch screen device, as shown in fig. 27, including: a memory 32 and a processor 32.
A memory 31 for storing a set of executable program code;
a processor 32, configured to execute the method for locating a candidate touch point recited in the first embodiment of the present invention according to a set of executable program codes stored in the memory 31.
It should be noted that, for specific description of some functional modules in the touch screen device provided in the embodiment of the present invention, reference may be made to corresponding contents in the embodiment of the method of the present invention, and details are not described here again.
According to the device for positioning candidate touch points and the touch screen equipment provided by the embodiment of the invention, the light path voltage values on each light path in the first scanning direction and the light path voltage values on each light path in the second scanning direction can be obtained in one scanning period; assigning values to the light path voltage values of all scanning blind areas in the first scanning direction and the light path voltage values of all scanning blind areas in the second scanning direction; determining a touch area in the first scanning direction according to the light path voltage values of all light paths in the first scanning direction and the light path voltage values of all scanning blind areas in the first scanning direction, and determining a touch area in the second scanning direction according to the light path voltage values of all light paths in the second scanning direction and the light path voltage values of all scanning blind areas in the second scanning direction; and calculating the intersection of the touch area in the first scanning direction and the touch area in the second scanning direction to obtain candidate touch points.
Compared with the prior art, the method has the advantages that whether the light path is shielded or not is determined according to whether the voltage value of the light path on the light path is smaller than a preset binarization threshold value or not, and omission of touch points can be avoided due to the fact that the touch points are located in scanning blind areas; in the scheme, when the candidate touch point is positioned, not only the light path voltage values on each light path are considered, but also the light path voltage values of the scanning blind areas can be assigned, the touch area is determined according to the light path voltage values on each light path and the light path voltage values of each scanning blind area, and the touch point is positioned.
Because the light path voltage value assigned to the scanning blind area is smaller than the first preset voltage value (when a light path is not shielded, the light path voltage value of the light signal received by the receiving lamp corresponding to the light path), it means that the scanning blind area contains a touch point capable of shielding the light path; therefore, in the process of positioning the candidate touch points, by combining with the light path voltage value of the scanning blind area, the problem that the touch points are missed because the touch points in the blind area do not shield any light path and the corresponding touch area cannot be determined cannot exist.
In summary, according to the scheme, the problem that touch points may be missed when the touch points are scanned in the prior art can be solved, the possibility of missing the touch points can be reduced, and the touch area can be divided more accurately, so that the positioning accuracy of the touch points is improved.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical 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.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
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, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiment of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (17)

1. A method for locating candidate touch points, applied to a touch screen device, the method comprising:
in a scanning period, acquiring light path voltage values on each light path in a first scanning direction and light path voltage values on each light path in a second scanning direction, wherein the light path voltage values on each light path are voltage values corresponding to light signals received by a receiving lamp corresponding to each light path;
assigning values to light path voltage values of each scanning blind area in the first scanning direction and light path voltage values of each scanning blind area in the second scanning direction, wherein the light path voltage values of each scanning blind area in the first scanning direction and the light path voltage values of each scanning blind area in the second scanning direction are both smaller than a first preset voltage value, and the first preset voltage value is a light path voltage value of a light signal received by a receiving lamp corresponding to a light path when the light path is not blocked;
determining a touch area in the first scanning direction according to the light path voltage values of the light paths in the first scanning direction and the light path voltage values of the scanning blind areas in the first scanning direction, and determining the touch area in the second scanning direction according to the light path voltage values of the light paths in the second scanning direction and the light path voltage values of the scanning blind areas in the second scanning direction;
and calculating the intersection of the touch area in the first scanning direction and the touch area in the second scanning direction to obtain candidate touch points.
2. The method according to claim 1, wherein the light path voltage value of each scanning blind area in the first scanning direction and the light path voltage value of each scanning blind area in the second scanning direction are both smaller than a preset binarization threshold value;
and the preset binarization threshold value is smaller than the first preset voltage value.
3. The method according to claim 1, wherein assigning the optical path voltage value for each scanning blind area in the first scanning direction and the optical path voltage value for each scanning blind area in the second scanning direction comprises:
assigning a value to the light path voltage value of a scanning blind area between adjacent light paths in the first scanning direction according to the light path voltage value on the adjacent light path in the first scanning direction;
and assigning the optical path voltage value of the scanning blind area between the adjacent optical paths in the second scanning direction according to the optical path voltage value on the adjacent optical path in the second scanning direction.
4. The method according to any one of claims 1 to 3, wherein the determining the touch area in the first scanning direction according to the light path voltage values on the respective light paths in the first scanning direction and the light path voltage values of the respective scanning dead zones in the first scanning direction comprises:
comparing the light path voltage values of all light paths in the first scanning direction and the light path voltage values of all scanning blind areas in the first scanning direction by adopting a preset binarization threshold value;
if the light path voltage value on the first light path is smaller than the preset binarization threshold value and/or the light path voltage value of the first blind area is smaller than the preset binarization threshold value, determining a touch area in the first scanning direction;
the first light path is any one light path in the first scanning direction, and the first blind area is any one scanning blind area in the first scanning direction.
5. The method according to any one of claims 1 to 3, wherein the determining the touch area in the first scanning direction according to the light path voltage values on the respective light paths in the first scanning direction and the light path voltage values of the respective scanning dead zones in the first scanning direction comprises:
and determining a touch area in the first scanning direction according to the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction, and the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction according to the distribution condition of the arrangement of the receiving lamps corresponding to each light path in the first scanning direction.
6. The method of claim 3, wherein the adjacent light paths in the first scanning direction comprise: a second optical path and a third optical path;
the assigning of the light path voltage value of the scanning blind area between the adjacent light paths in the first scanning direction according to the light path voltage value on the adjacent light paths in the first scanning direction comprises the following steps:
if the light path voltage value of the second light path and/or the light path voltage value of the third light path is smaller than the first preset voltage value, setting the light path voltage value of the scanning blind area between the second light path and the third light path as the light path voltage value of the second light path, wherein the light path voltage value of the second light path is smaller than the light path voltage value of the third light path;
or,
if the light path voltage value of the second light path and/or the light path voltage value of the third light path is smaller than the first preset voltage value, setting the light path voltage value of the scanning blind area between the second light path and the third light path as the average value of the light path voltage value of the second light path and the light path voltage value of the third light path;
or,
if the light path voltage value of the second light path and the light path voltage value of the third light path are equal to the first preset voltage value, setting the light path voltage value of a scanning blind area between the second light path and the third light path as a second preset voltage value;
and when a light path is completely shielded, the second preset voltage value is the light path voltage value of the light signal received by the receiving lamp corresponding to the light path.
7. The method according to claim 1 or 3, wherein before the determining the touch area in the first scanning direction according to the light path voltage values on the respective light paths in the first scanning direction and the light path voltage values of the respective scanning dead zones in the first scanning direction, the method further comprises:
respectively mapping light path voltage values on each light path in the first scanning direction, light path voltage values of each scanning blind area in the first scanning direction, light path voltage values on each light path in the second scanning direction and light path voltage values of each scanning blind area in the second scanning direction into analog voltage values, wherein the value ranges of the light path voltage values on each light path and the light path voltage values of the scanning blind areas are 0-5V, and the value ranges of the analog voltage values are 0-255;
the determining a touch area in the first scanning direction according to the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction includes:
and determining a touch area in the first scanning direction according to the analog voltage values of each light path and each scanning blind area in the first scanning direction.
8. The method according to any one of claims 1 to 3, wherein the determining the touch area in the first scanning direction according to the light path voltage values on the respective light paths in the first scanning direction and the light path voltage values of the respective scanning dead zones in the first scanning direction comprises:
if the light path voltage value of a fourth light path is greater than the light path voltage value of a second blind area and the light path voltage value of the fourth light path is greater than the light path voltage value of a third blind area, dividing the scanning blind areas and the light paths on the left side and the right side of the fourth light path into two touch areas respectively by taking the fourth light path as a boundary;
the fourth light path is any one light path in the first scanning direction, and the second blind area and the third blind area are two scanning blind areas adjacent to the fourth light path in the first scanning direction.
9. An apparatus for locating candidate touch points, included in a touch screen device, the apparatus comprising:
an obtaining module, configured to obtain, in a scanning period, a light path voltage value on each light path in a first scanning direction and a light path voltage value on each light path in a second scanning direction, where the light path voltage value on each light path is a voltage value corresponding to a light signal received by a receiving lamp corresponding to each light path;
an assignment module, configured to assign a value to a light path voltage value of each scanning blind area in the first scanning direction and a light path voltage value of each scanning blind area in the second scanning direction, where the light path voltage value of each scanning blind area in the first scanning direction and the light path voltage value of each scanning blind area in the second scanning direction are both smaller than a first preset voltage value, and the first preset voltage value is a light path voltage value of a light signal received by a receiving lamp corresponding to a light path when the light path is not blocked;
a determining module, configured to determine a touch area in the first scanning direction according to the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction, and determine a touch area in the second scanning direction according to the light path voltage values on each light path in the second scanning direction and the light path voltage values of each scanning blind area in the second scanning direction;
and the calculating module is used for calculating the intersection of the touch area in the first scanning direction and the touch area in the second scanning direction to obtain candidate touch points.
10. The apparatus according to claim 9, wherein the light path voltage value of each scanning blind area in the first scanning direction and the light path voltage value of each scanning blind area in the second scanning direction are both smaller than a preset binarization threshold;
and the preset binarization threshold value is smaller than the first preset voltage value.
11. The apparatus of claim 9, wherein the assignment module is specifically configured to:
assigning a value to the light path voltage value of a scanning blind area between adjacent light paths in the first scanning direction according to the light path voltage value on the adjacent light path in the first scanning direction;
and assigning the optical path voltage value of the scanning blind area between the adjacent optical paths in the second scanning direction according to the optical path voltage value on the adjacent optical path in the second scanning direction.
12. The apparatus according to any one of claims 9 to 11, wherein the determining module is specifically configured to:
comparing the light path voltage values of all light paths in the first scanning direction and the light path voltage values of all scanning blind areas in the first scanning direction by adopting a preset binarization threshold value;
if the light path voltage value on the first light path is smaller than the preset binarization threshold value and/or the light path voltage value of the first blind area is smaller than the preset binarization threshold value, determining a touch area in the first scanning direction;
the first light path is any one light path in the first scanning direction, and the first blind area is any one scanning blind area in the first scanning direction.
13. The apparatus according to any one of claims 9 to 11, wherein the determining module is specifically configured to:
and determining a touch area in the first scanning direction according to the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction, and the light path voltage values on each light path in the first scanning direction and the light path voltage values of each scanning blind area in the first scanning direction according to the distribution condition of the arrangement of the receiving lamps corresponding to each light path in the first scanning direction.
14. The apparatus of claim 11, wherein the adjacent light paths in the first scanning direction comprise: a second optical path and a third optical path;
the assignment module is specifically configured to:
if the light path voltage value of the second light path and/or the light path voltage value of the third light path is smaller than the first preset voltage value, setting the light path voltage value of the scanning blind area between the second light path and the third light path as the light path voltage value of the second light path, wherein the light path voltage value of the second light path is smaller than the light path voltage value of the third light path;
or,
if the light path voltage value of the second light path and/or the light path voltage value of the third light path is smaller than the first preset voltage value, setting the light path voltage value of the scanning blind area between the second light path and the third light path as the average value of the light path voltage value of the second light path and the light path voltage value of the third light path;
or,
if the light path voltage value of the second light path and the light path voltage value of the third light path are equal to the first preset voltage value, setting the light path voltage value of a scanning blind area between the second light path and the third light path as a second preset voltage value;
and when a light path is completely shielded, the second preset voltage value is the light path voltage value of the light signal received by the receiving lamp corresponding to the light path.
15. The apparatus of claim 9 or 11, further comprising:
the simulation module is configured to map light path voltage values on each light path in the first scanning direction, light path voltage values of each scanning blind area in the first scanning direction, light path voltage values on each light path in the second scanning direction, and light path voltage values of each scanning blind area in the second scanning direction to analog voltage values, respectively, before the determination module determines the touch area in the first scanning direction, where a value range of the light path voltage values on each light path and the light path voltage values of the scanning blind areas is 0 to 5V, and a value range of the analog voltage values is 0 to 255;
the determining module is specifically configured to:
and determining a touch area in the first scanning direction according to the analog voltage values of each light path and each scanning blind area in the first scanning direction.
16. The apparatus according to any one of claims 9 to 11, wherein the determining module is specifically configured to:
if the light path voltage value of a fourth light path is greater than the light path voltage value of a second blind area and the light path voltage value of the fourth light path is greater than the light path voltage value of a third blind area, dividing the scanning blind areas and the light paths on the left side and the right side of the fourth light path into two touch areas respectively by taking the fourth light path as a boundary;
the fourth light path is any one light path in the first scanning direction, and the second blind area and the third blind area are two scanning blind areas adjacent to the fourth light path in the first scanning direction.
17. A touch screen device, comprising:
a memory for storing a set of executable program code;
a processor for executing the executable program code stored by the memory and in particular for performing the method of locating candidate touch points as claimed in any one of claims 1-8.
CN201510869523.4A 2015-12-02 2015-12-02 A kind of method, apparatus and touch-screen equipment of the candidate touch point of positioning Active CN105487712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510869523.4A CN105487712B (en) 2015-12-02 2015-12-02 A kind of method, apparatus and touch-screen equipment of the candidate touch point of positioning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510869523.4A CN105487712B (en) 2015-12-02 2015-12-02 A kind of method, apparatus and touch-screen equipment of the candidate touch point of positioning

Publications (2)

Publication Number Publication Date
CN105487712A CN105487712A (en) 2016-04-13
CN105487712B true CN105487712B (en) 2018-08-28

Family

ID=55674733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510869523.4A Active CN105487712B (en) 2015-12-02 2015-12-02 A kind of method, apparatus and touch-screen equipment of the candidate touch point of positioning

Country Status (1)

Country Link
CN (1) CN105487712B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775091B (en) * 2016-12-21 2022-04-01 北京汇冠触摸技术有限公司 Simulation analysis method for positioning accuracy of infrared touch screen
CN110989874B (en) * 2019-12-13 2024-01-09 深圳市康冠商用科技有限公司 Infrared touch signal acquisition method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615310A (en) * 2015-01-23 2015-05-13 青岛海信电器股份有限公司 Method and device for determining candidate touch points
CN104731418A (en) * 2015-03-27 2015-06-24 青岛海信电器股份有限公司 Touch screen positioning method and device and touch screen device
CN104731417A (en) * 2015-03-18 2015-06-24 青岛海信电器股份有限公司 Optical path scanning and configuring method and device for touch screen

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI430151B (en) * 2010-11-03 2014-03-11 Quanta Comp Inc Touch device and touch method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615310A (en) * 2015-01-23 2015-05-13 青岛海信电器股份有限公司 Method and device for determining candidate touch points
CN104731417A (en) * 2015-03-18 2015-06-24 青岛海信电器股份有限公司 Optical path scanning and configuring method and device for touch screen
CN104731418A (en) * 2015-03-27 2015-06-24 青岛海信电器股份有限公司 Touch screen positioning method and device and touch screen device

Also Published As

Publication number Publication date
CN105487712A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN104615310B (en) A kind of method and device for determining candidate touch point
US9104910B2 (en) Device and method for determining gesture and operation method of gesture determining device
US20150244911A1 (en) System and method for human computer interaction
CN107728860B (en) Touch point identification method and device of infrared touch screen and touch screen equipment
CN106951132B (en) The report point of capacitive touch screen determines method, apparatus, touch screen and terminal
EP4206723A1 (en) Ranging method and device, storage medium, and lidar
CN105487712B (en) A kind of method, apparatus and touch-screen equipment of the candidate touch point of positioning
CN105260064B (en) A kind of touch point identification method and device and display equipment
CN104731418A (en) Touch screen positioning method and device and touch screen device
CN106020568B (en) Touch area extracting method, device and display equipment
CN112842180A (en) Sweeping robot, distance measurement and obstacle avoidance method and device thereof, and readable storage medium
US20160012302A1 (en) Image processing apparatus, image processing method and non-transitory computer readable medium
CN109308710B (en) Monitoring method, computing device and computer readable storage medium
CN106557209A (en) The processing method of infrared touch panel touching signals, device and terminal device
CN104504331B (en) Virtualize safety detection method and system
CN104049797B (en) Scanning range and the determination method of required scanning optical path needed for the identification of touch area
CN110502160A (en) The classification method and device of touch point, touch screen and display
CN105373262B (en) A kind of method and device of the identification invalid light path of infrared touch panel
EP3026637A1 (en) Program, storage medium, luminance computation apparatus and luminance computation method
CN110914810B (en) Monkey testing method and terminal
CN110928441B (en) Touch object identification method, system, terminal equipment and storage medium
CN104866143B (en) The determination method, apparatus and touch-screen equipment of a kind of touch point
CN104731417B (en) The light path scanning collocation method and device of a kind of touch-screen
CN105094453B (en) A kind of touch screen multipoint positioning method, device and touch-screen equipment
CN106293261B (en) A kind of touch screen localization method, device and touch-screen equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Patentee after: Hisense Visual Technology Co., Ltd.

Address before: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.

CP01 Change in the name or title of a patent holder