nguyenq / tess4j

Java JNA wrapper for Tesseract OCR API
Apache License 2.0
1.6k stars 373 forks source link

Remove hardcoded support for TIFF from `jai-imageio` #253

Open boris-petrov opened 11 months ago

boris-petrov commented 11 months ago

Hi, thanks for the awesome library!

One issue I hit was that I'm using com.twelvemonkeys.imageio:imageio-tiff instead of com.github.jai-imageio:jai-imageio-core (because I have a number of other image-formats also from Twelve Monkeys so I thought it's best to stick with it). However, tess4j seems to have hardcoded support only for jai-imageio. Is it possible to somehow make it library-agnostic? Or, if that can't be done, to add support for the Twelve Monkeys version?

Thanks!

nguyenq commented 9 months ago

@boris-petrov It would be a challenge since tess4j has hard dependency on jai-imageio-core, which is a widely-used image library. We are not familiar with Twelve Monkeys to say it's possible. If you think you can make it library-agnostic, please submit a PR.

Thanks.