我一直在用 Tesseract OCR 试验 latley。我能够在图像中找到字符,但我无法仅找到图像中的粗体字符(知道文档图像中的字符是否为粗体)。我在 Tesseract API 中看到了另一个问题(我可以使用 OCR 来检测字体样式(粗体、斜体)吗?)中提到的函数 WordFontAttributes() ,但我无法在 Python 中实现它。
python ocr tesseract
ocr ×1
python ×1
tesseract ×1