如何使用Python从图像中读取文本和文本的颜色?

时间:2018-07-27 09:15:37

标签: python-3.x python-imaging-library

我必须阅读文本,但我需要文本的RGB值。我怎么才能得到它? 我正在使用以下代码段阅读文本。 有人可以帮我吗?

from PIL import Image
from pytesseract import image_to_string
print(image_to_string(Image.open('images.png')))

0 个答案:

没有答案
相关问题