基于KNN算法的手写数字识别研究  被引量:2

Research on Handwritten Numeral Recognition Based on KNN Algorithm

在线阅读下载全文

作  者:赵卫东[1,2] 刘永红 鄢涛[1,2] 于曦 ZHAO Weidong;LIU Yonghong;YAN Tao;YU Xi(Key Laboratory of Pattern Recognition and Intelligent Information Processing of Sichuan Province, Chengdu University, Chengdu 610106, China;School of Information Science and Engineering, Chengdu University, Chengdu 610106, China)

机构地区:[1]成都大学模式识别与智能信息处理四川省高校重点实验室,四川成都610106 [2]成都大学信息科学与工程学院,四川成都610106

出  处:《成都大学学报(自然科学版)》2017年第4期382-384,共3页Journal of Chengdu University(Natural Science Edition)

基  金:四川省科技厅软件科学研究计划(2017ZR0198);四川省科技厅应用基础计划(2016JY0255)资助项目

摘  要:KNN算法用于手写数字识别的时候,需要将待识别的手写数字图像(测试集)与一些已知的手写数字图像(训练集)联合在一起求向量之间的最短距离,才能判断待识别数字图像的分类.设计了一种将测试集图像中的数据与尺寸转换为与训练集图像完全相似的转换算法,并在此基础上,将测试集和训练集都转换成有相同列数量的一维向量,进而求出向量之间的距离,并通过编写Python程序对该算法进行了验证.测试结果表明,该方法对手写数字图像的正确识别率能够达到95%以上.When KNN algorithm is used for handwritten numeral recognition, it is necessary to combine the handwritten numeral images (test set) to be recognized with the known handwritten numeral images (training set) to find the shortest distance between vectors, so that we can identify the classification of digital images to be recognized. This paper designs a transformation method that transforms the data and size of the test set into a completely similar image to the training set. Based on that, the test set and training set are trnns- formed into one-dimensional vectors with the same number of columns, and then the distance between vec-tors is obtained. Finally, the algorithm is verified by writing Python program. Experimental results show that the correct recognition rate of handwritten digital images can reach over 95 % .

关 键 词:KNN PYTHON 训练集 测试集 

分 类 号:TP391.43[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象