Read Text from a Gradient image using C# and MODI
I am looking for sample code to read image text from a gradient based
image (example: https://customer.onlinelic.in/LICEPS/Captcha.jpeg) using
C# and MODI.
By default I get an exception "File is empty or corrupted" but it this
possible to first manipulate this image and then read its text, like
changing all colors to white except black background?
Please help !
Code I am using is:
string fname = System.Windows.Forms.Application.StartupPath + "\\cp1.jpeg";
MODI.Document md = new MODI.Document();
md.Create(fname);
md.OCR(MODI.MiLANGUAGES.miLANG_ENGLISH, true, true);
MODI.Image image = (MODI.Image)md.Images[0];
MessageBox.Show(image.Layout.Text, "Text");
No comments:
Post a Comment