我正在使用tesseract OCR从图像中提取文本。保留文档的结构对我非常重要。目前,tesseract不会保留结构,它实际上会改变文本的顺序。我的输入是下面的图像。
我得到的输出如下:
![input](https://istack.dev59.com/iY2Tb.webp)
Someto the left
Someto the left
Some in the middle
Some in the middle
Some with some tab
Some with some tab
Some with some space between them
Some with some space between them
Sometext here
Sometext here
this much
this much
如何获得与图像中相同结构的所需输出?
即如下所示:
Some text here
Some text here
Some to the left
Some to the left
Some in the middle
Some in the middle
Some with some tab
Some with some tab
Some with some space between them this much
Some with some space between them this much