p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neue"; color: #dca10d }
span.s1 { font: 12.0px ".PingFang SC"; color: #000000 }
span.s2 { font: 12.0px "Helvetica Neue" }
该图片的链接为https://raw.githubusercontent.com/Python3WebSpider/TestTess/master/image.png,可以直接保存或下载。
首先用命令行进行测试,将图片下载下来并保存为image.png,然后用tesseract
命令测试:
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neue" }
tesseract /Users/jerry/Desktop/image.png result -l eng && cat result.txt
运行结果:
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px "Helvetica Neue" }
Tesseract Open Source OCR Engine v4.0.0 with Leptonica
Python3WebSpider
原文地址:https://www.cnblogs.com/jerryspace/p/9887262.html
时间: 2024-11-01 20:36:35