CN104391612B - Method and device for acquiring touch point boundary - Google Patents

Method and device for acquiring touch point boundary Download PDF

Info

Publication number
CN104391612B
CN104391612B CN201410669949.0A CN201410669949A CN104391612B CN 104391612 B CN104391612 B CN 104391612B CN 201410669949 A CN201410669949 A CN 201410669949A CN 104391612 B CN104391612 B CN 104391612B
Authority
CN
China
Prior art keywords
light receiving
voltage value
light emitting
light
preset threshold
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
CN201410669949.0A
Other languages
Chinese (zh)
Other versions
CN104391612A (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
Hisense Visual Technology 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 Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN201410669949.0A priority Critical patent/CN104391612B/en
Publication of CN104391612A publication Critical patent/CN104391612A/en
Application granted granted Critical
Publication of CN104391612B publication Critical patent/CN104391612B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention provides a method for acquiring a touch point boundary, which is characterized in that the position of the touch point boundary is judged according to the voltage values of three adjacent light receiving components, when the first voltage value of a first light receiving component is larger than a first preset threshold value, the second voltage value of a second light receiving component is smaller than the first preset threshold value, and the third voltage value of a third light receiving component is smaller than the first preset threshold value, the position of the touch point boundary is judged according to the first voltage value, the second preset threshold value and a boundary area. In the process of obtaining the boundary of the touch point, the first voltage value at the first light receiving assembly is used as a reference parameter, so that the defect that the boundary of the touch point is still judged according to the second voltage value under the condition that the first voltage value is larger than a first preset threshold value and the light beam between the first light receiving assembly and the first light emitting assembly is partially shielded by the touch point is avoided, and the finally obtained boundary of the touch point is closer to the actual condition.

Description

Method and device for acquiring touch point boundary
Technical Field
The present invention relates to the field of touch technologies, and in particular, to a method and an apparatus for acquiring a touch area.
Background
Optical touch device is often used for obtaining touch operation, infrared touch component is including relative light-emitting component and the light receiving component who sets up, when opening predetermined light-emitting component and light receiving component, can form a light path between light-emitting component and the light receiving component, judge through detecting the voltage value of light receiving component whether light that light-emitting component sent is received to the light receiving component, and then judge whether this light path is sheltered from, thereby can judge whether this light path has the touch point, optical touch device's scanning often is multidirectional, therefore the position at the crossing point place of the light path of sheltering from is the position of touch point.
Since the linear width of the touch point is often greater than the linear widths of the light emitting module and the light receiving module, the touch point in the prior art often blocks more than one light path at the same time, that is, the touch point is not a "point" in the conventional sense, but is a touch area, that is, the touch point blocks multiple light paths at the same time. Specifically, in the prior art, a voltage value is selected as a first preset threshold, in the touch scanning process, if the voltage value is smaller than the first preset threshold, it is determined that a light path where the light receiving element is located is blocked, and if the voltage value is larger than the first preset threshold, it is determined that the light path where the light receiving element is located is not blocked, where the range of the preset threshold is 0 to 1. As shown in fig. 1, the case of the determination in the related art is shown in table 1 for the touch point 1.
TABLE 1
Light emitting assembly Light receiving module Corresponding light path Voltage value from light receiving module Whether the light path is blocked
f-2 f′-2 F-2 Greater than a first predetermined threshold Whether or not
f-1 f′-1 F-1 Less than a first predetermined threshold Is that
f f′ F Less than a first predetermined threshold Is that
f+1 f′+1 F+1 Less than a first predetermined threshold Is that
f+2 f′+1 F+2 Greater than a first predetermined threshold Whether or not
The method for determining the boundary of a touch point in the prior art is as follows: and when continuous blocked light paths exist, taking the position of the blocked light path close to the unblocked light path as the position of the boundary of the touch point.
In the optical paths obtained in table 1, it is considered in the prior art that the optical path F-1, the optical path F, and the optical path F +1 are blocked, and the optical path F-2, and the optical path F +2 are blocked, so that the position where the optical path F-1 and the optical path F +1 are located is the position where the touch point boundary is located, that is, as shown in fig. 2, the boundary of the finally obtained touch point 1 is F '-1 and F' + 1.
The inventor finds that, in the infrared touch device, the light path is not a light beam but a light beam, and therefore when the voltage value of the light receiving element is greater than the first preset threshold, the light beam between the light emitting element and the light receiving element may not be blocked by the touch point, or the light beam blocked by the touch point may be smaller, if the light beam between the light receiving element F '-2 and the light emitting element F-2 is blocked by the actual touch point 1 by a small portion, and at this time, the voltage value generated by the light receiving element F' -2 is still greater than the preset threshold, the edge position of the actual touch point 1 already exceeds the position of the light path F-1 in the row direction, that is, the actual position of the edge of the touch point and the boundary of the touch point obtained by the scheme in the prior art have a larger difference.
Disclosure of Invention
The invention provides a method for acquiring a touch point boundary, which solves the problem that the actual positions of the boundary of a touch point and the edge of the touch point acquired by the scheme in the prior art have large difference under the condition that a first voltage value is larger than a first preset threshold value and a light beam between a first light receiving assembly and a first light emitting assembly is partially shielded by the touch point while the hardware structure is not changed.
The invention provides a method for acquiring a touch point boundary, which is applied to an infrared touch device, wherein the infrared touch device comprises a first light receiving component, a second light receiving component adjacent to the first light receiving component, a third light receiving component adjacent to the second light receiving component, a first light emitting component, a second light emitting component and a third light emitting component; when the first light receiving and emitting assembly is gated and the first light emitting assembly corresponding to the first light receiving assembly is gated, the first light receiving assembly generates a first voltage value; when the second light receiving and emitting assembly is gated and the second light emitting assembly corresponding to the second light receiving assembly is gated, the second light receiving assembly generates a second voltage value; and when the third light receiving element is gated and the third light emitting element corresponding to the third light receiving element is gated, the third light receiving element generates a third voltage value, the method comprising: when the first voltage value is larger than a first preset threshold value and the second voltage value and the third voltage value are smaller than the first preset threshold value, generating a first ratio according to the first voltage value and the second preset threshold value, wherein the first ratio is used for representing the proportion of blocked light beams in light beams between the first light emitting assembly and the first light receiving assembly; the second preset threshold is a voltage value generated by the first light receiving assembly when the light emitted by the first light emitting assembly is not shielded; and generating a boundary of a touch point according to the first ratio and a boundary area, wherein the vertex coordinates of the boundary area are the coordinates of the first light receiving component, the coordinates of the second light receiving component, the coordinates of the first light emitting component and the coordinates of the second light emitting component respectively.
Optionally, the step of generating the boundary of the touch point according to the first ratio and the boundary area specifically includes: generating a first distance according to the coordinates of the first light receiving assembly and the coordinates of the second light receiving assembly, wherein the first distance is used for representing the distance between the first optical assembly and the second optical assembly; generating a second distance according to the coordinates of the first light emitting assembly and the coordinates of the second light emitting assembly, wherein the second distance is used for representing the distance between the first light emitting assembly and the second light emitting assembly; generating a first translation distance according to the product of the first ratio and the first distance; generating a second translation distance according to the product of the first ratio and the second distance; generating a first reference point according to the first translation distance and the coordinates of the second light receiving component, and generating a second reference point according to the second translation distance and the coordinates of the second light emitting component, wherein the first reference point is located between the first light receiving component and the second light receiving component, and the second reference point is located between the first light emitting component and the second light emitting component; and generating the boundary of the touch point according to the first reference point and the second reference point.
Optionally, the step of generating the boundary of the touch point according to the first ratio and the boundary area specifically includes: generating a first line segment according to the coordinates of the first light receiving assembly and the coordinates of the first light emitting assembly; generating a second line segment according to the coordinates of the second light receiving assembly and the coordinates of the second light emitting assembly; generating a third distance between the first line segment and the second line segment in a preset coordinate system; obtaining a third translation distance according to the product of the third distance and the first ratio; generating a boundary of a touch point according to the third translation distance and the second line segment, wherein the boundary of the touch point is located between the second line segment and the first line segment.
Further, before the step of selecting the first voltage value of the first light receiving element, the method further includes: sequentially triggering the light emitting component and the corresponding light receiving component according to a preset rule; the voltage value generated at the light receiving element is stored.
Optionally, when the first voltage value is greater than a first preset threshold, and the second voltage value and the third voltage value are smaller than the first preset threshold, the step of comparing the first voltage value with the second preset threshold and generating a first ratio specifically includes: when the first voltage value is larger than a first preset threshold value, and the second voltage value and the third voltage value are smaller than the first preset threshold value, generating a first difference value according to the difference between the first ratio and a second preset threshold value; generating a first ratio according to the ratio of the first difference value to the second preset threshold value;
optionally, when the first voltage value is greater than a first preset threshold, and the second voltage value and the third voltage value are smaller than the first preset threshold, the step of comparing the first voltage value with the second preset threshold and generating a first ratio specifically includes: when the first voltage value is larger than a first preset threshold value and the second voltage value and the third voltage value are smaller than the first preset threshold value, generating a second ratio according to the ratio of the first voltage value to the second preset threshold value; and generating a first ratio according to the difference value between the second ratio and 1.
The invention also provides a method for acquiring the touch points, and the method is used for acquiring the boundaries of the touch points.
The invention also provides an infrared touch device, which comprises an infrared touch frame, wherein the infrared touch frame is provided with a first light receiving component, a second light receiving component adjacent to the first light receiving component, a third light receiving component adjacent to the second light receiving component, a first light emitting component corresponding to the first light receiving component, a second light emitting component corresponding to the second light receiving component, and a third light emitting component corresponding to the third light receiving component, and the infrared touch device also comprises: the comparison module is used for selecting a first voltage value, a second voltage value and a third voltage value, comparing the first voltage value with a second preset threshold value and generating a first ratio when the first voltage value is larger than a first preset threshold value and the second voltage value and the third voltage value are smaller than the first preset threshold value, wherein the second preset threshold value is a voltage value generated by the first light receiving assembly when light rays emitted by the first light emitting assembly are not shielded; the first ratio is the proportion of the blocked light beam in the light beam between the first light emitting assembly and the first light receiving assembly; and the boundary generating module is used for receiving the first ratio generated by the comparing module and generating a boundary of a touch point according to the first ratio and a boundary area, wherein the vertex of the boundary area is the coordinate of the first light receiving component, the coordinate of the second light receiving component, the coordinate of the first light emitting component and the coordinate of the second light emitting component respectively.
Further, the infrared touch device further includes: and the touch point generating module is used for receiving the boundary of the touch point generated by the boundary acquiring module and generating the touch point according to the boundary of the touch point.
The invention also provides electronic equipment which comprises a display screen and the infrared touch device.
The invention provides a method for acquiring a touch point boundary, which is characterized in that the position of the touch point boundary is judged according to voltage values of three adjacent light receiving components, when a first voltage value of a first light receiving component is larger than a first preset threshold value, a second voltage value of a second light receiving component is smaller than the first preset threshold value, and a third voltage value of a third light receiving component is smaller than the first preset threshold value, the position of the touch point boundary is judged according to the first voltage value and a boundary area, wherein the vertex coordinates of the boundary area are respectively the coordinates of the first light receiving component, the coordinates of the second light receiving component, the coordinates of a first light emitting component and the coordinates of a second light emitting component. First, a first ratio is generated according to a first voltage value and a second preset threshold value, the first ratio is used for representing the proportion of blocked light beams in light beams between a first light emitting assembly and a first light receiving assembly, and the second preset threshold value is the voltage value generated by the first light receiving assembly when light rays emitted by the first light emitting assembly are not blocked. Further, the boundary area 201 shown in fig. 5 is divided according to the first ratio to generate the boundary of the touch point shown in fig. 3, and compared with the prior art in which the connecting line between the second light emitting element and the second light receiving element is used as the boundary of the touch point, in this scheme, the boundary area 201 is divided by determining the sheltered degree of the first light receiving element, and then the boundary of the touch point is obtained, so that the finally obtained position of the boundary of the touch point has a certain offset in the direction of the connecting line between the first light emitting element and the second light emitting element compared with the prior art scheme, thereby avoiding the defect that the boundary of the touch point is determined according to the second voltage value under the condition that the first voltage value is greater than the first preset threshold value and the light beam between the first light receiving element and the first light emitting element is sheltered by the touch point, the boundaries of the touch points are made closer to the touch point 1 edge reality.
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 diagram of a light path in an infrared touch device.
Fig. 2 is a schematic diagram of a boundary of a touch point obtained by the prior art.
Fig. 3 is a schematic diagram of a boundary of a touch point acquired according to the technical solution of the present invention.
FIG. 4 is a flowchart of a method according to a first embodiment.
FIG. 5 is a diagram illustrating a boundary region according to an embodiment.
FIG. 6 is a flowchart of a method according to a second embodiment.
Fig. 7 is a schematic diagram of the boundary of the touch points acquired in the second embodiment.
FIG. 8 is a flow chart of three methods according to the embodiment.
Fig. 9 is a schematic diagram of the boundary of the touch points acquired in the third embodiment.
Fig. 10 is a block diagram of an infrared touch device according to a fourth embodiment.
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.
For convenience of description, only f-2, f-1, and f in the light emitting module and f ' -2, f ' -1, and f ' in the light receiving module are taken as examples in the description of the embodiments for describing and explaining the technical solution of the present invention, and in the specific implementation process, operations performed by other light emitting modules and light receiving modules are similar to those of the embodiments of the present invention, and are not repeated herein.
Example one
The invention provides a method for acquiring a touch point, which is applied to an infrared touch device 100 shown in fig. 1, wherein the infrared touch device 100 comprises a first light receiving component f ' -2, a second light receiving component f ' -1 adjacent to the first light receiving component f ' -2, and a third light receiving component f ' adjacent to the second light receiving component f ' -1; according to a preset rule, when a first light receiving and emitting assembly f ' -2 is gated and a first light emitting assembly f-2 corresponding to the first light receiving assembly f ' -2 is gated, the first light receiving assembly f ' -2 generates a first voltage value; when the second light receiving and emitting assembly f ' -1 is gated and the second light emitting assembly f-1 corresponding to the second light receiving assembly f ' -1 is gated, the second light receiving assembly f ' -1 generates a second voltage value; when the third light receiving and emitting module f ' is gated and the third light emitting module f corresponding to the third light receiving module f ' is gated, the third light receiving module f ' generates a third voltage value.
In detail, in this embodiment, as can be seen from fig. 10, the infrared touch device 100 includes an infrared touch frame 1001, a comparison module 1002, a boundary generation module 1003, and a touch point generation module 1004, where a light emitting module and a light receiving module are disposed at peripheral positions of the infrared touch frame 1001, the light emitting module is disposed on a light emitting long side and a light emitting short side respectively, the light receiving module is disposed on a light receiving long side and a light receiving short side respectively, the light emitting long side and the light receiving long side are disposed opposite to each other, and the light emitting short side and the light receiving short side are disposed opposite to each other. The infrared touch device 100 is only a hardware basis of the technical solution provided by the present invention, and the arrangement, arrangement and corresponding relationship between the light emitting component and the light receiving component should not be taken as a limitation to the technical solution of the present invention. In the present embodiment, the actual touch area 1, f-2, f-1, f in the light emitting module, and f ' -2, f ' -1, f ' in the light receiving module are taken as examples.
As shown in fig. 4, the method for acquiring the touch point boundary applied to the infrared touch device 100 includes:
s101: when the first voltage value is larger than a first preset threshold value and the second voltage value and the third voltage value are smaller than the first preset threshold value, generating a first ratio according to the first voltage value and the second preset threshold value, wherein the first ratio is used for representing the proportion of blocked light beams in light beams between the first light emitting assembly and the first light receiving assembly; the second preset threshold is a voltage value generated by the first light receiving assembly when the light emitted by the first light emitting assembly is not shielded;
in detail, as can be seen from fig. 1, when a first voltage value generated at the first light receiving element f ' -2 is greater than a preset threshold, a second voltage value generated at the second light receiving element f ' -1 is less than the preset threshold, and a third voltage value generated at the third light receiving element f ' is less than the preset threshold; the light path F-1 and the light path F are blocked, and the light path F-2 may not be blocked at all, and also may not reach a preset standard, so that the proportion of the blocked light beam in the light beam between the first light emitting component and the first light receiving component is determined according to a first voltage value generated at the first light receiving component F' -2 and a second preset threshold, where the second preset threshold is a voltage value generated by the first light receiving component when the light beam emitted by the first light emitting component is not blocked. In practical operation, the second preset threshold is a voltage value generated at the light receiving element when the group of corresponding light emitting elements and light receiving elements are simultaneously turned on, and can be obtained through a previous experiment, or can be obtained by respectively recording voltage values generated at the light receiving elements when the group of corresponding light emitting elements and light receiving elements are simultaneously turned on, and making a statistical table for query.
S102: and generating a boundary of a touch point according to the first ratio and a boundary area, wherein the vertex coordinates of the boundary area are the coordinates of the first light receiving component, the coordinates of the second light receiving component, the coordinates of the first light emitting component and the coordinates of the second light emitting component respectively.
In detail, referring to fig. 5, after knowing a ratio of blocked light beams in light beams between the first light emitting module f-2 and the first light receiving module f ' -2, that is, a first ratio, the boundary area 201 is divided, and a position of a dividing line is a position of a touch point boundary, where vertex coordinates of the boundary area 201 are coordinates of the first light receiving module f ' -2, coordinates of the second light receiving module f ' -1, coordinates of the first light emitting module f-2, and coordinates of the second light emitting module f-1, respectively.
Further, before the step S101, the method further includes:
triggering the light emitting component and the corresponding light receiving component according to a preset rule; the voltage value generated at the light receiving element is stored.
Specifically, according to a preset rule, the light emitting device and the corresponding light receiving device are triggered, that is, the light emitting device and the light receiving device of the infrared touch device 100 are traversed, so as to generate a voltage value at the light receiving device, and store the voltage value generated at the light receiving device. So as to select the first voltage value, the second voltage value and the third voltage value from the stored voltage values in the next step.
The method comprises the steps that the position where a touch point boundary is located is judged through voltage values of three adjacent light receiving assemblies, when a first voltage value of a first light receiving assembly is larger than a first preset threshold value, a second voltage value of a second light receiving assembly is smaller than the first preset threshold value, and a third voltage value of a third light receiving assembly is smaller than the first preset threshold value, the position where the touch point boundary is located is judged according to the first voltage value and a boundary area, wherein vertex coordinates of the boundary area are coordinates of the first light receiving assembly, coordinates of the second light receiving assembly, coordinates of a first light emitting assembly and coordinates of a second light emitting assembly respectively. First, a first ratio is generated according to a first voltage value and a second preset threshold value, the first ratio is used for representing the proportion of blocked light beams in light beams between a first light emitting assembly and a first light receiving assembly, and the second preset threshold value is the voltage value generated by the first light receiving assembly when light rays emitted by the first light emitting assembly are not blocked. Further, the boundary area 201 shown in fig. 5 is divided according to the first ratio to generate the boundary of the touch point shown in fig. 3, and compared with the prior art in which the connecting line between the second light emitting element and the second light receiving element is used as the boundary of the touch point, in this scheme, the boundary area 201 is divided by determining the sheltered degree of the first light receiving element, and then the boundary of the touch point is obtained, so that the finally obtained position of the boundary of the touch point has a certain offset in the direction of the connecting line between the first light emitting element and the second light emitting element compared with the prior art scheme, thereby avoiding the defect that the boundary of the touch point is determined according to the second voltage value under the condition that the first voltage value is greater than the first preset threshold value and the light beam between the first light receiving element and the first light emitting element is sheltered by the touch point, the boundaries of the touch points are made closer to the touch point 1 edge reality.
Example two
As shown in fig. 1, the infrared touch device is applied to an infrared touch device, and the infrared touch device includes a first light receiving element f ' -2, a second light receiving element f ' -1 adjacent to the first light receiving element f ' -2, and a third light receiving element f ' adjacent to the second light receiving element f ' -1; according to a preset rule, when a first light receiving and emitting assembly f ' -2 is gated and a first light emitting assembly f-2 corresponding to the first light receiving assembly f ' -2 is gated, the first light receiving assembly f ' -2 generates a first voltage value; when the second light receiving and emitting assembly f ' -1 is gated and the second light emitting assembly f-1 corresponding to the second light receiving assembly f ' -1 is gated, the second light receiving assembly f ' -1 generates a second voltage value; when the third light receiving and emitting assembly f ' is gated and the third light emitting assembly f corresponding to the third light receiving assembly f ' is gated, the third light receiving assembly f ' generates a third voltage value. The method for acquiring the touch point boundary in this embodiment is shown in fig. 6, and includes:
s201: when the first voltage value is larger than a first preset threshold value and the second voltage value and the third voltage value are smaller than the first preset threshold value, generating a first difference value according to the difference between the first voltage value and the second preset threshold value; the first difference is used for representing a voltage value which can be generated by the blocked light beam in the light beam between the first light emitting assembly and the first light receiving assembly; the second preset threshold is a voltage value generated by the first light receiving assembly when the light emitted by the first light emitting assembly is not shielded.
Specifically, referring to fig. 1, in the infrared touch device 100, when a first voltage value generated at the first light receiving element f ' -2 is greater than a preset threshold, a second voltage value generated at the second light receiving element f ' -1 is less than the preset threshold, and a third voltage value generated at the third light receiving element f ' is less than the preset threshold; the light path F-1 and the light path F are blocked, and the light path F-2 may not be blocked at all, or the blocked degree may not reach a preset standard, so we need to obtain the proportion of the blocked light beam in the light beam between the first light emitting component and the first light receiving component. The first voltage value is a voltage value generated at the first light receiving element f' -2, and therefore, a difference between the first voltage value and the second preset threshold value is a voltage value which can be generated by the blocked part of the light beam between the first light receiving element and the first light emitting element.
In detail, taking the preset threshold of 0.5V and the second preset threshold of 1V as an example, as shown in table 2,
TABLE 2
Light emitting assembly numbering Light receiving module number Voltage value from light receiving module First difference value First ratio
f-2 f′-2 0.677V 0.333V 0.33
f-1 f′-1 0V -- --
f f′ 0V -- --
The first voltage value 0.667V of the first light receiving element f-2 is greater than the first preset threshold value 0.5V, the second voltage value 0V of the second light receiving element f-1 is less than the first preset threshold value 0.5V, the third voltage value 0V of the third light receiving element f is less than the first preset threshold value 0.5V, although the first voltage value 0.667V of the first light emitting element f-2 is greater than the first preset threshold value 0.5V, at this time, the light beam between the first light emitting element f-2 and the first light receiving element f' -2 is shielded by 33.3%, so the first difference between the first voltage value 0.667V and the second preset voltage value 1V is 0.333V, and 33.3% of the shielded light beam can generate a voltage value of 0.333V.
S202: and generating a first ratio according to the ratio of the first difference value to a second preset threshold value, wherein the first ratio is used for representing the proportion of the blocked light beam in the light beam between the first light emitting assembly and the first light receiving assembly.
Specifically, as shown in table 2, in the present embodiment, a first ratio of the first difference value 0.333V to the second preset threshold value 1V is 0.333, and this first ratio corresponds to a ratio of the blocked 33.3% of the light beam to the light beam between the first light emitting element f-2 and the first light receiving element f' -2.
S203: generating a first distance according to the coordinates of the first light receiving assembly and the coordinates of the second light receiving assembly, wherein the first distance is used for representing the distance between the first optical assembly and the second optical assembly; and generating a second distance according to the coordinates of the first light emitting assembly and the coordinates of the second light emitting assembly, wherein the second distance is used for representing the distance between the first light emitting assembly and the second light emitting assembly.
Specifically, as can be seen from fig. 7, in the infrared touch device, all the light emitting elements and the light receiving elements have corresponding coordinates in a preset coordinate system. Firstly, obtaining a first distance 401 between the first optical receiving component f '-2 and the second optical receiving component f' -1 according to the coordinates of the first optical receiving component f '-2 and the coordinates of the second optical receiving component f' -1; and a second distance 402 between the first light emitting assembly f-2 and the second light emitting assembly f-1 is obtained according to the coordinates f-2 of the first light emitting assembly and the coordinates of the second light emitting assembly f-1. The first distance 401 and the second distance 402 are not sequentially obtained, so the above embodiments are only for convenience of describing the present invention and should not be taken as limitations to the present invention.
S204: generating a first translation distance according to the product of the first ratio and the first distance; a second translation distance is generated based on a product of the first ratio and the second distance.
Specifically, the first and second translation distances 301 and 302 are adjusted parameters determined according to the first voltage value and the first and second distances 401 and 402. The product of the first distance 401 and the first ratio 0.333 is the first translation distance 301, and the product of the second distance 402 and the first ratio 0.333 is the second translation distance 302.
S205: and generating a first reference point according to the first translation distance and the coordinates of the second light receiving component, and generating a second reference point according to the second translation distance and the coordinates of the second light emitting component, wherein the first reference point is positioned between the first light receiving component and the second light receiving component, and the second reference point is positioned between the first light emitting component and the second light emitting component.
Specifically, the coordinates of the second light receiving element f '-1 and the coordinates of the second light emitting element f-1 are the basis for adjustment, the first reference point a is located between the first light receiving element f' -2 and the second light receiving element f '-1, and the distance from the second light receiving element f' -1 is the first translation distance 301; the second reference point B is located between the first light emitting assembly f-2 and the second light emitting assembly f-1 at a second translational distance 302 from the second light emitting assembly f-1.
S206: and generating the boundary of the touch point according to the first reference point and the second reference point.
In detail, a connecting line between the first reference point a and the second reference point B is the boundary 102 of the touch point.
In the above case, the boundary of the touch point determined by the related art is a connection line between the second light emitting module f-1 and the second light receiving module f' -1. However, compared with the F' -1 in the prior art, the boundary 102 of the touch point determined to be generated at this time is more toward the connection line between the first light emitting assembly and the second light emitting assembly, so that the defect that the boundary of the touch point is determined according to the second voltage value even when the first voltage value is greater than the first preset threshold value and the light beam between the first light receiving assembly and the first light emitting assembly is partially shielded by the touch point is avoided, and the boundary of the touch point is closer to the actual situation.
Further, touch points are generated from the boundaries of the touch points acquired in the row direction and the column direction. The method of generating the touch point according to the boundary of the touch point is the same as in the related art.
Further, before the step S201, the method further includes:
sequentially triggering the light emitting component and the corresponding light receiving component according to a preset rule; the voltage value generated at the light receiving element is stored.
EXAMPLE III
As shown in fig. 1, the infrared touch device is applied to an infrared touch device, and the infrared touch device includes a first light receiving element f ' -2, a second light receiving element f ' -1 adjacent to the first light receiving element f ' -2, and a third light receiving element f ' adjacent to the second light receiving element f ' -1; according to a preset rule, when a first light receiving and emitting assembly f ' -2 is gated and a first light emitting assembly f-2 corresponding to the first light receiving assembly f ' -2 is gated, the first light receiving assembly f ' -2 generates a first voltage value; when the second light receiving and emitting assembly f ' -1 is gated and the second light emitting assembly f-1 corresponding to the second light receiving assembly f ' -1 is gated, the second light receiving assembly f ' -1 generates a second voltage value; when the third light receiving and emitting assembly f ' is gated and the third light emitting assembly f corresponding to the third light receiving assembly f ' is gated, the third light receiving assembly f ' generates a third voltage value. The method for acquiring the touch point boundary in this embodiment as shown in fig. 8 includes:
s301: when the first voltage value is larger than a first preset threshold value and the second voltage value and the third voltage value are smaller than the first preset threshold value, generating a second ratio according to the ratio of the first voltage value to the second preset threshold value; wherein the second ratio is used for representing the proportion of the light beam which is not blocked in the light beam between the first light-emitting component and the first light-receiving component.
Specifically, referring to fig. 1, in the infrared touch device 100, when a first voltage value generated at the first light receiving element f ' -2 is greater than a preset threshold, a second voltage value generated at the second light receiving element f ' -1 is less than the preset threshold, and a third voltage value generated at the third light receiving element f ' is less than the preset threshold; the light path F-1 and the light path F are blocked, and the light path F-2 may not be blocked at all, or the blocked degree may not reach a preset standard, so we need to obtain the proportion of the blocked light beam in the light beam between the first light emitting component and the first light receiving component. The first voltage value is a voltage value generated at the first light receiving element f' -2, so that the ratio of the first voltage value to the second preset threshold value is the ratio of the light beam between the first light emitting element and the first light receiving element which is not blocked.
In detail, taking the preset threshold of 0.5V and the second preset threshold of 1V as an example, as shown in table 3,
TABLE 3
Light emitting assembly numbering Light receiving module number Voltage value from light receiving module Second ratio First ratio
f-2 f′-2 0.677V 0.667 0.33
f-1 f′-1 0V -- --
f f′ 0V -- --
The first voltage value 0.667V of the first light receiving element f-2 is greater than the first preset threshold value 0.5V, the second voltage value 0V of the second light receiving element f-1 is less than the first preset threshold value 0.5V, the third voltage value 0V of the third light receiving element f is less than the first preset threshold value 0.5V, although the first voltage value 0.667V of the first light emitting element f-2 is greater than the first preset threshold value 0.5V, the second ratio of the first voltage value 0.667V to the second preset voltage value 1V is 0.667, which is equivalent to the unshielded light beam occupying 66.7% of the light beam of the first light emitting element and the first light receiving element.
S302: and generating a first ratio according to the difference between the second ratio and 1, wherein the first ratio is used for representing the proportion of the blocked light beam in the light beam between the first light emitting assembly and the first light receiving assembly.
Specifically, as shown in table 3, the first ratio is 0.333, which corresponds to a ratio of blocked light beams to light beams between the first light emitting element and the first light receiving element being 33.3%.
S303: generating a first line segment according to the coordinates of the first light receiving assembly and the coordinates of the first light emitting assembly; and generating a second line segment according to the coordinates of the second light receiving assembly and the coordinates of the second light emitting assembly.
Specifically, as can be seen from fig. 9, in the infrared touch device, all the light emitting elements and the light receiving elements have corresponding coordinates in a preset coordinate system. Firstly, generating a first line segment 105 according to the coordinates of the first light receiving assembly f' -2 and the coordinates of the first light emitting assembly f-2; the second line segment 103 is generated based on the coordinates of the second light receiving element f' -1 and the coordinates of the second light emitting element f-1.
S304: and generating a third distance between the first line segment and the second line segment in the preset coordinate system.
Specifically, in the preset coordinate system, the first line segment 105 and the second line segment 103 each correspond to a line segment function, and accordingly, the third distance 403 between the first line segment 105 and the second line segment 103 in the preset coordinate system can be obtained.
S305: and obtaining a third translation distance according to the product of the third distance and the first ratio.
Specifically, the third translation distance 303 is generated from the product of the third distance 403 and the first ratio of 0.333.
S306: and generating a boundary of the touch point according to the third translation distance and the second line segment, wherein the boundary of the touch point is positioned between the second line segment and the first line segment.
Specifically, the boundary 102 of the touch point is located between the first line segment 105 and the second line segment 103, and the distance between the boundary 102 of the touch point and the second line segment 103 is the third translation distance 303.
In the above case, the boundary F' -1 of the touch point determined by the related art is a connecting line between the second light emitting element and the second light receiving element, that is, corresponds to the second line segment 103 in the present embodiment. However, compared with the scheme in the prior art, the boundary 102 for determining the touch point generated at this time is more toward the connection line between the first light emitting assembly and the second light emitting assembly, so that the defect that the boundary of the touch point is still determined according to the second voltage value under the condition that the first voltage value is greater than the first preset threshold value and the light beam between the first light receiving assembly and the first light emitting assembly is partially shielded by the touch point is avoided, and the boundary of the touch point is closer to the actual situation.
Further, touch points are generated from the boundaries of the touch points acquired in the row direction and the column direction. The method of generating the touch point according to the boundary of the touch point is the same as in the related art.
Further, before the step S301, the method further includes:
sequentially triggering the light emitting component and the corresponding light receiving component according to a preset rule; the voltage value generated at the light receiving element is stored.
Example four
As shown in fig. 10, the present invention further provides an infrared touch device 100, where the infrared touch device 100 includes:
an infrared touch frame 1001, wherein a first light receiving component f ' -2, a second light receiving component f ' -1 adjacent to the first light receiving component f ' -2, and a third light receiving component f ' adjacent to the second light receiving component f ' -1 are arranged in the infrared touch frame 1001; a first light emitting module f-2 gated simultaneously with the first light receiving module f' -2; a second light emitting module f-1 which is gated simultaneously with the second light receiving and emitting module f' -1; a third light emitting module f which is gated simultaneously with the third light receiving module f ', wherein when the first light receiving module f ' -2 and the first light emitting module f-2 are gated, the first light receiving module f ' -2 generates a first voltage value, when the second light receiving module f ' -1 and the second light emitting module f-1 are gated, the second light receiving module f ' -1 generates a second voltage value, and when the third light receiving module f ' and the third light emitting module f are gated, the third light receiving module f ' generates a third voltage value; further comprising:
the comparison module 1002 is configured to select a first voltage value, a second voltage value, and a third voltage value; when the first voltage value is greater than a first preset threshold value and the second voltage value and the third voltage value are less than the first preset threshold value, comparing the first voltage value with a second preset threshold value and generating a first ratio, wherein the second preset threshold value is: when the light emitted by the first light emitting component is not shielded, the voltage value generated by the first light receiving component; the first ratio is: the proportion of the blocked light beam in the light beam between the first light emitting assembly and the first light receiving assembly;
and a boundary generating module 1003, configured to receive the first ratio generated by the comparing module, and generate a boundary of the touch point according to the first ratio and a boundary area, where a vertex of the boundary area is a coordinate of the first light receiving component, a coordinate of the second light receiving component, a coordinate of the first light emitting component, and a coordinate of the second light emitting component.
Further, the method can also comprise the following steps: and a touch point generating module 1004, configured to receive the boundary of the touch point generated by the boundary acquiring module, and generate the touch point according to the boundary of the touch point.
The invention further provides an electronic device, which comprises a display screen and the infrared touch device 100.
As can be known by those skilled in the art, there are multiple possibilities for obtaining the scanning scheme of the quasi-touch region, the scheme using the axial scanning listed in this embodiment is only one of the possibilities, and other scanning schemes may be a one-to-many scanning scheme or a scheme using the axial scanning and then using the oblique scanning scheme, and no matter how the quasi-touch region is scanned, as long as the voltage values generated at three consecutive optical components or other parameters corresponding to the voltage values are obtained in the scheme, the corresponding region boundaries are generated, so that the technical scheme of accurately obtaining the touch region belongs to the protection scope of the scheme of the present invention.
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 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 claims.

Claims (10)

1. A method for acquiring a touch point boundary is applied to an infrared touch device, wherein the infrared touch device comprises a first light receiving component, a second light receiving component adjacent to the first light receiving component, a third light receiving component adjacent to the second light receiving component, a first light emitting component, a second light emitting component and a third light emitting component; when the first light receiving component is gated and the first light emitting component corresponding to the first light receiving component is gated, the first light receiving component generates a first voltage value; when the second light receiving component is gated and the second light emitting component corresponding to the second light receiving component is gated, the second light receiving component generates a second voltage value; and a third voltage value is generated by the third light receiving module when the third light receiving module is gated and the third light emitting module corresponding to the third light receiving module is gated, wherein the method comprises:
when the first voltage value is larger than a first preset threshold value and the second voltage value and the third voltage value are smaller than the first preset threshold value, generating a first ratio according to the first voltage value and the second preset threshold value, wherein the first ratio is used for representing the proportion of blocked light beams in light beams between the first light emitting assembly and the first light receiving assembly; the second preset threshold is a voltage value generated by the first light receiving assembly when the light emitted by the first light emitting assembly is not shielded;
and generating a boundary of a touch point according to the first ratio and a boundary area, wherein the vertex coordinates of the boundary area are the coordinates of the first light receiving component, the coordinates of the second light receiving component, the coordinates of the first light emitting component and the coordinates of the second light emitting component respectively.
2. The method of claim 1,
the step of generating the boundary of the touch point according to the first ratio and the boundary area specifically includes:
generating a first distance according to the coordinates of a first light receiving assembly and the coordinates of a second light receiving assembly, wherein the first distance is used for representing the distance between the first light receiving assembly and the second light receiving assembly; generating a second distance according to the coordinates of the first light emitting assembly and the coordinates of the second light emitting assembly, wherein the second distance is used for representing the distance between the first light emitting assembly and the second light emitting assembly;
generating a first translation distance according to the product of the first ratio and the first distance; generating a second translation distance according to the product of the first ratio and the second distance;
generating a first reference point according to the first translation distance and the coordinates of the second light receiving component, and generating a second reference point according to the second translation distance and the coordinates of the second light emitting component, wherein the first reference point is located between the first light receiving component and the second light receiving component, and the second reference point is located between the first light emitting component and the second light emitting component;
and generating the boundary of the touch point according to the first reference point and the second reference point.
3. The method of claim 1,
the step of generating the boundary of the touch point according to the first ratio and the boundary area specifically includes:
generating a first line segment according to the coordinates of the first light receiving assembly and the coordinates of the first light emitting assembly; generating a second line segment according to the coordinates of the second light receiving assembly and the coordinates of the second light emitting assembly;
generating a third distance between the first line segment and the second line segment in a preset coordinate system;
obtaining a third translation distance according to the product of the third distance and the first ratio;
generating a boundary of a touch point according to the third translation distance and the second line segment, wherein the boundary of the touch point is located between the second line segment and the first line segment.
4. The method according to any one of claims 1 to 3,
before the step of generating the first ratio according to the first voltage value and the second preset threshold, the method further includes:
sequentially triggering the light emitting component and the corresponding light receiving component according to a preset rule;
the voltage value generated at the light receiving element is stored.
5. The method of claim 4,
when the first voltage value is greater than a first preset threshold value, and the second voltage value and the third voltage value are less than the first preset threshold value, the step of generating a first ratio according to the first voltage value and the second preset threshold value specifically comprises:
when the first voltage value is larger than the first preset threshold value, and the second voltage value and the third voltage value are smaller than the first preset threshold value, generating a first difference value according to a difference between the first ratio and the second preset threshold value; and generating a first ratio according to the ratio of the first difference value to the second preset threshold value.
6. The method of claim 4,
when the first voltage value is greater than a first preset threshold value, and the second voltage value and the third voltage value are less than the first preset threshold value, the step of generating a first ratio according to the first voltage value and the second preset threshold value specifically comprises:
when the first voltage value is larger than the first preset threshold value and the second voltage value and the third voltage value are smaller than the first preset threshold value, generating a second ratio according to the ratio of the first voltage value to the second preset threshold value; and generating a first ratio according to the difference value between the second ratio and 1.
7. A method for acquiring a touch point,
the border of the touch point is obtained using the method according to any of claims 1-6.
8. An infrared touch device, comprising an infrared touch frame, wherein the infrared touch frame is provided with a first light receiving component, a second light receiving component adjacent to the first light receiving component, a third light receiving component adjacent to the second light receiving component, a first light emitting component corresponding to the first light receiving component, a second light emitting component corresponding to the second light receiving component, and a third light emitting component corresponding to the third light receiving component,
further comprising:
the comparison module is used for selecting a first voltage value, a second voltage value and a third voltage value, comparing the first voltage value with a second preset threshold value and generating a first ratio when the first voltage value is larger than a first preset threshold value and the second voltage value and the third voltage value are smaller than the first preset threshold value, wherein the second preset threshold value is a voltage value generated by the first light receiving assembly when light rays emitted by the first light emitting assembly are not shielded; the first ratio is the proportion of the blocked light beam in the light beam between the first light emitting assembly and the first light receiving assembly;
and the boundary generating module is used for receiving the first ratio generated by the comparing module and generating a boundary of a touch point according to the first ratio and a boundary area, wherein the vertex of the boundary area is the coordinate of the first light receiving component, the coordinate of the second light receiving component, the coordinate of the first light emitting component and the coordinate of the second light emitting component respectively.
9. The infrared touch device of claim 8, further comprising:
and the touch point generating module is used for receiving the boundary of the touch points generated by the boundary generating module and generating the touch points according to the boundary of the touch points.
10. An electronic device comprising a display screen, wherein,
the infrared touch device of any one of claims 8-9.
CN201410669949.0A 2014-11-20 2014-11-20 Method and device for acquiring touch point boundary Active CN104391612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410669949.0A CN104391612B (en) 2014-11-20 2014-11-20 Method and device for acquiring touch point boundary

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410669949.0A CN104391612B (en) 2014-11-20 2014-11-20 Method and device for acquiring touch point boundary

Publications (2)

Publication Number Publication Date
CN104391612A CN104391612A (en) 2015-03-04
CN104391612B true CN104391612B (en) 2020-10-30

Family

ID=52609524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410669949.0A Active CN104391612B (en) 2014-11-20 2014-11-20 Method and device for acquiring touch point boundary

Country Status (1)

Country Link
CN (1) CN104391612B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102207800A (en) * 2011-07-22 2011-10-05 广州视睿电子科技有限公司 Method and device for identifying touch points of infrared touch screen
CN102479004A (en) * 2010-11-29 2012-05-30 北京汇冠新技术股份有限公司 Touch point positioning method and device and touch screen
CN103076929A (en) * 2013-01-16 2013-05-01 深圳市灵畅互动科技有限公司 Contact locating method and geminate transistor touch screen using same
CN103513827A (en) * 2012-06-29 2014-01-15 北京汇冠新技术股份有限公司 Infrared touch screen scan method and infrared touch screen
CN103558949A (en) * 2013-11-08 2014-02-05 创维光电科技(深圳)有限公司 Infrared touch screen, method and system for suspension touch control
CN103853390A (en) * 2012-12-05 2014-06-11 北京汇冠新技术股份有限公司 Method for improving touch precision of infrared touch screen

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727247A (en) * 2008-10-23 2010-06-09 鸿富锦精密工业(深圳)有限公司 Electronic device with infrared touch function and control method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479004A (en) * 2010-11-29 2012-05-30 北京汇冠新技术股份有限公司 Touch point positioning method and device and touch screen
CN102207800A (en) * 2011-07-22 2011-10-05 广州视睿电子科技有限公司 Method and device for identifying touch points of infrared touch screen
CN103513827A (en) * 2012-06-29 2014-01-15 北京汇冠新技术股份有限公司 Infrared touch screen scan method and infrared touch screen
CN103853390A (en) * 2012-12-05 2014-06-11 北京汇冠新技术股份有限公司 Method for improving touch precision of infrared touch screen
CN103076929A (en) * 2013-01-16 2013-05-01 深圳市灵畅互动科技有限公司 Contact locating method and geminate transistor touch screen using same
CN103558949A (en) * 2013-11-08 2014-02-05 创维光电科技(深圳)有限公司 Infrared touch screen, method and system for suspension touch control

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于光学多点触控系统的触点识别软件的设计与实现";王政;《中国优秀硕士学位论文全文数据库 信息科技辑》;20140315;I135-759 *

Also Published As

Publication number Publication date
CN104391612A (en) 2015-03-04

Similar Documents

Publication Publication Date Title
US9967516B2 (en) Stereo matching method and device for performing the method
US9916653B2 (en) Detection of defects embedded in noise for inspection in semiconductor manufacturing
US20120261199A1 (en) Hierarchical sensing method
JP2008175549A (en) Defect detection device and method
CN106406638B (en) Touch point contour generation method and equipment
CN104049797B (en) Scanning range and the determination method of required scanning optical path needed for the identification of touch area
CN104391612B (en) Method and device for acquiring touch point boundary
KR20150003573A (en) Method and apparatus for extracting pattern of image
CN105373262B (en) A kind of method and device of the identification invalid light path of infrared touch panel
CN103376897A (en) Method and device for ascertaining a gesture performed in the light cone of a projected image
CN104238834B (en) Method and system for improving touch sensitivity
US20150309659A1 (en) Method and touch apparatus for calibrating coordinate value near edge of touch panel
US9489084B2 (en) Sensing method and sensing apparatus for sensing electrode cluster
US9766753B2 (en) Optical touch system and method having image sensors to detect objects over a touch surface
CN111858303B (en) Page control method, device, equipment and medium for applet
KR20200077022A (en) Method removing ghost phenomenon in multi-touch implementation of infrared touch screen
JP2017049997A (en) Apparatus and method for document image orientation detection
JP2014035294A (en) Information acquisition device and object detector
CN109613553B (en) Method, device and system for determining number of objects in scene based on laser radar
CN108021289B (en) Response method of touch screen
CN104571730A (en) Acquiring method of touch point, infrared touch device and display devic
JP6599031B2 (en) Monitoring device
CN110264400B (en) Method, system, electronic device and storage medium for generating coarse resolution map
JP2017033200A (en) Image processing device
CN107767407B (en) Road vehicle target extraction system and method based on TOF camera

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

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

Applicant after: Hisense Video Technology Co.,Ltd.

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

Applicant before: HISENSE ELECTRIC Co.,Ltd.

GR01 Patent grant
GR01 Patent grant