mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-22 18:47:51 +08:00
10 lines
243 B
Python
10 lines
243 B
Python
from PIL import Image
|
|
import pytesseract
|
|
|
|
# 加载图像
|
|
image = Image.open('../target_img/image_7.jpg')
|
|
# 列出支持的语言
|
|
print(pytesseract.get_languages(config=''))
|
|
text = pytesseract.image_to_string(image, lang='chi_sim')
|
|
print(text)
|