CN1710596A - Automatic recognition method of computer jigsaw puzzle based on machine vision - Google Patents
Automatic recognition method of computer jigsaw puzzle based on machine vision Download PDFInfo
- Publication number
- CN1710596A CN1710596A CN 200510026820 CN200510026820A CN1710596A CN 1710596 A CN1710596 A CN 1710596A CN 200510026820 CN200510026820 CN 200510026820 CN 200510026820 A CN200510026820 A CN 200510026820A CN 1710596 A CN1710596 A CN 1710596A
- Authority
- CN
- China
- Prior art keywords
- jigsaw
- piece
- jigsaw puzzle
- angle
- matching
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 230000011218 segmentation Effects 0.000 claims abstract description 6
- 238000003708 edge detection Methods 0.000 claims abstract description 3
- 238000004088 simulation Methods 0.000 claims 2
- 238000007781 pre-processing Methods 0.000 claims 1
- 238000005516 engineering process Methods 0.000 description 6
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000007812 deficiency Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 210000001061 forehead Anatomy 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000013011 mating Effects 0.000 description 1
- 230000007306 turnover Effects 0.000 description 1
Images
Landscapes
- Image Analysis (AREA)
Abstract
Image information collection is carried out for picture mosaic pieces disturbed optionally by camera above mosaic pieces working area. Through a collection card, information is transferred to computer for pretreatment. Using method of edge detection and threshold segmentation determines valid mosaic pieces, as well as picks up location information and angle information of mosaic pieces on the working area. Using location information calculates center of mosaic piece, and using angle information rotates mosaic piece to correct position. The, matching between mosaic piece and template till identifying all mosaic pieces is completed and image is recovered finally. Features are high accuracy, good reliability and fast speed.
Description
Technical field
The present invention relates to a kind of computer picture-arrangement automatic identifying method, obtain image, adopt computer vision technique to realize the automatic identification and the coupling of picture mosaic, belong to Flame Image Process and automatic identification technology field according to image capture device based on machine vision.
Background technology
Along with the continuous progress of world today's computer technology, robot vision has become in the fields such as manufacturing industry, check, document analysis, medical diagnosis and military affairs inalienable part in various intelligence, the autonomous system in conjunction with motion control.Because its importance, some advanced countries classify computer vision research as economy and science are had extensive influence science and the great basic problem of engineering.
Automatically identification is that the core in the robot vision technology also is a difficult point wherein, has obtained utilization widely.Such as automatic identification of literal, car plate and people's face or the like.Its algorithm quantity is many, with strong points, will select suitable automatic identifying method for use for specific recognition objective.
In traditional picture arrangement game, after the number of jigsaw puzzle pieces reaches certain number, can make the difficulty of picture mosaic increase greatly, often relatively working of repetition carried out in a slice picture mosaic meeting, reduced efficient widely.The appearance of automatic identification technology can well address this problem.According to patent retrieval, do not find the similar patent that automatic identification technology is applied to picture mosaic.
Chinese invention patent " automatic face-recognizing digital video system " (application number 01128827.2) has been introduced a kind of method of the people's of identification face, discerns hair, forehead, eyes, nose, face successively according to Markov model.Can discern people's face fast, have characteristics such as discrimination height, speed are fast, reliable operation.If but the method is applied in the identification of picture mosaic, then there is the shortcoming of accuracy of identification deficiency.
Summary of the invention
The objective of the invention is at the deficiencies in the prior art, develop a kind of computer picture-arrangement automatic identifying method, can adopt the method for machine vision that the jigsaw puzzle pieces of upsetting is discerned processing automatically, realize the recovery of picture according to template based on machine vision.
In order to realize this purpose, the present invention adopts the method for machine vision, the video camera that utilization is positioned at top, picture mosaic workspace carries out the image information collection to the jigsaw puzzle pieces of arbitrarily upsetting, information is sent to computing machine through image pick-up card and carries out pre-service, the method of utilization rim detection and Threshold Segmentation is determined effective jigsaw puzzle pieces, and each sheet jigsaw puzzle pieces is extracted positional information and the angle information of jigsaw puzzle pieces in the perform region.Utilize the central point of positional information calculation jigsaw puzzle pieces, utilize angle information that jigsaw puzzle pieces is gone back to positive attitude after, mate with template.According to template matching algorithm, choose the best matching result of similarity as recognition result, determine the tram of jigsaw puzzle pieces, until the identification of finishing all jigsaw puzzle pieces, last restored image.
Method of the present invention is undertaken by following concrete steps:
1. gather the image information of picture mosaic workspace by ccd video camera, adopt medium filtering to remove picture noise, gray processing adopts threshold segmentation method with jigsaw puzzle pieces and background segment, finishes the image pre-service.
2. adopt edge detection algorithm that the adjacent image point that belongs to a slice picture mosaic together is carried out mark, and add up the number of pixels that every jigsaw puzzle pieces comprises.When the number of pixels that comprises when certain jigsaw puzzle pieces is less than setting threshold, then it is judged as invalid jigsaw puzzle pieces, does not carry out subsequent treatment.
3. effective jigsaw puzzle pieces is extracted characteristic quantity, travel through the pixel that this jigsaw puzzle pieces comprises, obtain jigsaw puzzle pieces four jiaos coordinate figure up and down.Calculate the center position coordinate (X of jigsaw puzzle pieces thus
Cen, Y
Cen), and jigsaw puzzle pieces is put the angle θ that needs rotation with respect to positive attitude (both sides level promptly).
4. jigsaw puzzle pieces is rotated after the θ angle forwards positive attitude to and put, use and mate based on the template matching algorithm of similarity and all templates of storage, jigsaw puzzle pieces whenever revolves to turn 90 degrees with template and once mates, write down each matching result and the corresponding angle n pi/2 that has turned over, n=0,1,2,3.
5. the comparison match result selects best that time matching result of similarity as recognition result, reads the corresponding angle n pi/2 of coupling this time, n=0,1,2,3, simultaneously this is mated the center point coordinate of the center point coordinate of corresponding templates as jigsaw puzzle pieces, determine the tram of jigsaw puzzle pieces.
6. after all jigsaw puzzle pieces being finished identification, according to the center point coordinate of each jigsaw puzzle pieces and the angle [alpha]=θ+n pi/2 of needs rotation, n=0,1,2,3 carry out emulation, utilize serial ports to the mechanical arm move instruction after emulation finishes, finish automatic picture mosaic by mechanical arm and restore.
Picture-arrangement automatic identifying method of the present invention is put sample at random by 100 spelling figure and is experimentized, and average accuracy rate is 100%, and be no more than 2s the working time of each identification, has accurately and characteristics fast.
The present invention adopts the automatic identifying method of computer vision, and the jigsaw puzzle pieces upset is realized image acquisition, image recognition, thereby finishes the target of image restoration, has characteristics such as accuracy height, good reliability, speed be fast.Designed method of the present invention can send instruction to mechanical arm after the identification of finishing image, finished the recovery of image by mechanical arm.
Description of drawings
Fig. 1 picture mosaic perform region synoptic diagram.
Fig. 2 jigsaw puzzle pieces position feature synoptic diagram.
Embodiment
Below in conjunction with drawings and Examples technical scheme of the present invention is further described.
(80mm * 80mm) is an identifying object to embodiments of the invention, carries out discerning automatically based on the computer picture-arrangement of machine vision with 5 * 5 jigsaw puzzle pieces.Fig. 1 is the synoptic diagram that jigsaw puzzle pieces is put in the perform region.
Automatic identification specific implementation process of the present invention is as follows:
On the basis of arbitrarily upsetting jigsaw puzzle pieces, video camera carries out the image information collection to the picture mosaic perform region, and image information is sent to computing machine through image pick-up card and carries out the image pre-service: image gray processing; Threshold segmentation method is cut apart background and jigsaw puzzle pieces; Medium filtering is removed picture noise.
After the Threshold Segmentation separating background, utilize the rim detection principle that the pixel that belongs to a slice picture mosaic is carried out mark, and add up the number of the pixel that comprises with a slice picture mosaic.Setting threshold is 500, if the number of pixels that comprises of a slice picture mosaic is less than this threshold value, then with this picture mosaic as noise greatly, be considered as invalid jigsaw puzzle pieces and do not carry out follow-up operation.
For effective jigsaw puzzle pieces, travel through the coordinate that pixel that this jigsaw puzzle pieces comprises is obtained these four summits of jigsaw puzzle pieces, i.e. X
Left, Y
Left, X
Right, Y
Right, X
Top, Y
Top, X
Bottom, Y
BottomAs shown in Figure 2, utilize the central point principle to obtain the position (X of jigsaw puzzle pieces central point
Cen, Y
Cen), obtain jigsaw puzzle pieces simultaneously and put the angle θ that needs rotation with respect to positive attitude (both sides level promptly).
Jigsaw puzzle pieces is rotated the θ angle, promptly turn to after positive attitude puts, use is mated based on the template matching algorithm of similarity and all templates of storage, jigsaw puzzle pieces whenever revolves to turn 90 degrees with template and once mates, corresponding every template is carried out four couplings (90 degree, 180 degree, 270 degree, 0 degree) altogether, to carry out mating for four times four similarities that obtain with every template and compare, therefrom select the best matching result of similarity as jigsaw puzzle pieces and this template.Its similarity and 90 number of times of spending that turn over are recorded one 25 * 25 two-dimensional array.
Travel through this two-dimensional array of 25 * 25, choose the best matching result of similarity as recognition result, the template of this recognition result correspondence is the most similar template of jigsaw puzzle pieces therewith.According to the center position of this template obtain matching the center position information that jigsaw puzzle pieces correctly puts (X '
Cen, Y '
Cen) and last jigsaw puzzle pieces need angle [alpha]=θ+n pi/2 of rotating, n=0,1,2,3 when correctly putting altogether.
Last according to the center position coordinate of each jigsaw puzzle pieces with respect to angle [alpha]=θ+n pi/2 of correctly putting the needs rotation, n=0,1,2,3 carry out picture mosaic emulation, utilize serial ports to the mechanical arm move instruction after emulation finishes, and finish picture mosaic by mechanical arm and restore.
The automatic identifying method of computer vision picture mosaic proposed by the invention can be realized image acquisition, Flame Image Process, image recognition to the jigsaw puzzle pieces of upsetting, thereby finish the target of image restoration.The experimental result accuracy rate is 100%, and be no more than 2s the working time of each identification, has accurately and characteristics fast.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200510026820 CN1710596A (en) | 2005-06-16 | 2005-06-16 | Automatic recognition method of computer jigsaw puzzle based on machine vision |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200510026820 CN1710596A (en) | 2005-06-16 | 2005-06-16 | Automatic recognition method of computer jigsaw puzzle based on machine vision |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1710596A true CN1710596A (en) | 2005-12-21 |
Family
ID=35706837
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200510026820 Pending CN1710596A (en) | 2005-06-16 | 2005-06-16 | Automatic recognition method of computer jigsaw puzzle based on machine vision |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1710596A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101159009B (en) * | 2007-11-09 | 2010-04-21 | 西北工业大学 | A Method for Detecting Bridges from Remote Sensing Images |
CN1828625B (en) * | 2005-02-23 | 2010-06-16 | 天时电子股份有限公司 | Multi-dimensional array radio frequency identification system for reading label and positioning multi-dimensional object |
CN101561249B (en) * | 2009-05-19 | 2011-05-04 | 上海理工大学 | Method for automatically detecting fit dimension of surgical knife blade |
CN103052979A (en) * | 2010-07-06 | 2013-04-17 | 星火有限公司 | Method and system for book reading enhancement |
WO2015024294A1 (en) * | 2013-08-20 | 2015-02-26 | 中山大学 | Method for detecting state of vehicle sun visor |
CN104504712A (en) * | 2014-12-30 | 2015-04-08 | 百度在线网络技术(北京)有限公司 | Picture processing method and device |
CN106504223A (en) * | 2016-09-12 | 2017-03-15 | 北京小米移动软件有限公司 | The reference angle decision method of picture and device |
CN106868229A (en) * | 2017-01-05 | 2017-06-20 | 四川大学 | A kind of device of the leather processed that stretches tight automatically |
CN106971453A (en) * | 2017-04-06 | 2017-07-21 | 深圳怡化电脑股份有限公司 | The method and device of bank note fragments mosaicing |
CN108346129A (en) * | 2018-03-12 | 2018-07-31 | 中国科学院计算技术研究所 | Generating has the method for the picture mosaic segment for obscuring segment |
CN109389148A (en) * | 2018-08-28 | 2019-02-26 | 昆明理工大学 | A kind of similar determination method of image based on improvement DHash algorithm |
CN110125940A (en) * | 2019-06-03 | 2019-08-16 | 上海贽桐机器人科技有限公司 | The industrial robot plate pattern splicing method and system of view-based access control model |
WO2022156390A1 (en) * | 2021-01-22 | 2022-07-28 | 北京字跳网络技术有限公司 | Graphic processing method, apparatus and device, and medium |
-
2005
- 2005-06-16 CN CN 200510026820 patent/CN1710596A/en active Pending
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1828625B (en) * | 2005-02-23 | 2010-06-16 | 天时电子股份有限公司 | Multi-dimensional array radio frequency identification system for reading label and positioning multi-dimensional object |
CN101159009B (en) * | 2007-11-09 | 2010-04-21 | 西北工业大学 | A Method for Detecting Bridges from Remote Sensing Images |
CN101561249B (en) * | 2009-05-19 | 2011-05-04 | 上海理工大学 | Method for automatically detecting fit dimension of surgical knife blade |
CN103052979A (en) * | 2010-07-06 | 2013-04-17 | 星火有限公司 | Method and system for book reading enhancement |
US10220646B2 (en) | 2010-07-06 | 2019-03-05 | Sparkup Ltd. | Method and system for book reading enhancement |
WO2015024294A1 (en) * | 2013-08-20 | 2015-02-26 | 中山大学 | Method for detecting state of vehicle sun visor |
US9424476B2 (en) | 2013-08-20 | 2016-08-23 | Sun Yat-Sen University | Method for detecting a vehicle sunvisor's state |
CN104504712B (en) * | 2014-12-30 | 2017-08-18 | 百度在线网络技术(北京)有限公司 | Image processing method and device |
CN104504712A (en) * | 2014-12-30 | 2015-04-08 | 百度在线网络技术(北京)有限公司 | Picture processing method and device |
CN106504223A (en) * | 2016-09-12 | 2017-03-15 | 北京小米移动软件有限公司 | The reference angle decision method of picture and device |
CN106504223B (en) * | 2016-09-12 | 2019-06-14 | 北京小米移动软件有限公司 | The reference angle determination method and device of picture |
CN106868229A (en) * | 2017-01-05 | 2017-06-20 | 四川大学 | A kind of device of the leather processed that stretches tight automatically |
CN106971453A (en) * | 2017-04-06 | 2017-07-21 | 深圳怡化电脑股份有限公司 | The method and device of bank note fragments mosaicing |
CN106971453B (en) * | 2017-04-06 | 2020-01-14 | 深圳怡化电脑股份有限公司 | Paper money fragment splicing method and device |
CN108346129A (en) * | 2018-03-12 | 2018-07-31 | 中国科学院计算技术研究所 | Generating has the method for the picture mosaic segment for obscuring segment |
CN108346129B (en) * | 2018-03-12 | 2020-07-31 | 中国科学院计算技术研究所 | Method for generating puzzle blocks with confusing blocks |
CN109389148A (en) * | 2018-08-28 | 2019-02-26 | 昆明理工大学 | A kind of similar determination method of image based on improvement DHash algorithm |
CN109389148B (en) * | 2018-08-28 | 2021-11-23 | 昆明理工大学 | An Image Similarity Judgment Method Based on Improved DHash Algorithm |
CN110125940A (en) * | 2019-06-03 | 2019-08-16 | 上海贽桐机器人科技有限公司 | The industrial robot plate pattern splicing method and system of view-based access control model |
WO2022156390A1 (en) * | 2021-01-22 | 2022-07-28 | 北京字跳网络技术有限公司 | Graphic processing method, apparatus and device, and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1710596A (en) | Automatic recognition method of computer jigsaw puzzle based on machine vision | |
CN106156754A (en) | A kind of multi-modal preprocess method of finger based on maximum circumscribed matrix region of interesting extraction and bilateral filtering | |
CN109325444B (en) | A Pose Tracking Method for Monocular Textureless 3D Objects Based on 3D Geometric Model | |
CN110246127A (en) | Workpiece identification and localization method and system, sorting system based on depth camera | |
CN107909604A (en) | Dynamic object movement locus recognition methods based on binocular vision | |
WO2005038715A1 (en) | Face image candidate area search method, face image candidate area search system, and face image candidate area search program | |
CN112906797A (en) | Plane grabbing detection method based on computer vision and deep learning | |
CN110866903A (en) | Ping-pong ball identification method based on Hough circle transformation technology | |
CN103903011A (en) | Intelligent wheelchair gesture recognition control method based on image depth information | |
CN104036523A (en) | Improved mean shift target tracking method based on surf features | |
CN101533467A (en) | Method for identifying a plurality of human postures based on decision tree | |
CN108171133A (en) | A kind of dynamic gesture identification method of feature based covariance matrix | |
JP2986455B1 (en) | Hand gesture recognition device | |
CN105869166A (en) | Human body action identification method and system based on binocular vision | |
CN110046544A (en) | Digital gesture identification method based on convolutional neural networks | |
JP4877810B2 (en) | Learning system and computer program for learning visual representation of objects | |
CN107097256B (en) | A Model-Free Target Tracking Method Based on Vision Incomplete Robot in Polar Coordinates | |
CN106650628A (en) | Fingertip detection method based on three-dimensional K curvature | |
CN113989308A (en) | Polygonal target segmentation method based on Hough transform and template matching | |
Li et al. | A novel hand gesture recognition based on high-level features | |
JP7044504B2 (en) | Image processing device, image processing method and image processing program | |
Hu et al. | Trajectory image based dynamic gesture recognition with convolutional neural networks | |
CN116958083A (en) | Motor car bottom bolt looseness detection method based on robot self-adaptive pose adjustment | |
CN107030690A (en) | A kind of mechanical arm barrier-avoiding method of view-based access control model | |
CN112101293A (en) | Facial expression recognition method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |