Android Example TessBaseAPI ocr

SMOOTSARA

Active Member
Licensed User
Longtime User
hello, a small library of TessBaseAPI "tesseract4android-2.1.0" Ocr, you need to download tesseract4android-2.1.0.aar and junit-4.4.jar as Depends, for the tessdata languages "https://github.com/tesseract-ocr / tessdata "
regards

Hi dear friend
Thanks for your helpful post
I can not find the files
You may say their exact link address and name
Thank you
 

SMOOTSARA

Active Member
Licensed User
Longtime User

thanks for the time you've take to help

I also downloaded this file



The program exits with the following error


B4X:
B4A Version: 10.2
Java Version: 11
Parsing code.    (0.00s)
Building folders structure.    (0.01s)
Compiling code.    (0.03s)
Compiling layouts code.    (0.00s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Generating R file.    (0.00s)
Compiling generated Java code.    Error
B4A line: 60
EditText1.Text= tessc.getText(xui.LoadBitmap(File
src\b4a\example\main.java:395: error: cannot find symbol
mostCurrent._edittext1.setText(BA.ObjectToCharSequence(mostCurrent._tessc.getText((Bitmap)(_xui.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"algtess_phototest.png").getObject()))));
                                                                                   ^
  symbol:   class Bitmap
  location: class main








B4X:
EditText1.Text= tessc.getText(xui.LoadBitmap(File.DirAssets, "algtess_phototest.png"))
 

roberto64

Active Member
Licensed User
Longtime User
Sorry, but I was doing something else, nothing has to do with ilpng, conjpeg, tomorrow I will check and let you know
regards
 

roberto64

Active Member
Licensed User
Longtime User
try this, Strs = tessc.getText (xui.LoadBitmap (File.DirAssets, "algtess_phototest.png"))
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…