Tesseract on simple image

157 views
Skip to first unread message

Test

unread,
Sep 16, 2014, 9:00:48 PM9/16/14
to tesser...@googlegroups.com
Hello,
This is my first time using tesserect (3.0.2) and I am testing using what I thought was a simple image with some text:



However, the output does not come out as I expected.  I tried a few different -psm modes but the best I can get is using -psm 6 which results in the below.  Is that the best I can get or am i missing something that can improve the results?

Thanks.

using System;
using System.Col1ections.Generic;
using System. Linq;
using System.Text;
using System.Threading.Tasks;
using System.|A|indows;
using System.|A|indows.Contr‘ols;
using System.|A|indows.Data;
using System.|A|indows.Documents;
using System.|A|indows.Input;
using System.|A|indows.Media;
using System.|A|indows.Media.Imaging;
using System.|A|indows.Navigation;
using System.|A|indows.Shapes;
namespace wpfApp1ication1
{

/// <summar*y>

/// Interaction logic for Mainlnlindmmxaml

/// </summary>

public partial class Mainwindow : window

{

plublic Mainwindow()
{
Initia1izeComponent();
}

}

}



Test

unread,
Oct 7, 2014, 11:19:30 PM10/7/14
to tesser...@googlegroups.com
Any pointers here?  Maybe something to get me going on this simple image and then I can work on things a bit more complicated.

Quan Nguyen

unread,
Oct 8, 2014, 7:51:08 PM10/8/14
to tesser...@googlegroups.com
Rescaling to 300DPI would help.

Robert Komar

unread,
Oct 9, 2014, 12:33:47 PM10/9/14
to tesser...@googlegroups.com
On Wed, 8 Oct 2014, Quan Nguyen wrote:

> Rescaling to 300DPI would help.

The DPI is confusing if you're not running a scanner,
and the minumum only applies to typical font sizes.
It's the size of the characters in pixels that is
important. Perhaps the wiki page should have some
images for the minumum and maximum character sizes.
The newb could display his image at 100% scale and
compare the character sizes to those on the web page.
If they aren't within the range, they should rescale
the image.

Cheers,
Rob Komar
Reply all
Reply to author
Forward
0 new messages