openCV+PYTHON实现的knn算法手写数字识别

上传者: 40051709 | 上传时间: 2019-12-21 20:51:50 | 文件大小: 15KB | 文件类型: rar
机器学习入门KNN算法实现的手写数字识别 基本上照搬了http://lib.csdn.net/article/opencv/30167的代码,只是改了一点bug和增加了一点功能 输入就是直接在一个512*512大小的白色画布上画黑线,然后转化为01矩阵,用knn算法找训练数据中最相近的k个,现在应该是可以对所有字符进行训练和识别,只是训练数据中还只有数字而已,想识别更多更精确的话就需要自己多跑代码多写几百次,现在基本上一个数字写10次左右准确率就挺高了,并且每次识别的时候会将此次识别的数字和01矩阵存入训练数据文件夹中,增加以后识别的正确率,识别错了的话需要输入正确答案来扩充训练数据

文件下载

资源详情

[{"title":"( 90 个子文件 15KB ) openCV+PYTHON实现的knn算法手写数字识别","children":[{"title":"knn","children":[{"title":"a.py <span style='color:#111;'> 244B </span>","children":null,"spread":false},{"title":"draw.pyc <span style='color:#111;'> 94B </span>","children":null,"spread":false},{"title":"knn.pyc <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false},{"title":"trainingDigits","children":[{"title":"6_1.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"5_8.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"5_3.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"1_4.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_6.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"0_2.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"8_3.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"6_3.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"1_9.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"1_0.txt <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"8_5.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"4_8.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_16.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"7_3.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"1_3.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"2_2.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"2_7.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"2_6.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_4.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"4_7.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"4_2.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"1_6.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_8.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"8_4.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"4_9.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"4_11.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"1_8.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_10.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"4_4.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"5_6.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_9.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"2_0.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"0_1.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_7.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"1_5.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"2_3.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"5_2.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"8_2.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"a_3.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"6_8.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"8_6.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"5_5.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"6_5.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"a_1.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"2_1.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_1.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"7_1.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"6_7.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"4_1.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"9_6.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"8_1.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"4_3.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"7_2.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"4_13.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_15.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"1_1.txt <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"0_0.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"1_2.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"9_2.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_11.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"9_1.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"9_5.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_2.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"4_5.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"a_2.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_13.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"5_7.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"2_5.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"6_2.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"6_6.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"0_3.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"2_4.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"5_4.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"9_4.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"5_1.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"4_6.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_5.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_14.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_12.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"9_3.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"3_3.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"4_12.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"4_10.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"1_7.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"6_4.txt <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false}],"spread":false},{"title":"draw.py <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false},{"title":"knn.py <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • 冬日里的篱笆 :
    不错的,还小
    2018-08-09

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明