CN102012770A - Image correction-based camera positioning method - Google Patents
Image correction-based camera positioning method Download PDFInfo
- Publication number
- CN102012770A CN102012770A CN2010105564426A CN201010556442A CN102012770A CN 102012770 A CN102012770 A CN 102012770A CN 2010105564426 A CN2010105564426 A CN 2010105564426A CN 201010556442 A CN201010556442 A CN 201010556442A CN 102012770 A CN102012770 A CN 102012770A
- Authority
- CN
- China
- Prior art keywords
- image
- area
- light spot
- irregular
- camera
- 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 provides an image correction-based camera positioning method, which comprises the following steps of: (1) arranging at least two cameras above a touch screen, and respectively acquiring an original light spot image of a touch pen by using a light spot acquisition module of each camera; (2) performing binarization processing on the acquired original light spot image in the step (1) respectively by using each light spot acquisition module; (3) dividing the image processed in the step (2) into three areas and respectively correcting irregular areas by using an image correction module, and forming a regular rectangular light spot image by the corrected areas; and (4) calculating a horizontal coordinate of a central position of the regular rectangular light spot image by using a data processing module respectively according to the regular rectangular light spot image obtained in the step (3) so as to complete the positioning of the light spot image acquired by each camera. The method can effectively solve the problem of incorrect positioning caused by acquiring light spots through the cameras.
Description
Technical field
The present invention relates to the camera location technology, particularly a kind of camera localization method based on image rectification.
Background technology
At present, human-computer interaction technology is propagated its belief on a large scale, and various touching techniques yield unusually brilliant results.The camera location technology more and more is subjected to people's favor with its distinctive performance.Based on the location technology of camera, be 200910039968.4 Chinese invention patent " locating device of electronic display system and method " as application number, have cost low, realize simple, the characteristics that reaction velocity is fast.But in the camera positioning equipment, have a general problem: in the touch process, mouse point can rock near felt pen (perhaps hand) back and forth, and when felt pen when certain a bit tilts, mouse point is in the position of nib, but a bigger skew is arranged.This is because employing camera location technology is to adopt the center that obtains hot spot, and then be converted by calculating and determine the two dimensional surface coordinate of felt pen position, because surround lighting and otherwise influence, the original hot spot that camera photographs (speck or blackening) brightness is inconsistent, and in the original hot spot, pixel grey scale and binary-state threshold near left and right sides boundary position are close, and maximum affected by environment.Original hot spot like this is after simple image binaryzation, and the boundary position of the two-value hot spot the right and left that obtains exists more serious flicker and skew, and as shown in Figure 1, the width of overall optical spot region will change like this.And the spot center position that is used for exporting to location Calculation is to be determined by the position on hot spot both sides.So, the center position coordinates of hot spot will certainly exist double swerve and skew, thereby causes that the elements of a fix beat around in theoretical position, and it is inaccurate to add reorientation.
Summary of the invention
The shortcoming that the objective of the invention is to overcome above-mentioned prior art provides a kind of camera localization method based on image rectification with not enough.
For reaching above-mentioned purpose, the present invention adopts following technical scheme: the camera localization method based on image rectification may further comprise the steps:
(1) at least two cameras are set above touch screen, the hot spot acquisition module of each camera is gathered the original light spot image of felt pen respectively;
(2) the hot spot processing module is carried out binary conversion treatment to the original light spot image that it collects respectively in step (1);
(3) image after image correction module is handled step (2) respectively is divided into three zones, and irregular area is carried out treatment for correcting respectively, and each zone after the treatment for correcting constitutes a light spot image that is regular rectangular shape;
(4) data processing module according to the light spot image that is regular rectangular shape of step (3) gained, calculates the horizontal ordinate of the center of this light spot image that is regular rectangular shape respectively, finishes the location of the light spot image that obtains by each camera.
Described step (3) specifically may further comprise the steps:
(3-1) image correction module is divided into three zones with the image that step (2) is handled respectively, comprises a rectangular area and two irregular areas that lay respectively at the both sides, rectangular area;
(3-2) two irregular areas are carried out treatment for correcting respectively, and each irregular area is separately converted to the zone of wide rectangle;
(3-3) zone of described two wide rectangles obtains a light spot image that is regular rectangular shape respectively attached to the right and left of rectangular area.
Treatment for correcting in the described step (3-2) specifically comprises:
(3-2-1) choose one of them irregular area, and extract the pixel of this irregular area;
(3-2-2) number of the pixel that is obtained by step (3-1) is calculated the area of this irregular area;
(3-2-3) the relatively area of this irregular area size and preset area value size are if the area size of this irregular area is then proofreaied and correct irregular area greater than the preset area value; Otherwise replace this irregular area with background colour;
(3-2-4), be converted into regular domain to another irregular area execution in step (3-2-1)~(3-2-3).
In the described step (3-2-3), described preset area value satisfies: S
0=a*1, wherein a is the wide of the rectangular area described in the step (3-1).
In the described step (3-2-3), the zone after described irregular area is proofreaied and correct cover with foot: d=S
A/ a, wherein S
ABe the area of this irregular area, a is the wide of the rectangular area described in the step (3-1).
In the described step (2), original light spot image adopts medium filtering, remove picture noise after, again image is carried out Threshold Segmentation; Described threshold values is 5, and greater than 5 pixel, gray-scale value remains unchanged, otherwise is set to background colour for gray-scale value; Adopt statistics with histogram to cutting apart the spot area that obtains at last, and normalization; Employing adds up from the minimum value to the maximal value by gray level to histogram, when accumulation result greater than 0.1 the time, stop to add up, and record gray-scale value at this moment, with this gray-scale value is threshold value, image is carried out binary conversion treatment, be changed to 0 less than the grey scale pixel value of this gray-scale value, otherwise gray-scale value is changed to 255.
The horizontal ordinate of the center that obtains according to described step (4) calculates the touch point coordinate of described felt pen, for follow-up use.
We will remove the jumping that a brings problem of hot spot flicker so to a great extent with the basis of these center horizontal ordinates after overcorrect as ensuing angle calculation and touch point coordinate Calculation.
Compared with prior art, the present invention has following advantage and beneficial effect:
1, the inventive method can effectively solve because of the camera hot spot and obtain the inaccurate problem in the location that causes.
2, the inventive method can be removed the jumping that a brings problem of hot spot flicker to a great extent.
Description of drawings
Fig. 1 is the image synoptic diagram after prior art is handled.
Fig. 2 is the schematic flow sheet of the inventive method.
Fig. 3 is the schematic flow sheet of method step shown in Figure 2 (3).
Fig. 4 is the schematic flow sheet of method step shown in Figure 3 (3-2) treatment for correcting.
Fig. 5 is the hardware structure diagram that method shown in Figure 2 uses.
Fig. 6 is the image synoptic diagram after method shown in Figure 2 is handled.
Embodiment
The present invention is described in further detail below in conjunction with embodiment and accompanying drawing, but embodiments of the present invention are not limited thereto.
Embodiment 1
As shown in Figure 2, this may further comprise the steps based on the camera localization method of image rectification:
(1) three cameras are set above touch screen, the hot spot acquisition module of each camera is gathered the original light spot image of felt pen respectively, and described original light spot image is the bar graph picture;
(2) the hot spot processing module is carried out binary conversion treatment to the original light spot image that it collects respectively in step (1);
(3) image after image correction module is handled step (2) respectively is divided into three zones, and irregular area is carried out treatment for correcting respectively, and each zone after the treatment for correcting constitutes a light spot image that is regular rectangular shape;
(4) data processing module according to the light spot image that is regular rectangular shape of step (3) gained, calculates the horizontal ordinate of the center of this light spot image that is regular rectangular shape respectively, finishes the location of the light spot image that obtains by each camera.
As shown in Figure 5, hot spot acquisition module and hot spot processing module are arranged in the camera circuit of each camera respectively.
Described step (3) specifically may further comprise the steps:
(3-1) as shown in Figure 3, image correction module is divided into three zones with the image that step (2) is handled respectively, comprises a rectangular area 2 and two irregular areas 1, the irregular area 3 that lay respectively at the both sides, rectangular area;
(3-2) irregular area 1, irregular area 3 are carried out treatment for correcting respectively, and each irregular area is separately converted to the zone of wide rectangle;
(3-3) zone of described two wide rectangles obtains a light spot image that is regular rectangular shape respectively attached to the right and left of rectangular area.
As shown in Figure 4, the treatment for correcting in the described step (3-2) specifically comprises:
(3-2-1) choose one of them irregular area, and extract the pixel of this irregular area;
(3-2-2) number of the pixel that is obtained by step (3-1) is calculated the area of this irregular area;
(3-2-3) the relatively area of this irregular area size and preset area value size are if the area size of this irregular area is then proofreaied and correct irregular area greater than the preset area value; Otherwise replace this irregular area with background colour;
(3-2-4), be converted into regular domain to another irregular area execution in step (3-2-1)~(3-2-3).
In the described step (3-2-3), described preset area value satisfies: S
0=a*1, wherein a is the wide of the rectangular area described in the step (3-1).Because hot spot might very little error only occur,, obtain the zone of coming and also level off to zero probably even it is proofreaied and correct.
In the described step (3-2-3), the zone after described irregular area is proofreaied and correct cover with foot: d=S
A/ a, wherein S
ABe the area of this irregular area, a is the wide of the rectangular area described in the step (3-1).
In the described step (2), original light spot image adopts medium filtering, remove picture noise after, again image is carried out Threshold Segmentation; Described threshold values is 5, and greater than 5 pixel, gray-scale value remains unchanged, otherwise is set to background colour for gray-scale value; Adopt statistics with histogram to cutting apart the spot area that obtains at last, and normalization; Employing adds up from the minimum value to the maximal value by gray level to histogram, when accumulation result (accounting for all spot area pixels 10%) greater than 0.1 the time, stop to add up, and record gray-scale value at this moment, with this gray-scale value is threshold value, image is carried out binary conversion treatment, be changed to 0 less than the grey scale pixel value of this gray-scale value, otherwise gray-scale value is changed to 255.
The horizontal ordinate of the center that obtains according to described step (4) calculates the touch point coordinate of described felt pen, for follow-up use.
Image after present embodiment is handled as shown in Figure 6.
The image of three road camera collections obtains the horizontal ordinate of the center of hot spot in the bar graph picture separately after treatment.The image size that camera is taken is 1280*8, and the image pixel color depth is 8, and promptly gray level is 0~255.The background of taking is the frame of black light-absorbing material, and promptly the background of Pai Sheing is a black.Felt pen is a non-black for gray-scale value on image.Because the Flame Image Process mode that three cameras are taken is the same, be that example describes just here to the image of wherein one tunnel camera shooting.
We will remove the jumping that a brings problem of hot spot flicker so to a great extent with the basis of these center horizontal ordinates after overcorrect as ensuing angle calculation and touch point coordinate Calculation.
Embodiment 2
Present embodiment except that following characteristics other features with embodiment 1: in the described step (1), two cameras are set above touch screen.
The foregoing description is a preferred implementation of the present invention; but embodiments of the present invention are not restricted to the described embodiments; 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 (7)
1. based on the camera localization method of image rectification, it is characterized in that, may further comprise the steps:
(1) at least two cameras are set above touch screen, the hot spot acquisition module of each camera is gathered the original light spot image of felt pen respectively;
(2) the hot spot processing module is carried out binary conversion treatment to the original light spot image that it collects respectively in step (1);
(3) image after image correction module is handled step (2) respectively is divided into three zones, and irregular area is carried out treatment for correcting respectively, and each zone after the treatment for correcting constitutes a light spot image that is regular rectangular shape;
(4) data processing module according to the light spot image that is regular rectangular shape of step (3) gained, calculates the horizontal ordinate of the center of this light spot image that is regular rectangular shape respectively, finishes the location of the light spot image that obtains by each camera.
2. the camera localization method based on image rectification according to claim 1 is characterized in that, described step (3) specifically may further comprise the steps:
(3-1) image correction module is divided into three zones with the image that step (2) is handled respectively, comprises a rectangular area and two irregular areas that lay respectively at the both sides, rectangular area;
(3-2) two irregular areas are carried out treatment for correcting respectively, and each irregular area is separately converted to the zone of wide rectangle;
(3-3) zone of described two wide rectangles obtains a light spot image that is regular rectangular shape respectively attached to the right and left of rectangular area.
3. the camera localization method based on image rectification according to claim 2 is characterized in that, the treatment for correcting in the described step (3-2) specifically comprises:
(3-2-1) choose one of them irregular area, and extract the pixel of this irregular area;
(3-2-2) number of the pixel that is obtained by step (3-1) is calculated the area of this irregular area;
(3-2-3) the relatively area of this irregular area size and preset area value size are if the area size of this irregular area is then proofreaied and correct irregular area greater than the preset area value; Otherwise replace this irregular area with background colour;
(3-2-4), be converted into regular domain to another irregular area execution in step (3-2-1)~(3-2-3).
4. the camera localization method based on image rectification according to claim 3 is characterized in that, in the described step (3-2-3), described preset area value satisfies: S
0=a*1, wherein a is the wide of the rectangular area described in the step (3-1).
5. the camera localization method based on image rectification according to claim 3 is characterized in that, in the described step (3-2-3), the zone after described irregular area is proofreaied and correct cover with foot: d=S
A/ a, wherein S
ABe the area of this irregular area, a is the wide of the rectangular area described in the step (3-1).
6. the camera localization method based on image rectification according to claim 1 is characterized in that, in the described step (2), original light spot image adopts medium filtering, remove picture noise after, again image is carried out Threshold Segmentation; Described threshold values is 5, and greater than 5 pixel, gray-scale value remains unchanged, otherwise is set to background colour for gray-scale value; Adopt statistics with histogram to cutting apart the spot area that obtains at last, and normalization; Employing adds up from the minimum value to the maximal value by gray level to histogram, when accumulation result greater than 0.1 the time, stop to add up, and record gray-scale value at this moment, with this gray-scale value is threshold value, image is carried out binary conversion treatment, be changed to 0 less than the grey scale pixel value of this gray-scale value, otherwise gray-scale value is changed to 255.
7. the camera localization method based on image rectification according to claim 1 is characterized in that, the horizontal ordinate of the center that obtains according to described step (4) calculates the touch point coordinate of described felt pen, for follow-up use.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010556442 CN102012770B (en) | 2010-11-22 | 2010-11-22 | Image correction-based camera positioning method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010556442 CN102012770B (en) | 2010-11-22 | 2010-11-22 | Image correction-based camera positioning method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102012770A true CN102012770A (en) | 2011-04-13 |
CN102012770B CN102012770B (en) | 2013-01-09 |
Family
ID=43842956
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010556442 Expired - Fee Related CN102012770B (en) | 2010-11-22 | 2010-11-22 | Image correction-based camera positioning method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102012770B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102207799A (en) * | 2011-07-06 | 2011-10-05 | 圆展科技股份有限公司 | Screen coordinate positioning method and electronic pen |
CN102360417A (en) * | 2011-09-26 | 2012-02-22 | 广东威创视讯科技股份有限公司 | Recognition method of touch screen by use of writing pen |
CN102722296A (en) * | 2012-07-04 | 2012-10-10 | 广东威创视讯科技股份有限公司 | Passive eraser identification method of interactive touch screen |
CN102968208A (en) * | 2012-09-05 | 2013-03-13 | 广东威创视讯科技股份有限公司 | Method and system for selecting adjustment mode of effective area of area array camera positioning image |
CN109976590A (en) * | 2017-12-27 | 2019-07-05 | 上海品奇数码科技有限公司 | A kind of touch control detecting method based on camera |
CN111368819A (en) * | 2017-03-21 | 2020-07-03 | 北京中安未来科技有限公司 | Light spot detection method and device |
CN111640122A (en) * | 2020-05-14 | 2020-09-08 | 长春希达电子技术有限公司 | Light spot positioning and dividing method for LED (light emitting diode) special-shaped display screen based on connected domain |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100442214C (en) * | 2002-10-31 | 2008-12-10 | 微软公司 | Decoding and error correction in 2-d arrays |
CN101571775A (en) * | 2009-06-04 | 2009-11-04 | 广东威创视讯科技股份有限公司 | Method and device for detecting image touch points |
-
2010
- 2010-11-22 CN CN 201010556442 patent/CN102012770B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100442214C (en) * | 2002-10-31 | 2008-12-10 | 微软公司 | Decoding and error correction in 2-d arrays |
CN101571775A (en) * | 2009-06-04 | 2009-11-04 | 广东威创视讯科技股份有限公司 | Method and device for detecting image touch points |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102207799A (en) * | 2011-07-06 | 2011-10-05 | 圆展科技股份有限公司 | Screen coordinate positioning method and electronic pen |
CN102360417A (en) * | 2011-09-26 | 2012-02-22 | 广东威创视讯科技股份有限公司 | Recognition method of touch screen by use of writing pen |
CN102360417B (en) * | 2011-09-26 | 2013-03-20 | 广东威创视讯科技股份有限公司 | Recognition method of touch screen by use of writing pen |
CN102722296B (en) * | 2012-07-04 | 2015-04-29 | 广东威创视讯科技股份有限公司 | Passive eraser identification method of interactive touch screen |
CN102722296A (en) * | 2012-07-04 | 2012-10-10 | 广东威创视讯科技股份有限公司 | Passive eraser identification method of interactive touch screen |
CN102968208B (en) * | 2012-09-05 | 2015-10-07 | 广东威创视讯科技股份有限公司 | Battle array camera positioning image effective coverage, face adjustment way choice method and system |
CN102968208A (en) * | 2012-09-05 | 2013-03-13 | 广东威创视讯科技股份有限公司 | Method and system for selecting adjustment mode of effective area of area array camera positioning image |
CN111368819A (en) * | 2017-03-21 | 2020-07-03 | 北京中安未来科技有限公司 | Light spot detection method and device |
CN111368819B (en) * | 2017-03-21 | 2023-05-30 | 北京中安未来科技有限公司 | Light spot detection method and device |
CN109976590A (en) * | 2017-12-27 | 2019-07-05 | 上海品奇数码科技有限公司 | A kind of touch control detecting method based on camera |
CN109976590B (en) * | 2017-12-27 | 2022-04-01 | 上海品奇数码科技有限公司 | Camera-based touch detection method |
CN111640122A (en) * | 2020-05-14 | 2020-09-08 | 长春希达电子技术有限公司 | Light spot positioning and dividing method for LED (light emitting diode) special-shaped display screen based on connected domain |
CN111640122B (en) * | 2020-05-14 | 2023-07-18 | 长春希达电子技术有限公司 | LED special-shaped display screen facula positioning and dividing method based on connected domain |
Also Published As
Publication number | Publication date |
---|---|
CN102012770B (en) | 2013-01-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102012770B (en) | Image correction-based camera positioning method | |
CN102156868B (en) | Image binaryzation method and device | |
WO2013135033A1 (en) | Tunnel deformation online monitoring system based on image analysis and application thereof | |
CN103460249B (en) | Image processing apparatus and image processing method | |
CN106709895A (en) | Image generating method and apparatus | |
CN103335724A (en) | Calibration-based scene self-adaption IRFPA heterogeneity correction method | |
CN103218605A (en) | Quick eye locating method based on integral projection and edge detection | |
CN104268520A (en) | Human motion recognition method based on depth movement trail | |
CN102360427A (en) | Scanning-mode-adjustable text collection method and scanning device | |
CN103793113A (en) | Imaging locating method of optical touch module and optical touch control equipment | |
CN106407973B (en) | It is marked on the Robust identifying method of the AR code on cylinder | |
CN103955499A (en) | Visual experience enhancing method based on instant calculation and dynamic tracing | |
CN104112118A (en) | Lane departure early-warning system-based lane line detection method | |
US9995905B2 (en) | Method for creating a camera capture effect from user space in a camera capture system | |
CN114119437B (en) | GMS-based image stitching method for improving distortion of moving object | |
CN106713739B (en) | Two-dimensional code identification method based on electronic screen display | |
CN102023759B (en) | Writing and locating method of active pen | |
US9778796B2 (en) | Apparatus and method for sensing object, and method of identifying calibration pattern in object sensing apparatus | |
CN103870795A (en) | Automatic detection method and device of video rolling subtitle | |
CN103136517A (en) | Rolling fingerprint image sequence real-time mosaic method based on key column selection | |
CN108961182A (en) | Vertical direction vanishing point detection method and video positive twist method for video image | |
CN108280425A (en) | A kind of quick survey light implementation method based on screen following formula optical fingerprint sensor | |
CN103617601B (en) | Image processing method and device | |
US20120206410A1 (en) | Method and system for generating calibration information for an optical imaging touch display device | |
CN108076365B (en) | Human body posture recognition device |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130109 Termination date: 20141122 |
|
EXPY | Termination of patent right or utility model |