话不多说,直接上源代码。其实是很简单的,使用时候如果报缺少包,需要安装对应的包就可以了。
from aip import AipOcr
from PIL import ImageGrab
import pyperclip
file='D:/1.png' #图片存放路径
image = ImageGrab.grabclipboard() #获取剪贴板文件
image.save(...
4年前 (2020-07-05) 820℃
0喜欢
Python使用pip安装第三方包时,默认需要从 https://pypi.org/ 资源库中下载,但是因为种种原因造成下载速度慢,甚至无法下载。这是需要使用国内加速源。
1.国内常见pip源
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://p...
4年前 (2020-02-12) 1017℃
1喜欢