Questions tagged [tess-two]

146 questions
25
votes
4 answers

'TAG' has private access in 'android.support.v4.app.FragmentActivity'

Almost everything in my activity is working fine, except for wherever TAG is referenced. TAG gets a red line and says: 'TAG' has private access in 'android.support.v4.app.FragmentActivity'. MainActivity (without imports)- public class MainActivity…
Rushat Rai
  • 743
  • 2
  • 15
  • 31
14
votes
1 answer

Integration issue to tess-two (Tesseract Tools for Android)library into an Android studio and build ndk

I want to import tess-two library in android studio and after compilation it show error in ndk build. I have already tries solution given on stackoverflow. like , Execution failed for task ':app:compileDebugNdk' but it did not resolved my issue.…
Rajan1404930
  • 422
  • 5
  • 15
12
votes
2 answers

Android Tess-Two OCR unmappable character 'fi'

My android app has an OCR functionality using tess-two library. I have this issue in reading the String which contains "fi". After baseApi.getUTF8Text(), a method to get the recognized text by the OCR, the returned String in that "fi" is "fi" …
Sheychan
  • 2,415
  • 14
  • 32
7
votes
7 answers

Could not initialize Tesseract API with language=eng

I am working on an Android app that requires OCR. I have decided to use Tesseract as API but I keep on getting this error: E/Tesseract(native): Could not initialize Tesseract API with language=eng! I have already copied file "eng.traineddata" to…
urpanjwani
  • 71
  • 1
  • 1
  • 4
6
votes
1 answer

tesseract datapath does not exist

I am trying to extract text from any captured image in Android. So I have created an Intent to access the camera and started it with startActivityForResult. This is my onActivityResult code: protected void onActivityResult(int requestCode, int…
Akshansh Jain
  • 297
  • 1
  • 5
  • 19
5
votes
2 answers

Android OCR detecting digits only using popular tessercat fork tess-two

I'm using the popular OCR tessercat fork for android tess-two https://github.com/rmtheis/tess-two. I integrated all the staff and it works etc... But I need to detect only digits, my code for now is: TessBaseAPI baseApi = new…
michael
  • 3,835
  • 14
  • 53
  • 90
4
votes
1 answer

Building tess-two into a project using Android Studio's gradle build

There are answers about getting the tess-two project integrated into an Android project within Android Studio, but many are out-dated and none used the current capabilities defined here: Using Android Studio 2.2 and higher, you can use the NDK to…
4
votes
1 answer

Android OCR: AndrOCR source code error

I am a student working on a school project to create a business card scanner to extract the text from image and display it accordingly by name, phone number, etc into respective text boxes. I have been googling for the past few weeks and found many…
Donovan Tan
  • 326
  • 1
  • 5
  • 16
4
votes
1 answer

Android OCR: Cannot resolve error for getBoundingBox

I am a student and a beginner at android development and is required to do an android OCR function for a Contact Management Application for my school project.This is for transforming the image into text from name cards. I have searched many forums…
Donovan Tan
  • 326
  • 1
  • 5
  • 16
4
votes
1 answer

How to convert Leptonica Pix Object to Android's Bitmap

I have a Leptonica Pix object returned by TessBaseApi.getThresholdedImage(); now, how can I convert it to bitmap so that I can show it through the ImageView. leptonica.android.Pix to android.graphics.Bitmap; I didn't find conversion methods looking…
Aavaas
  • 787
  • 1
  • 7
  • 16
4
votes
1 answer

Including *.so libraries Android Studio tess-two (tesseract)

I have been trying to include Tesseract libraries into my Android project today. From what I have found I did following: 1) Download tess-two from gooogle git, 2) build with NDK 3) put *.so files (armeabi/v7,x86,mips) into /app/main/jniLibs/, 4)…
Tomáš John
  • 314
  • 4
  • 14
3
votes
1 answer

How to get bounding box with text using Tesseract4Android?

I am using 'cz.adaptech.tesseract4android:tesseract4android:4.3.0' in my Android project. Is it possible to get bounding box with text data like in example below? (32, 24, 60, 17) Maitre (100, 24, 82, 19) corbeau, (191, 28, 29, 13) sur (227, 28, 22,…
Yuliia Ashomok
  • 8,336
  • 2
  • 60
  • 69
3
votes
0 answers

tesseract crashes with fatal signal 6 (SIGABRT), code -6 on Android

I'm working with this library (tess_two) for a few weeks and everything was good. But today Tesseract starts crashes with this error A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 31890 (Thread-13571). Nothing have changed from yesterday, same…
JJoe
  • 175
  • 6
3
votes
1 answer

Issue with OCR Scan on Android

I'm trying to create an app with a OCR Scanner by using the tessract/tess-two library, I've successful access to the Phone camera, I can do the manual focus but when I take a picture the following error: 07-18 19:07:06.335…
DarkVex
  • 157
  • 1
  • 11
3
votes
1 answer

Why is there no .traineddata file in eng

The question is as the title suggests: Why is there no eng.traineddata file in the folder eng? I downloaded all the languages as a zip(I did not see any other option) from here and unzipped langdata-master.zip. From there, I navigated to the eng…
Rushat Rai
  • 743
  • 2
  • 15
  • 31
1
2 3
9 10