CN109558031B - Method for detecting upper contact of infrared touch screen - Google Patents

Method for detecting upper contact of infrared touch screen Download PDF

Info

Publication number
CN109558031B
CN109558031B CN201811433193.4A CN201811433193A CN109558031B CN 109558031 B CN109558031 B CN 109558031B CN 201811433193 A CN201811433193 A CN 201811433193A CN 109558031 B CN109558031 B CN 109558031B
Authority
CN
China
Prior art keywords
infrared
initial
sensors
touch screen
sensor
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
CN201811433193.4A
Other languages
Chinese (zh)
Other versions
CN109558031A (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.)
Hefei Xiliu Photoelectric Technology Co ltd
Wuhu Xiliu Photoelectric Technology Co ltd
Original Assignee
Hefei University of Technology
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 Hefei University of Technology filed Critical Hefei University of Technology
Priority to CN201811433193.4A priority Critical patent/CN109558031B/en
Publication of CN109558031A publication Critical patent/CN109558031A/en
Application granted granted Critical
Publication of CN109558031B publication Critical patent/CN109558031B/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/0416Control or interface arrangements specially adapted for digitisers
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/041Indexing scheme relating to G06F3/041 - G06F3/045
    • G06F2203/04109FTIR in optical digitiser, i.e. touch detection by frustrating the total internal reflection within an optical waveguide due to changes of optical properties or deformation at the touch location

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 invention discloses a contact detection method on an infrared touch screen, wherein a group of transceiving sensor sequences used for contact detection are adopted in the method, a group of infrared receiving sensors corresponding to infrared transmitting sensors are not continuously arranged but are arranged at regular intervals.

Description

Method for detecting upper contact of infrared touch screen
Technical Field
The invention relates to the field of infrared touch screens, in particular to a method for detecting a contact on an infrared touch screen.
Background
Touch technology has been widely used in recent years as an intuitive, fast and convenient man-machine interaction mode. The infrared touch screen becomes the first choice for designing a large-size touch screen due to the advantages of low cost, long service life and the like. However, in large-size applications, a large number of infrared transceiving sensors are used, and each transmitting sensor can transmit light in multiple directions, which causes an excessive calculation amount, and if the infrared transceiving sensors are sparsely arranged to reduce the calculation amount, the edge contact detection accuracy is insufficient. In consideration of the two difficulties, the invention designs a new array arrangement mode of the infrared transceiving sensors, provides a claw-shaped algorithm for contact detection, and ensures higher precision of edge contact detection while reducing the calculated amount.
Disclosure of Invention
The invention aims to provide a novel method for detecting contacts on an infrared touch screen, which reduces the calculated amount and ensures higher edge contact detection precision.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a method for detecting a contact on an infrared touch screen is characterized by comprising the following steps:
(1) transmitting and receiving sensor array arranged around infrared touch screen
Emitting sensor is placed on two adjacent limits on the infrared touch screen, and corresponding receiving sensor is placed on two other adjacent limits, and a set of receiving and dispatching sensor sequence includes an infrared emitting sensor and a set of infrared receiving sensor, and a set of infrared receiving sensor's number N is 5 ~ 8 (N increases along with the increase of the infrared touch screen size of using), arranges according to certain rule interval: one infrared receiving sensor is over against the infrared transmitting sensor in the group, the other infrared receiving sensors are arranged at intervals, and the interval angle theta satisfies the following formula:
Figure BDA0001883124400000011
wherein L is the length of the sensor, W is the length of the short side of the infrared touch screen, L is the length of the long side of the infrared touch screen, and the number N' of the sensors at intervals in a group of receiving sensor sequences is calculated according to the angle theta;
(2) the receiving and transmitting sensor array scans the contact to acquire state information;
(3) the method adopts a claw type algorithm to process the received state information and comprises the following steps:
1) checking the infrared light receiving state of a group of infrared receiving sensors in each group of transceiving sensor sequence, recording the number of the infrared receiving sensors in the state of not receiving infrared light and the number of the infrared transmitting sensors corresponding to the infrared receiving sensors in the group in pairs, and calculating an equation of a connecting line between the infrared receiving sensors and the infrared transmitting sensors;
2) selecting a connecting line in the vertical direction and the horizontal direction, calculating an initial region boundary line, and calculating a cross region formed by the initial region boundary line as an initial region where a contact may exist;
3) selecting connecting lines except the horizontal connecting line in the left and right directions, namely transverse inclined connecting lines, sequentially comparing the connecting lines with each initial region, if the connecting lines are intersected with each other, adding 1 to the transverse zone bit of the initial region, and accumulating the transverse zone bits of the initial region after the comparison is finished;
4) selecting connecting lines except the vertical connecting line in the vertical direction, namely longitudinal inclined connecting lines, sequentially comparing the connecting lines with each initial area, if the connecting lines are intersected with each other, adding 1 to the longitudinal zone bit of the initial area, and accumulating the longitudinal zone bits of the initial area after the comparison is finished;
5) and calculating the number of the touch points, judging whether the initial area is true or not according to the size of the zone bit of the initial area, and solving the centroid coordinate of the true area as the coordinate of the touch points.
The method for detecting the upper contact of the infrared touch screen is characterized in that in the step (3), the method for judging the boundary line of the initial area comprises the following steps:
1) one contact may intercept a vertical or horizontal connecting line corresponding to a single emission sensor, and a vertical or horizontal line corresponding to coordinates at two ends of the infrared emission sensor is taken as an initial region boundary line;
2) one contact point can also cut off a vertical or horizontal connecting line corresponding to two continuous infrared emission sensors, and a vertical or horizontal line corresponding to the midpoint coordinates of the two infrared emission sensors is taken as an initial area boundary line.
The method for detecting the touch point on the infrared touch screen is characterized in that in the step (3), the fact that the initial area is true means that the initial area is the area where the touch point is located, when n touch points are arranged on the infrared touch screen, the number of the initial areas obtained through calculation by a claw type algorithm is n, and the initial areas are arranged in n rows and n columns, so that the number of the touch points can be obtained by squaring the obtained number of the initial areas, whether the initial areas are true or not is judged according to the number of the touch points and the transverse and longitudinal mark bits corresponding to each initial area, and a calculation formula of the mark bit threshold is as follows:
flag1=2,flag2=N-1
if the horizontal flag bit and the vertical flag bit of an initial area both reach a threshold value flag2, the initial area is directly judged to be true; if both the horizontal flag bit and the vertical flag bit of an initial area do not reach the threshold value flag1, the initial area is directly judged to be false; and judging whether the rest initial regions are true or not according to the number of the contacts and the initial region condition judged as true: if the row or column in which the device is positioned has a 'true' initial region, the device is judged to be 'false'; if the sum of the horizontal flag bit and the vertical flag bit in the row and the column where the flag bit is located is maximum, the flag bit is judged to be true.
The invention has the following advantages:
compared with the traditional contact detection method with the continuously arranged receiving sensors, the method disclosed by the invention can greatly reduce the calculated amount while ensuring the detection precision in the aspect of large-size application, and meets the requirement of real-time high-precision infrared multi-point touch application.
Drawings
Fig. 1 shows the arrangement of the infrared transceiver sensor array according to the present invention.
Fig. 2 is a schematic diagram of an arrangement of a group of ir transceiving sensor sequences according to the present invention (N-5).
FIG. 3-1 is a schematic diagram of a method for determining an initial zone boundary line when a contact cuts off a corresponding connection line of an infrared emission sensor.
Fig. 3-2 is a schematic diagram of a method for judging the boundary line of the initial region when the contact cuts off the corresponding connecting line of the two emission sensors.
Fig. 4 is a schematic view of an initial region for forming contacts according to the present invention (the number of contacts n is 3).
Fig. 5 is a schematic overall flow chart of a method for detecting a touch point on an infrared touch screen according to the present invention.
The attached drawings indicate the following: the touch screen comprises an infrared touch screen a, an infrared emission sensor b, an infrared receiving sensor c, an initial region boundary line d, a contact point e and an initial region f.
Detailed Description
A method for detecting a contact on an infrared touch screen comprises the following steps:
(1) transmitting and receiving sensor array arranged around infrared touch screen
As shown in fig. 1, two adjacent sides on the infrared touch screen a place the transmitting sensor, and two adjacent sides place the corresponding receiving sensor, and a set of transceiver sensor sequence includes an infrared transmitting sensor b and a set of infrared receiving sensor c, and the number N of a set of infrared receiving sensor c is 5 ~ 8 (N increases along with the increase of the infrared touch screen size of using), arranges according to certain regular interval: one infrared receiving sensor c is over against the infrared transmitting sensor b in the group, the other infrared receiving sensors c are arranged at intervals, and the interval angle theta satisfies the following formula:
Figure BDA0001883124400000041
wherein L is the length of the sensor, W is the length of the short side of the infrared touch screen, L is the length of the long side of the infrared touch screen, and the number N' of the sensors at intervals in a group of receiving sensor sequences is calculated according to the angle theta; fig. 2 shows an arrangement of a group of infrared transceiving sensor sequences with N ═ 5 on a 21-inch infrared touch screen, where N ═ 4;
(2) the receiving and transmitting sensor array scans the contact to acquire state information;
(3) the received status information is processed by using a claw-type algorithm, as shown in fig. 5, and the processing is performed by the following steps:
1) checking the state that a group of infrared receiving sensors c in each group of transceiving sensor sequences receive infrared light, recording the number of the infrared receiving sensors c in the state that the infrared light is not received and the number of the infrared transmitting sensors b corresponding to the infrared receiving sensors c in the group in pairs, and calculating an equation of a connecting line between the infrared receiving sensors c and the infrared transmitting sensors b;
2) selecting a connecting line in the vertical direction and the horizontal direction, calculating an initial region boundary line d, and calculating a cross region formed by the initial region boundary line as an initial region f possibly existing in a contact e;
3) selecting connecting lines except the horizontal connecting line in the left and right directions, namely transverse inclined connecting lines, sequentially comparing the connecting lines with each initial region, if the connecting lines are intersected with each other, adding 1 to the transverse zone bit of the initial region, and accumulating the transverse zone bits of the initial region after the comparison is finished;
4) selecting connecting lines except the vertical connecting line in the vertical direction, namely longitudinal inclined connecting lines, sequentially comparing the connecting lines with each initial area, if the connecting lines are intersected with each other, adding 1 to the longitudinal zone bit of the initial area, and accumulating the longitudinal zone bits of the initial area after the comparison is finished;
5) and calculating the number of the contact points, judging whether the initial area is true or not according to the size of the zone bit of the initial area, and calculating the centroid coordinate of the true area as the coordinate of the contact point e.
In the step (3), the method for judging the boundary line of the initial region comprises the following steps:
1) as shown in fig. 3-1, a contact may intercept a vertical or horizontal connection line corresponding to a single emission sensor, and take a vertical or horizontal line corresponding to coordinates at both ends of the infrared emission sensor as an initial area boundary line;
2) as shown in fig. 3-2, one touch point may also intercept a vertical or horizontal connecting line corresponding to two consecutive ir-emitting sensors, and take the vertical or horizontal line corresponding to the midpoint coordinates of the two ir-emitting sensors as the initial area boundary line.
In step (3), the initial region being "true" means that the initial region is a region where the contact points are located, when n contact points are located on the infrared touch screen, the number of initial regions obtained by calculation by the claw type algorithm is n · n, and the initial regions are arranged in n rows and n columns, so that the number of contact points can be obtained by squaring the obtained number of initial regions, and whether the initial regions are "true" is determined according to the number of contact points and the horizontal and vertical flag bits corresponding to each initial region, as shown in fig. 4, the initial region schematic diagram is formed when the number of contact points n is 3. The calculation formula of the flag bit threshold is as follows:
flag1=2,flag2=N-1
if the horizontal flag bit and the vertical flag bit of an initial area both reach a threshold value flag2, the initial area is directly judged to be true; if both the horizontal flag bit and the vertical flag bit of an initial area do not reach the threshold value flag1, the initial area is directly judged to be false; and judging whether the rest initial regions are true or not according to the number of the contacts and the initial region condition judged as true: if the row or column in which the device is positioned has a 'true' initial region, the device is judged to be 'false'; if the sum of the horizontal flag bit and the vertical flag bit in the row and the column where the flag bit is located is maximum, the flag bit is judged to be true.

Claims (2)

1. A method for detecting a contact on an infrared touch screen is characterized by comprising the following steps:
(1) transmitting and receiving sensor array arranged around infrared touch screen
Emitting sensors are placed on two adjacent edges of the infrared touch screen, corresponding receiving sensors are placed on the other two adjacent edges of the infrared touch screen, a group of receiving and sending sensor sequences comprise an infrared emitting sensor and a group of infrared receiving sensors, the number N of the group of infrared receiving sensors is 5-8, and the receiving sensors are arranged at intervals according to a certain rule: one infrared receiving sensor is over against the infrared transmitting sensor in the group, the other infrared receiving sensors are arranged at intervals, and the interval angle theta satisfies the following formula:
Figure FDA0003159724240000011
wherein L is the length of the sensor, W is the length of the short side of the infrared touch screen, L is the length of the long side of the infrared touch screen, and the number N' of the sensors at intervals in a group of receiving sensor sequences is calculated according to the angle theta;
(2) the receiving and transmitting sensor array scans the contact to acquire state information;
(3) the method adopts a claw type algorithm to process the received state information and comprises the following steps:
1) checking the infrared light receiving state of a group of infrared receiving sensors in each group of transceiving sensor sequence, recording the number of the infrared receiving sensors in the state of not receiving infrared light and the number of the infrared transmitting sensors corresponding to the infrared receiving sensors in the group in pairs, and calculating an equation of a connecting line between the infrared receiving sensors and the infrared transmitting sensors;
2) selecting a connecting line in the vertical direction and the horizontal direction, calculating an initial region boundary line, and calculating a cross region formed by the initial region boundary line as an initial region where a contact may exist;
3) selecting connecting lines except the horizontal connecting line in the left and right directions, namely transverse inclined connecting lines, sequentially comparing the connecting lines with each initial region, if the connecting lines are intersected with each other, adding 1 to the transverse zone bit of the initial region, and accumulating the transverse zone bits of the initial region after the comparison is finished;
4) selecting connecting lines except the vertical connecting line in the vertical direction, namely longitudinal inclined connecting lines, sequentially comparing the connecting lines with each initial area, if the connecting lines are intersected with each other, adding 1 to the longitudinal zone bit of the initial area, and accumulating the longitudinal zone bits of the initial area after the comparison is finished;
5) calculating the number of the contacts, judging whether the initial area is true or not according to the size of the zone bit of the initial area, and solving the centroid coordinate of the true area as the coordinate of the contacts;
in the step (3), the method for judging the initial zone boundary line comprises the following steps:
a) one contact may intercept a vertical or horizontal connecting line corresponding to a single emission sensor, and a vertical or horizontal line corresponding to coordinates at two ends of the infrared emission sensor is taken as an initial region boundary line;
b) one contact point can also cut off a vertical or horizontal connecting line corresponding to two continuous infrared emission sensors, and a vertical or horizontal line corresponding to the midpoint coordinates of the two infrared emission sensors is taken as an initial area boundary line.
2. The method for detecting the touch point on the infrared touch screen according to claim 1, wherein in the step (3), the fact that the initial area is "true" means that the initial area is the area where the touch point is located, when n touch points are located on the infrared touch screen, the number of the initial areas calculated by the claw type algorithm is n · n, and the initial areas are arranged in n rows and n columns, so that the number of the touch points can be obtained by squaring the obtained number of the initial areas, whether the initial areas are "true" or not is judged according to the number of the touch points and the corresponding horizontal and vertical flag bits of each initial area, and a calculation formula of the flag bit threshold is as follows:
flag1=2,flag2=N-1
if the horizontal flag bit and the vertical flag bit of an initial area both reach a threshold value flag2, the initial area is directly judged to be true; if both the horizontal flag bit and the vertical flag bit of an initial area do not reach the threshold value flag1, the initial area is directly judged to be false; and judging whether the rest initial regions are true or not according to the number of the contacts and the initial region condition judged as true: if the row or column in which the device is positioned has a 'true' initial region, the device is judged to be 'false'; if the sum of the horizontal flag bit and the vertical flag bit in the row and the column where the flag bit is located is maximum, the flag bit is judged to be true.
CN201811433193.4A 2018-11-28 2018-11-28 Method for detecting upper contact of infrared touch screen Active CN109558031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811433193.4A CN109558031B (en) 2018-11-28 2018-11-28 Method for detecting upper contact of infrared touch screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811433193.4A CN109558031B (en) 2018-11-28 2018-11-28 Method for detecting upper contact of infrared touch screen

Publications (2)

Publication Number Publication Date
CN109558031A CN109558031A (en) 2019-04-02
CN109558031B true CN109558031B (en) 2021-09-28

Family

ID=65867827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811433193.4A Active CN109558031B (en) 2018-11-28 2018-11-28 Method for detecting upper contact of infrared touch screen

Country Status (1)

Country Link
CN (1) CN109558031B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479001A (en) * 2010-11-29 2012-05-30 广达电脑股份有限公司 Touch control device and touch control method thereof
CN103135860A (en) * 2011-12-02 2013-06-05 纬创资通股份有限公司 Method for correcting rotation angle of optical touch module and optical touch module
CN104375637A (en) * 2014-07-17 2015-02-25 深圳市钛客科技有限公司 Touch system, touch device, mobile device and touch processing method
US9134820B2 (en) * 2012-03-22 2015-09-15 Coretronic Corporation Indicating unit, indicating apparatus and indicating method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4775247B2 (en) * 2006-12-21 2011-09-21 三菱電機株式会社 Position detection device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479001A (en) * 2010-11-29 2012-05-30 广达电脑股份有限公司 Touch control device and touch control method thereof
CN103135860A (en) * 2011-12-02 2013-06-05 纬创资通股份有限公司 Method for correcting rotation angle of optical touch module and optical touch module
US9134820B2 (en) * 2012-03-22 2015-09-15 Coretronic Corporation Indicating unit, indicating apparatus and indicating method
CN104375637A (en) * 2014-07-17 2015-02-25 深圳市钛客科技有限公司 Touch system, touch device, mobile device and touch processing method

Also Published As

Publication number Publication date
CN109558031A (en) 2019-04-02

Similar Documents

Publication Publication Date Title
CN102203707B (en) Multi-touch optical touch panel
CN102722291B (en) Method for driving infrared multi-point touch screen
CN105138198A (en) Initial unit for forming electrode pattern of mutual capacitance touch screen
CN100338565C (en) Infrared touch device
CN101600957B (en) Defect detecting device, and defect detecting method
CN102339170B (en) Method for scanning and calculating signal of infrared touch system and infrared touch system
CN102402339B (en) Touch positioning method, touch screen, touch system and display
CN103365492B (en) Multi-touch of infrared touch screen recognition methods
KR20130136485A (en) Infrared touch screen multi-point recognizing method and infrared touch screen
CN105117677A (en) QR code feature detection method and system
CN101286104A (en) Method for recognizing multiple touch point at infrared touch screen
CN102938062A (en) Document image slant angle estimation method based on content
CN103134469A (en) Distance sensing device and distance sensing method
CN106406638B (en) Touch point contour generation method and equipment
CN109558031B (en) Method for detecting upper contact of infrared touch screen
CN102339172B (en) Multi-axis signal scanning calculation method and system of infrared touch system
CN105260064A (en) Touch point identification method and apparatus, and display device
CN103853390B (en) A kind of method improving infrared touch panel touch precision
CN102339171B (en) Infrared touch system and multipoint signal scanning and calculating method
CN102236473A (en) Input device and position scanning method
CN105426022A (en) Infrared touch screen and multi-point positioning method based on the infrared touch screen
CN101976158B (en) Ultrasonic wave/infrared combined locating device and locating method thereof
CN103984445A (en) Infrared touch screen and touch point positioning method thereof
CN111489355B (en) High-precision infrared touch frame touch object size identification method
WO2022017247A1 (en) Touch sensor, touch detection apparatus, and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230109

Address after: 230000 room 902, building 12, union garden, new metropolis, No. 66, Ma'anshan South Road, Baohe District, Hefei City, Anhui Province

Patentee after: Hefei Xiliu Photoelectric Technology Co.,Ltd.

Address before: 230009 No. 193, Tunxi Road, Hefei, Anhui

Patentee before: Hefei University of Technology

Effective date of registration: 20230109

Address after: 241000 Building 9, Beihang Navigation Innovation Center, Anhui Xinwu Economic Development Zone, Wanzhou District, Wuhu City, Anhui Province

Patentee after: Wuhu Xiliu Photoelectric Technology Co.,Ltd.

Address before: 230000 room 902, building 12, union garden, new metropolis, No. 66, Ma'anshan South Road, Baohe District, Hefei City, Anhui Province

Patentee before: Hefei Xiliu Photoelectric Technology Co.,Ltd.