keenua / OCR

C# optical character recognition library
30 stars 10 forks source link

Стандартная картинка не распознается #2

Open Radzhab opened 7 years ago

Radzhab commented 7 years ago

Закинул картинку из папки с кодом. Не распознает его. Выдает пустую строку

 TextRecognition tr = new TextRecognition();

            // Create a standard windows font, Tahoma 8px
            var font = new StandardFont("Tahoma", 8, FontStyle.Regular);

            // Add it to the engine
            tr.AddFont(font);

            // Load an image
            Bitmap image = new Bitmap("your_image.bmp");

            // Recognize text
            string recognized = tr.Recognize("Tahoma#8", image);
SimpleSamples commented 5 years ago

Google translates that to say:

I threw the picture from the folder with the code. Does not recognize it. Produces an empty string

The same happens for me using the current Windows 10. The method:

public string RecognizeText(Bitmap bmp, char[] allowedChars, Color textColor, object maxDiff, int maxColorDiff, Size expand)

executes without error but nothing is put into result.