Yes, using best data 

From: Adrian Owen
Sent: Tuesday, October 16, 2018 3:44 PM
To: tesseract-ocr@googlegroups.com
Subject: RE: [tesseract-ocr] Multiple Languages

Are you using the best data: https://github.com/tesseract-ocr/tessdata_best ?

From: tesseract-ocr@googlegroups.com [mailto:tesseract-ocr@googlegroups.com] On 
Behalf Of MariamHi
Sent: 16 October 2018 13:19
To: tesseract-ocr@googlegroups.com
Subject: RE: [tesseract-ocr] Multiple Languages

Result:





SimplifiedArabic

'جوجل 600916 " يستعد لاقتحام أدمغتثا

الاحد 9 سبتمبر 20185

الاقتصادية" من الرياض"

0

هل حدث وأن بحثت عن منتج معين عبر الإنترنت وتفاجأت باقتراحات عديدة لاحقا على 
حسابك في فيسبوك 808500 لشركات توفر منتجات مشابهة؟ الأمر
ليس صدفة؛ ولكن ذلك يندرج ضمن استراتيجيات يتبناها عمالقة التقنية للتأثير في 
قراراتنا الشرائية.

وساهمت الشبكة العنكبوتية في جعل عملية جمع بيانات المستخدمين أكثر سهولة من أي 
وقت مضى؛ء مع ترك هؤلاء لآثارهم الرقمية في العديد من المواقع
والتطبيقات؛ والتي تكون هدفا لشركات التكنولوجيا المدعومة بترسانة من تقنيات 
الذكاء الاصطناعي 10161/19600686 [1101018.

وبيّنت دراسة صادرة عن باحثين في جامعة "برينستون" الأميركية؛ أن 86 ترصد تحركات 
ما يزيد عن ملياري شخص حول العالم؛ ممن يستعملون
أجهزة وهواتف تعمل بنظام التشغيل الشهير "800/0010" بحسب ما ذكرت "5/0/061/5".

وأكد تقرد بر لوكالة الأسوشيتد برس 00658 855108160؛ أن الكثير من خدمات جوجل على 
أجهزة آيفون 10110106 وآندرويد 8001010 تخزّن بيانات

مواقع المستخدمين» حتى وإن قاموا بإيقاف تشغيل خدمات تحديد الموقع الجغرافي بتغيير 
إعدادات الخصوصية المتوفرة في تلك الأجهزة.

From: MariamHi
Sent: Tuesday, October 16, 2018 3:17 PM
To: tesseract-ocr@googlegroups.com
Subject: RE: [tesseract-ocr] Multiple Languages

AUTO give the same result 
I have tried your Resize code and get the same result 
My code:
ResizeImage(image, (int)(image.Width * 3.125), (int)(image.Height * 
3.125),path); // path to save bitmap image to read it in Pix Leptonica
get_text(path + "image.jpg");


public void ResizeImage(Image image, int width, int height,string path)
        {
            var destRect = new Rectangle(0, 0, width, height);
            var destImage = new Bitmap(width, height);

            destImage.SetResolution(image.HorizontalResolution, 
image.VerticalResolution);

            using (System.Drawing.Graphics graphics = 
System.Drawing.Graphics.FromImage(destImage))
            {
                graphics.CompositingMode = CompositingMode.SourceCopy;
                graphics.CompositingQuality = CompositingQuality.AssumeLinear;
                graphics.InterpolationMode = 
InterpolationMode.HighQualityBilinear;
                graphics.SmoothingMode = SmoothingMode.HighQuality;
                graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;

                using (var wrapMode = new ImageAttributes())
                {
                    wrapMode.SetWrapMode(WrapMode.TileFlipXY);
                    graphics.DrawImage(image, destRect, 0, 0, image.Width, 
image.Height, GraphicsUnit.Pixel, wrapMode);
                }
            }
            destImage.Save(path + "image.jpg");
           /// return destImage;
        }
private void get_text(string imageFilePath)
        {
            try
            {
                                string dataPath = 
ConfigurationManager.AppSettings["DataSet"].ToString();
                      string language = "eng+ara";
                       OcrEngineMode oem = OcrEngineMode.DEFAULT;
                       PageSegmentationMode psm = PageSegmentationMode.AUTO;
                       TessBaseAPI tessBaseAPI = new TessBaseAPI(dataPath, 
language, oem, psm);
                       Pix pix = Pix.Read(imageFilePath);
                      
                      
                       pix.XRes = 300;
                       pix.YRes = 300;        
                       if (pix != null)    
                       {
                           tessBaseAPI.SetImage(pix);    
             tessBaseAPI.Recognize();
                           string stringBuilder = tessBaseAPI.GetUTF8Text();
            
                           tessBaseAPI.Dispose();
                           pix.Dispose();
                           textBox2.Text = stringBuilder;
                       }
                       
                   }
                   catch (Exception e)
                   {
                       textBox2.Text = e.Message;
                   }
               }

Result :








-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/5bc5d739.1c69fb81.22161.9b2b%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.
-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/8544a547c2e24c528ac65e3b40a97507%40eesm.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/5bc5dd69.1c69fb81.e22a0.5272%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to