Giter Club home page Giter Club logo

python-text-recognition's Introduction

python-text-recognition

PyQt5做界面,使用百度文字识别API接口来实现识别图片中的文字,可以采用截图和浏览图片文件方式进行

截图功能使用github的位作者的开源项目https://github.com/SeptemberHX/screenshot

依赖环境:

(1)PyQt5,使用pip install -U pyqt5 -i https://pypi.tuna.tsinghua.edu.cn/simple更新安装,其中 "-i https://pypi.tuna.tsinghua.edu.cn/simple"是使用清华源,加速下载 (2)百度aip pip install -U baidu-aip

使用教程

下载整个软件包后进入src目录,执行 python baidu-api.py

1、可以选择选取图片来识别图中的文字,选取后点击“转换” 2、可以点击“截图”截取想要识别的内容,默认保存截图到目录"./temp/temp.png",然后再 选择"浏览文件"选择刚才的截图,最后点击“转换图片为文字”

有待改进

(1)百度文字识别API需要自己在百度云注册然后建立一个实例来获取,本程序中appid,apikey,screet key可以修改成自己的,但是在界面上修改不了,需要修改代 (2)截图方式和选取图片方式通过一个状态变量来区分,程序稳固性不够强,有时操作错误就会死掉

python-text-recognition's People

Contributors

ouening avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.