You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello,
i i have task to capture test from image so that i decide to use tesseract
lib,
i have successfully build the library project. and create on another android
project name demoOcr in that i add library project as
tesseract-android-tools-1.00.
following is my activity class.
<code>
public class OcrDemoActivity extends Activity {
private TextView txtData = null;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
txtData = (TextView)findViewById(R.id.txtdata);
File sdcard = Environment.getExternalStorageDirectory();
File from = new File(sdcard, "Pic.jpg");
TessBaseAPI api = new TessBaseAPI();
api.init("/mnt/sdcard/tessdata/", "eng");
api.setImage(from);
txtData.setText(api.getUTF8Text());
}
</code>
i have add tessdata in my sdcard as well as Pic.jpg
but the now probleme is when i run this project in my samsung galaxy tab hust
activity load and finish automatically.
i have seen that on logcat that given error that request time failed:
Java.Net.socketExcepton : Address family not suport by Protocol.
Please Help me out.
What is missing?
Regards.
Milind Kanani
Original issue reported on code.google.com by milind.v...@gmail.com on 9 Sep 2011 at 6:19
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
milind.v...@gmail.com
on 9 Sep 2011 at 6:19The text was updated successfully, but these errors were encountered: