我正在寻找一种可以使用 OCR 可靠地提取图像左侧(非 ascii 字符)的方法。我有许多类似格式的图像,也显示十六进制数据,我想提取它们。
理想情况下,第一行的输出是:
0005C850 00 00 00 00 等
第四行的输出类似于:
0005C8AA ED 93 A7 8E 等
已经编写了一个传奇的程序来执行此操作。- https://github.com/eighttails/ProgramListOCR。对于 Windows 系统,我在 VM 上运行。
很难找到。
首先,您要将图像转换为 400% 的大小:
转换 -resize 400% source.png source.png
使其成为灰度:
转换 source.png -colorspace 灰色destination.png
将其更改为 tiff 文件:
转换destination.png 目标.tiff
然后,您使用此软件对其进行处理。