我在黑色背景图像上有黑色文本,我想通过 OCR 阅读它。不幸的是,OCR 无法完美读取。图像看起来像这样。 我想将小于 (90, 90, 90, 255) 的 RGBA 值转换为 (255, 255, 255, 255) 所以它变成黑白。转换它的代码是什么?
python ocr tesseract python-3.x
ocr ×1
python ×1
python-3.x ×1
tesseract ×1