CN110083272B - Touch positioning method and related device of infrared touch frame - Google Patents

Touch positioning method and related device of infrared touch frame Download PDF

Info

Publication number
CN110083272B
CN110083272B CN201910371860.9A CN201910371860A CN110083272B CN 110083272 B CN110083272 B CN 110083272B CN 201910371860 A CN201910371860 A CN 201910371860A CN 110083272 B CN110083272 B CN 110083272B
Authority
CN
China
Prior art keywords
touch
current
intensity value
infrared
infrared intensity
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
CN201910371860.9A
Other languages
Chinese (zh)
Other versions
CN110083272A (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.)
Shenzhen KTC Commercial Technology Co Ltd
Original Assignee
Shenzhen KTC Commercial 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 Shenzhen KTC Commercial Technology Co Ltd filed Critical Shenzhen KTC Commercial Technology Co Ltd
Priority to CN201910371860.9A priority Critical patent/CN110083272B/en
Publication of CN110083272A publication Critical patent/CN110083272A/en
Application granted granted Critical
Publication of CN110083272B publication Critical patent/CN110083272B/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
    • G06F3/0421Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by opto-electronic means by interrupting or reflecting a light beam, e.g. optical touch-screen

Abstract

The invention discloses a touch positioning method of an infrared touch frame. When the shielding proportion is larger than the preset threshold value, the object with touch operation is close to the screen, and the position of the object is the area which the user wants to touch, so that the current touch coordinates can be recorded, and the positioning of the touch area of the user can be realized. The touch height of the infrared touch frame can be effectively reduced by calculating the shielding proportion and comparing the shielding proportion with the preset threshold value to judge whether the current touch coordinate is recorded or not, and meanwhile, the touch height of the infrared touch frame can be easily and effectively changed by setting different preset threshold values. The invention also provides a touch positioning device of the infrared touch frame, touch positioning equipment of the infrared touch frame and a computer readable storage medium.

Description

Touch positioning method and related device of infrared touch frame
Technical Field
The present invention relates to the field of infrared touch frames, and in particular, to a touch positioning method for an infrared touch frame, a touch positioning device for an infrared touch frame, and a computer readable storage medium.
Background
With the continuous progress of technology in recent years, the application of infrared touch frames is becoming wider and wider. The infrared touch frame is an outer frame of an infrared touch screen, in which infrared emitting tubes and infrared receiving tubes are densely arranged, and the infrared emitting tubes and the infrared receiving tubes form an infrared detection network on the surface of the display screen. When an object with touch operation shields infrared rays in the infrared detection network and is detected by the infrared detection tube, the object can be converted into touch coordinates to realize the response of the touch operation.
In the use process of the infrared touch frame, the touch height has very important influence on writing experience, the higher the touch height is, the greater the possibility of writing a pen is, and the corresponding user needs to lift the pen higher to avoid the pen connection, so that the user experience is influenced.
However, in the prior art, the touch height is generally reduced by reducing the heights of the infrared transmitting tube and the infrared receiving tube only in terms of hardware. However, for the prepared infrared touch frame, the touch height cannot be adjusted, and the amount of lowering the touch height in terms of hardware is generally very limited. How to effectively reduce the touch height of the infrared touch frame through the software layer is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a touch positioning method of an infrared touch frame, which can effectively reduce the touch height of the infrared touch frame; the invention also provides a touch positioning device of the infrared touch frame, touch positioning equipment of the infrared touch frame and a computer readable storage medium, which can effectively reduce the touch height of the infrared touch frame.
In order to solve the technical problems, the invention provides a touch positioning method of an infrared touch frame, comprising the following steps:
acquiring a current infrared intensity value received by a receiving tube in an infrared touch frame;
invoking a pre-stored reference infrared intensity value, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value;
judging whether the shielding proportion is larger than a preset threshold value or not; if the shielding proportion is larger than the preset threshold, recording the current touch coordinate; the current touch coordinate is calculated according to the identification information of the receiving tube for obtaining the current infrared intensity value.
Optionally, if the shielding proportion is greater than the preset threshold, recording the current touch coordinate; the current touch coordinate calculated according to the identification information of the receiving tube for obtaining the current infrared intensity value comprises the following steps:
if the shielding proportion is larger than the preset threshold, calculating the current touch coordinate according to the identification information of the receiving tube for acquiring the current infrared intensity value, and recording the current touch coordinate.
Optionally, after the acquiring the current infrared intensity value received by the receiving tube in the infrared touch frame, the method further includes:
calculating the current touch coordinate by a first thread according to the identification information of the receiving tube for acquiring the current infrared intensity value;
invoking a pre-stored reference infrared intensity value, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value comprises:
invoking a pre-stored reference infrared intensity value through a second thread, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value;
if the shielding proportion is larger than the preset threshold, recording the current touch coordinate; the current touch coordinate calculated according to the identification information of the receiving tube for obtaining the current infrared intensity value comprises the following steps:
and if the shielding proportion is larger than the preset threshold, recording the current touch coordinate.
Optionally, the calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value includes:
invoking a preset formula, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value; the preset formula is as follows:
S=(B-C)/B×100%;
and B is the reference infrared intensity value, C is the current infrared intensity value, and S is the shielding proportion.
Optionally, the determining whether the shielding proportion is greater than a preset threshold includes:
judging whether the shielding proportion corresponding to the receiving pipes with the preset number is larger than a preset threshold value; the preset number is a positive integer greater than 2.
The invention also provides a touch positioning device of the infrared touch frame, which comprises:
the acquisition module is used for: the method comprises the steps of acquiring a current infrared intensity value received by a receiving tube in an infrared touch frame;
the calculation module: the method comprises the steps of calling a pre-stored reference infrared intensity value, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value;
and a judging module: the method is used for judging whether the shielding proportion is larger than a preset threshold value or not; if the shielding proportion is larger than the preset threshold value, a recording module is operated;
the recording module is used for: the method comprises the steps of recording current touch coordinates; the current touch coordinate is calculated according to the identification information of the receiving tube for obtaining the current infrared intensity value.
Optionally, the recording module is specifically configured to:
and calculating the current touch coordinates according to the identification information of the receiving tube for obtaining the current infrared intensity value, and recording the current touch coordinates.
Optionally, the judging module is specifically configured to:
judging whether the shielding proportion corresponding to the receiving pipes with the preset number is larger than a preset threshold value; the preset number is a positive integer greater than 2.
The invention also provides touch positioning equipment of the infrared touch frame, which comprises:
a memory: for storing a computer program;
a processor: a step for implementing the touch location method of the infrared touch frame as described in any one of the above when executing the computer program.
The invention also provides a computer readable storage medium, on which a computer program is stored, which when being executed by a processor, implements the steps of the touch positioning method of an infrared touch frame as described in any one of the above.
According to the touch positioning method of the infrared touch frame, the current infrared intensity value received by the receiving tube in the infrared touch frame is firstly obtained, then the pre-stored reference infrared intensity value is called, and the shielding proportion of the current touch is calculated according to the current infrared intensity value and the reference infrared intensity value. When the shielding proportion is larger than the preset threshold value, the object with touch operation is close to the screen, and the position of the object is the area which the user wants to touch, so that the current touch coordinates can be recorded, and the positioning of the touch area of the user can be realized. The touch height of the infrared touch frame can be effectively reduced by calculating the shielding proportion and comparing the shielding proportion with the preset threshold value to judge whether the current touch coordinate is recorded or not, and meanwhile, the touch height of the infrared touch frame can be easily and effectively changed by setting different preset threshold values.
The invention also provides a touch positioning device of the infrared touch frame, a touch positioning device of the infrared touch frame and a computer readable storage medium, which have the same beneficial effects and are not repeated herein.
Drawings
For a clearer description of embodiments of the invention or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained from them without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a touch positioning method for an infrared touch frame according to an embodiment of the present invention;
FIG. 2 is a flowchart of a specific touch positioning method for an infrared touch frame according to an embodiment of the present invention;
FIG. 3 is a flowchart of another specific touch positioning method for an infrared touch frame according to an embodiment of the present invention;
FIG. 4 is a flowchart of another specific touch positioning method for an infrared touch frame according to an embodiment of the present invention;
FIG. 5 is a block diagram of an infrared touch frame touch positioning device according to an embodiment of the present invention;
fig. 6 is a block diagram of an infrared touch frame touch positioning device according to an embodiment of the present invention.
Detailed Description
The invention provides a touch positioning method of an infrared touch frame. In the prior art, when the touch height of the infrared touch frame needs to be reduced, the touch height is generally reduced only in terms of hardware by reducing the heights of the infrared transmitting tube and the infrared receiving tube; i.e. the touch height is reduced by reducing the distance between the infrared transmitting tube and the infrared receiving tube and the display screen. The amount of reduction in touch height by hardware is very limited, while the touch height cannot be adjusted for the prepared infrared touch frame.
The touch positioning method of the infrared touch frame provided by the invention can firstly acquire the current infrared intensity value received by the receiving tube in the infrared touch frame, then call the pre-stored reference infrared intensity value, and calculate the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value. When the shielding proportion is larger than the preset threshold value, the object with touch operation is close to the screen, and the position of the object is the area which the user wants to touch, so that the current touch coordinates can be recorded, and the positioning of the touch area of the user can be realized. The touch height of the infrared touch frame can be effectively reduced by calculating the shielding proportion and comparing the shielding proportion with the preset threshold value to judge whether the current touch coordinate is recorded or not, and meanwhile, the touch height of the infrared touch frame can be easily and effectively changed by setting different preset threshold values.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of an infrared touch frame touch positioning method according to an embodiment of the invention.
Referring to fig. 1, in an embodiment of the present invention, a touch positioning method for an infrared touch frame includes:
s101: and acquiring the current infrared intensity value received by the receiving tube in the infrared touch frame.
In the embodiment of the invention, since the intensity value of the infrared ray received by the infrared touch frame is a preset value when the infrared touch frame works and no object performs touch operation, the intensity value of the infrared ray received by the infrared touch frame is changed when an object, such as a touch pen, performs touch operation.
This step typically has a trigger condition, and is performed when the trigger condition is satisfied. For example, when the intensity value of the infrared ray received by any receiving tube in the infrared touch frame changes, the step is executed to obtain the current infrared ray intensity value received by the receiving tube with the changed infrared ray intensity value, where the current infrared ray intensity value is generally smaller than the intensity value of the infrared ray received by the receiving tube when no object performs the touch operation.
It should be noted that, since the infrared touch frame generally positions the user touch area from two directions when positioning the user touch area, the current infrared intensity value received by at least two receiving tubes will be generally obtained each time the current infrared intensity value is obtained.
S102: and calling a pre-stored reference infrared intensity value, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value.
In this step, a reference infrared intensity value is called, which is typically stored in advance in a memory within the infrared touch frame or in a memory unit of the chip within the infrared touch frame. In the embodiment of the present invention, the reference infrared intensity value is generally the intensity value of the infrared ray received by the receiving tube when no object performs the touch operation. After the reference infrared intensity value is called in this step, the shielding ratio is calculated according to the reference infrared intensity value and the current infrared intensity value acquired in S101.
Specifically, the step may specifically be: invoking a preset formula, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value;
the preset formula is as follows:
S=(B-C)/B×100%;
b is the reference infrared intensity value, C is the current infrared intensity value, and S is the shielding proportion.
According to the formula, the shielding proportion of the object currently performing touch operation for shielding a certain infrared ray can be calculated, and the shielding proportion can correspond to the distance between the object currently performing touch operation and the display screen. It is understood that the larger the shielding ratio is, the closer the distance between the object performing the touch operation and the display screen is, whereas the smaller the shielding ratio is, the farther the distance between the object performing the touch operation and the display screen is.
S103: judging whether the shielding proportion is larger than a preset threshold value.
In the embodiment of the present invention, if the occlusion ratio is greater than the preset threshold, S104 is executed.
In this step, it is determined whether the occlusion ratio calculated in S102 is greater than a preset threshold. Wherein the preset threshold may correspond to a touch height of the infrared touch frame. When the occlusion ratio is greater than the preset threshold, it means that the distance between the object currently performing the touch operation and the display screen is sufficiently small, and the area currently corresponding to the object currently performing the touch operation is the area that the user wants to touch, where in the embodiment of the present invention, S104 needs to be performed.
Otherwise, when the shielding proportion is smaller than the preset threshold, the distance between the object performing the touch operation and the display screen is larger, and the area corresponding to the object performing the touch operation is not the area which the user wants to touch. And if the shielding proportion is smaller than or equal to the preset threshold value, ending the flow.
S104: recording the current touch coordinates.
In the embodiment of the invention, the current touch coordinate is a current touch coordinate calculated according to the identification information of the receiving tube for obtaining the current infrared intensity value.
In the step, recording a current touch coordinate which is calculated according to the identification information of the receiving tube for acquiring the current infrared intensity value; the current touch coordinates are coordinates of the object performing the touch operation in the infrared touch frame, and the current touch coordinates correspond to the area currently corresponding to the object performing the touch operation.
The identification information of the receiving tube corresponds to the position of the receiving tube in the infrared touch frame, and as the position of a certain receiving tube in the infrared touch frame is usually fixed, the identification information of the corresponding receiving tube corresponds to the position of the receiving tube in the infrared touch frame. Because the object performing touch operation can cause the change of the light intensity of the infrared rays received by some receiving pipes, the corresponding identification information of the receiving pipes with the changed intensity values of the received infrared rays can specifically determine the position touched by the object performing touch operation; namely, the location of the touch position of the object performing the touch operation can be realized by determining the identification information of the receiving tube receiving the current infrared intensity value, and finally the current touch coordinate is recorded in the step. The specific calculation method of the current touch coordinate may refer to the prior art, and will not be described herein.
The current touch coordinates typically need to be calculated before they are recorded in this step. The calculation method specifically performs calculation according to the identification information of the receiving tube for obtaining the current infrared intensity value, and the specific calculation process may refer to the prior art, and meanwhile, the calculation process only needs to be performed before the current touch coordinate is recorded in the step, and the calculation process may be performed before the step S104 after the step S103 is determined, may be performed before the step S103 and after the step S102, may be performed before the step S102 and after the step S101, and is not limited specifically in the embodiment of the present invention.
According to the touch positioning method of the infrared touch frame, the current infrared intensity value received by the receiving tube in the infrared touch frame is firstly obtained, then the pre-stored reference infrared intensity value is called, and the shielding proportion of the current touch is calculated according to the current infrared intensity value and the reference infrared intensity value. When the shielding proportion is larger than the preset threshold value, the object with touch operation is close to the screen, and the position of the object is the area which the user wants to touch, so that the current touch coordinates can be recorded, and the positioning of the touch area of the user can be realized. The touch height of the infrared touch frame can be effectively reduced by calculating the shielding proportion and comparing the shielding proportion with the preset threshold value to judge whether the current touch coordinate is recorded or not, and meanwhile, the touch height of the infrared touch frame can be easily and effectively changed by setting different preset threshold values.
The specific content of the infrared touch frame touch positioning method provided by the invention will be described in detail in the following embodiments of the invention.
Referring to fig. 2, fig. 2 is a flowchart of a specific touch positioning method for an infrared touch frame according to an embodiment of the present invention.
Referring to fig. 2, in an embodiment of the present invention, the touch positioning method of the infrared touch frame includes:
s201: and acquiring the current infrared intensity value received by the receiving tube in the infrared touch frame.
S202: and calling a pre-stored reference infrared intensity value, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value.
S203: judging whether the shielding proportion is larger than a preset threshold value.
In the embodiment of the present invention, if the occlusion ratio is greater than the preset threshold, S204 is executed.
The above-mentioned S201 to S203 are substantially the same as S101 to S103 in the above-mentioned embodiment of the invention, and the detailed description will be omitted herein for reference.
S204: and calculating the current touch coordinates according to the identification information of the receiving tube for acquiring the current infrared intensity value, and recording the current touch coordinates.
In this step, the current touch coordinate is calculated and recorded, and details about the calculation and recording of the current touch coordinate are described in detail in the above embodiment of the present invention, which is not described herein.
In the embodiment of the present invention, when the specific determination result in S203 is yes, the current touch coordinate is calculated again. Since the specific determination result in S203 is yes, it means that the coordinate corresponding to the receiving tube receiving the current infrared intensity value is the area that the user wants to touch, the calculated current touch coordinate is necessarily recorded. If the specific determination result in S203 is no, it means that the coordinate corresponding to the receiving tube that receives the current infrared intensity value at this time is not the area that the user wants to touch, and the current touch coordinate at this time does not need to be calculated at this time. The calculation of the current touch coordinate after the judgment result in S203 is yes can effectively reduce the calculation amount of the current touch coordinate and improve the performance of the infrared touch frame.
According to the touch positioning method for the infrared touch frame, provided by the embodiment of the invention, the current touch coordinates are calculated after the coordinates corresponding to the object with the current touch operation are judged to be the area which the user wants to touch, so that the calculated amount of the current touch coordinates can be effectively reduced, and the performance of the infrared touch frame is improved.
The specific content of the infrared touch frame touch positioning method provided by the invention will be described in detail in the following embodiments of the invention.
Referring to fig. 3, fig. 3 is a flowchart of another specific touch positioning method for an infrared touch frame according to an embodiment of the present invention.
Referring to fig. 3, in an embodiment of the present invention, the touch positioning method of the infrared touch frame includes:
s301: and acquiring the current infrared intensity value received by the receiving tube in the infrared touch frame.
The step is substantially the same as S101 in the above embodiment of the present invention, and the detailed description will be omitted herein for reference to the above embodiment of the present invention.
S302: and calculating the current touch coordinate by the first thread according to the identification information of the receiving tube for acquiring the current infrared intensity value.
In this step, the current touch coordinates are calculated by the first thread. The specific calculation content of the current touch coordinate is described in detail in the above embodiment of the present invention, and will not be described herein. In this step, the current touch coordinate is calculated by the first thread, so that the time required from the acquisition of the current infrared intensity value to the recording of the current touch coordinate can be effectively reduced.
S303: and calling a pre-stored reference infrared intensity value through a second thread, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value.
In this step, the occlusion proportion of the current touch is specifically calculated by the second thread. The specific calculation content of the shielding proportion is described in detail in the above embodiment of the present invention, and will not be described herein. In this step, the occlusion ratio is specifically calculated by the second thread, so that the calculation of the current touch coordinate and the calculation of the occlusion ratio can be performed in parallel. Since the current touch coordinate is not involved when whether the shielding proportion is larger than the preset threshold value is judged in the follow-up process, two processes are executed simultaneously in parallel in the embodiment of the invention, one process is to calculate the current touch coordinate, the other process is to extremely shield the proportion and judge whether the shielding proportion is larger than the preset threshold value, the time required from the acquisition of the current infrared intensity value to the recording of the current touch coordinate can be effectively reduced through parallel calculation, and the response speed of the infrared touch frame is improved.
S304: judging whether the shielding proportion is larger than a preset threshold value.
In the embodiment of the present invention, if the occlusion ratio is greater than the preset threshold, S305 is executed.
The step is substantially the same as S103 and S203 in the above embodiment of the present invention, and the detailed description will be omitted herein with reference to the above embodiment of the present invention.
S305: recording the current touch coordinates.
In this step, only the current touch coordinates calculated in S302 may be recorded.
According to the touch positioning method for the infrared touch frame, provided by the embodiment of the invention, the current touch coordinates and the shielding proportion are calculated in parallel through two different threads, so that the time required from the acquisition of the current infrared intensity value to the recording of the current touch coordinates can be effectively reduced, and the response speed of the infrared touch frame is improved.
The specific content of the infrared touch frame touch positioning method provided by the invention will be described in detail in the following embodiments of the invention.
Referring to fig. 4, fig. 4 is a flowchart of another specific touch positioning method for an infrared touch frame according to an embodiment of the present invention.
Referring to fig. 4, in an embodiment of the present invention, the touch positioning method of the infrared touch frame includes:
s401: and acquiring the current infrared intensity value received by the receiving tube in the infrared touch frame.
S402: and calling a pre-stored reference infrared intensity value, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value.
The above S401 to S402 are substantially the same as S101 to S102 in the above embodiment of the present invention, and reference is made to the above embodiment of the present invention for details, and details are not repeated here.
S403: judging whether the shielding proportion corresponding to the preset number of receiving pipes is larger than a preset threshold value.
In the embodiment of the present invention, the preset number is a positive integer greater than 2. If the occlusion ratio is greater than the preset threshold, S404 is performed.
Typically, the infrared touch frame will locate the area touched by the user from two intersecting directions. In actual situations, when a user performs a touch operation by using an object, the user generally shields not only the infrared rays received by one receiving tube but also the infrared rays received by a plurality of receiving tubes in one direction; that is, in a touch operation, not only the infrared rays received by two receiving tubes are usually blocked, but the number of the receiving tubes blocked by the infrared rays is larger than two. Correspondingly, in the step, in order to improve the judgment accuracy and reduce the false triggering rate, whether the shielding proportion corresponding to the preset number of receiving tubes is larger than a preset threshold value is judged. If the judgment result is yes, determining the currently touched area in the infrared touch frame as the area which the user wants to touch. In order to improve the accuracy of the judgment and reduce the false triggering rate, the preset number is usually a positive integer greater than 2.
S404: recording the current touch coordinates.
In the embodiment of the invention, the current touch coordinate is a current touch coordinate calculated according to the identification information of the receiving tube for obtaining the current infrared intensity value.
The step is substantially identical to S104 in the above embodiment of the present invention, and the detailed description will be omitted herein for brevity.
According to the touch positioning method for the infrared touch frame, provided by the embodiment of the invention, the accuracy of judgment can be effectively improved and the false triggering rate can be reduced by judging whether the shielding proportion corresponding to the receiving pipes with the number more than 2 is larger than the preset threshold value.
The following describes a touch positioning device for an infrared touch frame according to an embodiment of the present invention, where the touch positioning device described below and the touch positioning method described above may be referred to correspondingly.
Fig. 5 is a block diagram of a touch positioning device with an infrared touch frame according to an embodiment of the present invention, and referring to fig. 5, the touch positioning device may include:
the acquisition module 100: the method is used for acquiring the current infrared intensity value received by the receiving tube in the infrared touch frame.
The calculation module 200: and the method is used for calling a pre-stored reference infrared intensity value, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value.
The judgment module 300: the method is used for judging whether the shielding proportion is larger than a preset threshold value or not; and if the shielding proportion is greater than the preset threshold value, operating the recording module 400.
The recording module 400: the method comprises the steps of recording current touch coordinates; the current touch coordinate is calculated according to the identification information of the receiving tube for obtaining the current infrared intensity value.
Preferably, in the embodiment of the present invention, the recording module 400 may be specifically configured to:
and calculating the current touch coordinates according to the identification information of the receiving tube for obtaining the current infrared intensity value, and recording the current touch coordinates.
Preferably, in an embodiment of the present invention, the touch positioning apparatus may further include:
and a coordinate calculation module: and the current touch coordinate is calculated by the first thread according to the identification information of the receiving tube for acquiring the current infrared intensity value.
The computing module 200 may be specifically configured to:
and calling a pre-stored reference infrared intensity value through a second thread, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value.
The recording module 400 is specifically configured to:
and recording the current touch coordinates.
Preferably, in the embodiment of the present invention, the computing module 200 may be specifically configured to:
invoking a preset formula, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value; the preset formula is as follows:
S=(B-C)/B×100%;
and B is the reference infrared intensity value, C is the current infrared intensity value, and S is the shielding proportion.
Preferably, in the embodiment of the present invention, the determining module 300 may be specifically configured to:
judging whether the shielding proportion corresponding to the receiving pipes with the preset number is larger than a preset threshold value; the preset number is a positive integer greater than 2.
The touch positioning apparatus of this embodiment is used to implement the foregoing touch positioning method, so that the specific implementation of the touch positioning apparatus may be found in the foregoing example portions of the touch positioning method, for example, the acquisition module 100, the calculation module 200, the determination module 300, and the recording module 400, which are respectively used to implement steps S101, S102, S103, and S104 in the foregoing touch positioning method, so that the specific implementation thereof may refer to the corresponding descriptions of the respective partial examples and will not be repeated herein.
The following describes a touch positioning device of an infrared touch frame according to an embodiment of the present invention, where the touch positioning device described below and the touch positioning method and the touch positioning device described above may be referred to correspondingly.
Referring to fig. 6, fig. 6 is a block diagram of an infrared touch frame touch positioning apparatus according to an embodiment of the present invention.
Referring to fig. 6, the touch location device of the infrared touch frame may include a processor 11 and a memory 12.
The memory 12 is used for storing a computer program; the processor 11 is configured to implement the touch positioning method described in the above embodiment of the invention when executing the computer program.
The processor 11 in the touch positioning apparatus of this embodiment is used to install the touch positioning apparatus described in the above embodiment of the invention, and the combination of the processor 11 and the memory 12 can implement the touch positioning method described in any of the above embodiments of the invention. Therefore, the specific embodiments of the touch positioning apparatus may be the foregoing examples of the touch positioning method, and the specific embodiments thereof may refer to the descriptions of the corresponding examples of the respective parts and are not repeated herein.
The invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the touch positioning method of the infrared touch frame introduced in any embodiment of the invention when being executed by a processor. The remainder of this disclosure may refer to the prior art and will not be described further herein.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The touch positioning method of the infrared touch frame, the touch positioning device of the infrared touch frame, the touch positioning equipment of the infrared touch frame and the computer readable storage medium provided by the invention are described in detail. The principles and embodiments of the present invention have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present invention and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.

Claims (8)

1. The touch positioning method of the infrared touch frame is characterized by comprising the following steps of:
acquiring a current infrared intensity value received by a receiving tube in an infrared touch frame;
invoking a pre-stored reference infrared intensity value, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value;
judging whether the shielding proportion is larger than a preset threshold value or not; if the shielding proportion is larger than the preset threshold, recording the current touch coordinate; the current touch coordinate is calculated according to the identification information of the receiving tube for obtaining the current infrared intensity value;
the preset threshold value corresponds to the touch height of the infrared touch frame;
the shielding proportion is inversely proportional to the distance between the object performing touch operation and the display screen;
if the shielding proportion is larger than the preset threshold, recording the current touch coordinate; the current touch coordinate calculated according to the identification information of the receiving tube for obtaining the current infrared intensity value comprises the following steps:
if the shielding proportion is larger than the preset threshold, calculating the current touch coordinate according to the identification information of the receiving tube for acquiring the current infrared intensity value, and recording the current touch coordinate.
2. The method of claim 1, wherein after the acquiring the current infrared intensity value received by the receiving tube in the infrared touch frame, the method further comprises:
calculating the current touch coordinate by a first thread according to the identification information of the receiving tube for acquiring the current infrared intensity value;
invoking a pre-stored reference infrared intensity value, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value comprises:
invoking a pre-stored reference infrared intensity value through a second thread, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value;
if the shielding proportion is larger than the preset threshold, recording the current touch coordinate; the current touch coordinate calculated according to the identification information of the receiving tube for obtaining the current infrared intensity value comprises the following steps:
and if the shielding proportion is larger than the preset threshold, recording the current touch coordinate.
3. The method of claim 1, wherein calculating an occlusion ratio of a current touch from the current infrared intensity value and the reference infrared intensity value comprises:
invoking a preset formula, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value; the preset formula is as follows:
S=(B-C)/B×100%;
and B is the reference infrared intensity value, C is the current infrared intensity value, and S is the shielding proportion.
4. A method according to any one of claims 1-3, wherein said determining whether the occlusion ratio is greater than a preset threshold comprises:
judging whether the shielding proportion corresponding to the receiving pipes with the preset number is larger than a preset threshold value; the preset number is a positive integer greater than 2.
5. A touch location device for an infrared touch frame, comprising:
the acquisition module is used for: the method comprises the steps of acquiring a current infrared intensity value received by a receiving tube in an infrared touch frame;
the calculation module: the method comprises the steps of calling a pre-stored reference infrared intensity value, and calculating the shielding proportion of the current touch according to the current infrared intensity value and the reference infrared intensity value;
and a judging module: the method is used for judging whether the shielding proportion is larger than a preset threshold value or not; if the shielding proportion is larger than the preset threshold value, a recording module is operated;
the recording module is used for: the method comprises the steps of recording current touch coordinates; the current touch coordinate is calculated according to the identification information of the receiving tube for obtaining the current infrared intensity value;
recording current touch coordinates; the current touch coordinate calculated according to the identification information of the receiving tube for obtaining the current infrared intensity value comprises the following steps:
if the shielding proportion is larger than the preset threshold, calculating the current touch coordinate according to the identification information of the receiving tube for acquiring the current infrared intensity value, and recording the current touch coordinate;
the preset threshold value corresponds to the touch height of the infrared touch frame;
the shielding proportion is inversely proportional to the distance between the object performing touch operation and the display screen.
6. The apparatus of claim 5, wherein the determining module is specifically configured to:
judging whether the shielding proportion corresponding to the receiving pipes with the preset number is larger than a preset threshold value; the preset number is a positive integer greater than 2.
7. A touch location device for an infrared touch frame, the device comprising:
a memory: for storing a computer program;
a processor: steps for implementing a touch positioning method of an infrared touch frame according to any of claims 1 to 4 when executing said computer program.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the touch location method of an infrared touch frame according to any of claims 1 to 4.
CN201910371860.9A 2019-05-06 2019-05-06 Touch positioning method and related device of infrared touch frame Active CN110083272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910371860.9A CN110083272B (en) 2019-05-06 2019-05-06 Touch positioning method and related device of infrared touch frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910371860.9A CN110083272B (en) 2019-05-06 2019-05-06 Touch positioning method and related device of infrared touch frame

Publications (2)

Publication Number Publication Date
CN110083272A CN110083272A (en) 2019-08-02
CN110083272B true CN110083272B (en) 2023-07-07

Family

ID=67418940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910371860.9A Active CN110083272B (en) 2019-05-06 2019-05-06 Touch positioning method and related device of infrared touch frame

Country Status (1)

Country Link
CN (1) CN110083272B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061396B (en) * 2019-12-13 2023-08-01 深圳市康冠商用科技有限公司 Infrared touch background value configuration method and device, electronic equipment and storage medium
CN111208917B (en) * 2019-12-31 2022-04-08 广州视源电子科技股份有限公司 Touch data processing method and device, intelligent equipment and storage medium
CN116860125A (en) * 2023-08-01 2023-10-10 广州众远智慧科技有限公司 Processing method and device of infrared touch scanning data and infrared touch equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419662A (en) * 2011-06-13 2012-04-18 北京汇冠新技术股份有限公司 Multipoint identification method and system for infrared touch screen
CN103699273A (en) * 2013-12-26 2014-04-02 广州视睿电子科技有限公司 Infrared touch screen touch point identification method and system
CN103885644A (en) * 2012-12-21 2014-06-25 北京汇冠新技术股份有限公司 Method of improving infrared touch screen touch precision and system thereof
CN105005416A (en) * 2014-04-16 2015-10-28 上海芯辉信息科技有限公司 Damaged-sensor-caused infrared touch screen precision error reducing method
WO2018174787A1 (en) * 2017-03-22 2018-09-27 Flatfrog Laboratories Eraser for touch displays

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102004586B (en) * 2010-11-23 2013-01-09 广东威创视讯科技股份有限公司 Touch point positioning device and method
US8670023B2 (en) * 2011-01-17 2014-03-11 Mediatek Inc. Apparatuses and methods for providing a 3D man-machine interface (MMI)
US20170068392A1 (en) * 2015-09-03 2017-03-09 Ceebus Technologies, Llc Touchscreen system usable in a variety of media
CN106484196A (en) * 2016-10-13 2017-03-08 广州视睿电子科技有限公司 A kind of touch control detecting method based on infrared light and device
CN107045410B (en) * 2016-12-21 2022-05-10 北京汇冠触摸技术有限公司 Method and system for high-precision calculation of infrared touch screen
CN108536337A (en) * 2018-03-20 2018-09-14 广州华欣电子科技有限公司 The method and infrared touch frame of infrared touch frame scanning
CN108874239B (en) * 2018-05-24 2021-09-17 信利光电股份有限公司 Touch control method, touch display module, storage medium and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102419662A (en) * 2011-06-13 2012-04-18 北京汇冠新技术股份有限公司 Multipoint identification method and system for infrared touch screen
CN103885644A (en) * 2012-12-21 2014-06-25 北京汇冠新技术股份有限公司 Method of improving infrared touch screen touch precision and system thereof
CN103699273A (en) * 2013-12-26 2014-04-02 广州视睿电子科技有限公司 Infrared touch screen touch point identification method and system
CN105005416A (en) * 2014-04-16 2015-10-28 上海芯辉信息科技有限公司 Damaged-sensor-caused infrared touch screen precision error reducing method
WO2018174787A1 (en) * 2017-03-22 2018-09-27 Flatfrog Laboratories Eraser for touch displays

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
viewing and feeling touch modulates hand position for reaching;Regine Zopf 等;《Neuropsychologia》;第1287-1293页 *
一种新型红外多点触摸识别算法;李钧;;计算机与现代化(第09期);全文 *
基于STM32的红外触摸屏设计;贺成佳;;电子科技(第03期);全文 *

Also Published As

Publication number Publication date
CN110083272A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN110083272B (en) Touch positioning method and related device of infrared touch frame
EP2713247B1 (en) Touch operation processing method and terminal
KR102310903B1 (en) Touch detection method and computer readable storage medium
CN110764986B (en) Page fluency detection method and device
WO2021098832A1 (en) Element control method, device, apparatus, and storage medium
AU2017203910B2 (en) Glove touch detection
KR101372122B1 (en) Method and apparatus for correcting gesture on touch screen based on vector
CN105183231B (en) Information processing method applied to touch screen device and touch screen device
KR20150091365A (en) Multi-touch symbol recognition
CN108683896A (en) A kind of calibration method of projection device, device, projection device and terminal device
CN112286782B (en) Control shielding detection method, software detection method, device and medium
CN104978135B (en) A kind of icon display method, device and mobile terminal
US11042242B2 (en) Touch panel device and method for calculating touch position coordinate of touch panel
CN107632760B (en) Handwriting circle selection method and device, touch equipment and readable storage medium
CN105892895A (en) Multi-finger sliding gesture recognition method and device as well as terminal equipment
CN109408179B (en) Method and device for determining comprehensive screen of terminal equipment
CN106293446B (en) Display method and display device
CN107807785B (en) Method and system for selecting object on touch screen
CN107943536B (en) Method and device for adjusting threshold, storage medium and electronic equipment
CN106527817B (en) Touch operation identification method and device
CN106598446B (en) Screenshot method and device
JP6417939B2 (en) Handwriting system and program
US20120299837A1 (en) Identifying contacts and contact attributes in touch sensor data using spatial and temporal features
US9075465B2 (en) Method of identifying touch event on touch panel by shape of signal group and computer readable medium thereof
CN111443864B (en) iOS-based curve drawing method

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