# python截取发票图片指定位置并识别 **Repository Path**: sjzjams/python-pytesseract-image_to_string ## Basic Information - **Project Name**: python截取发票图片指定位置并识别 - **Description**: 遍历截图的图片识别数字 - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2021-09-07 - **Last Updated**: 2024-07-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # python截取发票图片指定位置并识别 #### 介绍 遍历发票截图的图片识别数字,批量截取特定条件图片,设置截取图片某部位的坐标,截取生成新的截取图片,然后识别图片上内容。文字识别想要最好的效果需要自己中文字库训练 #### 软件架构 1. python 3.9 2. Tesseract的安装及配置 3. pip 4. pip install cv2、numpy、pytesseract、PIL #### 安装教程 1. Tesseract的安装及配置 2. pip 对应包 3. xxxx #### 使用说明 1. data文件图片测试用 2. img文件存放原发票图 3. img_cut文件存放截图文件 4. 1.py 截图脚本 5. orclist.py 处理图片识别 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)