WO2022047839A1 - Multi-point touch recognition method, apparatus and device for infrared touch screen - Google Patents

Multi-point touch recognition method, apparatus and device for infrared touch screen Download PDF

Info

Publication number
WO2022047839A1
WO2022047839A1 PCT/CN2020/116194 CN2020116194W WO2022047839A1 WO 2022047839 A1 WO2022047839 A1 WO 2022047839A1 CN 2020116194 W CN2020116194 W CN 2020116194W WO 2022047839 A1 WO2022047839 A1 WO 2022047839A1
Authority
WO
WIPO (PCT)
Prior art keywords
infrared
pixel
area
touch
peak
Prior art date
Application number
PCT/CN2020/116194
Other languages
French (fr)
Chinese (zh)
Inventor
宫姜男
赖迈健
Original Assignee
安徽鸿程光电有限公司
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 安徽鸿程光电有限公司 filed Critical 安徽鸿程光电有限公司
Publication of WO2022047839A1 publication Critical patent/WO2022047839A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/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/04104Multi-touch detection in digitiser, i.e. details about the simultaneous detection of a plurality of touching locations, e.g. multiple fingers or pen and finger

Definitions

  • the present application belongs to the field of computer technology, and in particular relates to a multi-touch recognition method, device and device for an infrared touch screen.
  • infrared touch screen Touch Screen Technology is composed of infrared emitting and receiving sensing elements mounted on the outer frame of the touch screen, and the two-way infrared emitting tube and infrared receiving tube together form a positioning plane.
  • the infrared touch screen device in order to detect the user's touch point on the infrared touch screen, the infrared touch screen device will scan in turn whether there are infrared signals blocked between all the corresponding infrared transmitting tubes and infrared receiving tubes in the horizontal and vertical directions. The position coordinates of the touch area are determined by calculating the position where the infrared signal is blocked.
  • the above-mentioned methods for detecting touch points are generally limited to single-point touches.
  • a large number of suspected touch areas may be detected, and the real touch areas screened out from a large number of suspected touch areas may also have large error, resulting in the inability to accurately locate the real touch area.
  • the embodiments of the present application provide a multi-touch recognition method, device and device for an infrared touch screen, which can solve the problem that the real touch area cannot be accurately located in the prior art.
  • an embodiment of the present application provides a multi-touch recognition method for an infrared touch screen, including:
  • the target touch area is determined according to the peak area and the preset filtering rule.
  • traversing the pixel values of each point in the infrared image to obtain the peak area of the infrared image including:
  • a peak region of the infrared image is determined.
  • a first pixel value curve of the pixel values of the pixel points of each row is obtained, and the first pixel value curve is obtained according to the first pixel value curve.
  • Crest area including:
  • the first peak area corresponding to each first pixel value curve is determined.
  • a first pixel value curve of the pixel values of the pixel points of each row is obtained, and the first pixel value curve is obtained according to the first pixel value curve.
  • Crest area including:
  • the second peak area corresponding to each second pixel value curve is determined.
  • generating an infrared image according to the collected infrared information includes:
  • An infrared image is generated based on the signal values.
  • the generating an infrared image according to the signal value includes:
  • the pixel value of the pixel whose pixel value is less than the preset pixel threshold in the initial image is set to 0 to obtain an infrared image.
  • determining the target touch area according to the peak area and the preset screening rule includes:
  • an infrared touch screen multi-touch recognition device including:
  • a first generating unit configured to generate an infrared image according to the collected infrared information
  • a first processing unit configured to traverse the pixel values of each point in the infrared image to obtain the peak area of the infrared image
  • the first determining unit is configured to determine the target touch area according to the peak area and the preset screening rule.
  • the first processing unit includes:
  • the second processing unit is configured to traverse the pixel values of the pixel points of each row in the horizontal direction in the infrared image to obtain a first pixel value curve of the pixel values of the pixel points of each row, and obtain the first pixel value curve according to the first pixel value curve.
  • a third processing unit configured to traverse the pixel values of the pixel points in each column in the vertical direction in the infrared image, and obtain a second pixel value curve of the pixel values of the pixel points in each column, according to the second pixel value curve Get the second wave peak area;
  • a second determining unit configured to determine a wave peak area of the infrared image based on the first wave peak area and the second wave peak area.
  • the second processing unit is specifically used for:
  • the first peak area corresponding to each first pixel value curve is determined.
  • the third processing unit is specifically used for:
  • the second peak area corresponding to each second pixel value curve is determined.
  • the first generating unit includes:
  • a first acquisition unit used for acquiring the signal values collected by each infrared receiving tube
  • the second generating unit is configured to generate an infrared image according to the signal value.
  • the second generating unit is specifically used for:
  • the pixel value of the pixel whose pixel value is less than the preset pixel threshold in the initial image is set to 0 to obtain an infrared image.
  • the first determining unit is specifically used for:
  • an embodiment of the present application provides an infrared touch screen multi-touch recognition device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing The computer program implements the multi-touch recognition method for an infrared touch screen as described in the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the infrared touch screen according to the first aspect above Multi-touch recognition method.
  • an infrared image is generated according to the collected infrared information; the pixel values of each point in the infrared image are traversed to obtain the peak area of the infrared image; the target touch is determined according to the peak area and preset screening rules area.
  • the peak area of the infrared image corresponds to the suspected touch area, and further screening is performed on the basis of the obtained suspected touch area, so the number of the obtained suspected touch area is less than that obtained in the prior art.
  • the number of suspected touch areas is greatly reduced, and the subsequent workload of screening the target touch areas from the suspected touch areas will also be reduced, which can improve the speed of recognition, and can avoid wrong or missed screening due to excessive workload.
  • the target touch area is screened more accurately, and the recognition accuracy and recognition speed of multi-touch are improved.
  • FIG. 1 is a schematic flowchart of a multi-touch recognition method for an infrared touch screen provided by the first embodiment of the present application;
  • FIG. 2 is a schematic diagram of an infrared path provided on an infrared touch screen provided by the first embodiment of the present application;
  • FIG. 3 is a schematic diagram of a first pixel value curve of a pixel in an infrared image in a multi-touch recognition method for an infrared touch screen provided by the first embodiment of the present application;
  • FIG. 4 is a schematic diagram of an infrared touch screen multi-touch recognition terminal provided by a second embodiment of the present application.
  • FIG. 5 is a schematic diagram of an infrared touch screen multi-touch recognition device provided by a third embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a multi-touch recognition method for an infrared touch screen provided by the first embodiment of the present application.
  • the execution body of the method for multi-touch recognition on an infrared touch screen is a device with a multi-touch recognition function on an infrared touch screen.
  • the multi-touch recognition method of the infrared touch screen as shown in FIG. 1 may include:
  • S101 Generate an infrared image according to the collected infrared information.
  • a plurality of groups of infrared transceiver modules are arranged in the infrared touch screen of the terminal device.
  • Each group of infrared transceiver modules includes an infrared transmitting tube and an infrared receiving tube. The infrared transmitting tube and the infrared receiving tube are set separately.
  • the infrared transmitting tube can emit infrared light
  • the infrared receiving tube can receive infrared light, and convert the received infrared light signal into an electrical signal to obtain the signal value corresponding to the infrared light.
  • Multiple groups of infrared transceiver modules can form an infrared detection network.
  • the infrared emitting tube When the infrared emitting tube emits infrared, the infrared can be received by the corresponding infrared receiving tube. If the infrared rays are not blocked, the signal value of the infrared rays received by the infrared receiving tube should be a preset value.
  • the intensity of the infrared ray will drop sharply, so that the signal value of the infrared ray received by the infrared receiving tube is much smaller than the preset value.
  • the terminal device can judge whether the infrared rays corresponding to the infrared receiving tube are blocked according to the signal value of the infrared rays detected by the infrared receiving tube.
  • the signal value of the infrared rays received by a certain infrared receiving tube is less than the preset threshold, it means that the infrared rays corresponding to the infrared receiving tube are blocked by an object.
  • the signal value of the infrared rays received by a certain infrared receiving tube is greater than or equal to the preset threshold, it means that the infrared rays corresponding to the infrared receiving tube are not blocked by the object.
  • the above objects that block infrared rays may be fingers, styluses or other objects.
  • the preset threshold value may be determined according to the above preset value and the allowable error threshold value.
  • the preset threshold may be a difference obtained by subtracting the error threshold from the preset value.
  • the above-mentioned preset threshold value may also be other values that are greater than the above-mentioned difference value and smaller than the above-mentioned predetermined value.
  • the terminal device can obtain the collected infrared information.
  • the infrared information may be the signal value of infrared collected by each infrared receiving tube.
  • the terminal device can determine the blocked infrared rays according to the signal values of the infrared rays collected by the respective infrared receiving tubes.
  • the terminal device may determine the starting position and the ending position of each blocked infrared rays according to the preset rectangular coordinate system.
  • the above-mentioned starting position is the position coordinate of the infrared emitting tube corresponding to the blocked infrared rays.
  • the above-mentioned end position is the position coordinate of the infrared receiving tube corresponding to the blocked infrared rays.
  • the terminal device can determine the pixel points through which the blocked infrared rays pass through according to the starting position, ending position and the width of the infrared rays.
  • the terminal device may generate an infrared image based on the pixels passing through each of the blocked infrared rays.
  • the pixel value of the pixel is accumulated by K. If the pixel is passed by N blocked infrared rays, the pixel value of the pixel is accumulated N times, and the pixel value of the pixel is N*K. K is a natural number greater than 0, and N is a positive integer greater than or equal to 0.
  • the terminal device can determine the pixel value of each pixel in the infrared image according to the number of blocked infrared rays passing through each pixel in the infrared image.
  • FIG. 2 is a schematic diagram of an infrared path set on an infrared touch screen.
  • the rectangular area in FIG. 2 is the area blocked by the blocking object, and the rectangular area blocks many infrared rays.
  • the terminal device can determine the blocked infrared rays according to the signal values collected by each infrared receiving tube, and determine the pixel values of the pixel points through which the blocked infrared rays pass, thereby obtaining the infrared image in this embodiment.
  • the above infrared image may be a grayscale image.
  • the pixel value of each pixel in the infrared image is the gray value of the pixel.
  • the grayscale image may be an 8-bit grayscale image, that is, the image may have grayscale values of at most 256 levels, and the grayscale value may range from 0 to 255.
  • the terminal device may generate an infrared image according to the collected infrared information.
  • the higher the pixel value of a pixel the higher the possibility that the pixel belongs to the occluded area. Therefore, compared with the prior art, the terminal device of this embodiment can more intuitively and accurately reflect the possibility that each pixel belongs to the blocked area through the pixel value of each pixel in the infrared image.
  • the terminal device can use the currently generated infrared image as the initial image.
  • the terminal device performs filtering processing on the initial image, uses the pixel points in the initial image whose pixel values are less than the preset pixel threshold as noise points, and sets the pixel value of the noise points to 0, thereby obtaining a filtered infrared image.
  • the preset pixel threshold can be set according to the actual scene.
  • the preset pixel threshold can be set to 5, 10, 20 and other values.
  • the terminal device filters the initial image by using the preset pixel threshold, which can filter out noise points in the initial image, reduce the amount of calculation for subsequent processing of the infrared image, and improve the accuracy of identifying the target touch area.
  • S102 Traverse the pixel values of each pixel in the infrared image to obtain a peak area of the infrared image.
  • the terminal device may acquire the pixel value of each row of pixels in the infrared image and the pixel value of each column of pixels in the vertical direction in the infrared image.
  • the terminal device can traverse the pixel values of the pixels of each row in the horizontal direction in the infrared image, and perform curve fitting according to the pixel values of the pixels of each row and the abscissa of each pixel to obtain the first pixel value corresponding to each row of pixels.
  • a pixel curve A pixel curve.
  • the terminal device may search for the peak point and the trough point in the first pixel curve.
  • the pixel value of the peak point is greater than the pixel value of the pixel points on the adjacent sides thereof, and the pixel value of the trough point is smaller than the pixel value of the pixel points on the adjacent sides thereof.
  • the terminal device may determine the wave region corresponding to the peak point.
  • the region from the peak point to the trough points on the adjacent two sides is the wave region of the peak point.
  • A is the peak point in the first pixel curve
  • B and C are the trough points adjacent to point A in the first pixel curve, and each pixel point in the area from point B to point A
  • the pixel value of increases monotonically, and the pixel value of each pixel in the area from point A to point C decreases monotonically.
  • the terminal device may determine the area from point B to point C as the wave area of point A.
  • the terminal device may intercept the first peak region in the wave region corresponding to the peak point according to the preset peak height.
  • the difference between the pixel value of the peak point and the pixel value of each pixel point in the first peak area is less than or equal to the preset peak height.
  • the area from point B to point C is determined as the wave area of point A of the crest point.
  • the terminal device can intercept the area from point B to point C according to the preset peak height to obtain point D and point E.
  • the area from point D to point E is the peak area of point A, and the difference between the pixel value of point A and each pixel in the area from point D to point E is less than or equal to the preset peak height.
  • the terminal device can traverse the pixel values of the pixels in each column in the vertical direction of the infrared image, perform curve fitting according to the pixel values of the pixels in each column and the ordinate of each pixel, and obtain the first corresponding to each column. Two-pixel curve.
  • the terminal device determines the peak point and the trough point in the second pixel curve according to the second pixel curve.
  • the pixel value of the peak point is greater than the pixel value of the pixel points on the adjacent sides thereof, and the pixel value of the trough point is smaller than the pixel value of the pixel points on the adjacent sides thereof.
  • the terminal device may determine the wave region corresponding to the peak point.
  • the region from the peak point to the trough points on the adjacent two sides is the wave region of the peak point.
  • the terminal device may intercept the second peak region in the wave region corresponding to the peak point according to the preset peak height.
  • the difference between the pixel value of the peak point and the pixel value of each pixel point in the second peak area is less than or equal to the preset peak height.
  • the terminal device can determine the first peak area corresponding to each first pixel curve according to the peak point of each first pixel curve and the preset peak height, and, according to the peak point of each second pixel curve and the preset peak height height, to determine the second peak area corresponding to each second pixel curve.
  • the terminal device may determine the peak region of the infrared image based on the first peak region and the second peak region.
  • the terminal device can determine the pixel as the peak of the infrared image point, and determine the position of the wave crest point of the infrared image as the wave crest area of the infrared image.
  • the pixel point is the peak point of the infrared image, and the position of the pixel point belongs to The peak area of the infrared image.
  • Both X and Y are positive integers greater than 0.
  • the occluded area should be the peak area where the peak points in the infrared image are located.
  • the terminal device traverses the pixel values of each pixel in the infrared image, so as to identify the peak area of the infrared image.
  • the terminal device can limit the screening range of the target touch area to the identified peak area of the infrared image, thereby reducing the workload of screening the target touch area and improving the accuracy of identifying the target touch area.
  • the terminal device when recognizing the wave crest area of the infrared image, can identify the first wave crest area from the row direction and the second wave crest area from the column direction, respectively. Then, the terminal device integrates the first wave crest area and the second wave crest area to identify the wave crest area of the infrared image. By determining the wave crest area of the infrared image by the above-mentioned secondary identification method, the accuracy of identifying the wave crest area of the infrared image can be further improved.
  • S103 Determine a target touch area according to the peak area and a preset screening rule.
  • the terminal device may determine the target touch area from the above wave crest area according to a preset screening rule.
  • Preset filtering rules can be set according to actual needs.
  • the terminal device may acquire the number of pixel points contained in each peak area, and determine the peak area with the number of pixel points greater than the first number threshold as the target touch area.
  • the touched area When the user touches the infrared touch screen, the touched area should have a certain size. Moreover, in the infrared image, the area of each peak region is related to the number of pixels in the peak region. Therefore, when the terminal device identifies the target touch area, the first quantity threshold may be set.
  • the number of pixels in a certain peak area is less than or equal to the first number threshold, it means that the area of the peak area is small, and the peak area is not the target touch area.
  • the terminal device may determine the wave peak area as the target touch area.
  • the terminal device can quickly and accurately identify the target touch area from each wave peak area according to the number of pixels contained in each wave peak area, thereby improving the recognition speed and accuracy of identifying the target touch area.
  • the terminal device may determine the connected area of the pixel points corresponding to the peak area, and determine it as the suspected touch area according to the above connected area.
  • the pixel points in each peak area are the peak points of the infrared image.
  • the terminal device can determine the connected area of the pixel points corresponding to the peak area according to the coordinates of each peak point.
  • the connected area is an image area composed of adjacent wave crest points, that is, any two pixel points in the connected area can be connected by a line completely belonging to the connected area.
  • the terminal device can obtain the connected area of the pixel points corresponding to the peak area through any one of the algorithm based on the binary image segmentation method, the seed filling method, the watershed method and the region growing method. No restrictions.
  • the terminal device can screen the connected area to obtain the suspected touch area. For example, the terminal device may acquire the number of pixels in each connected area, and determine the connected area with the number of pixel points greater than the second number threshold as the suspected touch area.
  • the terminal device may acquire characteristic information of the suspected touch area, and determine authenticity evaluation degree information of the suspected touch area based on the characteristic information.
  • the above feature information is used to identify features of the suspected touch area.
  • the above feature information may include one or more of information such as the area of the suspected touch area, the amount of infrared rays passing through the suspected touch area, and the highest pixel value in the suspected touch area.
  • the terminal device may score the above-mentioned feature information according to a preset scoring standard, and obtain authenticity evaluation degree information corresponding to each suspected touch area.
  • the authenticity evaluation degree information is the rating value of the information.
  • the authenticity evaluation degree information is the sum of the score values corresponding to the respective pieces of information.
  • the terminal device After determining the authenticity evaluation degree information of the suspected touch area, the terminal device can filter out the target touch area from the suspected touch area based on the authenticity evaluation degree information, and obtain the position information of the target touch area.
  • the higher the authenticity evaluation degree information the greater the possibility that the suspected touch area corresponding to the authenticity evaluation degree information is a real touch area.
  • the terminal device may determine the suspected touch area corresponding to the authenticity evaluation degree information greater than the preset information threshold as the target touch area. Alternatively, the terminal device may also sort the authenticity evaluation information corresponding to each suspected touch area in descending order, and select the suspected touch area corresponding to the highest K authenticity evaluation information as the target touch area. K is a preset positive integer.
  • the above K can be set to 3 .
  • the suspected touch areas corresponding to the highest three authenticity evaluation degree information may be selected as target touch areas.
  • the terminal device sets preset scoring standards. Through the preset scoring standard, the terminal device can calculate the authenticity evaluation information of each suspected touch area according to the characteristic information of each suspected touch area, and quantify the reliability of each suspected touch area, so that the terminal device can The authenticity evaluation information can easily and quickly screen the target touch area, and improve the recognition speed and accuracy of identifying the target touch area.
  • the terminal device generates an infrared image according to the collected infrared information; traverses the pixel values of each point in the infrared image to obtain the peak area of the infrared image; Preset filtering rules determine the target touch area.
  • the suspected touch area is simply determined by judging whether the infrared signal is blocked. Once the infrared signal is blocked, it is determined that there is currently a suspected touch area, so that a large number of suspected touch areas will be detected. Screening the last target touch area in the touch area has a huge workload, and the recognition speed during multi-touch is slow, and due to the large amount of data, there may be wrong or missed screening during screening, resulting in multi-touch recognition.
  • the above scheme although it also judges whether the infrared signal is blocked, when the infrared light is blocked, the above scheme does not directly determine the suspected touch area, but determines the infrared image according to the blocked infrared, and then obtains the corresponding infrared image. crest area.
  • the infrared image in this embodiment may correspond to the suspected touch area in the prior art.
  • the peak area of the infrared image corresponds to the suspected touch area, that is to say, the above solution is based on the suspected touch area obtained in the prior art, and further screening is performed to obtain the suspected touch area. Therefore, the number of suspected touch areas obtained in the above solution is less than the number of suspected touch areas obtained in the prior art.
  • the target touch area can be screened more accurately, which improves the recognition accuracy and recognition speed during multi-touch.
  • FIG. 4 is a schematic diagram of a multi-touch recognition terminal on an infrared touch screen provided by a second embodiment of the present application. For convenience of explanation, only the parts related to this embodiment are shown.
  • the infrared touch screen multi-touch identification terminal includes:
  • a first generating unit 410 configured to generate an infrared image according to the collected infrared information
  • a first processing unit 420 configured to traverse the pixel values of each point in the infrared image to obtain the peak area of the infrared image
  • the first determining unit 430 is configured to determine the target touch area according to the peak area and the preset screening rule.
  • the first processing unit 420 includes:
  • the second processing unit is configured to traverse the pixel values of the pixel points of each row in the horizontal direction in the infrared image to obtain a first pixel value curve of the pixel values of the pixel points of each row, and obtain the first pixel value curve according to the first pixel value curve.
  • a third processing unit configured to traverse the pixel values of the pixel points in each column in the vertical direction in the infrared image, and obtain a second pixel value curve of the pixel values of the pixel points in each column, according to the second pixel value curve Get the second wave peak area;
  • a second determining unit configured to determine a wave peak area of the infrared image based on the first wave peak area and the second wave peak area.
  • the second processing unit is specifically used for:
  • the first peak area corresponding to each first pixel value curve is determined.
  • the third processing unit is specifically used for:
  • the second peak area corresponding to each second pixel value curve is determined.
  • the first generating unit 410 includes:
  • a first acquisition unit used for acquiring the signal values collected by each infrared receiving tube
  • the second generating unit is configured to generate an infrared image according to the signal value.
  • the second generating unit is specifically used for:
  • the pixel value of the pixel whose pixel value is less than the preset pixel threshold in the initial image is set to 0 to obtain an infrared image.
  • the first determining unit 430 is specifically configured to:
  • FIG. 5 is a schematic diagram of an infrared touch screen multi-touch recognition device provided by a third embodiment of the present application.
  • the infrared touch screen multi-touch recognition device 5 of this embodiment includes: a processor 50 , a memory 51 , and a computer program 52 stored in the memory 51 and executable on the processor 50 , for example Infrared touch screen multi-touch recognition program.
  • the processor 50 executes the computer program 52
  • the steps in each of the above-mentioned embodiments of the infrared touch screen multi-touch recognition method are implemented, for example, steps 101 to 103 shown in FIG. 1 .
  • the processor 50 executes the computer program 52
  • the functions of the modules/units in the above-mentioned apparatus embodiments for example, the functions of the modules 410 to 430 shown in FIG. 4 are implemented.
  • the computer program 52 can be divided into one or more modules/units, and the one or more modules/units are stored in the memory 51 and executed by the processor 50 to complete the this application.
  • the one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program 52 in the infrared touch screen multi-touch recognition device 5 .
  • the computer program 52 can be divided into a first generating unit, a first processing unit, and a first determining unit, and the specific functions of each unit are as follows:
  • a first generating unit configured to generate an infrared image according to the collected infrared information
  • a first processing unit configured to traverse the pixel values of each point in the infrared image to obtain the peak area of the infrared image
  • the first determining unit is configured to determine the target touch area according to the peak area and the preset screening rule.
  • the infrared touch screen multi-touch recognition device may include, but is not limited to, a processor 50 and a memory 51 .
  • FIG. 5 is only an example of the multi-touch recognition device 5 on the infrared touch screen, and does not constitute a limitation on the multi-touch recognition device 5 on the infrared touch screen, and may include more or less components than those shown in the figure. Or some components are combined, or different components, for example, the infrared touch screen multi-touch recognition device may also include input and output devices, network access devices, buses, and the like.
  • the so-called processor 50 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the memory 51 may be an internal storage unit of the infrared touch screen multi-touch recognition device 5 , such as a hard disk or memory of the infrared touch screen multi-touch recognition device 5 .
  • the memory 51 can also be an external storage device of the infrared touch screen multi-touch recognition device 5, such as a plug-in hard disk equipped on the infrared touch screen multi-touch recognition device 5, a smart memory card (Smart memory card). Media Card, SMC), Secure Digital (SD) card, Flash memory card (Flash Card), etc.
  • the infrared touch screen multi-touch recognition device 5 may also include both an internal storage unit of the infrared touch screen multi-touch recognition device 5 and an external storage device.
  • the memory 51 is used to store the computer program and other programs and data required by the infrared touch screen multi-touch recognition device.
  • the memory 51 can also be used to temporarily store data that has been output or will be output.
  • An embodiment of the present application also provides a network device, the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor executing The computer program implements the steps in any of the foregoing method embodiments.
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.
  • the embodiments of the present application provide a computer program product, when the computer program product runs on a mobile terminal, the steps in the foregoing method embodiments can be implemented when the mobile terminal executes the computer program product.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the present application realizes all or part of the processes in the methods of the above embodiments, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium.
  • the computer program includes computer program code
  • the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like.
  • the computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the photographing device/terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only). Memory), random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunication signals, and software distribution media.
  • ROM read-only memory
  • RAM random access memory
  • electrical carrier signals telecommunication signals
  • software distribution media For example, U disk, mobile hard disk, disk or CD, etc.
  • computer readable media may not be electrical carrier signals and telecommunications signals.
  • the disclosed apparatus/network device and method may be implemented in other manners.
  • the apparatus/network device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units. Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

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)
  • Image Analysis (AREA)

Abstract

A multi-point touch recognition method for an infrared touch screen, comprising: generating an infrared image according to acquired infrared information (S101); traversing pixel values of points in the infrared image to obtain wave crest regions of the infrared image (S102); and determining a target touch region according to the wave crest regions and a preset screening rule (S103). The number of suspected touch regions obtained by the method is greatly reduced, the workload of subsequently screening the target touch region from the suspected touch regions is also reduced, the speed of recognition can be increased, and the situation of wrong screening or missing screening due to excessive workload can be avoided. The target touch region can be screened more accurately, and the recognition precision and recognition speed during multi-point touch are improved.

Description

一种红外触摸屏多点触摸识别方法、装置及设备A kind of infrared touch screen multi-touch recognition method, device and equipment
本申请要求于2020年09月02日在中国专利局提交的、申请号为202010911951.X、发明名称为“一种红外触摸屏多点触摸识别方法、装置及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202010911951.X and the invention title "An infrared touch screen multi-touch recognition method, device and equipment" filed in the China Patent Office on September 2, 2020, The entire contents of which are incorporated herein by reference.
技术领域technical field
本申请属于计算机技术领域,尤其涉及一种红外触摸屏多点触摸识别方法、装置及设备。The present application belongs to the field of computer technology, and in particular relates to a multi-touch recognition method, device and device for an infrared touch screen.
背景技术Background technique
红外线技术触摸屏(Infrared Touch Screen Technology,简称红外触摸屏)由装在触摸屏外框上的红外线发射与接收感测元件构成,双向的红外发射管及红外接收管共同组成一定位平面。在应用时,为了检测用户在红外触摸屏上的触摸点,红外触摸屏装置会依次扫描横向及纵向上所有相应的红外发射管及红外接收管之间是否有红外信号被遮挡而产生变化,并由根据红外信号被遮挡位置来计算确定触摸区域的位置坐标。Infrared technology touch screen Touch Screen Technology, referred to as infrared touch screen) is composed of infrared emitting and receiving sensing elements mounted on the outer frame of the touch screen, and the two-way infrared emitting tube and infrared receiving tube together form a positioning plane. In application, in order to detect the user's touch point on the infrared touch screen, the infrared touch screen device will scan in turn whether there are infrared signals blocked between all the corresponding infrared transmitting tubes and infrared receiving tubes in the horizontal and vertical directions. The position coordinates of the touch area are determined by calculating the position where the infrared signal is blocked.
但是,上述检测触摸点的方法一般仅限于单点触摸,当用户进行多点触摸时,可能会检测到大量的疑似触摸区域,从大量疑似触摸区域中筛选出的真实触摸区域也会存在较大误差,导致无法准确的定位到真实触摸区域。However, the above-mentioned methods for detecting touch points are generally limited to single-point touches. When the user performs multiple touches, a large number of suspected touch areas may be detected, and the real touch areas screened out from a large number of suspected touch areas may also have large error, resulting in the inability to accurately locate the real touch area.
技术问题technical problem
本申请实施例提供了一种红外触摸屏多点触摸识别方法、装置及设备,可以解决现有技术中无法准确的定位到真实触摸区域的问题。The embodiments of the present application provide a multi-touch recognition method, device and device for an infrared touch screen, which can solve the problem that the real touch area cannot be accurately located in the prior art.
技术解决方案technical solutions
第一方面,本申请实施例提供了一种红外触摸屏多点触摸识别方法,包括:In a first aspect, an embodiment of the present application provides a multi-touch recognition method for an infrared touch screen, including:
根据采集到的红外线信息生成红外图像;Generate an infrared image according to the collected infrared information;
遍历所述红外图像中各个点的像素值,得到所述红外图像的波峰区域;Traverse the pixel values of each point in the infrared image to obtain the peak area of the infrared image;
根据所述波峰区域以及预设筛选规则确定目标触摸区域。The target touch area is determined according to the peak area and the preset filtering rule.
进一步地,所述遍历所述红外图像中各个点的像素值,得到所述红外图像的波峰区域,包括:Further, traversing the pixel values of each point in the infrared image to obtain the peak area of the infrared image, including:
遍历所述红外图像中水平方向上每一行的像素点的像素值,得到每一行的像素点的像素值的第一像素值曲线,根据所述第一像素值曲线得到第一波峰区域;Traverse the pixel values of the pixel points of each row in the horizontal direction in the infrared image, obtain a first pixel value curve of the pixel values of the pixel points of each row, and obtain the first peak area according to the first pixel value curve;
遍历所述红外图像中竖直方向上每一列的像素点的像素值,得到每一列的像素点的像素值的第二像素值曲线,根据所述第二像素值曲线得到第二波峰区域;Traverse the pixel values of the pixel points of each column in the vertical direction in the infrared image, obtain a second pixel value curve of the pixel values of the pixel points in each column, and obtain a second peak area according to the second pixel value curve;
基于所述第一波峰区域和所述第二波峰区域,确定所述红外图像的波峰区域。Based on the first peak region and the second peak region, a peak region of the infrared image is determined.
进一步地,所述遍历所述红外图像中水平方向上每一行的像素点的像素值,得到每一行的像素点的像素值的第一像素值曲线,根据所述第一像素值曲线得到第一波峰区域,包括:Further, by traversing the pixel values of the pixel points of each row in the horizontal direction in the infrared image, a first pixel value curve of the pixel values of the pixel points of each row is obtained, and the first pixel value curve is obtained according to the first pixel value curve. Crest area, including:
遍历所述红外图像中水平方向上每一行的像素点的像素值,得到每一行的像素点的像素值的第一像素值曲线,以及所述第一像素值曲线中的波峰点;Traverse the pixel values of the pixel points of each row in the horizontal direction in the infrared image to obtain a first pixel value curve of the pixel values of the pixel points of each row, and the peak points in the first pixel value curve;
根据各第一像素值曲线的波峰点以及预设波峰高度,确定各第一像素值曲线对应的第一波峰区域。According to the peak point of each first pixel value curve and the preset peak height, the first peak area corresponding to each first pixel value curve is determined.
进一步地,所述遍历所述红外图像中水平方向上每一行的像素点的像素值,得到每一行的像素点的像素值的第一像素值曲线,根据所述第一像素值曲线得到第一波峰区域,包括:Further, by traversing the pixel values of the pixel points of each row in the horizontal direction in the infrared image, a first pixel value curve of the pixel values of the pixel points of each row is obtained, and the first pixel value curve is obtained according to the first pixel value curve. Crest area, including:
遍历所述红外图像中竖直方向上每一列的像素点的像素值,得到每一列的像素点的像素值的第二像素值曲线,以及所述第二像素值曲线中的波峰点;Traversing the pixel values of the pixel points of each column in the vertical direction in the infrared image to obtain a second pixel value curve of the pixel values of the pixel points in each column, and the peak points in the second pixel value curve;
根据各第二像素值曲线的波峰点以及预设波峰高度,确定各第二像素值曲线对应的第二波峰区域。According to the peak point of each second pixel value curve and the preset peak height, the second peak area corresponding to each second pixel value curve is determined.
进一步地,所述根据采集到的红外线信息生成红外图像,包括:Further, generating an infrared image according to the collected infrared information includes:
获取各个红外接收管采集到的信号值;Obtain the signal value collected by each infrared receiving tube;
根据所述信号值生成红外图像。An infrared image is generated based on the signal values.
进一步地,所述根据所述信号值生成红外图像,包括:Further, the generating an infrared image according to the signal value includes:
根据所述信号值生成初始图像;generating an initial image based on the signal values;
将所述初始图像中像素值小于预设像素阈值的像素点的像素值设置为0,得到红外图像。The pixel value of the pixel whose pixel value is less than the preset pixel threshold in the initial image is set to 0 to obtain an infrared image.
进一步地,所述根据所述波峰区域以及预设筛选规则确定目标触摸区域,包括:Further, determining the target touch area according to the peak area and the preset screening rule includes:
获取所述波峰区域对应的像素点的连通区,根据所述连通区确定疑似触摸区域;Obtain the connected area of the pixel points corresponding to the peak area, and determine the suspected touch area according to the connected area;
获取所述疑似触摸区域的特征信息,基于所述特征信息确定所述疑似触摸区域的真伪评价度信息;Obtaining feature information of the suspected touch area, and determining authenticity evaluation information of the suspected touch area based on the feature information;
根据所述真伪评价度信息,从所述疑似触摸区域中筛选出目标触摸区域;Screening out a target touch area from the suspected touch area according to the authenticity evaluation information;
确定所述目标触摸区域的位置信息。Determine the location information of the target touch area.
第二方面,本申请实施例提供了一种红外触摸屏多点触摸识别装置,包括:In a second aspect, an embodiment of the present application provides an infrared touch screen multi-touch recognition device, including:
第一生成单元,用于根据采集到的红外线信息生成红外图像;a first generating unit, configured to generate an infrared image according to the collected infrared information;
第一处理单元,用于遍历所述红外图像中各个点的像素值,得到所述红外图像的波峰区域;a first processing unit, configured to traverse the pixel values of each point in the infrared image to obtain the peak area of the infrared image;
第一确定单元,用于根据所述波峰区域以及预设筛选规则确定目标触摸区域。The first determining unit is configured to determine the target touch area according to the peak area and the preset screening rule.
进一步地,所述第一处理单元,包括:Further, the first processing unit includes:
第二处理单元,用于遍历所述红外图像中水平方向上每一行的像素点的像素值,得到每一行的像素点的像素值的第一像素值曲线,根据所述第一像素值曲线得到第一波峰区域;The second processing unit is configured to traverse the pixel values of the pixel points of each row in the horizontal direction in the infrared image to obtain a first pixel value curve of the pixel values of the pixel points of each row, and obtain the first pixel value curve according to the first pixel value curve. The first wave peak area;
第三处理单元,用于遍历所述红外图像中竖直方向上每一列的像素点的像素值,得到每一列的像素点的像素值的第二像素值曲线,根据所述第二像素值曲线得到第二波峰区域;A third processing unit, configured to traverse the pixel values of the pixel points in each column in the vertical direction in the infrared image, and obtain a second pixel value curve of the pixel values of the pixel points in each column, according to the second pixel value curve Get the second wave peak area;
第二确定单元,用于基于所述第一波峰区域和所述第二波峰区域,确定所述红外图像的波峰区域。A second determining unit, configured to determine a wave peak area of the infrared image based on the first wave peak area and the second wave peak area.
进一步地,所述第二处理单元,具体用于:Further, the second processing unit is specifically used for:
遍历所述红外图像中水平方向上每一行的像素点的像素值,得到每一行的像素点的像素值的第一像素值曲线,以及所述第一像素值曲线中的波峰点;Traverse the pixel values of the pixel points of each row in the horizontal direction in the infrared image to obtain a first pixel value curve of the pixel values of the pixel points of each row, and the peak points in the first pixel value curve;
根据各第一像素值曲线的波峰点以及预设波峰高度,确定各第一像素值曲线对应的第一波峰区域。According to the peak point of each first pixel value curve and the preset peak height, the first peak area corresponding to each first pixel value curve is determined.
进一步地,所述第三处理单元,具体用于:Further, the third processing unit is specifically used for:
遍历所述红外图像中竖直方向上每一列的像素点的像素值,得到每一列的像素点的像素值的第二像素值曲线,以及所述第二像素值曲线中的波峰点;Traversing the pixel values of the pixel points of each column in the vertical direction in the infrared image to obtain a second pixel value curve of the pixel values of the pixel points in each column, and the peak points in the second pixel value curve;
根据各第二像素值曲线的波峰点以及预设波峰高度,确定各第二像素值曲线对应的第二波峰区域。According to the peak point of each second pixel value curve and the preset peak height, the second peak area corresponding to each second pixel value curve is determined.
进一步地,所述第一生成单元,包括:Further, the first generating unit includes:
第一获取单元,用于获取各个红外接收管采集到的信号值;a first acquisition unit, used for acquiring the signal values collected by each infrared receiving tube;
第二生成单元,用于根据所述信号值生成红外图像。The second generating unit is configured to generate an infrared image according to the signal value.
进一步地,所述第二生成单元,具体用于:Further, the second generating unit is specifically used for:
根据所述信号值生成初始图像;generating an initial image based on the signal values;
将所述初始图像中像素值小于预设像素阈值的像素点的像素值设置为0,得到红外图像。The pixel value of the pixel whose pixel value is less than the preset pixel threshold in the initial image is set to 0 to obtain an infrared image.
进一步地,所述第一确定单元,具体用于:Further, the first determining unit is specifically used for:
获取所述波峰区域对应的像素点的连通区,根据所述连通区确定疑似触摸区域;Obtain the connected area of the pixel points corresponding to the peak area, and determine the suspected touch area according to the connected area;
获取所述疑似触摸区域的特征信息,基于所述特征信息确定所述疑似触摸区域的真伪评价度信息;Obtaining feature information of the suspected touch area, and determining authenticity evaluation information of the suspected touch area based on the feature information;
根据所述真伪评价度信息,从所述疑似触摸区域中筛选出目标触摸区域;Screening out a target touch area from the suspected touch area according to the authenticity evaluation information;
确定所述目标触摸区域的位置信息。Determine the location information of the target touch area.
第三方面,本申请实施例提供了一种红外触摸屏多点触摸识别设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面所述的红外触摸屏多点触摸识别方法。In a third aspect, an embodiment of the present application provides an infrared touch screen multi-touch recognition device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing The computer program implements the multi-touch recognition method for an infrared touch screen as described in the first aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面所述的红外触摸屏多点触摸识别方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the infrared touch screen according to the first aspect above Multi-touch recognition method.
有益效果beneficial effect
本申请实施例中,根据采集到的红外线信息生成红外图像;遍历所述红外图像中各个点的像素值,得到所述红外图像的波峰区域;根据所述波峰区域以及预设筛选规则确定目标触摸区域。红外图像的波峰区域对应了疑似触摸区域,在得到的疑似触摸区域的基础上,进一步进行了筛选,所以得到的疑似触摸区域的数量要少于现有技术中获取的疑似触摸区域的数量,得到的疑似触摸区域的数量大大减少,后续从疑似触摸区域中筛选目标触摸区域的工作量也会减少,可以提升识别的速度,并且可以避免由于工作量过大出现错筛或者漏筛的情况,能够更准确的对目标触摸区域进行筛选,提高了多点触摸时的识别精度和识别速度。In the embodiment of the present application, an infrared image is generated according to the collected infrared information; the pixel values of each point in the infrared image are traversed to obtain the peak area of the infrared image; the target touch is determined according to the peak area and preset screening rules area. The peak area of the infrared image corresponds to the suspected touch area, and further screening is performed on the basis of the obtained suspected touch area, so the number of the obtained suspected touch area is less than that obtained in the prior art. The number of suspected touch areas is greatly reduced, and the subsequent workload of screening the target touch areas from the suspected touch areas will also be reduced, which can improve the speed of recognition, and can avoid wrong or missed screening due to excessive workload. The target touch area is screened more accurately, and the recognition accuracy and recognition speed of multi-touch are improved.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only for the present application. In some embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1是本申请第一实施例提供的一种红外触摸屏多点触摸识别方法的示意流程图;FIG. 1 is a schematic flowchart of a multi-touch recognition method for an infrared touch screen provided by the first embodiment of the present application;
图2是本申请第一实施例提供的一种红外触摸屏上设置的红外线路径的示意图;2 is a schematic diagram of an infrared path provided on an infrared touch screen provided by the first embodiment of the present application;
图3是本申请第一实施例提供的一种红外触摸屏多点触摸识别方法中红外图像中像素点的第一像素值曲线的示意图;3 is a schematic diagram of a first pixel value curve of a pixel in an infrared image in a multi-touch recognition method for an infrared touch screen provided by the first embodiment of the present application;
图4是本申请第二实施例提供的红外触摸屏多点触摸识别终端的示意图;4 is a schematic diagram of an infrared touch screen multi-touch recognition terminal provided by a second embodiment of the present application;
图5是本申请第三实施例提供的红外触摸屏多点触摸识别设备的示意图。FIG. 5 is a schematic diagram of an infrared touch screen multi-touch recognition device provided by a third embodiment of the present application.
本发明的实施方式Embodiments of the present invention
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details.
术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。The term "if" may be interpreted as "when" or "once" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".
请参见图1,图1是本申请第一实施例提供的一种红外触摸屏多点触摸识别方法的示意流程图。本实施例中一种红外触摸屏多点触摸识别方法的执行主体为具有红外触摸屏多点触摸识别功能的设备。如图1所示的红外触摸屏多点触摸识别方法可包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a multi-touch recognition method for an infrared touch screen provided by the first embodiment of the present application. In this embodiment, the execution body of the method for multi-touch recognition on an infrared touch screen is a device with a multi-touch recognition function on an infrared touch screen. The multi-touch recognition method of the infrared touch screen as shown in FIG. 1 may include:
S101:根据采集到的红外线信息生成红外图像。S101: Generate an infrared image according to the collected infrared information.
在终端设备的红外线触控屏中设置有多组红外收发模块。每一组红外收发模块包括红外发射管和红外接收管。红外发射管和红外接收管分离设置。A plurality of groups of infrared transceiver modules are arranged in the infrared touch screen of the terminal device. Each group of infrared transceiver modules includes an infrared transmitting tube and an infrared receiving tube. The infrared transmitting tube and the infrared receiving tube are set separately.
在红外收发模块中,红外发射管可以发射红外线,红外接收管可以接收红外线,并将接收到的红外线的光信号转换成电信号,得到该红外线对应的信号值。多组红外收发模块可以组成红外线探测网。In the infrared transceiver module, the infrared transmitting tube can emit infrared light, and the infrared receiving tube can receive infrared light, and convert the received infrared light signal into an electrical signal to obtain the signal value corresponding to the infrared light. Multiple groups of infrared transceiver modules can form an infrared detection network.
当红外发射管发射红外线时,该红外线可以被相应的红外接收管接收到。如果该红外线未被遮挡,则红外接收管接收到的红外线的信号值应当为预设值。When the infrared emitting tube emits infrared, the infrared can be received by the corresponding infrared receiving tube. If the infrared rays are not blocked, the signal value of the infrared rays received by the infrared receiving tube should be a preset value.
如果该红外线被遮挡,则该红外线的强度会急剧下降,从而导致红外接收管接收到的红外线的信号值远小于预设值。If the infrared ray is blocked, the intensity of the infrared ray will drop sharply, so that the signal value of the infrared ray received by the infrared receiving tube is much smaller than the preset value.
因此,在实际应用过程中,终端设备可以根据红外接收管检测到的红外线的信号值判断该红外接收管对应的红外线是否被遮挡。Therefore, in the actual application process, the terminal device can judge whether the infrared rays corresponding to the infrared receiving tube are blocked according to the signal value of the infrared rays detected by the infrared receiving tube.
如果某一红外接收管接收到的红外线的信号值小于预设阈值,则表示该红外接收管对应的红外线被物体遮挡。If the signal value of the infrared rays received by a certain infrared receiving tube is less than the preset threshold, it means that the infrared rays corresponding to the infrared receiving tube are blocked by an object.
如果某一红外接收管接收到的红外线的信号值大于或等于预设阈值,则表示该红外接收管对应的红外线未被物体遮挡。If the signal value of the infrared rays received by a certain infrared receiving tube is greater than or equal to the preset threshold, it means that the infrared rays corresponding to the infrared receiving tube are not blocked by the object.
上述遮挡红外线的物体可能是手指、触控笔或其他物体。The above objects that block infrared rays may be fingers, styluses or other objects.
预设阈值可以根据上述预设值以及允许的误差阈值进行确定。例如,上述预设阈值可以是上述预设值减去上述误差阈值后得到差值。或者,上述预设阈值也可以是大于上述差值,且小于上述预设值的其他数值。The preset threshold value may be determined according to the above preset value and the allowable error threshold value. For example, the preset threshold may be a difference obtained by subtracting the error threshold from the preset value. Alternatively, the above-mentioned preset threshold value may also be other values that are greater than the above-mentioned difference value and smaller than the above-mentioned predetermined value.
终端设备在进行触摸识别时,终端设备可以获取采集到的红外线信息。该红外线信息可以是各个红外接收管采集到的红外线的信号值。When the terminal device performs touch recognition, the terminal device can obtain the collected infrared information. The infrared information may be the signal value of infrared collected by each infrared receiving tube.
之后,终端设备可以根据各个红外接收管采集到的红外线的信号值,确定被遮挡的红外线。Afterwards, the terminal device can determine the blocked infrared rays according to the signal values of the infrared rays collected by the respective infrared receiving tubes.
在确定了被遮挡的红外线之后,终端设备可以根据预设的直角坐标系确定各条被遮挡的红外线的起始位置和结束位置。After determining the blocked infrared rays, the terminal device may determine the starting position and the ending position of each blocked infrared rays according to the preset rectangular coordinate system.
上述起始位置为被遮挡的红外线对应的红外发射管的位置坐标。The above-mentioned starting position is the position coordinate of the infrared emitting tube corresponding to the blocked infrared rays.
上述结束位置为被遮挡的红外线对应的红外接收管的位置坐标。The above-mentioned end position is the position coordinate of the infrared receiving tube corresponding to the blocked infrared rays.
终端设备根据各条被遮挡的红外线的起始位置、结束位置以及红外线的宽度,可以确定上述被遮挡的红外线经过的像素点。The terminal device can determine the pixel points through which the blocked infrared rays pass through according to the starting position, ending position and the width of the infrared rays.
之后,终端设备可以基于各条被遮挡的红外线经过的像素点,生成红外图像。Afterwards, the terminal device may generate an infrared image based on the pixels passing through each of the blocked infrared rays.
在红外图像中,若某一位置的像素点被一条被遮挡的红外线经过,则该像素点的像素值累加K。若该像素点被N条被遮挡的红外线经过,则该像素点的像素值累加N次,该像素点的像素值为N*K。K为大于0的自然数,N为大于或等于0的正整数。In an infrared image, if a pixel at a certain position is passed by a block of infrared rays, the pixel value of the pixel is accumulated by K. If the pixel is passed by N blocked infrared rays, the pixel value of the pixel is accumulated N times, and the pixel value of the pixel is N*K. K is a natural number greater than 0, and N is a positive integer greater than or equal to 0.
终端设备可以根据红外图像中经过各个像素点的被遮挡红外线的数量,确定红外图像中各个像素点的像素值。The terminal device can determine the pixel value of each pixel in the infrared image according to the number of blocked infrared rays passing through each pixel in the infrared image.
例如,如图2所示,图2为一种红外触摸屏上设置的红外线路径的示意图。图2中的矩形区域为遮挡物遮挡的区域,该矩形区域遮挡了众多红外线。此时,终端设备可以根据各红外接收管采集到的信号值,确定被遮挡的红外线,并确定各被遮挡的红外线经过的像素点的像素值,从而得到本实施例中的红外图像。For example, as shown in FIG. 2 , FIG. 2 is a schematic diagram of an infrared path set on an infrared touch screen. The rectangular area in FIG. 2 is the area blocked by the blocking object, and the rectangular area blocks many infrared rays. At this time, the terminal device can determine the blocked infrared rays according to the signal values collected by each infrared receiving tube, and determine the pixel values of the pixel points through which the blocked infrared rays pass, thereby obtaining the infrared image in this embodiment.
需要说明的是,上述红外图像可以是灰度图像。此时,红外图像中各个像素点的像素值为该像素点的灰度值。其中,在本实施例中,灰度图像可以为8位灰度图像,即该图像最多可以有256个层次的灰度值,灰度值的取值范围可以为0至255。It should be noted that the above infrared image may be a grayscale image. At this time, the pixel value of each pixel in the infrared image is the gray value of the pixel. Wherein, in this embodiment, the grayscale image may be an 8-bit grayscale image, that is, the image may have grayscale values of at most 256 levels, and the grayscale value may range from 0 to 255.
在本申请的实施例中,终端设备可以根据采集到的红外线信息生成红外图像。在红外图像中,像素点的像素值越高,则该像素点属于被遮挡区域的可能性越高。因此,与现有技术相比,本实施例的终端设备可以通过红外图像中各个像素点的像素值,更为直观准确地体现各个像素点属于被遮挡区域的可能性。In the embodiment of the present application, the terminal device may generate an infrared image according to the collected infrared information. In an infrared image, the higher the pixel value of a pixel, the higher the possibility that the pixel belongs to the occluded area. Therefore, compared with the prior art, the terminal device of this embodiment can more intuitively and accurately reflect the possibility that each pixel belongs to the blocked area through the pixel value of each pixel in the infrared image.
此外,由于触摸点处通常被多条红外线经过,因此,终端设备可以将当前生成的红外图像作为初始图像。In addition, since the touch point is usually passed by a plurality of infrared rays, the terminal device can use the currently generated infrared image as the initial image.
然后,终端设备对初始图像进行滤波处理,将初始图像中像素值小于预设像素阈值的像素点作为噪声点,将噪声点的像素值设置为0,从而得到滤波后的红外图像。Then, the terminal device performs filtering processing on the initial image, uses the pixel points in the initial image whose pixel values are less than the preset pixel threshold as noise points, and sets the pixel value of the noise points to 0, thereby obtaining a filtered infrared image.
预设像素阈值可以根据实际场景进行设置。例如,预设像素阈值可以设置为5、10、20等数值。The preset pixel threshold can be set according to the actual scene. For example, the preset pixel threshold can be set to 5, 10, 20 and other values.
在红外图像中,像素点的像素值越低,则表示该像素点属于被遮挡区域的可能性越低。因此,终端设备通过预设像素阈值对初始图像进行滤波,可以滤除初始图像中的噪声点,减少后续对红外图像进行处理的计算量,并且提高识别目标触摸区域的准确性。In an infrared image, the lower the pixel value of a pixel, the lower the possibility that the pixel belongs to the occluded area. Therefore, the terminal device filters the initial image by using the preset pixel threshold, which can filter out noise points in the initial image, reduce the amount of calculation for subsequent processing of the infrared image, and improve the accuracy of identifying the target touch area.
S102:遍历所述红外图像中各个像素点的像素值,得到所述红外图像的波峰区域。S102: Traverse the pixel values of each pixel in the infrared image to obtain a peak area of the infrared image.
终端设备在获取到红外图像之后,可以获取红外图像中水平方向上每一行的像素点的像素值,以及竖直方向上每一列像素点的像素值。After acquiring the infrared image, the terminal device may acquire the pixel value of each row of pixels in the infrared image and the pixel value of each column of pixels in the vertical direction in the infrared image.
然后,终端设备可以遍历红外图像中水平方向上每一行的像素点的像素值,根据每一行的像素点的像素值以及各个像素点的横坐标进行曲线拟合,得到每一行像素点对应的第一像素曲线。Then, the terminal device can traverse the pixel values of the pixels of each row in the horizontal direction in the infrared image, and perform curve fitting according to the pixel values of the pixels of each row and the abscissa of each pixel to obtain the first pixel value corresponding to each row of pixels. A pixel curve.
终端设备在获取到上述第一像素曲线之后,可以查找该第一像素曲线中的波峰点以及波谷点。After acquiring the above-mentioned first pixel curve, the terminal device may search for the peak point and the trough point in the first pixel curve.
在第一像素曲线中,波峰点的像素值大于其相邻两侧的像素点的像素值,波谷点的像素值小于其相邻两侧的像素点的像素值。In the first pixel curve, the pixel value of the peak point is greater than the pixel value of the pixel points on the adjacent sides thereof, and the pixel value of the trough point is smaller than the pixel value of the pixel points on the adjacent sides thereof.
在确定了第一像素曲线的波峰点之后,终端设备可以确定波峰点对应的波区域。其中,波峰点至相邻两侧的波谷点的区域为该波峰点的波区域。After determining the peak point of the first pixel curve, the terminal device may determine the wave region corresponding to the peak point. The region from the peak point to the trough points on the adjacent two sides is the wave region of the peak point.
例如,如图3所示,A为第一像素曲线的中的波峰点,B和C为第一像素曲线中与点A相邻的波谷点,在点B至点A的区域内各个像素点的像素值单调递增,在点A至点C的区域内的各个像素点的像素值单调递减。For example, as shown in FIG. 3 , A is the peak point in the first pixel curve, B and C are the trough points adjacent to point A in the first pixel curve, and each pixel point in the area from point B to point A The pixel value of , increases monotonically, and the pixel value of each pixel in the area from point A to point C decreases monotonically.
此时,终端设备可以将点B至点C的区域确定为点A的波区域。At this time, the terminal device may determine the area from point B to point C as the wave area of point A.
终端设备在确定了波峰点对应的波区域之后,可以根据预设波峰高度,截取该波峰点对应的波区域内的第一波峰区域。波峰点的像素值与第一波峰区域内各个像素点的像素值的差值均小于或等于预设波峰高度。After determining the wave region corresponding to the peak point, the terminal device may intercept the first peak region in the wave region corresponding to the peak point according to the preset peak height. The difference between the pixel value of the peak point and the pixel value of each pixel point in the first peak area is less than or equal to the preset peak height.
例如,如图3所示,点B至点C的区域确定为波峰点点A的波区域。终端设备可以根据预设波峰高度对点B至点C的区域进行截取,得到点D和点E。For example, as shown in FIG. 3 , the area from point B to point C is determined as the wave area of point A of the crest point. The terminal device can intercept the area from point B to point C according to the preset peak height to obtain point D and point E.
点D至点E的区域为点A的波峰区域,点A的像素值与点D至点E的区域的各个像素点的差值均小于或等于预设波峰高度。The area from point D to point E is the peak area of point A, and the difference between the pixel value of point A and each pixel in the area from point D to point E is less than or equal to the preset peak height.
相似的,终端设备可以遍历红外图像中竖直方向上每一列的像素点的像素值,根据每一列的像素点的像素值以及各个像素点的纵坐标进行曲线拟合,得到每一列对应的第二像素曲线。Similarly, the terminal device can traverse the pixel values of the pixels in each column in the vertical direction of the infrared image, perform curve fitting according to the pixel values of the pixels in each column and the ordinate of each pixel, and obtain the first corresponding to each column. Two-pixel curve.
然后,终端设备根据上述第二像素曲线,确定该第二像素曲线中的波峰点以及波谷点。Then, the terminal device determines the peak point and the trough point in the second pixel curve according to the second pixel curve.
在第二像素曲线中,波峰点的像素值大于其相邻两侧的像素点的像素值,波谷点的像素值小于其相邻两侧的像素点的像素值。In the second pixel curve, the pixel value of the peak point is greater than the pixel value of the pixel points on the adjacent sides thereof, and the pixel value of the trough point is smaller than the pixel value of the pixel points on the adjacent sides thereof.
在确定了第二像素曲线的波峰点之后,终端设备可以确定波峰点对应的波区域。其中,波峰点至相邻两侧的波谷点的区域为该波峰点的波区域。After determining the peak point of the second pixel curve, the terminal device may determine the wave region corresponding to the peak point. The region from the peak point to the trough points on the adjacent two sides is the wave region of the peak point.
终端设备在确定了波峰点对应的波区域之后,可以根据预设波峰高度,截取该波峰点对应的波区域内的第二波峰区域。After determining the wave region corresponding to the peak point, the terminal device may intercept the second peak region in the wave region corresponding to the peak point according to the preset peak height.
波峰点的像素值与第二波峰区域内各个像素点的像素值的差值小于或等于预设波峰高度。The difference between the pixel value of the peak point and the pixel value of each pixel point in the second peak area is less than or equal to the preset peak height.
通过上述方式,终端设备可以根据各第一像素曲线的波峰点以及预设波峰高度,确定各第一像素曲线对应的第一波峰区域,以及,根据各第二像素曲线的波峰点以及预设波峰高度,确定各第二像素曲线对应的第二波峰区域。In the above manner, the terminal device can determine the first peak area corresponding to each first pixel curve according to the peak point of each first pixel curve and the preset peak height, and, according to the peak point of each second pixel curve and the preset peak height height, to determine the second peak area corresponding to each second pixel curve.
然后,终端设备可以基于上述第一波峰区域和上述第二波峰区域确定红外图像的波峰区域。Then, the terminal device may determine the peak region of the infrared image based on the first peak region and the second peak region.
具体地,若某一像素点既属于某一第一像素曲线的第一波峰区域,又属于某一第二像素曲线的第二波峰区域,则终端设备可以将该像素点确定为红外图像的波峰点,并将红外图像的波峰点所在的位置确定为红外图像的波峰区域。Specifically, if a certain pixel belongs to both the first peak region of a first pixel curve and the second peak region of a second pixel curve, the terminal device can determine the pixel as the peak of the infrared image point, and determine the position of the wave crest point of the infrared image as the wave crest area of the infrared image.
例如,假设某一个像素点属于第X行的第一波峰区域,同时,该像素点也属于第Y行的第二波峰区域,则该像素点为红外图像的波峰点,该像素点的位置属于红外图像的波峰区域。X和Y均为大于0的正整数。For example, assuming that a certain pixel belongs to the first peak area of the Xth row, and at the same time, the pixel also belongs to the second peak area of the Yth row, then the pixel point is the peak point of the infrared image, and the position of the pixel point belongs to The peak area of the infrared image. Both X and Y are positive integers greater than 0.
可以理解的是,在红外图像中,像素点的像素值越高,则该像素点属于被遮挡区域的可能性越高。因此,被遮挡的区域应当为红外图像中的波峰点所在的波峰区域。It can be understood that, in the infrared image, the higher the pixel value of the pixel point, the higher the possibility that the pixel point belongs to the occluded area. Therefore, the occluded area should be the peak area where the peak points in the infrared image are located.
为此,在本实施例中,终端设备遍历红外图像中各个像素点的像素值,从而识别红外图像的波峰区域。此时,终端设备可以将目标触摸区域的筛选范围限定在识别到的红外图像的波峰区域中,减少筛选目标触摸区域的工作量,并提高识别目标触摸区域的准确性。To this end, in this embodiment, the terminal device traverses the pixel values of each pixel in the infrared image, so as to identify the peak area of the infrared image. At this time, the terminal device can limit the screening range of the target touch area to the identified peak area of the infrared image, thereby reducing the workload of screening the target touch area and improving the accuracy of identifying the target touch area.
并且,终端设备在识别红外图像的波峰区域,可以分别从行方向识别第一波峰区域,以及从列方向识别第二波峰区域。然后,终端设备再整合第一波峰区域和第二波峰区域,识别红外图像的波峰区域。通过上述二次识别的方式确定红外图像的波峰区域,可以进一步提高识别红外图像的波峰区域的准确性。In addition, when recognizing the wave crest area of the infrared image, the terminal device can identify the first wave crest area from the row direction and the second wave crest area from the column direction, respectively. Then, the terminal device integrates the first wave crest area and the second wave crest area to identify the wave crest area of the infrared image. By determining the wave crest area of the infrared image by the above-mentioned secondary identification method, the accuracy of identifying the wave crest area of the infrared image can be further improved.
S103:根据所述波峰区域以及预设筛选规则确定目标触摸区域。S103: Determine a target touch area according to the peak area and a preset screening rule.
终端设备在获取到红外图像的波峰区域之后,可以根据预设筛选规则,从上述波峰区域中确定目标触摸区域。After acquiring the wave crest area of the infrared image, the terminal device may determine the target touch area from the above wave crest area according to a preset screening rule.
预设筛选规则可以根据实际需求进行设置。Preset filtering rules can be set according to actual needs.
在一些可能的实现方式中,终端设备可以获取各个波峰区域内包含的像素点的数量,并将像素点的数量大于第一数量阈值的波峰区域确定为目标触摸区域。In some possible implementation manners, the terminal device may acquire the number of pixel points contained in each peak area, and determine the peak area with the number of pixel points greater than the first number threshold as the target touch area.
当用户触控红外线触控屏时,其触控的区域应当具有一定大小的面积。并且,在红外图像中,各个波峰区域的面积与波峰区域内的像素点的数量有关。因此,终端设备在识别目标触控区域时,可以设置第一数量阈值。When the user touches the infrared touch screen, the touched area should have a certain size. Moreover, in the infrared image, the area of each peak region is related to the number of pixels in the peak region. Therefore, when the terminal device identifies the target touch area, the first quantity threshold may be set.
如果某一波峰区域内的像素点数量小于或等于第一数量阈值,则表示该波峰区域的面积较小,该波峰区域不是目标触控区域。If the number of pixels in a certain peak area is less than or equal to the first number threshold, it means that the area of the peak area is small, and the peak area is not the target touch area.
如果某一波峰区域内的像素点数量大于第一数量阈值,则终端设备可以将该波峰区域确定为目标触摸区域。If the number of pixels in a certain wave peak area is greater than the first number threshold, the terminal device may determine the wave peak area as the target touch area.
此时,终端设备根据各个波峰区域包含的像素点的数量,可以快速且准确地从各个波峰区域中识别目标触摸区域,提高识别目标触摸区域的识别速度和准确性。At this time, the terminal device can quickly and accurately identify the target touch area from each wave peak area according to the number of pixels contained in each wave peak area, thereby improving the recognition speed and accuracy of identifying the target touch area.
在另一些可能的实现方式中,终端设备可以确定波峰区域对应的像素点的连通区,并根据上述连通区确定为疑似触摸区域。In some other possible implementation manners, the terminal device may determine the connected area of the pixel points corresponding to the peak area, and determine it as the suspected touch area according to the above connected area.
各个波峰区域内的像素点为红外图像的波峰点。此时,终端设备可以根据各个波峰点的坐标,确定波峰区域对应的像素点的连通区。The pixel points in each peak area are the peak points of the infrared image. At this time, the terminal device can determine the connected area of the pixel points corresponding to the peak area according to the coordinates of each peak point.
连通区为相邻的波峰点组成的图像区域,即连通区中任何两个像素点都可以用完全属于该连通区的一条线连接起来。The connected area is an image area composed of adjacent wave crest points, that is, any two pixel points in the connected area can be connected by a line completely belonging to the connected area.
终端设备可以通过基于二值图的图像分割法、种子填充法、分水岭法和区域生长法等算法中的任意一种算法获取波峰区域对应的像素点的连通区,此处终端设备对采用的算法不做限制。The terminal device can obtain the connected area of the pixel points corresponding to the peak area through any one of the algorithm based on the binary image segmentation method, the seed filling method, the watershed method and the region growing method. No restrictions.
在确定了连通区之后,终端设备可以对连通区进行筛选,得到疑似触摸区域。例如,终端设备可以获取各个连通区的像素点的数量,将像素点的数量大于第二数量阈值的连通区确定为疑似触摸区域。After the connected area is determined, the terminal device can screen the connected area to obtain the suspected touch area. For example, the terminal device may acquire the number of pixels in each connected area, and determine the connected area with the number of pixel points greater than the second number threshold as the suspected touch area.
在确定到疑似触摸区域之后,终端设备可以获取疑似触摸区域的特征信息,并基于特征信息确定疑似触摸区域的真伪评价度信息。After the suspected touch area is determined, the terminal device may acquire characteristic information of the suspected touch area, and determine authenticity evaluation degree information of the suspected touch area based on the characteristic information.
上述特征信息用于标识疑似触摸区域的特征。上述特征信息可以包括疑似触摸区域的面积、经过疑似触摸区域的红外线的数量、疑似触摸区域中最高的像素值等信息中的一种或多种。The above feature information is used to identify features of the suspected touch area. The above feature information may include one or more of information such as the area of the suspected touch area, the amount of infrared rays passing through the suspected touch area, and the highest pixel value in the suspected touch area.
终端设备在获取到上述特征信息之后,可以根据预设评分标准,对上述特征信息进行评分,得到各个疑似触摸区域对应的真伪评价度信息。After acquiring the above-mentioned feature information, the terminal device may score the above-mentioned feature information according to a preset scoring standard, and obtain authenticity evaluation degree information corresponding to each suspected touch area.
当上述特征信息仅包含一种信息时,上述真伪评价度信息为该信息的评分值。当上述特征信息包含多种信息时,上述真伪评价度信息为各个信息对应的评分值之和。When the feature information includes only one type of information, the authenticity evaluation degree information is the rating value of the information. When the feature information includes multiple kinds of information, the authenticity evaluation degree information is the sum of the score values corresponding to the respective pieces of information.
在确定了疑似触摸区域的真伪评价度信息之后,终端设备可以基于真伪评价度信息从疑似触摸区域中筛选出目标触摸区域,并获取目标触摸区域的位置信息。After determining the authenticity evaluation degree information of the suspected touch area, the terminal device can filter out the target touch area from the suspected touch area based on the authenticity evaluation degree information, and obtain the position information of the target touch area.
具体地,真伪评价度信息越高,则说明该真伪评价度信息对应的疑似触摸区域是真实触摸区域的可能性越大。Specifically, the higher the authenticity evaluation degree information, the greater the possibility that the suspected touch area corresponding to the authenticity evaluation degree information is a real touch area.
因此,终端设备可以将大于预设信息阈值的真伪评价度信息对应的疑似触摸区域确定为目标触摸区域。或者,终端设备也可以将各个疑似触摸区域对应的真伪评价度信息按照由高到低的顺序进行排序,选取最高的K个真伪评价度信息对应的疑似触摸区域作为目标触摸区域。K为预设正整数。Therefore, the terminal device may determine the suspected touch area corresponding to the authenticity evaluation degree information greater than the preset information threshold as the target touch area. Alternatively, the terminal device may also sort the authenticity evaluation information corresponding to each suspected touch area in descending order, and select the suspected touch area corresponding to the highest K authenticity evaluation information as the target touch area. K is a preset positive integer.
例如,用户在使用红外线触控屏时,通常是使用一根手指进行单点触控、使用两根手指进行双点触控以及使用三根手指进行三点触控,因此,上述K可以设置为3。当存在多个疑似触摸区域时,可以选取最高的3个真伪评价度信息对应的疑似触摸区域作为目标触摸区域。For example, when a user uses an infrared touch screen, he usually uses one finger for single touch, two fingers for double touch, and three fingers for three touch. Therefore, the above K can be set to 3 . When there are multiple suspected touch areas, the suspected touch areas corresponding to the highest three authenticity evaluation degree information may be selected as target touch areas.
在上述的描述中,终端设备设置了预设评分标准。通过预设评分标准,终端设备可以根据各个疑似触摸区域的特征信息,计算各个疑似触摸区域的真伪评价度信息,量化各个疑似触摸区域的可信度,从而使终端设备可以根据各个疑似触摸区域的真伪评价度信息方便快捷地筛选目标触摸区域,提高识别目标触摸区域的识别速度和准确性。In the above description, the terminal device sets preset scoring standards. Through the preset scoring standard, the terminal device can calculate the authenticity evaluation information of each suspected touch area according to the characteristic information of each suspected touch area, and quantify the reliability of each suspected touch area, so that the terminal device can The authenticity evaluation information can easily and quickly screen the target touch area, and improve the recognition speed and accuracy of identifying the target touch area.
综上所述,本申请实施例中,终端设备根据采集到的红外线信息生成红外图像;遍历所述红外图像中各个点的像素值,得到所述红外图像的波峰区域;根据所述波峰区域以及预设筛选规则确定目标触摸区域。现有技术中只是通过简单的判断红外信号是否被遮挡来确定疑似触摸区域,一旦红外信号被遮挡,就判断当前存在一个疑似触摸区域,这样就会检测到大量的疑似触摸区域,从大量的疑似触摸区域中筛选最后的目标触摸区域工作量巨大,多点触摸时的识别速度慢,并且由于数据量过大,筛选时也可能会出现错筛或者漏筛的情况,导致多点触摸时的识别精度低。而上述方案,虽然也对红外信号是否被遮挡进行了判断,但是当红外线被遮挡时,上述方案并未直接确定疑似触摸区域,而是根据被遮挡的红外线确定红外图像,再获取红外图像对应的波峰区域。可以理解的是,本实施例中红外图像可以对应为现有技术中的疑似触摸区域。在本实施例中,红外图像的波峰区域对应了疑似触摸区域,也就说是,上述方案是在现有技术中得到的疑似触摸区域的基础上,进一步进行了筛选,得到了疑似触摸区域。所以,上述方案中得到的疑似触摸区域的数量要少于现有技术中获取的疑似触摸区域的数量。这样,由于通过本实施例得到的疑似触摸区域的数量大大减少,后续从疑似触摸区域中筛选目标触摸区域的工作量也会减少,可以提升识别的速度,并且可以避免由于工作量过大出现错筛或者漏筛的情况,能够更准确的对目标触摸区域进行筛选,提高了多点触摸时的识别精度和识别速度。To sum up, in the embodiment of the present application, the terminal device generates an infrared image according to the collected infrared information; traverses the pixel values of each point in the infrared image to obtain the peak area of the infrared image; Preset filtering rules determine the target touch area. In the prior art, the suspected touch area is simply determined by judging whether the infrared signal is blocked. Once the infrared signal is blocked, it is determined that there is currently a suspected touch area, so that a large number of suspected touch areas will be detected. Screening the last target touch area in the touch area has a huge workload, and the recognition speed during multi-touch is slow, and due to the large amount of data, there may be wrong or missed screening during screening, resulting in multi-touch recognition. Low precision. In the above scheme, although it also judges whether the infrared signal is blocked, when the infrared light is blocked, the above scheme does not directly determine the suspected touch area, but determines the infrared image according to the blocked infrared, and then obtains the corresponding infrared image. crest area. It can be understood that the infrared image in this embodiment may correspond to the suspected touch area in the prior art. In this embodiment, the peak area of the infrared image corresponds to the suspected touch area, that is to say, the above solution is based on the suspected touch area obtained in the prior art, and further screening is performed to obtain the suspected touch area. Therefore, the number of suspected touch areas obtained in the above solution is less than the number of suspected touch areas obtained in the prior art. In this way, since the number of suspected touch areas obtained by this embodiment is greatly reduced, the subsequent workload of screening target touch areas from the suspected touch areas will also be reduced, the recognition speed can be improved, and errors due to excessive workload can be avoided. In the case of screening or missing screening, the target touch area can be screened more accurately, which improves the recognition accuracy and recognition speed during multi-touch.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
请参见图4,图4是本申请第二实施例提供的红外触摸屏多点触摸识别终端的示意图。为了便于说明,仅示出了与本实施例相关的部分。参见图4,红外触摸屏多点触摸识别终端包括:Please refer to FIG. 4 . FIG. 4 is a schematic diagram of a multi-touch recognition terminal on an infrared touch screen provided by a second embodiment of the present application. For convenience of explanation, only the parts related to this embodiment are shown. Referring to Figure 4, the infrared touch screen multi-touch identification terminal includes:
第一生成单元410,用于根据采集到的红外线信息生成红外图像;a first generating unit 410, configured to generate an infrared image according to the collected infrared information;
第一处理单元420,用于遍历所述红外图像中各个点的像素值,得到所述红外图像的波峰区域;a first processing unit 420, configured to traverse the pixel values of each point in the infrared image to obtain the peak area of the infrared image;
第一确定单元430,用于根据所述波峰区域以及预设筛选规则确定目标触摸区域。The first determining unit 430 is configured to determine the target touch area according to the peak area and the preset screening rule.
进一步地,第一处理单元420,包括:Further, the first processing unit 420 includes:
第二处理单元,用于遍历所述红外图像中水平方向上每一行的像素点的像素值,得到每一行的像素点的像素值的第一像素值曲线,根据所述第一像素值曲线得到第一波峰区域;The second processing unit is configured to traverse the pixel values of the pixel points of each row in the horizontal direction in the infrared image to obtain a first pixel value curve of the pixel values of the pixel points of each row, and obtain the first pixel value curve according to the first pixel value curve. The first wave peak area;
第三处理单元,用于遍历所述红外图像中竖直方向上每一列的像素点的像素值,得到每一列的像素点的像素值的第二像素值曲线,根据所述第二像素值曲线得到第二波峰区域;A third processing unit, configured to traverse the pixel values of the pixel points in each column in the vertical direction in the infrared image, and obtain a second pixel value curve of the pixel values of the pixel points in each column, according to the second pixel value curve Get the second wave peak area;
第二确定单元,用于基于所述第一波峰区域和所述第二波峰区域,确定所述红外图像的波峰区域。A second determining unit, configured to determine a wave peak area of the infrared image based on the first wave peak area and the second wave peak area.
进一步地,所述第二处理单元,具体用于:Further, the second processing unit is specifically used for:
遍历所述红外图像中水平方向上每一行的像素点的像素值,得到每一行的像素点的像素值的第一像素值曲线,以及所述第一像素值曲线中的波峰点;Traverse the pixel values of the pixel points of each row in the horizontal direction in the infrared image to obtain a first pixel value curve of the pixel values of the pixel points of each row, and the peak points in the first pixel value curve;
根据各第一像素值曲线的波峰点以及预设波峰高度,确定各第一像素值曲线对应的第一波峰区域。According to the peak point of each first pixel value curve and the preset peak height, the first peak area corresponding to each first pixel value curve is determined.
进一步地,所述第三处理单元,具体用于:Further, the third processing unit is specifically used for:
遍历所述红外图像中竖直方向上每一列的像素点的像素值,得到每一列的像素点的像素值的第二像素值曲线,以及所述第二像素值曲线中的波峰点;Traversing the pixel values of the pixel points of each column in the vertical direction in the infrared image to obtain a second pixel value curve of the pixel values of the pixel points in each column, and the peak points in the second pixel value curve;
根据各第二像素值曲线的波峰点以及预设波峰高度,确定各第二像素值曲线对应的第二波峰区域。According to the peak point of each second pixel value curve and the preset peak height, the second peak area corresponding to each second pixel value curve is determined.
进一步地,第一生成单元410,包括:Further, the first generating unit 410 includes:
第一获取单元,用于获取各个红外接收管采集到的信号值;a first acquisition unit, used for acquiring the signal values collected by each infrared receiving tube;
第二生成单元,用于根据所述信号值生成红外图像。The second generating unit is configured to generate an infrared image according to the signal value.
进一步地,所述第二生成单元,具体用于:Further, the second generating unit is specifically used for:
根据所述信号值生成初始图像;generating an initial image based on the signal values;
将所述初始图像中像素值小于预设像素阈值的像素点的像素值设置为0,得到红外图像。The pixel value of the pixel whose pixel value is less than the preset pixel threshold in the initial image is set to 0 to obtain an infrared image.
进一步地,第一确定单元430,具体用于:Further, the first determining unit 430 is specifically configured to:
获取所述波峰区域对应的像素点的连通区,根据所述连通区确定疑似触摸区域;Obtain the connected area of the pixel points corresponding to the peak area, and determine the suspected touch area according to the connected area;
获取所述疑似触摸区域的特征信息,基于所述特征信息确定所述疑似触摸区域的真伪评价度信息;Obtaining feature information of the suspected touch area, and determining authenticity evaluation information of the suspected touch area based on the feature information;
根据所述真伪评价度信息,从所述疑似触摸区域中筛选出目标触摸区域;Screening out a target touch area from the suspected touch area according to the authenticity evaluation information;
确定所述目标触摸区域的位置信息。Determine the location information of the target touch area.
图5是本申请第三实施例提供的红外触摸屏多点触摸识别设备的示意图。如图5所示,该实施例的红外触摸屏多点触摸识别设备5包括:处理器50、存储器51以及存储在所述存储器51中并可在所述处理器50上运行的计算机程序52,例如红外触摸屏多点触摸识别程序。所述处理器50执行所述计算机程序52时实现上述各个红外触摸屏多点触摸识别方法实施例中的步骤,例如图1所示的步骤101至103。或者,所述处理器50执行所述计算机程序52时实现上述各装置实施例中各模块/单元的功能,例如图4所示模块410至430的功能。FIG. 5 is a schematic diagram of an infrared touch screen multi-touch recognition device provided by a third embodiment of the present application. As shown in FIG. 5 , the infrared touch screen multi-touch recognition device 5 of this embodiment includes: a processor 50 , a memory 51 , and a computer program 52 stored in the memory 51 and executable on the processor 50 , for example Infrared touch screen multi-touch recognition program. When the processor 50 executes the computer program 52 , the steps in each of the above-mentioned embodiments of the infrared touch screen multi-touch recognition method are implemented, for example, steps 101 to 103 shown in FIG. 1 . Alternatively, when the processor 50 executes the computer program 52, the functions of the modules/units in the above-mentioned apparatus embodiments, for example, the functions of the modules 410 to 430 shown in FIG. 4 are implemented.
示例性的,所述计算机程序52可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器51中,并由所述处理器50执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序52在所述红外触摸屏多点触摸识别设备5中的执行过程。例如,所述计算机程序52可以被分割成第一生成单元、第一处理单元、第一确定单元,各单元具体功能如下:Exemplarily, the computer program 52 can be divided into one or more modules/units, and the one or more modules/units are stored in the memory 51 and executed by the processor 50 to complete the this application. The one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program 52 in the infrared touch screen multi-touch recognition device 5 . For example, the computer program 52 can be divided into a first generating unit, a first processing unit, and a first determining unit, and the specific functions of each unit are as follows:
第一生成单元,用于根据采集到的红外线信息生成红外图像;a first generating unit, configured to generate an infrared image according to the collected infrared information;
第一处理单元,用于遍历所述红外图像中各个点的像素值,得到所述红外图像的波峰区域;a first processing unit, configured to traverse the pixel values of each point in the infrared image to obtain the peak area of the infrared image;
第一确定单元,用于根据所述波峰区域以及预设筛选规则确定目标触摸区域。The first determining unit is configured to determine the target touch area according to the peak area and the preset screening rule.
所述红外触摸屏多点触摸识别设备可包括,但不仅限于,处理器50、存储器51。本领域技术人员可以理解,图5仅仅是红外触摸屏多点触摸识别设备5的示例,并不构成对红外触摸屏多点触摸识别设备5的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述红外触摸屏多点触摸识别设备还可以包括输入输出设备、网络接入设备、总线等。The infrared touch screen multi-touch recognition device may include, but is not limited to, a processor 50 and a memory 51 . Those skilled in the art can understand that FIG. 5 is only an example of the multi-touch recognition device 5 on the infrared touch screen, and does not constitute a limitation on the multi-touch recognition device 5 on the infrared touch screen, and may include more or less components than those shown in the figure. Or some components are combined, or different components, for example, the infrared touch screen multi-touch recognition device may also include input and output devices, network access devices, buses, and the like.
所称处理器50可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现成可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 50 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
所述存储器51可以是所述红外触摸屏多点触摸识别设备5的内部存储单元,例如红外触摸屏多点触摸识别设备5的硬盘或内存。所述存储器51也可以是所述红外触摸屏多点触摸识别设备5的外部存储设备,例如所述红外触摸屏多点触摸识别设备5上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。进一步地,所述红外触摸屏多点触摸识别设备5还可以既包括所述红外触摸屏多点触摸识别设备5的内部存储单元也包括外部存储设备。所述存储器51用于存储所述计算机程序以及所述红外触摸屏多点触摸识别设备所需的其他程序和数据。所述存储器51还可以用于暂时地存储已经输出或者将要输出的数据。The memory 51 may be an internal storage unit of the infrared touch screen multi-touch recognition device 5 , such as a hard disk or memory of the infrared touch screen multi-touch recognition device 5 . The memory 51 can also be an external storage device of the infrared touch screen multi-touch recognition device 5, such as a plug-in hard disk equipped on the infrared touch screen multi-touch recognition device 5, a smart memory card (Smart memory card). Media Card, SMC), Secure Digital (SD) card, Flash memory card (Flash Card), etc. Further, the infrared touch screen multi-touch recognition device 5 may also include both an internal storage unit of the infrared touch screen multi-touch recognition device 5 and an external storage device. The memory 51 is used to store the computer program and other programs and data required by the infrared touch screen multi-touch recognition device. The memory 51 can also be used to temporarily store data that has been output or will be output.
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information exchange, execution process and other contents between the above-mentioned devices/units are based on the same concept as the method embodiments of the present application. For specific functions and technical effects, please refer to the method embodiments section. It is not repeated here.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
本申请实施例还提供了一种网络设备,该网络设备包括:至少一个处理器、存储器以及存储在所述存储器中并可在所述至少一个处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任意各个方法实施例中的步骤。An embodiment of the present application also provides a network device, the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor executing The computer program implements the steps in any of the foregoing method embodiments.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.
本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。The embodiments of the present application provide a computer program product, when the computer program product runs on a mobile terminal, the steps in the foregoing method embodiments can be implemented when the mobile terminal executes the computer program product.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到拍照装置/终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the present application realizes all or part of the processes in the methods of the above embodiments, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When executed by a processor, the steps of each of the above method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the photographing device/terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only). Memory), random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunication signals, and software distribution media. For example, U disk, mobile hard disk, disk or CD, etc. In some jurisdictions, under legislation and patent practice, computer readable media may not be electrical carrier signals and telecommunications signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units. Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

Claims (10)

  1. 一种红外触摸屏多点触摸识别方法,其特征在于,包括: A multi-touch recognition method for an infrared touch screen, comprising:
    根据采集到的红外线信息生成红外图像;Generate an infrared image according to the collected infrared information;
    遍历所述红外图像中各个点的像素值,得到所述红外图像的波峰区域;Traverse the pixel values of each point in the infrared image to obtain the peak area of the infrared image;
    根据所述波峰区域以及预设筛选规则确定目标触摸区域。The target touch area is determined according to the peak area and the preset filtering rule.
  2. 如权利要求1所述的红外触摸屏多点触摸识别方法,其特征在于,所述遍历所述红外图像中各个点的像素值,得到所述红外图像的波峰区域,包括: The multi-touch recognition method for an infrared touch screen according to claim 1, wherein the traversing the pixel values of each point in the infrared image to obtain the peak area of the infrared image, comprising:
    遍历所述红外图像中水平方向上每一行的像素点的像素值,得到每一行的像素点的像素值的第一像素值曲线,根据所述第一像素值曲线得到第一波峰区域;Traverse the pixel values of the pixel points of each row in the horizontal direction in the infrared image, obtain a first pixel value curve of the pixel values of the pixel points of each row, and obtain the first peak area according to the first pixel value curve;
    遍历所述红外图像中竖直方向上每一列的像素点的像素值,得到每一列的像素点的像素值的第二像素值曲线,根据所述第二像素值曲线得到第二波峰区域;Traverse the pixel values of the pixel points of each column in the vertical direction in the infrared image, obtain a second pixel value curve of the pixel values of the pixel points in each column, and obtain a second peak area according to the second pixel value curve;
    基于所述第一波峰区域和所述第二波峰区域,确定所述红外图像的波峰区域。Based on the first peak region and the second peak region, a peak region of the infrared image is determined.
  3. 如权利要求2所述的红外触摸屏多点触摸识别方法,其特征在于,所述遍历所述红外图像中水平方向上每一行的像素点的像素值,得到每一行的像素点的像素值的第一像素值曲线,根据所述第一像素值曲线得到第一波峰区域,包括: The multi-touch recognition method for an infrared touch screen according to claim 2, wherein the step of traversing the pixel values of the pixels of each row in the horizontal direction in the infrared image is to obtain the first number of the pixel values of the pixels of each row. A pixel value curve, obtaining the first peak area according to the first pixel value curve, including:
    遍历所述红外图像中水平方向上每一行的像素点的像素值,得到每一行的像素点的像素值的第一像素值曲线,以及所述第一像素值曲线中的波峰点;Traverse the pixel values of the pixel points of each row in the horizontal direction in the infrared image to obtain a first pixel value curve of the pixel values of the pixel points of each row, and the peak points in the first pixel value curve;
    根据各第一像素值曲线的波峰点以及预设波峰高度,确定各第一像素值曲线对应的第一波峰区域。According to the peak point of each first pixel value curve and the preset peak height, the first peak area corresponding to each first pixel value curve is determined.
  4. 如权利要求2所述的红外触摸屏多点触摸识别方法,其特征在于,所述遍历所述红外图像中竖直方向上每一列的像素点的像素值,得到每一列的像素点的像素值的第二像素值曲线,根据所述第二像素值曲线得到第二波峰区域,包括: The multi-touch recognition method for an infrared touch screen according to claim 2, wherein the traversal of the pixel values of the pixels in each column in the vertical direction in the infrared image is performed to obtain the pixel value of the pixels in each column. The second pixel value curve, the second peak area is obtained according to the second pixel value curve, including:
    遍历所述红外图像中竖直方向上每一列的像素点的像素值,得到每一列的像素点的像素值的第二像素值曲线,以及所述第二像素值曲线中的波峰点;Traversing the pixel values of the pixel points of each column in the vertical direction in the infrared image to obtain a second pixel value curve of the pixel values of the pixel points in each column, and the peak points in the second pixel value curve;
    根据各第二像素值曲线的波峰点以及预设波峰高度,确定各第二像素值曲线对应的第二波峰区域。According to the peak point of each second pixel value curve and the preset peak height, the second peak area corresponding to each second pixel value curve is determined.
  5. 如权利要求1所述的红外触摸屏多点触摸识别方法,其特征在于,所述根据采集到的红外线信息生成红外图像,包括: The multi-touch recognition method for an infrared touch screen according to claim 1, wherein the generating an infrared image according to the collected infrared information comprises:
    获取各个红外接收管采集到的信号值;Obtain the signal value collected by each infrared receiving tube;
    根据所述信号值生成红外图像。An infrared image is generated based on the signal values.
  6. 如权利要求5所述的红外触摸屏多点触摸识别方法,其特征在于,所述根据所述信号值生成红外图像,包括: The multi-touch recognition method for an infrared touch screen according to claim 5, wherein the generating an infrared image according to the signal value comprises:
    根据所述信号值生成初始图像;generating an initial image based on the signal values;
    将所述初始图像中像素值小于预设像素阈值的像素点的像素值设置为0,得到红外图像。The pixel value of the pixel whose pixel value is less than the preset pixel threshold in the initial image is set to 0 to obtain an infrared image.
  7. 如权利要求1所述的红外触摸屏多点触摸识别方法,其特征在于,所述根据所述波峰区域以及预设筛选规则确定目标触摸区域,包括: The multi-touch recognition method for an infrared touch screen according to claim 1, wherein the determining the target touch area according to the peak area and a preset screening rule includes:
    获取所述波峰区域对应的像素点的连通区,根据所述连通区确定疑似触摸区域;Obtain the connected area of the pixel points corresponding to the peak area, and determine the suspected touch area according to the connected area;
    获取所述疑似触摸区域的特征信息,基于所述特征信息确定所述疑似触摸区域的真伪评价度信息;Obtaining feature information of the suspected touch area, and determining authenticity evaluation information of the suspected touch area based on the feature information;
    根据所述真伪评价度信息,从所述疑似触摸区域中筛选出目标触摸区域;Screening out a target touch area from the suspected touch area according to the authenticity evaluation information;
    确定所述目标触摸区域的位置信息。Determine the location information of the target touch area.
  8. 一种红外触摸屏多点触摸识别装置,其特征在于,包括: An infrared touch screen multi-touch identification device, characterized in that it includes:
    第一生成单元,用于根据采集到的红外线信息生成红外图像;a first generating unit, configured to generate an infrared image according to the collected infrared information;
    第一处理单元,用于遍历所述红外图像中各个点的像素值,得到所述红外图像的波峰区域;a first processing unit, configured to traverse the pixel values of each point in the infrared image to obtain the peak area of the infrared image;
    第一确定单元,用于根据所述波峰区域以及预设筛选规则确定目标触摸区域。The first determining unit is configured to determine the target touch area according to the peak area and the preset screening rule.
  9. 一种红外触摸屏多点触摸识别设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至7任一项所述的方法。 An infrared touch screen multi-touch recognition device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that the processor implements the computer program when executing the computer program A method as claimed in any one of claims 1 to 7.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述的方法。A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
PCT/CN2020/116194 2020-09-02 2020-09-18 Multi-point touch recognition method, apparatus and device for infrared touch screen WO2022047839A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010911951.XA CN112214135B (en) 2020-09-02 2020-09-02 Multi-touch identification method, device and equipment for infrared touch screen
CN202010911951.X 2020-09-02

Publications (1)

Publication Number Publication Date
WO2022047839A1 true WO2022047839A1 (en) 2022-03-10

Family

ID=74048982

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/116194 WO2022047839A1 (en) 2020-09-02 2020-09-18 Multi-point touch recognition method, apparatus and device for infrared touch screen

Country Status (2)

Country Link
CN (1) CN112214135B (en)
WO (1) WO2022047839A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168055A (en) * 2021-10-29 2022-03-11 深圳市联新移动医疗科技有限公司 Sliding unlocking control method and system and medical cart
CN116107450A (en) * 2022-12-02 2023-05-12 深圳市鸿合创新信息技术有限责任公司 Touch point identification method and device of infrared touch screen and infrared touch screen

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882033A (en) * 2010-07-16 2010-11-10 广东威创视讯科技股份有限公司 Method and device for speeding up acquisition of coordinate of touch point
CN101976334A (en) * 2010-10-26 2011-02-16 广东威创视讯科技股份有限公司 Anti-interference touch identification method and device
CN103677441A (en) * 2012-09-18 2014-03-26 北京汇冠新技术股份有限公司 Infrared multipoint identification method, infrared multipoint identification device and infrared touch screen
CN105373267A (en) * 2015-12-14 2016-03-02 广州华欣电子科技有限公司 Multi-point identification method and device of infrared touch screen and infrared touch screen
US20200241745A1 (en) * 2019-01-29 2020-07-30 Boe Technology Group Co., Ltd. Touch detection method and apparatus, touch device, computer device and readable medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11716444B2 (en) * 2006-02-15 2023-08-01 Kurtis John Ritchey Human-like emulation enterprise system and method
CN100555179C (en) * 2006-10-13 2009-10-28 广东威创视讯科技股份有限公司 A kind of based on cmos digital imageing sensor locating device and localization method
CN110094846B (en) * 2019-05-24 2020-01-21 珠海格力电器股份有限公司 Air conditioner air sweeping control method and device, storage medium and air conditioning equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882033A (en) * 2010-07-16 2010-11-10 广东威创视讯科技股份有限公司 Method and device for speeding up acquisition of coordinate of touch point
CN101976334A (en) * 2010-10-26 2011-02-16 广东威创视讯科技股份有限公司 Anti-interference touch identification method and device
CN103677441A (en) * 2012-09-18 2014-03-26 北京汇冠新技术股份有限公司 Infrared multipoint identification method, infrared multipoint identification device and infrared touch screen
CN105373267A (en) * 2015-12-14 2016-03-02 广州华欣电子科技有限公司 Multi-point identification method and device of infrared touch screen and infrared touch screen
US20200241745A1 (en) * 2019-01-29 2020-07-30 Boe Technology Group Co., Ltd. Touch detection method and apparatus, touch device, computer device and readable medium

Also Published As

Publication number Publication date
CN112214135A (en) 2021-01-12
CN112214135B (en) 2022-04-26

Similar Documents

Publication Publication Date Title
TWI619080B (en) Method for calculating fingerprint overlapping region and electronic device
US20070036396A1 (en) Pupil detection device and iris authentication apparatus
CN102523395B (en) Television system having multi-point touch function, touch positioning identification method and system thereof
US9076056B2 (en) Text detection in natural images
JP2017529582A (en) Touch classification
CN110489015B (en) Touch point determining method and device, touch screen and display
WO2022047839A1 (en) Multi-point touch recognition method, apparatus and device for infrared touch screen
CN110262685B (en) Touch detection method, touch detection device, storage medium and touch screen
WO2021184847A1 (en) Method and device for shielded license plate character recognition, storage medium, and smart device
CN110619333A (en) Text line segmentation method, text line segmentation device and electronic equipment
CN112509027B (en) Repositioning method, robot, and computer-readable storage medium
WO2012072000A1 (en) Method and device for positioning by touch points, and touch screen
CN113283351B (en) Video plagiarism detection method using CNN optimization similarity matrix
CN111046693A (en) Two-dimensional code scanning method and device, terminal equipment and storage medium
CN109375833B (en) Touch instruction generation method and device
CN113934312B (en) Touch object identification method based on infrared touch screen and terminal equipment
WO2024113590A1 (en) Touch point recognition method and apparatus for infrared touch screen, and infrared touch screen
WO2022252739A1 (en) Image filtering method and apparatus, terminal, and computer readable storage medium
CN116249015A (en) Camera shielding detection method and device, camera equipment and storage medium
CN112629828B (en) Optical information detection method, device and equipment
CN114120518A (en) Method and device for detecting continuous paper money, electronic equipment and storage medium
TWI507919B (en) Method for tracking and recordingfingertip trajectory by image processing
CN110794994A (en) Method and device for determining real contact
CN113496134A (en) Two-dimensional code positioning method, device, equipment and storage medium
US20150242681A1 (en) System and Method of Image Processing

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20952081

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20952081

Country of ref document: EP

Kind code of ref document: A1