chessocr:棋盘的 OCR 应用程序

上传者: 42109178 | 上传时间: 2022-11-09 09:35:32 | 文件大小: 4.33MB | 文件类型: ZIP
棋子 棋盘的 OCR 应用程序 此应用程序的目标是读取图像,检测其中的棋盘并使用 FEN 符号 ( ) 导出它们。 设置东西 virtualenv env source env/bin/activate pip install -r requirements.txt python src/main.py 路线图 完毕 电路板检测 从文件中读取图像 将图像转换为灰度。 考虑到平均图像亮度,转换为黑白。 使用 cv2.findContours 查找轮廓 过滤不相关的轮廓: 面积太小或太大。 高宽比不接近 1。 电路板提取/透视校正 在单独的黑色缓冲区中绘制每个轮廓。 使用标准霍夫变换查找线。 这是迭代完成的,逐渐减小累加器阈值参数,直到恰好有 2 条水平线和 2 条垂直线(具有一定的自由度)。 彼此太近的线将被忽略 使用

文件下载

资源详情

[{"title":"( 40 个子文件 4.33MB ) chessocr:棋盘的 OCR 应用程序","children":[{"title":"chessocr-master","children":[{"title":"src","children":[{"title":"util.py <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"main.py <span style='color:#111;'> 3.67KB </span>","children":null,"spread":false},{"title":"perspective.py <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"line.py <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"board.py <span style='color:#111;'> 989B </span>","children":null,"spread":false},{"title":"extract.py <span style='color:#111;'> 6.33KB </span>","children":null,"spread":false}],"spread":true},{"title":"images","children":[{"title":"canny.png <span style='color:#111;'> 16.09KB </span>","children":null,"spread":false},{"title":"bw.png <span style='color:#111;'> 14.22KB </span>","children":null,"spread":false},{"title":"extracted.png <span style='color:#111;'> 247.58KB </span>","children":null,"spread":false},{"title":"gray.png <span style='color:#111;'> 116.18KB </span>","children":null,"spread":false},{"title":"hough1.png <span style='color:#111;'> 49.64KB </span>","children":null,"spread":false},{"title":"contours_filtered.png <span style='color:#111;'> 306.66KB </span>","children":null,"spread":false},{"title":"contours.png <span style='color:#111;'> 209.64KB </span>","children":null,"spread":false},{"title":"contour_lines_orig.png <span style='color:#111;'> 347.36KB </span>","children":null,"spread":false},{"title":"convex_hull.png <span style='color:#111;'> 324.11KB </span>","children":null,"spread":false},{"title":"contour_individual_bw.png <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false},{"title":"hough2.png <span style='color:#111;'> 46.89KB </span>","children":null,"spread":false},{"title":"contour_lines_bw.png <span style='color:#111;'> 5.90KB </span>","children":null,"spread":false},{"title":"orig.png <span style='color:#111;'> 318.21KB </span>","children":null,"spread":false},{"title":"grid.png <span style='color:#111;'> 157.16KB </span>","children":null,"spread":false},{"title":"perspective.png <span style='color:#111;'> 317.37KB </span>","children":null,"spread":false}],"spread":false},{"title":"requirements.txt <span style='color:#111;'> 13B </span>","children":null,"spread":false},{"title":"examples","children":[{"title":"test9.jpg <span style='color:#111;'> 29.88KB </span>","children":null,"spread":false},{"title":"test8.jpg <span style='color:#111;'> 183.10KB </span>","children":null,"spread":false},{"title":"board3.jpg <span style='color:#111;'> 120.79KB </span>","children":null,"spread":false},{"title":"test2.jpg <span style='color:#111;'> 565.72KB </span>","children":null,"spread":false},{"title":"board2.jpg <span style='color:#111;'> 25.61KB </span>","children":null,"spread":false},{"title":"test1.jpg <span style='color:#111;'> 138.23KB </span>","children":null,"spread":false},{"title":"test6.jpg <span style='color:#111;'> 59.75KB </span>","children":null,"spread":false},{"title":"board1.jpg <span style='color:#111;'> 98.90KB </span>","children":null,"spread":false},{"title":"test4.jpg <span style='color:#111;'> 184.57KB </span>","children":null,"spread":false},{"title":"test10.png <span style='color:#111;'> 72.87KB </span>","children":null,"spread":false},{"title":"test3.jpg <span style='color:#111;'> 514.38KB </span>","children":null,"spread":false},{"title":"test7.jpg <span style='color:#111;'> 138.23KB </span>","children":null,"spread":false},{"title":"test5.jpg <span style='color:#111;'> 37.97KB </span>","children":null,"spread":false},{"title":"board4.jpg <span style='color:#111;'> 27.83KB </span>","children":null,"spread":false}],"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.34KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 559B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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