用Python包将阿拉伯文图像转换成文本的OCR检测技术
ArabicOcr的Python项目详细描述
ArabicOcr软件包,通过ocr技术将任何阿拉伯图像文本转换为文本
关于
Python包将阿拉伯语图像转换为文本
安装
pip install ArabicOcr
or in colab google cloud
!pip install ArabicOcr
获取帧图像的用法
^{pr2}$image_path='1.jpg'
out_image='out.jpg'
results=arabicocr.arabic_ocr(image_path,out_image)
print(results)
words=[]
for i in range(len(results)):
word=results[i][1]
words.append(word)
with open ('file.txt','w',encoding='utf-8')as myfile:
myfile.write(str(words))
import cv2
img = cv2.imread('out.jpg', cv2.IMREAD_UNCHANGED)
cv2.imshow("arabic ocr",img)
cv2.waitKey(0)
教程
你可以在colab中看到教程
https://colab.research.google.com/drive/1ay5KT9Za340_kN7fhS2xuJX8suCigaF6?usp=sharing
- 项目
标签: