Add possibility to set psm values
I noticed that the program works smoothly, my bravo! Nevertheless, I noticed the classical issue with '1', 'l', 'I', and so on... would it be possible to add the psm parameter to the CLI so that we can try the most common solutions out there (and maybe all other CLI parameters for maximum flexibility)?
Hello @xavier7179 , The psm parameter set to Tesseract is 7, and related to how vobsubocr prepare image. So I don't think it's relevant to expose it to user.
And if this parameter could help OCR, I don't see how it is related to the issue with '1', 'l', 'I'.
Actually, according to many sources, e.g. here or here, it looks like, along with other steps like resizing and similar, for a subset of the issues related to what I wrote, a different value might help.
@xavier7179 can you tried the ajusted version here : https://github.com/gwen-lg/subtile-ocr/tree/psm_single_block And say if it's better for your use case ?
For me it's help, but don't fix all the issues.
First, I installed it with the following command: cargo install --git https://github.com/gwen-lg/subtile-ocr --branch psm_single_block.
second, it looks, based on my tests, it is more accurate than the previous version... still some issues (like 'I' as '!') but improved...
@xavier7179 : Ok, Thank you. I'm not sure if I had this as option, or if I remove the old behavior. I will publish a new version when I would have chosen.