目录
整套方案还包括以下博客:
转载请注明出处,谢谢!
1 处理流程
2 结果展示
3 核心要点解读
模板库:模板库主要分为汉字模板库、字母模板库和数字字母模板库,每个模板库的每个字符都是通过取该字符的多张图片平均值得到的;
模式匹配:将归一化的字符二值图像与模板库中的字符二值化图像逐个进行匹配,采用相似度的方法计算车牌字符与每个模板字符的匹配程度,取最相似的就是匹配结果。
4 matlab代码
clear;clc;
close all;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%% 1.读取要识别的车牌字符
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[fn,pn,fi]=uigetfile('矫正后的车牌\*.jpg','选择图片');
char1 = imread(['字符/',fn(1),'.jpg']);
char2 = imread(['字符/',fn(2),'.jpg']);
char3 = imread(['字符/',fn(3),'.jpg']);
char4 = imread(['字符/',fn(4),'.jpg']);
char5 = imread(['字符/',fn(5),'.jpg']);
char6