CN101571775A - Method and device for detecting image touch points - Google Patents
Method and device for detecting image touch points Download PDFInfo
- Publication number
- CN101571775A CN101571775A CNA2009100399754A CN200910039975A CN101571775A CN 101571775 A CN101571775 A CN 101571775A CN A2009100399754 A CNA2009100399754 A CN A2009100399754A CN 200910039975 A CN200910039975 A CN 200910039975A CN 101571775 A CN101571775 A CN 101571775A
- Authority
- CN
- China
- Prior art keywords
- image
- gray
- scale map
- fuzzy processing
- touch points
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Image Processing (AREA)
Abstract
The invention discloses a method for detecting image touch points, which comprises the following steps: (1) converting an original image shot by infrared camera into a grey-scale image and storing the grey-scale image; (2) performing the obfuscation of the grey-scale image in the step (1); (3) subtracting the grey-scale image subjected to the obfuscation in the step (2) from the grey-scale image in the step (1); (4) subjecting an image obtained after the subtraction in the step (3) to de-noising; and (5) subjecting an image obtained after the de-noising in the step (4) to binaryzation to obtain a final touch point image. The invention also provides a device for detecting image touch points, which comprises an image conversion unit, an image removal unit and an image processing unit. The method and the device can effectively eliminate the interference of non-touch points in the image such as a palm shape, precisely detect the touch points in the image and improve positioning precision. Meanwhile, the method and the device have the advantages of simple calculation, high processing speed and the like.
Description
Technical field
The present invention relates to image processing field, particularly a kind of detection method of image touch points and device.
Background technology
In the prior art, the normal mode as shown in Figure 1 that adopts realizes multiple point touching, it projects infrared light on the whole touch panel 102 through catoptron 106 uniformly by infrared diode 103 emission infrared lights, and described touch panel 102 is made by printing opacity, the high material of leaded light performance.When finger is put into touch panel and is touched, diffuse reflection takes place in infrared light on finger, the infrared camera 104 that is placed on touch panel 102 belows is caught, through Flame Image Process, extract the touch point data, by projector 105 it is projected to projection screen 101 then.
Its principle is that infrared ray on finger diffuse reflection takes place, and is photographed and discerns by camera.But, since the infrared ray that sends of diode through the flat mirror reflects hypsokinesis tiltedly through touch panel, so when palm during relatively near touch panel, the part infrared ray may also can pass through palm generation diffuse reflection, thereby is photographed by camera.Therefore aspect above-mentioned Flame Image Process, just carry out simple binary conversion treatment usually, the image that camera photographs except the touch point, has also comprised a fuzzy hand shape usually.Utilize image synoptic diagram that the camera of prior art takes as shown in Figure 2, if just be difficult to it is removed by binary conversion treatment, and it exists detection to the touch point to cause to seriously influence, and then influences the bearing accuracy of touch point.
Summary of the invention
The shortcoming that the objective of the invention is to overcome prior art provides the detection method of the image touch points that a kind of processing speed is fast, degree of accuracy is high with not enough.
The objective of the invention is to be achieved through the following technical solutions: a kind of image touch points detection method may further comprise the steps:
(1) original image that infrared camera is taken converts gray-scale map to, and preserves this gray-scale map;
(2) gray-scale map in the above-mentioned steps (1) is carried out Fuzzy Processing;
(3) gray-scale map after the Fuzzy Processing in gray-scale map described in the step (1) and the step (2) is subtracted each other;
(4) image after subtracting each other in the step (3) is carried out denoising;
(5) image after the denoising in the step (4) is carried out binary conversion treatment, obtain final touch point image.
To better implement the present invention, Fuzzy Processing in the described step (2), specifically be meant and set a regional extent, ask the average gray value of regional extent interior pixel, and this average gray value composed that pixel to center in this zone, each pixel in the image is carried out same processing, make the gray-scale value of each pixel after the Fuzzy Processing be the average gray value in its respective regions scope before the Fuzzy Processing.
Described regional extent is 3 * 3 pixel region.
Denoising in the described step (4) specifically is meant and utilizes in mean filter, adaptive wiener filter, median filter, the morphology noise filtering one or more to carry out denoising.
Binary conversion treatment in the described step (5), choosing of its gray threshold may further comprise the steps:
The frequency that each gray-scale value occurs in a, the computed image;
The gray-scale value of certain frequency is as the gray threshold of binary conversion treatment in b, the selection image.
This pick-up unit that another object of the present invention is to provide the image touch points that a kind of processing speed is fast, degree of accuracy is high comprises
Image conversion unit is used for converting the original image that infrared camera is taken to gray-scale map and preserving, and simultaneously gray-scale map is carried out Fuzzy Processing, and with after gray-scale map before the Fuzzy Processing and the Fuzzy Processing gray-scale map send to image and remove the unit;
Image is removed the unit, be used for after gray-scale map before the described Fuzzy Processing and the Fuzzy Processing gray-scale map subtract each other and send to graphics processing unit;
Graphics processing unit, the image after being used for described image removed the unit and subtract each other carries out denoising and binary conversion treatment.
Compared with prior art, the present invention has effectively removed the non-touch points such as fuzzy palm shape that exist in the image and has disturbed, can detect the touch point in the image accurately, improve setting accuracy, the present invention simultaneously also has advantages such as computing is simple, processing speed is fast.
Description of drawings
Fig. 1 is a kind of multiple point touching implementation structural representation of prior art;
Fig. 2 is the image synoptic diagram that camera is taken in a kind of multiple point touching implementation of prior art;
Fig. 3 is the schematic flow sheet of the detection method of a kind of image touch points of the present invention;
The gray-scale map that Fig. 4 original image that to be the present invention taken by camera converts to;
Fig. 5 is one 3 * 3 pixel region figure before the Fuzzy Processing of the present invention;
Fig. 6 is this 3 * 3 pixel region figure after the Fuzzy Processing of the present invention;
Fig. 7 is the image synoptic diagram after the Fuzzy Processing of the present invention;
Fig. 8 is the image synoptic diagram after the present invention subtracts each other processing;
Fig. 9 is the image synoptic diagram that directly carries out binary conversion treatment after the Fuzzy Processing of the present invention;
Figure 10 is the final touch point image synoptic diagram of the present invention.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the present invention is described in further detail, but embodiments of the present invention are not limited thereto.
Embodiment
A kind of pick-up unit of image touch points, this device comprises:
Image conversion unit is used for converting the original image that infrared camera is taken to gray-scale map and preserving, and simultaneously gray-scale map is carried out Fuzzy Processing, and with after gray-scale map before the Fuzzy Processing and the Fuzzy Processing gray-scale map send to image and remove the unit;
Image is removed the unit, be used for after gray-scale map before the described Fuzzy Processing and the Fuzzy Processing gray-scale map subtract each other and send to graphics processing unit;
Graphics processing unit, the image after being used for described image removed the unit and subtract each other carries out denoising and binary conversion treatment.
As shown in Figure 3, the detection method of a kind of image touch points of the present invention may further comprise the steps:
(1) original image that infrared camera is taken converts gray-scale map to, and preserves this gray-scale map;
(2) gray-scale map in the above-mentioned steps (1) is carried out Fuzzy Processing;
(3) gray-scale map after the Fuzzy Processing in gray-scale map described in the step (1) and the step (2) is subtracted each other;
(4) image after subtracting each other in the step (3) is carried out denoising;
(5) image after the denoising in the step (4) is carried out binary conversion treatment, obtain final touch point image.
Fig. 4 is the gray-scale map that is converted to by the original image that camera is taken, and gray scale is quantified as 8, and the gray-scale value of pixel is between 0-255.
The Fuzzy Processing of step (2), specifically be meant, set a regional extent, obtain the average gray value of this regional extent interior pixel, and assign it to that pixel at center in this zone, each pixel in the image is carried out same processing, and promptly the gray-scale value of each pixel after the Fuzzy Processing is the average gray value in preceding its respective regions scope of Fuzzy Processing.In the present embodiment, set one 3 * 3 pixel region scope, ask for the average gray value of regional extent interior pixel
Wherein, Z
1Z
9The gray-scale value of interior 9 pixels in expression zone is composed average gray value a that pixel to center in the zone then.As shown in Figure 5, it is one 3 * 3 a pixel region before the Fuzzy Processing, and Fig. 6 then is this 3 * 3 pixel region after the Fuzzy Processing.
After the Fuzzy Processing through step (2), " sharply " that reduced gradation of image changes, that is to say, in image with the zone in all more approaching pixel of other grey scale pixel value respectively, compare after the Fuzzy Processing with before the Fuzzy Processing, change all smaller; And in the image with the zone in each other grey scale pixel value differ bigger pixel, just significantly edge contour or noise spot place etc. in the image after the Fuzzy Processing, compare before its gray-scale value and the Fuzzy Processing, variation will be apparent in view.Figure 7 shows that the image after the Fuzzy Processing.
The less pixel of gray-value variation before and after the Fuzzy Processing, as no touch place and fuzzy palm shape place, after the described image subtraction processing of step (3), it is very little that gray-scale value will become, even be 0, therefore can eliminate the interference of fuzzy palm shape in the photographic images; Relative, significantly edge contour place and noise spot place pixel because gray-value variation is apparent in view after the Fuzzy Processing in step (2), after the phase reducing through step (3), can remain.Figure 8 shows that the image after the present invention subtracts each other processing.
After handling through the image subtraction of step (3), noise spot still exists, if directly carry out binary conversion treatment, result as shown in Figure 9, the noise in the image will cause interference to the judgement of touch point.
Therefore, before binary conversion treatment, can add the denoising of step (4).Wherein, present embodiment adopts mean filter to carry out denoising, and its principle is the same with Fuzzy Processing, sets a regional extent, gets the average gray value of regional extent interior pixel, and assigns it to that pixel at center in this zone.Each pixel in the image is carried out same processing.Because noise spot is isolated pixel, therefore, average gray value can be more much smaller than the pixel value at noise spot place in the zone, by getting the average gray value of regional extent interior pixel, and assign it to that pixel at center in this zone, can reduce the gray-scale value at noise spot place greatly.
After the denoising through step (4), image is carried out binary conversion treatment, promptly set a gray threshold, find out the pixel of gray-scale value, and its gray-scale value is set to 255 greater than gray threshold; Find out the pixel that gray-scale value is less than or equal to gray threshold, and its gray-scale value is set to 0.As shown in figure 10, it is final touch point image.Wherein, set gray threshold can be provided with according to actual environment, or the frequency that occurs according to each gray-scale value in image, chooses the gray threshold of the gray-scale value of certain frequency in the image as binary conversion treatment automatically.
The foregoing description is a preferred implementation of the present invention; but embodiments of the present invention are not limited by the examples; other any do not deviate from change, the modification done under spirit of the present invention and the principle, substitutes, combination, simplify; all should be the substitute mode of equivalence, be included within protection scope of the present invention.
Claims (6)
1, a kind of detection method of image touch points is characterized in that, may further comprise the steps:
(1) original image that infrared camera is taken converts gray-scale map to, and preserves this gray-scale map;
(2) gray-scale map in the above-mentioned steps (1) is carried out Fuzzy Processing;
(3) gray-scale map after the Fuzzy Processing in gray-scale map described in the step (1) and the step (2) is subtracted each other;
(4) image after subtracting each other in the step (3) is carried out denoising;
(5) image after the denoising in the step (4) is carried out binary conversion treatment, obtain final touch point image.
2, the detection method of a kind of image touch points according to claim 1, it is characterized in that: the Fuzzy Processing in the described step (2), specifically be meant and set a regional extent, ask the average gray value of regional extent interior pixel, and this average gray value composed that pixel to center in this zone, each pixel in the image is carried out same processing, make the gray-scale value of each pixel after the Fuzzy Processing be the average gray value in its respective regions scope before the Fuzzy Processing.
3, the detection method of a kind of image touch points according to claim 2 is characterized in that: described regional extent is 3 * 3 pixel region.
4, the detection method of a kind of image touch points according to claim 1, it is characterized in that: the denoising in the described step (4) specifically is meant and utilizes in mean filter, adaptive wiener filter, median filter, the morphology noise filtering one or more to carry out denoising.
5, the detection method of a kind of image touch points according to claim 1 is characterized in that: the binary conversion treatment in the described step (5), and choosing of its gray threshold may further comprise the steps:
The frequency that each gray-scale value occurs in a, the computed image;
The gray-scale value of certain frequency is as the gray threshold of binary conversion treatment in b, the selection image.
6, a kind of pick-up unit of image touch points is characterized in that, this device comprises:
Image conversion unit is used for converting the original image that infrared camera is taken to gray-scale map and preserving, and simultaneously gray-scale map is carried out Fuzzy Processing, and with after gray-scale map before the Fuzzy Processing and the Fuzzy Processing gray-scale map send to image and remove the unit;
Image is removed the unit, be used for after gray-scale map before the described Fuzzy Processing and the Fuzzy Processing gray-scale map subtract each other and send to graphics processing unit;
Graphics processing unit, the image after being used for described image removed the unit and subtract each other carries out denoising and binary conversion treatment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100399754A CN101571775B (en) | 2009-06-04 | 2009-06-04 | Method and device for detecting image touch points |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009100399754A CN101571775B (en) | 2009-06-04 | 2009-06-04 | Method and device for detecting image touch points |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101571775A true CN101571775A (en) | 2009-11-04 |
CN101571775B CN101571775B (en) | 2011-04-20 |
Family
ID=41231139
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009100399754A Expired - Fee Related CN101571775B (en) | 2009-06-04 | 2009-06-04 | Method and device for detecting image touch points |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101571775B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102012770A (en) * | 2010-11-22 | 2011-04-13 | 广东威创视讯科技股份有限公司 | Image correction-based camera positioning method |
CN102346601A (en) * | 2011-07-01 | 2012-02-08 | 广东威创视讯科技股份有限公司 | Multi-touch display screen device |
CN102880355A (en) * | 2012-09-04 | 2013-01-16 | 广东威创视讯科技股份有限公司 | Method and system for extracting touch light spots based on camera positioning |
CN103135828A (en) * | 2011-11-30 | 2013-06-05 | 义隆电子股份有限公司 | Non-common ground compensation method of touch panel |
CN105760021A (en) * | 2016-03-17 | 2016-07-13 | 周奇 | Method and device for acquiring pressure through fingerprint acquisition |
CN107704125A (en) * | 2017-09-20 | 2018-02-16 | 上海斯雷迪数字科技有限公司 | Touch location device and 3D touches interactive system |
CN111583157A (en) * | 2020-05-13 | 2020-08-25 | 杭州睿琪软件有限公司 | Image processing method, system and computer readable storage medium |
-
2009
- 2009-06-04 CN CN2009100399754A patent/CN101571775B/en not_active Expired - Fee Related
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102012770A (en) * | 2010-11-22 | 2011-04-13 | 广东威创视讯科技股份有限公司 | Image correction-based camera positioning method |
CN102012770B (en) * | 2010-11-22 | 2013-01-09 | 广东威创视讯科技股份有限公司 | Image correction-based camera positioning method |
CN102346601A (en) * | 2011-07-01 | 2012-02-08 | 广东威创视讯科技股份有限公司 | Multi-touch display screen device |
CN103135828A (en) * | 2011-11-30 | 2013-06-05 | 义隆电子股份有限公司 | Non-common ground compensation method of touch panel |
CN103135828B (en) * | 2011-11-30 | 2016-03-23 | 义隆电子股份有限公司 | Non-common ground compensation method of touch panel |
CN102880355A (en) * | 2012-09-04 | 2013-01-16 | 广东威创视讯科技股份有限公司 | Method and system for extracting touch light spots based on camera positioning |
CN102880355B (en) * | 2012-09-04 | 2015-09-09 | 广东威创视讯科技股份有限公司 | Based on touch hot spot extracting method and the system of camera location |
CN105760021A (en) * | 2016-03-17 | 2016-07-13 | 周奇 | Method and device for acquiring pressure through fingerprint acquisition |
CN105760021B (en) * | 2016-03-17 | 2018-09-28 | 周奇 | A kind of method and apparatus that pressure is obtained by fingerprint collecting |
CN107704125A (en) * | 2017-09-20 | 2018-02-16 | 上海斯雷迪数字科技有限公司 | Touch location device and 3D touches interactive system |
CN111583157A (en) * | 2020-05-13 | 2020-08-25 | 杭州睿琪软件有限公司 | Image processing method, system and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN101571775B (en) | 2011-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101571775B (en) | Method and device for detecting image touch points | |
CN102156996B (en) | Image edge detection method | |
TWI363982B (en) | Apparatus for controlling the position of a screen pointer, method of generating movement data and navigation sensor | |
CN101976334B (en) | Anti-interference touch identification method and device | |
Sheik Fareed et al. | Fast adaptive and selective mean filter for the removal of high‐density salt and pepper noise | |
CN108830225B (en) | Method, device, equipment and medium for detecting target object in terahertz image | |
CN105158268A (en) | Intelligent online detection method, system and device for defects of fine-blanked parts | |
Yang et al. | Research and analysis of Image edge detection algorithm Based on the MATLAB | |
CN107991309B (en) | Product quality detection method and device and electronic equipment | |
WO2016068326A1 (en) | Image processing device, character recognition device, image processing method, and program | |
CN114127784A (en) | Method, computer program product and computer readable medium for generating a mask for a camera stream | |
CN114926374B (en) | Image processing method, device and equipment based on AI and readable storage medium | |
US10216973B2 (en) | Method for improving images applicable to fingerprint images | |
CN113019973A (en) | Online visual inspection method for manufacturing defects of ring-pull cans | |
JP7403562B2 (en) | Method for generating slap/finger foreground masks | |
Kiragu et al. | An improved enhancement of degraded binary text document images using morphological and single scale retinex operations | |
JP4612088B2 (en) | Image processing method, coating inspection method and apparatus | |
US8692804B2 (en) | Optical touch system and method | |
CN116109695A (en) | Centroid positioning method and related equipment | |
Tao | Enhanced Canny Algorithm for Image Edge Detection in Print Quality Assessment | |
CN114418848A (en) | Video processing method and device, storage medium and electronic equipment | |
JP5773935B2 (en) | How to classify objects in a scene | |
Cherala et al. | Palm leaf manuscript/color document image enhancement by using improved adaptive binarization method | |
KR101841503B1 (en) | ASL Numbers Recognition Method Using Hierarchical Moment Invariants Based on Edge Image | |
Kashyap et al. | Edge Detection Using Sobel Method With Median Filter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 510670 Guangdong Province, Guangzhou high tech Industrial Development Zone Kezhu Road No. 233 Patentee after: Wei Chong group Limited by Share Ltd Address before: 510663 Guangzhou province high tech Industrial Development Zone, Guangdong, Cai road, No. 6, No. Patentee before: Guangdong Weichuangshixun Science and Technology Co., Ltd. |
|
CP03 | Change of name, title or address | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110420 Termination date: 20180604 |
|
CF01 | Termination of patent right due to non-payment of annual fee |