Hello, 

I was using THIS <https://www.nuget.org/packages/Tesseract/> NuGet package 
with Visual Studio 2012/C#. English language is working fine. But, when I 
add Serbian language I get THIS 
<https://github.com/charlesw/tesseract/wiki/Error-1-for-details> error. It 
indicates that *srp.traineddata* may be corrupted or targeting the wrong 
version of teserract. Here is my C# code

                using (var engine = new TesseractEngine(Server.MapPath(@
"~/tessdata"), "srp", EngineMode.Default))               
                {                   
                    using (var image = new System.Drawing.Bitmap(imageFile.
PostedFile.InputStream))
                    {
                        using (var pix = PixConverter.ToPix(image))
                        {
                            using (var page = engine.Process(pix))
                            {
                                meanConfidenceLabel.InnerText = String.
Format("{0:P}", page.GetMeanConfidence());
                                resultText.InnerText = page.GetText();
                            }
                        }
                    }
                }

Can anybody tell me what's wrong? Has anyone experienced anything similar?

Thanx

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/ee58f7c0-7733-45b4-94cf-42c88b1878e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to