ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Unblur image for OCR
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

mauriciopt

Portugal
34 Posts

Posted - Jan 29 2020 :  08:12:11  Show Profile  Reply
Hi,

i would like to correct image for OCR (Transym Software).
How can i unblur the image in attachment?

regards,
Mauricio




Here ' s a comparison with thresold(140) and thresold(24) that a already use:




Mauricio
http://sourceforge.net/projects/tcycomponents/

aleatprog

122 Posts

Posted - Jan 29 2020 :  11:12:56  Show Profile  Reply
ImageEnView.Proc.ConvertToBWThreshold(140);

I tested your image and a value between 100 and 180 should be ok.

Al
Go to Top of Page

mauriciopt

Portugal
34 Posts

Posted - Jan 29 2020 :  13:58:41  Show Profile  Reply
Hi,

thanks for your response.

I already use ImageEnMView.Proc.ConvertToBWLocalThreshold(24);
Using 140 is too long and OCR result is not better.




I would like something not too bold.
Maybe creating a new function specific for OCR jobs that will clear caracters like my image.

Regards,
Mauricio



Mauricio
http://sourceforge.net/projects/tcycomponents/
Go to Top of Page

spetric

Croatia
308 Posts

Posted - Jan 29 2020 :  14:28:26  Show Profile  Reply
Hi,

You can try with unsharp mask tool (TImageEnProc.UnsharpMask).
It's very useful for sharpening blurred images.
Go to Top of Page

mauriciopt

Portugal
34 Posts

Posted - Jan 31 2020 :  16:25:58  Show Profile  Reply
Hi, thanks, i will try.


Mauricio
http://sourceforge.net/projects/tcycomponents/
Go to Top of Page

mauriciopt

Portugal
34 Posts

Posted - Feb 05 2020 :  04:08:44  Show Profile  Reply
Hi,

after some tests, UnsharpMask is not the solution.
I think it would be new function to prepare image for OCR that can "clean" the shape od the caracters.



Mauricio
http://sourceforge.net/projects/tcycomponents/
Go to Top of Page

xequte

38182 Posts

Posted - Feb 05 2020 :  04:40:26  Show Profile  Reply
Hi Mauricio

Try reviewing the Tesseract documentation at:

https://tesseract-ocr.github.io/tessdoc/ImproveQuality


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: