Code bellow produce exception "Cannot find lib Aspose.OCR 1.0.0.0 ....". It is being catched somewhere inside of ocrEngine.Process() method, but it does not seem normal. I am running Aspose. OCR 1.1 with resources 1.1.
Results of processing Russian image is very horrible and does not contain any decent symbols: "s^ ^ s+ x^ is ^*~-*^- xii$ f-
r* --ln^-----* p**^+-y^*r
o^-^-^--=! s= *=T===^7 ^*-=Ji ii^ v- i riFt iii\ *
I!^---!1-!--!-----\!!11t1t1i~i/<1-*-+-y!**!--^\*-i1+=t++!l-~------**h-t>^rTas-**-c-^*---^----0p^+-j=---
[\!-4!j)]j][jt\!\)\\+i-i-&\-++-/[\]+]\]=!]?!\7]-j-!#-(-!r-[7\!-\iijj-----t-!I\-!^-s\--{-j-!LriL-v--r+--s--+----*!-{--7--<!t/------!77-++!++t
- - - - - - - ="
And what seems strange, that when i remove "english" from language i am getting exception "Alphabet of english language doesn't contains symbol: т " which seems like a valid cyrillic symbol.
I have tried out to recognize same text with FineReader with almost 100% result....
Is there any settings i can play around?
OcrEngine ocrEngine = new OcrEngine();
//set the image
ocrEngine.Image = ImageStream.FromMemoryStream(image, imageStreamFormat);
ocrEngine.Resource = new FileStream(ResourceName, FileMode.Open);
//add language and other attributes
ocrEngine.Languages.AddLanguage(Language.Load("english"));
ocrEngine.Languages.AddLanguage(Language.Load("russian"));
ocrEngine.Config.NeedRotationCorrection = true;
ocrEngine.Config.UseDefaultDictionaries = true;
// ocrEngine.Config.OcrAlgorithmMode = OcrAlgorithmMode.M8PtFontStyles12NEts;
//load the resource file
if (ocrEngine.Process())
{
return ocrEngine.Text;
}
return null;