CN104463122A - Seal recognition method based on PCNN - Google Patents

Seal recognition method based on PCNN Download PDF

Info

Publication number
CN104463122A
CN104463122A CN201410746012.9A CN201410746012A CN104463122A CN 104463122 A CN104463122 A CN 104463122A CN 201410746012 A CN201410746012 A CN 201410746012A CN 104463122 A CN104463122 A CN 104463122A
Authority
CN
China
Prior art keywords
image
printed text
seal
skeleton
images
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
CN201410746012.9A
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.)
Sichuan University
Original Assignee
Sichuan 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 Sichuan University filed Critical Sichuan University
Priority to CN201410746012.9A priority Critical patent/CN104463122A/en
Publication of CN104463122A publication Critical patent/CN104463122A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/25Fusion techniques
    • G06F18/253Fusion techniques of extracted features

Abstract

The invention discloses a seal recognition method based on a PCNN. A corresponding experimental environment is created, and a dialog box program is written based on an MFC framework. The size and format of an image to be processed are regulated, and the image to be processed is eroded and dilated; skeleton extraction is carried out on the seal inscription image based on a model of the PCNN to obtain a corresponding seal inscription skeleton; image fusion is carried out on the obtained seal inscription skeleton and the seal inscription image obtained after binarization to obtain a fused image; the Hu moment value of the seal inscription image to be recognized and the Hu moment value of a seal inscription image obtained by stamping through an office-copy standard seal of a system are calculated, wherein a function according to which the Hu moment values of the images can be calculated exists in an OpenCV library; the similarity of the Hu moments of the two images is calculated, seven normalized central moments are averaged to obtain a relatively accurate threshold value according to which whether the two images are matched can be judged, and whether the seal inscription image is true is recognized according to the threshold value.

Description

The seal recognition methods of a kind of Based PC NN
Technical field
The invention belongs to the applied technical field of Digital Image Processing, relate to the seal recognition methods of a kind of Based PC NN.
Background technology
The retrieval of image and relevant processing and identification, present today of explosive increase in quantity of information, more and more highlight its important effect in the social production and daily life of people.The mankind are mainly directly obtained and exchange information by this medium of image.Along with developing rapidly of computer technology and artificial intelligence, the process of digital picture is just being become to the focus of society and academia's research.Retrieval process mode traditionally for image is the shape of being observed image by human eye, size, the information such as color, the central nervous system then through the mankind makes differentiation to it, discrimination is very high, but it is but difficult to the requirement of satisfied current every application in processing speed.
Carry out processing in artificial intelligence for digital picture, machine learning, Digital Image Processing, the association areas such as computer vision have very important application, become the concern direction of Chinese scholars gradually.In recent years, the model having one to be referred to as the artificial neural network of Pulse Coupled Neural Network PCNN (Pulse Coupled Neural Networks) being applied in image procossing just gradually.PCNN model is a kind of biological network model of closely human brain neural network, and at image procossing, image recognition, decision optimization aspect also exists advantage that is different and traditional artificial neural network, has broad application prospects.It simulates biological visual characteristic, has biological background context, is referred to as third generation neural network.As far back as 1999, the Izhikevich mathematically actual biological cell model of Strict Proof was consistent with PCNN model, the coordinate of different just variable.Research shows, the fundamental characteristics that PCNN has has change threshold property, non-linear modulation characteristic, and synchronizing pulse provides phenomenon, capture characteristic, dynamic pulse provides phenomenon, auto-wave characteristic and comprehensive space-time characterisation, image denoising can be applied to, Iamge Segmentation, Image Edge-Detection etc.The important attribute of the synchronous and auto-wave that PCNN has, obtain the concern of researchist, the relevant treatment for digital picture has good effect.
Seal image is because the attribute of its carrying, so it is generally the place appearing at complex background medium, this adds very large difficulty also to the identification of printed text.Further comprises in its background some other with the structure of printed text image similarity, color and the printed text image of these contents are closely similar, cause the difficulty of printed text identification equally.
Traditionally, for the feature of printed text image, because most printed text image covers out corresponding printed text image by the ink paste of redness, traditional extraction to printed text image, directly the red component in the printed text image of original RGB color space can be extracted from the mixed and disorderly shading of seal and complicated background, then entered the process of binaryzation, in the process of process, remove seal as much as possible background, word etc. affect the noise of image information, keep the more intrinsic information of seal.
Utilize traditional step extracted printed text image as follows:
Step 1: based on the experimental situation of putting up, utilizes the architectural feature of printed text image, extracts the red component of printed text image.
Step 2: first carry out gray proces for original printed text image, then carry out the operation of binaryzation, reduces the redundant information of image, convenient process.
Remaining step operates with the experimental procedure 6,7 of the printed text image procossing of above-mentioned Based PC NN.
Summary of the invention
The object of the invention is to the defect overcoming the existence of above-mentioned technology, the seal recognition methods of a kind of Based PC NN is provided, is based upon in Windows operating system platform.Therefore the printed text treatment research of Based PC NN model can utilize the visual integrating and developing platform Visual C++6.0 of Microsoft.MFC basic framework can be built in this Integrated Development Environment, uses MFC framework to build experimental arrangement, and is aided with this computer vision storehouse of increasing income of OpenCV1.0, by relevant algorithm application to in the process of image.Its concrete technical scheme is:
A seal recognition methods of Based PC NN, comprises the following steps:
Step 1: after putting up corresponding experimental situation, just can based on MFC framework write one we test the dialog box program of needs, be convenient to show experimental result.
Step 2: the operation original printed text image being carried out to binaryzation, reduces the redundant information of image, convenient process.
Step 3: size and stylistic regular is carried out to pending image, and in the operation of corroding it and expand.
Step 4: the model of Based PC NN carries out the extraction operation of skeleton to the image of printed text, obtain corresponding printed text skeleton.
Step 5: the printed text image that the binary conversion treatment that the printed text skeleton obtained according to step 4 and step 2 obtain is crossed, by the process that both carry out image co-registration, obtains fused images.
Step 6: the Hu square value calculating the regular seal lid printed text image out that printed text image to be identified and system are kept on file, having in OpenCV storehouse can the function of value of computed image Hu square.
Step 7: the similarity calculating two width image Hu squares, and 7 normalized center squares are averaging obtain one and relatively accurate can judge the threshold value whether two width images mate, differentiate that printed text image is true and false according to threshold value.
Compared with prior art, beneficial effect of the present invention is:
Computer technology is adopted to mate automatically for printed text image, compare with traditional artificial cognition printed text image, eliminate background media when seal is added a cover, a series of people such as uneven and picture noise that may exist of size of exerting oneself when adding a cover with the naked eye carries out the impact observing and judge to cause.Adopt artificial nerve network model to have high fault tolerance and powerful adaptive faculty that biological neural network has, when carrying out image procossing, Pulse-coupled Neural Network Model is the same with Neural Networks System, according to parallel work-flow, image is processed, this makes it possible to the speed greatly improving image procossing.Simultaneously due to the computing power that computing machine is outstanding, the vision mistaken ideas that the vision overcoming people in artificial cognition may exist, the very close target that such as some human eyes cannot judge.The application of neural network model makes printed text image comparatively complicated at background media, when target image is very similar with the image of background, can be separated accurately and the loss of image information can maximizedly be reduced simultaneously, identification for seal image is more accurate, efficiency can be higher, effectively overcome many difficult problems of traditional seal identification, obtain good result.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the seal recognition methods that the present invention is based on PCNN;
Fig. 2 is matching result figure, and wherein, Fig. 2 a. original image, Fig. 2 b. extracts red component image, Fig. 2 c. fused images.
Embodiment
The technological means realized to make the present invention, creation characteristic, reaching object and effect is easy to understand, below in conjunction with accompanying drawing and instantiation, setting forth the present invention further.
In FIG, what identification compared by computing machine is two width images, and a width is the printed text image of keeping on file being stored in computing machine this locality by technological means, and another width is then the printed text image to be identified needing to compare.
Utilize the program of computing machine to process automatically for two width images, first input the printed text image that two width need to compare.
Conveniently two width printed text images are compared, needed to carry out pre-service to printed text image before printed text image is compared, reduce the information that image is unnecessary, pretreated printed text image the background, word etc. of removal seal as much as possible can affect the noise of image information while retaining original image information to greatest extent, improves the precision of printed text identification.
Be input in PCNN neural network model by printed text image good for pre-service, obtain the printed text skeleton after process refinement, the fusion then carrying out image with the printed text image of binaryzation obtains finally wanting and printed text of keeping on file carries out the fused images of mating.In traditional matching and recognition method, in view of general seal is all using the color of redness as ink paste, therefore in traditional method, usually be all by extracting the simple profile obtaining image to the component of image red channel, and then printed text image is compared, draw matching result, as shown in Figure 2.
Can see in the image obtained based on traditional extraction printed text red component passage and the fused images taking neural network model process to obtain herein.Utilize the function inside the experimental situation of putting up to the Hu of digital picture not bending moment calculate, on the basis of great many of experiments, setting threshold value, draws the similarity of identical printed text image Hu square, finally draws matching result.
After obtaining fused images, the theory of digital picture not bending moment is utilized to carry out match cognization for printed text image.
The main principle of bending moment comes from several squares of the insensitive fundamental region of image conversion as shape facility.Not bending moment not what definition in the physical significance of image, definition just in pure mathematics, when a width consecutive image, supposes that the function of image is f (x, y), so the p+q rank geometric moment (i.e. standard square) of image just can be defined as:
m pq = ∫ - ∞ ∞ ∫ - ∞ ∞ x p y p f ( x , y ) dxdy , p , q = 0,1,2 . . . . - - - ( 1 )
The centre distance of p+q can be defined as
μ pq = ∫ - ∞ ∞ ∫ - ∞ ∞ ( x - x ‾ ) p ( y - y ‾ ) q f ( x , y ) dxdy , p , q = 0,1,2 . . . . - - - ( 2 )
Wherein with the center of gravity of y representative image.
x ‾ = m 10 m 00 - - - ( 3 )
y ‾ = m 10 m 00 - - - ( 4 )
For the digital picture of discrete type, summation number can be adopted to replace integration:
m pq = Σ y = 1 N Σ x = 1 M x p y q f ( x , y ) , p , q = 0,1,2 . . . . - - - ( 5 )
μ pq = Σ y = 1 N Σ x = 1 M ( x - x ‾ ) p ( y - y ‾ ) q f ( x , y ) dxdy , p , q = 0,1,2 . . . . - - - ( 6 )
Here we are height and the width of image to their definition to N and M;
Center square after normalization can be defined as:
η pq = μ pq / ( μ 00 ρ ) - - - ( 7 )
Wherein ρ = ( p + q ) 2 + 1 - - - ( 8 )
Second order and three normalization center, rank squares are utilized to construct 7 not bending moment M1-M7:
M1=η 2002(9)
M2=(η 2002) 2+4η11 2(10)
M3=(η 30-3η 12) 2+(3η 2103) 2(11)
M4=(η 3012) 2+(η 2103) 2(12)
M5=(η 30-3η 12)(η 3012)((η 3012) 2-3(η 2103) 2)
+(3η 2103)(η 2103)(3(η 3012) 2-3(η 2103) 2)
(13)
M6=(η 2002)(η 3012) 2-(η 2103) 2)+4η 113012)(η 2103)
(14)
M7=(3η 2103)(η 3012)((η 3012) 2-3(η 2103) 2)-(η 31-3η 12)(η 30
12)(3(η 3012) 2-(η 2103))
(15)
These 7 not bending moment form a stack features amount, Hu.M.K demonstrated them in 1962 and has rotation, zooming and panning unchangeability.Because every width picture has the square of oneself, so for the coupling of two width images, only need several squares of comparison two width image whether to mate and just can reach the whether identical object of discriminating image.In the application of reality, it is relatively good that the unchangeability of M1 and M2 keeps, and other several not bending moments then have the larger error of existence.By Hu not bending moment image is identified, the velocity ratio that advantage is identifying is very fast, matching process is uncomplicated, but discrimination is lower, therefore for Hu not bending moment use we be generally all in the enterprising row operation of low-order moment, can by for same regular seal print off the statistical computation of difference of Hu square between the printed text image that comes and masterplate printed text image, can obtain when this difference is less than certain threshold value time, whether just can study and judge two width images is come from same piece of seal lid identical image out, just can identify the true and false of printed text image to be identified whereby.
The present invention compared with artificial cognition seal image, Computerized intelligent carry out mating that better can to reduce the efficiency that artificial cognition occurs low to printed text image, the situation that discrimination is low.With general based on only extracting compared with red channel component in colored printed text images match process, remain the related keyword information of printed text image to a greater extent, the accuracy of the coupling of raising.Application neural network model carries out image procossing, has the parallel characteristics of neural network model, greatly improves the speed of Digital Image Processing.For the Hu square of digital picture, it has rotation, zooming and panning unchangeability, and in the matching process of digital picture, make matching process can not too complex, recognition speed be very fast.Choose Pulse-coupled Neural Network Model can adjust neural network model setting parameter according to different situations simultaneously, optimize the process for digital picture, improve speed and the precision of Digital Image Processing.
The above, be only best mode for carrying out the invention, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses, and the simple change of the technical scheme that can obtain apparently or equivalence are replaced and all fallen within the scope of protection of the present invention.

Claims (1)

1. a seal recognition methods of Based PC NN, is characterized in that, comprise the following steps:
Step 1: after putting up corresponding experimental situation, just can with write based on MFC framework one we test the dialog box program of needs, be convenient to show experimental result;
Step 2: the operation original printed text image being carried out to binaryzation, reduces the redundant information of image, convenient process;
Step 3: size and stylistic regular is carried out to pending image, and in the operation of corroding it and expand;
Step 4: the model of Based PC NN carries out the extraction operation of skeleton to the image of printed text, obtain corresponding printed text skeleton;
Step 5: the printed text image that the binary conversion treatment that the printed text skeleton obtained according to step 4 and step 2 obtain is crossed, by the process that both carry out image co-registration, obtains fused images;
Step 6: the Hu square value calculating the regular seal lid printed text image out that printed text image to be identified and system are kept on file, having in OpenCV storehouse can with the function of the value of computed image Hu square;
Step 7: the similarity calculating two width image Hu squares, and 7 normalized center squares are averaging obtain one and relatively accurate to judge the threshold value whether two width images mate, can differentiate that printed text image is true and false according to threshold value.
CN201410746012.9A 2014-12-09 2014-12-09 Seal recognition method based on PCNN Pending CN104463122A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410746012.9A CN104463122A (en) 2014-12-09 2014-12-09 Seal recognition method based on PCNN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410746012.9A CN104463122A (en) 2014-12-09 2014-12-09 Seal recognition method based on PCNN

Publications (1)

Publication Number Publication Date
CN104463122A true CN104463122A (en) 2015-03-25

Family

ID=52909138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410746012.9A Pending CN104463122A (en) 2014-12-09 2014-12-09 Seal recognition method based on PCNN

Country Status (1)

Country Link
CN (1) CN104463122A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108146093A (en) * 2017-12-07 2018-06-12 南通艾思达智能科技有限公司 A kind of method for removing bill seal
CN108460420A (en) * 2018-03-13 2018-08-28 江苏实达迪美数据处理有限公司 A method of classify to certificate image
CN108681738A (en) * 2018-03-21 2018-10-19 江苏善壶网络科技有限公司 A kind of seal recognition methods and system
CN110223089A (en) * 2019-06-14 2019-09-10 厦门历思科技服务有限公司 A kind of credit identity authentication approach and system and equipment
CN112686236A (en) * 2020-12-21 2021-04-20 福建新大陆软件工程有限公司 Seal detection method with multi-feature fusion

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576956A (en) * 2009-05-11 2009-11-11 天津普达软件技术有限公司 On-line character detection method based on machine vision and system thereof
CN101719216A (en) * 2009-12-21 2010-06-02 西安电子科技大学 Movement human abnormal behavior identification method based on template matching

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576956A (en) * 2009-05-11 2009-11-11 天津普达软件技术有限公司 On-line character detection method based on machine vision and system thereof
CN101719216A (en) * 2009-12-21 2010-06-02 西安电子科技大学 Movement human abnormal behavior identification method based on template matching

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
MING-KUEI HU: "Visual Pattern Recognition by Moment Invariants", 《IRE TRANSACTIONS ON INFORMATION THEORY》 *
尚利峰: "脉冲耦合神经网络在图像处理中的应用", 《中国优秀硕士学位论文全文数据库》 *
张儒良等: "一种基于Hu不变矩的匹配演化算法", 《西南师范大学学报》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108146093A (en) * 2017-12-07 2018-06-12 南通艾思达智能科技有限公司 A kind of method for removing bill seal
CN108460420A (en) * 2018-03-13 2018-08-28 江苏实达迪美数据处理有限公司 A method of classify to certificate image
CN108681738A (en) * 2018-03-21 2018-10-19 江苏善壶网络科技有限公司 A kind of seal recognition methods and system
CN110223089A (en) * 2019-06-14 2019-09-10 厦门历思科技服务有限公司 A kind of credit identity authentication approach and system and equipment
CN112686236A (en) * 2020-12-21 2021-04-20 福建新大陆软件工程有限公司 Seal detection method with multi-feature fusion
CN112686236B (en) * 2020-12-21 2023-06-02 福建新大陆软件工程有限公司 Seal detection method for multi-feature fusion

Similar Documents

Publication Publication Date Title
CN106447658B (en) Conspicuousness object detection method based on global and local convolutional network
CN107862261A (en) Image people counting method based on multiple dimensioned convolutional neural networks
CN104463122A (en) Seal recognition method based on PCNN
CN102314614B (en) Image semantics classification method based on class-shared multiple kernel learning (MKL)
CN108334881B (en) License plate recognition method based on deep learning
CN103208123B (en) Image partition method and system
CN102902956B (en) A kind of ground visible cloud image identifying processing method
CN104504383B (en) A kind of method for detecting human face based on the colour of skin and Adaboost algorithm
CN104134234A (en) Full-automatic three-dimensional scene construction method based on single image
CN107527054B (en) Automatic foreground extraction method based on multi-view fusion
CN104463101A (en) Answer recognition method and system for textual test question
CN108629338A (en) A kind of face beauty prediction technique based on LBP and convolutional neural networks
CN102831389B (en) Facial expression recognition algorithm based on discriminative component analysis
CN103886589A (en) Goal-oriented automatic high-precision edge extraction method
CN110969129A (en) End-to-end tax bill text detection and identification method
CN107945200A (en) Image binaryzation dividing method
CN103440488A (en) Method for identifying pest
CN103984963B (en) Method for classifying high-resolution remote sensing image scenes
CN103810500A (en) Place image recognition method based on supervised learning probability topic model
CN104751153A (en) Scene text recognizing method and device
CN105426924A (en) Scene classification method based on middle level features of images
CN110111365B (en) Training method and device based on deep learning and target tracking method and device
CN103336830B (en) Image search method based on structure semantic histogram
CN106203448A (en) A kind of scene classification method based on Nonlinear Scale Space Theory
WO2020119624A1 (en) Class-sensitive edge detection method based on deep learning

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150325

WD01 Invention patent application deemed withdrawn after publication