I used 'tesseract-android-tool' to add tesseract library.However, I
don't know how to call the methods and do the process.
Also, I want to use 'lang.user-words' but I don't know how to use it.
What I want is that 'character recognition' should be completed to txt-
file by using 'lang.user-words'.
Thus, please explain to me how to use that simple function. Following
sentences are my source codes.
----------------------------------------
public class Capture extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//setContentView(R.layout.main);
TessBaseAPI baseApi = new TessBaseAPI();
baseApi.init("/mnt/sdcard/", "eng");
File file = new File("//mnt//sdcard//tessdata//
phototest.bmp");
//baseApi.setVariable(TessBaseAPI.VAR_ACCURACYVSPEED,"100");
baseApi.setImage(file);
TextView Mytext = new TextView(this);
if(file.exists())
{
Mytext.setText("aaaaaaaaaaa");
}
else
{
Mytext.setText("bbbbbbbbbb");
}
// baseApi.setRectangle(0, 0, 640, 480);
// baseApi.clear();
// Mytext.setText(baseApi.getUTF8Text());
setContentView(Mytext);
}
--------------------------------------------
File file = new File();
setImage(file); //If you turn on the application, the exception
messages pop up.
ps : Could you write a sample code for me to understand that function
well?
Thank you for reading.
--
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en