【文件属性】:
文件名称:text_extract_with_textract:使用Python Textract提取文本
文件大小:3KB
文件格式:ZIP
更新时间:2021-04-18 04:57:04
JupyterNotebook
text_extract_with_textract
使用Python Textract提取文本
安装textract
!apt-get install python-dev libxml2-dev libxslt1-dev反词unrtf poppler-utils pstotext tesseract-ocr flac ffmpeg lame libmad0 libsox-fmt-mp3 sox libjpeg-dev swig libpulse-dev
!pip安装textract
我们正在使用的所有其他库均为最新版本
我们只需要三个库来执行任务
从google.colab.patches导入cv2_imshow
导入cv2
导入textract
样本输出:输入图像:
我们首先使用cv2.imread()读取图像,然后找到最大的边框来沿其边缘裁剪名片。 脚步:
重新
【文件预览】:
text_extract_with_textract-main
----TextExtraction (1).ipynb(6KB)
----README.md(2KB)