Tesseract Node not working

Hi,

I am on KNIME 2.9.1 on a Mac and trying to just try the example workflow provided from the Tesseract Community Webpage, however the workflow fails on the Tess4J node with the error below, and suggestions;

ERROR     Tess4J                             Execute failed: Unable to load library 'tesseract': Native library (darwin/libtesseract.dylib) not found in resource path (/Applications/knime/Knime.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar)

ERROR     Tess4J                             Execute failed: Could not initialize class net.sourceforge.tess4j.TessAPI

 

Simon.

Hi Simon!

Thanks for reporting this issue. Currently the Tess4J Nodes can't be run under MacOS, as we couldn't manage to compile the sources for MacOS, yet.

We are working on it and will let you know as soon as Tess4J works with Mac, too.

 

Christian

Any news on this? I still get this error when running the Tess4J example workflow.

Hi Friedrich,

Can you tell us more details about your configuration and error message? This thread was already resolved some years or months ago, so your error must be new.

Best,

Christian

Hi Christian,

I try to run the Tess4J example workflow with the provided images. KNIME log tells me the following:

2016-07-25 16:30:38,442 : INFO  : main : StringHistory :  :  : History file '/Users/friedrich/knime-workspace/.metadata/knime/history_database_drivers.txt' does not exist.
2016-07-25 16:30:38,442 : INFO  : main : StringHistory :  :  : History file '/Users/friedrich/knime-workspace/.metadata/knime/history_database_urls.txt' does not exist.
2016-07-25 16:30:38,442 : DEBUG : main : DatabaseConnectionSettings :  :  : Settings database timeout to 15 seconds
2016-07-25 16:30:38,514 : DEBUG : main : DatabaseConnectionSettings :  :  : Database concurrency (sync via database connection) is true.
2016-07-25 16:30:38,514 : DEBUG : main : KNIMECorePlugin :  :  : Setting KNIME max thread count to 8
2016-07-25 16:30:38,515 : DEBUG : main : KNIMECorePlugin :  :  : Setting KNIME temp dir to "/Users/friedrich/Desktop/KNIME_temp_space"
2016-07-25 16:30:38,532 : INFO  : KNIME-Worker-2 : ExplorerMountTable :  :  : Mounted Explorer Temp Space 'knime-temp-space' - com.knime.explorer.tempspace
2016-07-25 16:30:38,558 : INFO  : main : KNIMECorePlugin :  :  : Setting console view log level to WARN
2016-07-25 16:30:44,147 : WARN  : ModalContext : VMFileLocker :  :  : Directory '/Users/friedrich/knime-workspace/384well_spheroid_class' does not exist, cannot lock it
2016-07-25 16:30:44,148 : INFO  : ModalContext : LoadWorkflowRunnable :  :  : Unable to load workflow "384well_spheroid_class"
Location does not exist.
2016-07-25 16:30:47,387 : ERROR : ModalContext : NativeLibBundleActivator : Tess4J : 0 : /Applications/KNIME 3.1.2.app/Contents/Eclipse/plugins/org.knime.knip.tess4j.bin.macosx.amd64_1.3.0.v201607040700/lib/macosx/amd64/libtesseract.3.dylib: dlopen(/Applications/KNIME 3.1.2.app/Contents/Eclipse/plugins/org.knime.knip.tess4j.bin.macosx.amd64_1.3.0.v201607040700/lib/macosx/amd64/libtesseract.3.dylib, 1): Library not loaded: /usr/local/lib/liblept.4.dylib
  Referenced from: /Applications/KNIME 3.1.2.app/Contents/Eclipse/plugins/org.knime.knip.tess4j.bin.macosx.amd64_1.3.0.v201607040700/lib/macosx/amd64/libtesseract.3.dylib
  Reason: image not found
2016-07-25 16:30:47,387 : ERROR : ModalContext : NativeLibBundleActivator : Tess4J : 0 : Could not load org.knime.knip.tess4j
2016-07-25 16:30:52,642 : INFO  : KNIME-Worker-1 : KNIPLogService : Image Reader : 0:8 : Verifying GIF format
2016-07-25 16:30:52,642 : INFO  : KNIME-Worker-1 : KNIPLogService : Image Reader : 0:8 : Reading dimensions
2016-07-25 16:30:52,648 : INFO  : KNIME-Worker-1 : KNIPLogService : Image Reader : 0:8 : Reading data blocks
2016-07-25 16:30:52,743 : INFO  : KNIME-Worker-1 : KNIPLogService : Image Reader : 0:8 : Verifying GIF format
2016-07-25 16:30:52,744 : INFO  : KNIME-Worker-1 : KNIPLogService : Image Reader : 0:8 : Reading dimensions
2016-07-25 16:30:52,744 : INFO  : KNIME-Worker-1 : KNIPLogService : Image Reader : 0:8 : Reading data blocks
2016-07-25 16:30:53,109 : INFO  : KNIME-Worker-1 : LocalNodeExecutionJob : Image Reader : 0:8 : Image Reader 0:8 End execute (1 sec)
2016-07-25 16:30:54,107 : INFO  : KNIME-Worker-2 : LocalNodeExecutionJob : Image Normalizer : 0:7 : Image Normalizer 0:7 End execute (0 secs)
2016-07-25 16:30:55,094 : ERROR : KNIME-Worker-11 : Tess4JNodeModel : Tess4J : 0:4 : Error initializing Tesseract.
2016-07-25 16:30:55,095 : ERROR : KNIME-Worker-11 : Tess4J : Tess4J : 0:4 : Execute failed: Unable to load library 'tesseract': Native library (darwin/libtesseract.dylib) not found in resource path (/Applications/KNIME 3.1.2.app/Contents/MacOS//../Eclipse/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar)

Currenty I use:

KNIME Analytics Platform    3.2.0.v201607131338
KNIME Image Processing    1.5.1.201607152254
KNIME Image Processing - Tess4J Integration    1.3.0.v201607051537 

Best,

Friedrich

 

Hi Friedrich,

thanks for the information. We will have a look and keep you posted via this thread.

Sorry for the trouble,

Christian

Dear Christian,

Just want to ask if the Tess4J node is available for Mac in the meantime?

I tried the example workflow and Knime shows me that the node is missing and cannot find it within the extensions.

Best regards

Chris

Problem solved, I forgot to enable a certain server and was able to find the extension then.

I have Knime 3.2.1 running on a MAC and also a problem, running the Tess4J node.

The console says:

ERROR Tess4J               2:8        Error initializing Tesseract.
ERROR Tess4J               2:8        Execute failed: Could not initialize class net.sourceforge.tess4j.TessAPI

Any idea how to  initialize the class???

Dear Chris,

we think this has something to do with the general problems we currently have on MAC. We will investigate the problem and come back to you as soon as possible.

Best,


Christian

Hi,

I am on KNIME 3.3.1 on Windows and trying to run the example workflow knime://LOCAL/Example%20Workflows/99_Community/03_Tess4J/01_Tess4J, however the workflow fails on the Tess4J node with the error below,

WARN  MISSING Tess4J       0:4        Node can't be executed - Node "Tess4J" not available from extension "KNIME Image Processing - Tess4J Integration" (provided by "University of Konstanz"; plugin "org.knime.knip.tess4j.base" is not installed)
ERROR LoadWorkflowRunnable            Errors during load: Status: Error: 01_Tess4J 0 loaded with errors
ERROR LoadWorkflowRunnable              Status: Error: 01_Tess4J 0
ERROR LoadWorkflowRunnable                Status: Error: Node "Tess4J" not available from extension "KNIME Image Processing - Tess4J Integration" (provided by "University of Konstanz"; plugin "org.knime.knip.tess4j.base" is not installed)

I have installed 'Knime Community Contributions - Image Processing and Analysis' before run the example .
 
Pamela

Hi Pamela,

You additionally have to install KNIME Image Processing - Tess4J from the Stable Community contributions (see https://tech.knime.org/book/knime-image-processing-tesseract-ocr-extension). Please find more information here https://tech.knime.org/wiki/install-knime-image-processing (Step 2.2).

I hope this helps,

Christian

Hi, Christian

    Thank you for the guide. The node work fine now.

BR

Pamela

Was this ever fixed?

Hi @cgallic,
as far as we know the Tess4j nodes work fine, are experiencing any problems with them?
best,
Gabriel

Hey,
I have a problem with the Tess4J node. Can somebody please help?
The error is:
ERROR NativeLibBundleActivator /Applications/KNIME 4.3.0.app/Contents/Eclipse/plugins/org.knime.knip.tess4j.bin.macosx.amd64_1.3.3.v201807091457/lib/macosx/amd64/libtesseract.3.dylib: dlopen(/Applications/KNIME 4.3.0.app/Contents/Eclipse/plugins/org.knime.knip.tess4j.bin.macosx.amd64_1.3.3.v201807091457/lib/macosx/amd64/libtesseract.3.dylib, 1): Library not loaded: /usr/local/lib/liblept.4.dylib
Referenced from: /Applications/KNIME 4.3.0.app/Contents/Eclipse/plugins/org.knime.knip.tess4j.bin.macosx.amd64_1.3.3.v201807091457/lib/macosx/amd64/libtesseract.3.dylib
Reason: image not found
ERROR NativeLibBundleActivator Could not load org.knime.knip.tess4j

Thanks a lot

Hi I am having the same issue as @dliebe hope the team can assist?

Error during the startup of KNIME:
ERROR NativeLibBundleActivator/Applications/KNIME 4.5.0.app/Contents/Eclipse/plugins/org.knime.knip.tess4j.bin.macosx.amd64_1.3.3.v201807091457/lib/macosx/amd64/libtesseract.3.dylib: dlopen(/Applications/KNIME 4.5.0.app/Contents/Eclipse/plugins/org.knime.knip.tess4j.bin.macosx.amd64_1.3.3.v201807091457/lib/macosx/amd64/libtesseract.3.dylib, 1): Library not loaded: /usr/local/lib/liblept.4.dylib

Referenced from: /Applications/KNIME 4.5.0.app/Contents/Eclipse/plugins/org.knime.knip.tess4j.bin.macosx.amd64_1.3.3.v201807091457/lib/macosx/amd64/libtesseract.3.dylib

Reason: image not found

ERROR NativeLibBundleActivator Could not load org.knime.knip.tess4j

Error when trying to execute the Tess4J node 1st time:
ERROR Tess4J 3:2665 Error initializing Tesseract.
ERROR Tess4J 3:2665 Execute failed: Unable to load library ‘tesseract’: Native library (darwin/libtesseract.dylib) not found in resource path (/Applications/KNIME 4.5.0.app/Contents/MacOS//…/Eclipse/plugins/org.eclipse.equinox.launcher_1.6.100.v20201223-0822.jar)

Error when trying to execute the Tess4J node 2nd time:
ERROR Tess4J 3:2665 Error initializing Tesseract.
ERROR Tess4J 3:2665 Execute failed: Could not initialize class net.sourceforge.tess4j.TessAPI

I am currently running KNIME 4.5.2 on macOS Catalina version 10.15.7

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.