电子测量技术ELECTRONICMEASUREMENTTECHNOLOGY第45卷第23期2022年12月DOI:10.19651/j.cnki.emt.2210010含打印错位字符的机动车登记证识别算法设计*支中良陈晓荣(上海理工大学光电信息与计算机工程学院上海200082)摘要:目的针对机动车登记证图像打印错位、字符被表格线穿过的问题,基于HALCON机器视觉软件设计了一套字符识别算法。首先将图像倾斜校正、增强、二值化;特定结构腐蚀法提取出表格线,将原图像区域分成表格和字符两部分;在垂直投影分割法基础上提出字符间距合并算法分割出单个字符,其中被表格线穿过的字符会出现断裂。区域检测填充算法指定结构和参数对区域内部和边缘进行检测填充实现断裂拼接。最后基于多层感知器对字符训练并识别,将结果排版并显示到表格。实验结果表明,算法能够对登记证图像进行预处理并识别字符,识别准确率为97.28%。通过上述算法,可极大提升从复杂背景中提取信息的效率。关键词:同色线干扰;倾斜校正;字符提取;字符分割;字符拼接;字符训练中图分类号:TP391文献标识码:A国家标准学科分类代码:520.60DesignofrecognitionalgorithmformotorvehicleregistrationcertificatewithprintedmisplacedcharactersZhiZhongliangChenXiaorong(SchoolofOptical-ElectricalandComputerEngineering,UniversityofShanghaiforScienceandTechnology,Shanghai200082,China)Abstract:GoalAimingattheproblemthattheimageofmotorvehicleregistrationcertificateisprintedincorrectlyandthecharactersarecrossedbylines,asetofcharacterrecognitionalgorithmisdesignedbasedonHalconmachinevisionsoftware.MethodFirstly,theimageistiltcorrected、enhanced、binarized;Extractionoftablelinesbyspecificstructurecorrosionmethod,theoriginalimageareaisdividedintotwoparts:tableandcharacter;Basedontheverticalprojectionsegmentationmethodandthecharacterspacingmergingalgorithm,asinglecharacterissegmented,inwhichthecharacterscrossedbythetablelinewillhaveobviousfracture.Theregiondetectionandfillingalgorithmspecifiesthestructuralelementsandparameterstodetectandfilltheinternalandedgefracturesoftheregiontorealizefracturesplicing.Finally,thesplicedcharactersaretrainedandrecognizedbasedonmulti-layerperceptron,andtheresultsaretypesetanddisplayedinthetable.ResultExperimentalresultsshowthatthealgorithmc...