Font Size: a A A

Recognition Algorithm And Implementation For Chinese-sensible Code

Posted on:2016-05-30Degree:MasterType:Thesis
Country:ChinaCandidate:H SunFull Text:PDF
GTID:2298330467997266Subject:Computational Mathematics
Abstract/Summary:PDF Full Text Request
At present,2D-Code is applied to every field closely related to human life.However, general2D-Code is usually made out by foreign scholars.Not in view ofparticularity of Chinese character, these2D-Codes can hardly apply to some industriesin China. Therefore, we have come up with the2D-Code with independent intellectualproperty rights--Chinese-sensible code. Chinese-sensible code can process informationthat other2D-Codes process and greatly enhance the processing capacity of Chinesecharacters. In the application, Chinese-sensible code is needed printing to invoice insome special industries, for example, Chinese-sensible code on value added tax invoice.Because of abrasion of the tractor,inadequacy of the ribbon of ink or some otherreasons,Chinese-sensible code printed may result in warp, stretch or colour streaks.These problems may manifest themselves in the identification. So it is very difficult torecognize directly in use of general2D-Code recognition technology.In order to dealwith these problems, it is very important to develop a kind of special Chinese-sensiblecode recognition technology.The work of this article mainly includes the following several parts:Firstly,this aricle introduced the basic theory and decoding rule of Chinese-sensible code,the domestic and international research development status of2D-Code and the research objectives and significance.Secondly, this paper proposes an algorithm to deal with how to fix Chinese-sensiblecode’s location accurately, basing on the OpenCV library. Its core idea is detectingrectangle contour. We accomplish the objective via a series of processing containingcorrosion, expansion, Canny edge detection, binarization, Convex quadrilateralapproximation and so on, detecting rectangle contour position.For a image with acertain angle of inclination and a less-disruptive rectangular frame, the recognition rateof this algorithm is very good.Thirdly, an algorithm that integral is along the axis direction for value added taxinvoice is made out. The direction of the max fixed length interval integral is found toroughly locate the code image.In general,the code image printed on the invoice may have some slope but the slope of line code diagram could be in a fixed range.In thisrange,we can choose several slopes and based on the slope of the straight line axisrectangular coordinate system is established.And then, the max Y axis fixed lengthinterval integral is found along the X axis points again.Different slopes arecorresponding to differen max integral and the slope corrresponding to the largest ofmax integral is the best slope of lateral axis.Further,we need to find out the best slopeof X and Y axis when mutiplying the slope of X axis by he slope of Y axis to get–1.Rotating original image according to the best slope we got to make the edge of the codeimage and coordinate axis horizontal.And then we apply to the algorithm of dete ctingrectangle contour to accurately locate Chinese-sensible code.Finally,we need to treat standardized Chinese-sensible code as histogram equaliza-tion, median filteringy. And then we must estimate whether there is some shapechange in the code image by finder pattern and alignment pattern.If there are somechanges,we can make the image to the theoretical positions by transformation.At last,griding method is needed to decide the module of gray-scale properties,and then“0”、“1” date stream can be made out.
Keywords/Search Tags:fixed length interval integral, detect rectangle contour, recognition
PDF Full Text Request
Related items