caltechlibrary / handprint

Apply different text recognition services to images of handwritten documents.

Home Page:https://caltechlibrary.github.io/handprint

Repository from Github https://github.comcaltechlibrary/handprintRepository from Github https://github.comcaltechlibrary/handprint

Sometimes text is overwritten

mhucka opened this issue · comments

For reasons that are not clear, sometimes the text output includes multiple words on top of each other. Here's an example:

image

I don't know what's going on here, but this should be fixed.

I think I finally resolved this. The fix (more of a workaround, really) is to lock threads around a certain function call that invokes Matplotlib image manipulation code. I suspect the underlying functions there are not thread safe somehow.

This is fixed in commit 948a473.