【文件属性】:
文件名称:capture:python截图+百度ocr(图片识别)+ 百度翻译
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-04 19:25:59
Python
python截图+百度ocr(图片识别)+ 百度翻译
一直想用python做一个截图并自动翻译的工具,恰好最近有时间就在网上找了资料,根据资料以及自己的理解做了一个简单的截图翻译工具。整理一下并把代码放在github给大家参考。界面用python自带的GUI的tkinter,截图用的是pillow,图片识别用的是百度ocr的api,翻译用的是百度翻译api。
1.3版本更新了可以选择翻译语言
前期准备
python环境
window 10
python3.6
baidu-aip==2.2.18.0
certifi==2019.11.28
chardet==3.0.4
idna==2.8
Pillow==6.2.1
requests==2.22.0
urllib3==1.25.7
安装第三方包
pip install pillow
pip install baidu-aip
百度ocr的ap
【文件预览】:
capture-master
----myCapture1.3.py(9KB)
----requirements.txt(112B)
----myCapture1.2.py(7KB)
----README.md(1KB)