CN1710596A - Computer picture-arrangement automatic identifying method based on machine vision - Google Patents

Computer picture-arrangement automatic identifying method based on machine vision Download PDF

Info

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
puzzle pieces
jigsaw puzzle
mosaic
angle
pieces
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
Application number
CN 200510026820
Other languages
Chinese (zh)
Inventor
曹其新
顾嘉俊
顾骏
付庄
赵言正
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jiaotong University
Original Assignee
Shanghai Jiaotong University
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 Shanghai Jiaotong University filed Critical Shanghai Jiaotong University
Priority to CN 200510026820 priority Critical patent/CN1710596A/en
Publication of CN1710596A publication Critical patent/CN1710596A/en
Pending legal-status Critical Current

Links

Images

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

Computer picture-arrangement automatic identifying method based on machine vision
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)

1, a kind of computer picture-arrangement automatic identifying method based on machine vision is characterized in that comprising the steps:
1) by the image information of ccd video camera collection picture mosaic workspace, adopt medium filtering to remove picture noise, gray processing processing, adopt threshold segmentation method with jigsaw puzzle pieces and background segment, finish the image pre-service;
2) adopt edge detection algorithm that the adjacent image point that belongs to a slice jigsaw puzzle pieces 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 of jigsaw puzzle pieces thus, and jigsaw puzzle pieces is put the angle θ that needs rotation with respect to positive attitude;
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, and writes down the angle that each matching result and correspondence have turned over nπ 2 , n = 0,1,2,3 ;
5) comparison match result chooses the best matching result of similarity as recognition result, reads the corresponding angle of coupling this time nπ 2 , n = 0,1,2,3 , Simultaneously this is mated the center point coordinate of the center point coordinate of corresponding templates, determine the tram of jigsaw puzzle pieces as jigsaw puzzle pieces;
6) all jigsaw puzzle pieces are finished identification after, the angle of rotating according to the center point coordinate of each jigsaw puzzle pieces and needs α = θ + nπ / 2 , n = 0,1,2,3 Carry out emulation, utilize serial ports after emulation finishes, finish automatic picture mosaic by mechanical arm and restore to the mechanical arm move instruction.
CN 200510026820 2005-06-16 2005-06-16 Computer picture-arrangement automatic identifying method based on machine vision Pending CN1710596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510026820 CN1710596A (en) 2005-06-16 2005-06-16 Computer picture-arrangement automatic identifying method 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 Computer picture-arrangement automatic identifying method 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 Computer picture-arrangement automatic identifying method based on machine vision

Country Status (1)

Country Link
CN (1) CN1710596A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159009B (en) * 2007-11-09 2010-04-21 西北工业大学 Method for detecting bridge from remote sense image
CN1828625B (en) * 2005-02-23 2010-06-16 天时电子股份有限公司 Multi-dimensional antenna in rfid system for reading tags and orientating
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

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1828625B (en) * 2005-02-23 2010-06-16 天时电子股份有限公司 Multi-dimensional antenna in rfid system for reading tags and orientating
CN101159009B (en) * 2007-11-09 2010-04-21 西北工业大学 Method for detecting bridge from remote sense image
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 昆明理工大学 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) Computer picture-arrangement automatic identifying method based on machine vision
CN110866903B (en) Ping-pong ball identification method based on Hough circle transformation technology
Zhang et al. Real-time multiple human perception with color-depth cameras on a mobile robot
CN104036523A (en) Improved mean shift target tracking method based on surf features
CN103593598A (en) User online authentication method and system based on living body detection and face recognition
CN102629318B (en) Fingerprint image segmentation method based on support vector machine
CN108171133A (en) A kind of dynamic gesture identification method of feature based covariance matrix
CN1794262A (en) Method of fast and effective cutting apart vivi iris
CN109800752A (en) A kind of automotive license plate Character segmentation identification algorithm based on machine vision
JP2986455B1 (en) Hand gesture recognition device
CN111993422B (en) Robot axis and hole alignment control method based on uncalibrated vision
CN112329646A (en) Hand gesture motion direction identification method based on mass center coordinates of hand
JP4877810B2 (en) Learning system and computer program for learning visual representation of objects
Li et al. A novel hand gesture recognition based on high-level features
CN103971096A (en) Multi-pose face recognition method based on MB-LBP features and face energy diagram
Lee et al. Hand gesture recognition using orientation histogram
JP7044504B2 (en) Image processing device, image processing method and image processing program
CN113989308A (en) Polygonal target segmentation method based on Hough transform and template matching
CN110084177A (en) Positioning system, method, control system and air-conditioning, storage medium
CN112101293A (en) Facial expression recognition method, device, equipment and storage medium
CN110674751A (en) Device and method for detecting head posture based on monocular camera
Gui et al. Visual image processing of humanoid go game robot based on OpenCV
CN111950452A (en) Face recognition method
Welke et al. Active multi-view object search on a humanoid head
CN114898413A (en) Vein identification method based on image contour direction field under complex background

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