CN103955317B - Automatic positioning method for photoelectricity interaction projective module group - Google Patents

Automatic positioning method for photoelectricity interaction projective module group Download PDF

Info

Publication number
CN103955317B
CN103955317B CN201410177044.1A CN201410177044A CN103955317B CN 103955317 B CN103955317 B CN 103955317B CN 201410177044 A CN201410177044 A CN 201410177044A CN 103955317 B CN103955317 B CN 103955317B
Authority
CN
China
Prior art keywords
step
square
point
position
white
Prior art date
Application number
CN201410177044.1A
Other languages
Chinese (zh)
Other versions
CN103955317A (en
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 锐达互动科技股份有限公司
Priority to CN201410177044.1A priority Critical patent/CN103955317B/en
Publication of CN103955317A publication Critical patent/CN103955317A/en
Application granted granted Critical
Publication of CN103955317B publication Critical patent/CN103955317B/en

Links

Abstract

The invention provides an automatic positioning method for a photoelectricity interaction projective module group. The method comprises the following steps: (1) a completely black picture is projected on a projection plane, and the current picture is stored by a lens; (2) the completely black picture is used as the background, a white square is projected on the left side or the right side of the background, the position of the square is obtained by the lens, and according to the fact that whether the position of the square is on the left or the right of the whole picture obtained by the lens, the situation that whether the interaction projective module group is in front projection or reversed projection is judged; (3) after the judgment of the front projection or the reversed projection is completed, the array of white squares is projected, the point set of the central points of the white square regions in the array are obtained, and in this way, the position of each square in an image of a camcorder lens is obtained; (4) the point set after being sequenced is written into a document, and then the document is transmitted to a driver to inform the driver to complete automatic positioning. Through the adoption of the automatic positioning method, the front/ reversed placement of the photoelectricity interaction projective module group can be judged, interference points due to reflection of light below projection and other factors can be eliminated, and the method can judge and verify the correctness of obtained positioning points.

Description

A kind of method that photoelectricity interaction module is automatically positioned

Technical field

The present invention relates to computer software technical field, the side that more particularly, to a kind of photoelectricity interaction module is automatically positioned Method.

Background technology

Developing rapidly with computer, creates many photoelectricity class products, and the blank module using photovoltaic principals is also got over Come more, for aspect user, calibration coordinate position need not be manuallyd locate, thus having derived the method being automatically positioned, and with The related product of light is often affected by external visible ray, so that the positioning is forbidden or mistake leads to experience or functionally Defect, or simply cannot use.Whether patent application document provides a kind of mode correct to verify the data being automatically positioned, To avoid still to use blank module after positioning.Photoelectricity interaction module generally comprises camera lens, optical filter and shooting Head, this camera lens is used for being directed at perspective plane and obtaining picture, and optical filter is used for the infrared light through specific wavelength, filters other wavelength Infrared light, photographic head is used for gathering image data.

Content of the invention

The technical problem to be solved in the present invention, a kind of method being to provide photoelectricity interaction module to be automatically positioned, energy To photoelectricity interaction module just/judgement put of inverted pendulum, the removal of the noise spot that the factor such as projection lower section is reflective causes, be able to verify that Whether the data being automatically positioned is correct, still cannot use the situation of blank module after avoiding positioning.

The present invention is realized in:A kind of method that photoelectricity interaction module is automatically positioned, methods described include as Lower step:

Step 1, launch a completely black picture on the projection surface, allow the camera lens of photoelectricity interaction module to preserve lower current Picture;

Step 2, a white square is launched for background in left side or right side with completely black picture, camera lens obtains square Position, the Left or right of the image that the position according to square gets in whole Zhang Jingtou, to judge that interaction module is Just throwing or falling to throw;

Step 3, judge to complete just to fall to throw after, then launch the array of white square, obtain each white square area in array The point set of the central point in domain, to obtain each square screen position in camera image with this;

Step 4, sequence after point set write a file, file is transferred to driver, informs that driver is complete One-tenth is automatically positioned.

Further, described step 3 specifically includes:The array of white square is launched on step 31, perspective plane, from photographic head Obtain the position of each white square in image, and obtain the central point of all white portions that photographic head can be seen;

Step 32, get the central point of all white portions after, be first ranked up from small to large with X-coordinate, then sat with Y Mark sorts from small to large, get collated after point set, take out one white on screen with throwing from small to large from point set The equal number of point of color square;

Step 33, do not throw in the equal number of point of same white square by using Convex remaining in point set again Hull algorithm of convex hull is ranked up, and whether the angle being formed further according to every 3 points after sequence is verified close to 180 ° of mode With the presence or absence of other external interference points, it is close to 180 °, there is not noise spot, then enter step 34;Not close to 180 °, exist Noise spot, then be automatically positioned failure, return to step 1;

Step 34, by get in step 32 collated after point set according to X, Y sorts once from small to large, to complete It is automatically positioned.

Further, step 31 is specially:Camera image is RGB image, and background is completely black, i.e. R=0, G=0, B =0;Find out the pixel region more than a given threshold in RGB image, and area and the pixel region exceeding described given threshold, Can obtain the position of each white square, and obtain the position of each white square regional center point, be this white square Corresponding anchor point.

Further, in step 33 when the number of times being automatically positioned failure exceeds set in advance numerical value, inform user Being automatically positioned cannot be successful, points out using manual localization method or some external ambient lights please be avoided to carry out automatically determining again Position.

The invention has the advantages that:The present invention after the central point getting all white portions, first with X-coordinate from Little then sorted from small to large with Y-coordinate to being ranked up greatly, get collated after point set, from small to large from point set Middle taking-up equal number of point of a white square on screen with throwing;Do not throw in same white square phase remaining in point set again It is ranked up by using Convex hull algorithm of convex hull with number point of destination, the angle being formed further according to every 3 points after sequence Mode close to 180 ° to verify whether there are other external interference points, can to photoelectricity interaction module just/inverted pendulum The judgement put, the removal of the noise spot that the factor such as reflective causes below projection, it is able to verify that whether the data being automatically positioned is correct, comes The situation of blank module still cannot be used after avoiding positioning.

Brief description

Fig. 1 is the inventive method schematic flow sheet.

Fig. 2 be judge in the present invention photoelectricity interaction module just/when the image schematic diagram launched.

The schematic diagram of the white square image being projected out when Fig. 3 is automatically positioned for the present invention.

Fig. 4 is the white square point of photographic head capture arrangement set in the picture during failure in the present invention.

Fig. 5 is the white square point arrangement set in the picture of photographic head capture when being proved to be successful in the present invention.

Specific embodiment

Refer to shown in Fig. 1 to Fig. 5, the method that a kind of photoelectricity interaction module of the present invention is automatically positioned, institute The method of stating comprises the steps:

Step 1, launch a completely black picture on the projection surface, allow the camera lens of photoelectricity interaction module to preserve lower current Picture;

Step 2, a white square is launched for background in left side or right side with completely black picture, camera lens obtains square Position, the Left or right of the image that the position according to square gets in whole Zhang Jingtou, to judge that interaction module is Just throwing or falling to throw;(interaction module is placed on scialyscope, and scialyscope has projecting and lower section to keep flat 2 kinds of modes);As Shown in Fig. 2, the left side of the image that the position of square gets in whole Zhang Jingtou, then the position of square get in whole Zhang Jingtou During the left side of image, interaction module is just to throw, conversely, for falling to throw.If the position of square gets in whole Zhang Jingtou The right of image, then, during the right of the image that the position of square gets in whole Zhang Jingtou, interaction module is just to throw, instead It, for falling to throw.

After step 3, judgement complete just to fall to throw, then launch the array of white square (as shown in figure 3, obtaining each white side Position in camera image for the block, that is, drive as coordinate mapping when logical place, the position of this square central point with The position of manual positioning central point is identical, that is, be automatically positioned the operation exactly completing by algorithm that user's needs manually complete), Obtain the point set of the central point in each white square region in array, each square is obtained with this and shields in camera image Curtain position;

Described step 3 specifically includes:The array of white square is launched on step 31, perspective plane, obtains from camera image Take the position of each white square, and obtain the central point of all white portions that photographic head can be seen;Wherein, step 31 is concrete For:Camera image is RGB image, and background is completely black, i.e. R=0, G=0, B=0;Find out in RGB image more than a setting The pixel region of threshold value, for example:Described given threshold is R>160,G>160,B>160, and area and exceed described given threshold Pixel region, this given threshold occurrence be according to camera lens give;The position of each white square can be obtained, and obtain The position of each white square regional center point, is the anchor point corresponding to this white square.

Step 32, get the central point of all white portions after, be first ranked up from small to large with X-coordinate, then sat with Y Mark sorts from small to large, get collated after point set, take out one white on screen with throwing from small to large from point set The equal number of point of color square;(do so can exclude the erroneous point of the reflective generation below projection screen)

Step 33, do not throw in the equal number of point of same white square by using Convex remaining in point set again Hull algorithm of convex hull is ranked up, and whether the angle being formed further according to every 3 points after sequence is verified close to 180 ° of mode With the presence or absence of other external interference points, it is close to 180 °, there is not noise spot, then enter step 34;Not close to 180 °, exist Noise spot, then be automatically positioned failure, (as shown in figure 4, positioning unsuccessfully, then the peripheral point shape that Convex hull algorithm of convex hull is irised out The angle becoming substantially has the combination less than desired value), return to step 1;

Step 34, by get in step 32 collated after point set (RGB that i.e. white square gets in camera lens schemes Position in picture) according to X, Y sorts once from small to large, to complete to be automatically positioned (as shown in figure 5, successfully imaging for positioning The white square point of head capture arrangement set in the picture);

Step 4, sequence after point set write a file, file is transferred to driver, informs that driver is complete One-tenth is automatically positioned.

In addition, in the present invention, in step 33 when the number of times being automatically positioned failure exceeds set in advance numerical value, accuse Knowing that user is automatically positioned cannot be successful, points out using manual localization method or some external ambient lights please be avoided to carry out again It is automatically positioned.

The foregoing is only presently preferred embodiments of the present invention, all impartial changes done according to scope of the present invention patent with Modify, all should belong to the covering scope of the present invention.

Claims (3)

1. a kind of photoelectricity interaction module is automatically positioned method it is characterised in that:Methods described comprises the steps:
Step 1, launch a completely black picture on the projection surface, allow the camera lens of photoelectricity interaction module to preserve and lower current scheme Piece;
Step 2, a white square is launched for background in left side or right side with completely black picture, camera lens obtains the position of square Put, the Left or right of the image that the position according to square gets in whole Zhang Jingtou, to judge that interaction module is just Throw or fall to throw;
Step 3, judge to complete just to fall to throw after, then launch the array of white square, obtain each white square region in array The point set of central point, to obtain each square screen position in camera image with this;Described step 3 specifically includes:Step Rapid 31, the array of white square is launched on perspective plane, obtains the position of each white square from camera image, and obtain and take the photograph Central point as all white portions that head can be seen;
Step 32, get the central point of all white portions after, be first ranked up from small to large with X-coordinate, then with Y-coordinate from Little sort to big, get collated after point set, take out with throwing a white side on screen from small to large from point set The equal number of point of block;
Step 33, do not throw in the equal number of point of same white square by using Convex hull remaining in point set again Algorithm of convex hull is ranked up, and whether the angle being formed further according to every 3 points after sequence verifies whether close to 180 ° of mode There are other external interference points, be close to 180 °, there is not noise spot, then enter step 34;Not close to 180 °, there is interference Point, then be automatically positioned failure, return to step 1;
Step 34, by get in step 32 collated after point set according to X, Y sorts once from small to large, to complete automatically Positioning;
Step 4, sequence after point set write a file, file is transferred to driver, inform driver complete from Dynamic positioning.
2. a kind of photoelectricity interaction module according to claim 1 is automatically positioned method it is characterised in that:Step 31 It is specially:Camera image is RGB image, and background is completely black, i.e. R=0, G=0, B=0;Find out in RGB image more than one The pixel region of given threshold, and area and the pixel region exceeding described given threshold, you can obtain each white square Position, and obtain the position of each white square regional center point, it is the anchor point corresponding to this white square.
3. a kind of photoelectricity interaction module according to claim 1 is automatically positioned method it is characterised in that:Step 33 In when the number of times being automatically positioned failure exceeds set in advance numerical value, informing that user is automatically positioned cannot be successful, and pointing out please Using manual localization method or avoid some external ambient lights to be automatically positioned again.
CN201410177044.1A 2014-04-29 2014-04-29 Automatic positioning method for photoelectricity interaction projective module group CN103955317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410177044.1A CN103955317B (en) 2014-04-29 2014-04-29 Automatic positioning method for photoelectricity interaction projective module group

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410177044.1A CN103955317B (en) 2014-04-29 2014-04-29 Automatic positioning method for photoelectricity interaction projective module group

Publications (2)

Publication Number Publication Date
CN103955317A CN103955317A (en) 2014-07-30
CN103955317B true CN103955317B (en) 2017-02-08

Family

ID=51332598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410177044.1A CN103955317B (en) 2014-04-29 2014-04-29 Automatic positioning method for photoelectricity interaction projective module group

Country Status (1)

Country Link
CN (1) CN103955317B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808020B (en) * 2016-03-04 2018-08-07 锐达互动科技股份有限公司 The method that photoelectricity interaction module excludes light interference outside view field
CN105933684A (en) * 2016-04-19 2016-09-07 深圳市印象科技有限公司 AF method with interactive function and projector

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103435A (en) * 2009-12-18 2011-06-22 深圳市巨龙科教高技术股份有限公司 Interactive electronic whiteboard device and positioning method thereof
CN202167002U (en) * 2011-06-16 2012-03-14 上海易视计算机科技有限公司 Multipoint touch optical electronic whiteboard with auto-correction function
CN102495697A (en) * 2011-12-06 2012-06-13 无锡海森诺科技有限公司 Automatic calibration method and system based on camera type touch control device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006110141A2 (en) * 2005-04-11 2006-10-19 Polyvision Corporation Automatic projection calibration

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103435A (en) * 2009-12-18 2011-06-22 深圳市巨龙科教高技术股份有限公司 Interactive electronic whiteboard device and positioning method thereof
CN202167002U (en) * 2011-06-16 2012-03-14 上海易视计算机科技有限公司 Multipoint touch optical electronic whiteboard with auto-correction function
CN102495697A (en) * 2011-12-06 2012-06-13 无锡海森诺科技有限公司 Automatic calibration method and system based on camera type touch control device

Also Published As

Publication number Publication date
CN103955317A (en) 2014-07-30

Similar Documents

Publication Publication Date Title
JP3722146B1 (en) Projectors and image correction method
CN100426129C (en) Image processing system, projector,and image processing method
US8106949B2 (en) Small memory footprint light transport matrix capture
CN2684494Y (en) The image processing system and projector
KR100602622B1 (en) Image processing system, projector, information storage medium and image processing method
CN100470358C (en) Image processing system, projector,and image processing method
EP1540948B1 (en) Method and system for determining correspondence between locations on display surface having arbitrary shape and pixels in output image of projector
ES2370512T3 (en) Method and appliance to automatically adjust the alignment of a projector with regard to a projection screen.
US7901095B2 (en) Resolution scalable view projection
JP3925521B2 (en) Keystone correction using part of the screen edge
JP2009225432A (en) Light projection device and illumination device
JP2006222857A (en) Image processing system, projector, program, information storage medium, and image processing method
US20030072568A1 (en) Automatic document detection method and system
US8272748B2 (en) Projection-type display apparatus and method for performing projection adjustment
JP2006092516A (en) Calibration of interactive display system
US20070091334A1 (en) Method of calculating correction data for correcting display characteristic, program for calculating correction data for correcting display characteristic and apparatus for calculating correction data for correcting display characteristic
WO2001047285A1 (en) Method and apparatus for calibrating projector-camera system
US20060181686A1 (en) Image processing system, projector, and image processing method
JP2001325069A (en) Device and method for detecting position
US8177373B2 (en) Projector, projected image adjustment method, and program for projecting an image while correcting the shape of the image to project an image at a desired aspect ratio
JP4495041B2 (en) A method for determining projector pixels associated with laser points on a display surface by pinhole projection
JP2005124131A (en) Image processing system, projector, program, information storing medium, and image processing method
US20090067749A1 (en) Calibration Method and Calibration System for Projection Apparatus
US7321839B2 (en) Method and apparatus for calibration of camera system, and method of manufacturing camera system
US8727539B2 (en) Projector and method of controlling projector

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model
CP02 Change in the address of a patent holder

Address after: 350000 6, No. 1 Innovation Park, No. 3 east science and technology road, Minhou street, Minhou, Fuzhou.

Patentee after: Returnstar Interactive Technology Group Co., Ltd.

Address before: 350000 8 tower building, Orange Garden Industrial Park, 618 Jinshan Road, Jianxin Town, Cangshan District, Fuzhou, Fujian.

Patentee before: Returnstar Interactive Technology Group Co., Ltd.

CP02 Change in the address of a patent holder