You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that the files *.pseg.png store the coordinates of the automatic line segmentation. I have seen mention on the Web of the use of GIMP for manipulating these coordinates, but without further details on how this is done. When I open GIMP on these files, I see nothing that shows the segmentation, nor anything that I can edit manually.
For background: I am trying to do OCR for some documents that are in a poor state, with smudges and faded ink, and no matter how much image preprocessing I do, automatic segmentation fails on at least some parts of the page. I see manual adjustment as the only viable way forward. That is, I would like to manually remove lines, add new lines, change the positions of lines, and ideally also change the order of lines, before the actual OCR is done. Can I insert this manual correction into the usual OCRopus workflow?
Thanks in advance for your time.
Mark-Jan Nederhof
The text was updated successfully, but these errors were encountered:
@nederhof I don't think that this is possible since ocropy works on images rather than metadata (i.e. some files indicating the positions of the segments in terms of coordinates). What you could do however is using a 3rd party tool like Transkribus or Aletheia to do the initial layout/line recognition. Both tools offer options for manual post-correction. When your done, export the result, extract the lines from your original images, and run ocropy for text recognition.
Come to think of it, you could also use ocropus-hocr to create hOCR files for your initial recognition. Import them to Aletheia, correct the segmentation, export, rerun ocropy.
Since some time you can now also use masks to help the layout segmentation. I think this is now yet documented well, but you can have a look at the initial pull request.
I know that the files *.pseg.png store the coordinates of the automatic line segmentation. I have seen mention on the Web of the use of GIMP for manipulating these coordinates, but without further details on how this is done. When I open GIMP on these files, I see nothing that shows the segmentation, nor anything that I can edit manually.
For background: I am trying to do OCR for some documents that are in a poor state, with smudges and faded ink, and no matter how much image preprocessing I do, automatic segmentation fails on at least some parts of the page. I see manual adjustment as the only viable way forward. That is, I would like to manually remove lines, add new lines, change the positions of lines, and ideally also change the order of lines, before the actual OCR is done. Can I insert this manual correction into the usual OCRopus workflow?
Thanks in advance for your time.
Mark-Jan Nederhof
The text was updated successfully, but these errors were encountered: