Android Example TessBaseAPI ocr

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





1604421482383.png



B4X:
EditText1.Text= tessc.getText(xui.LoadBitmap(File.DirAssets, "algtess_phototest.png"))
1604421532870.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
 
Top