you used an old unsupported version of your tools (not sure if the problem is in the used/installed wrapper or Tesseract library...) - the cube engine was removed from Tesseract several years ago...
Zdenko so 25. 11. 2023 o 15:31 'sanogo sy' via tesseract-ocr < [email protected]> napísal(a): > But in my app that running in server wildfly 24, I got error say: Failed > loading language 'eng'. > In my log file I got: > > Failed loading language 'eng' > Cube ERROR (CubeRecoContext::Load): unable to read cube language model > params from /tmp/tess4j/tessdata/fra.cube.lm > Cube ERROR (CubeRecoContext::Create): unable to init CubeRecoContext object > init_cube_objects(false, &tessdata_manager):Error:Assert failed:in file > tessedit.cpp, line 210 > # > # A fatal error has been detected by the Java Runtime Environment: > # > # SIGSEGV (0xb) at pc=0x00007fb7e88ac249, pid=56208, > tid=0x00007fb7ed342700 > # > # JRE version: OpenJDK Runtime Environment (8.0_131-b12) (build > 1.8.0_131-b12) > # Java VM: OpenJDK 64-Bit Server VM (25.131-b12 mixed mode linux-amd64 > compressed oops) > # Problematic frame: > # C [libtesseract.so+0x239249] ERRCODE::error(char const*, > TessErrorLogCode, char const*, ...) const+0x129 > > > On Saturday, November 25, 2023 at 1:25:39 PM UTC sanogo sy wrote: > >> If I well understood, you mean by tesseract (executable) to run tesseract >> command on purpose to check how it works. >> I just run command: tesseract path_of_my_image.jpg output.txt >> My output file is empty. It seems that it doesn't work because I got in >> my command line message : >> >> Estimating resolution as 181 >> Error in boxClipToRectangle: box outside rectangle >> Error in pixScanForForeground: invalide box >> >> On Saturday, November 25, 2023 at 1:09:33 PM UTC zdenop wrote: >> >>> And the result is? >>> >>> >>> Zdenko >>> >>> >>> so 25. 11. 2023 o 13:07 'sanogo sy' via tesseract-ocr < >>> [email protected]> napísal(a): >>> >>>> I forgot to mentione that I use Centos 7. >>>> I tried that command : tesseract img.jpg out >>>> >>>> As result I got a message like: >>>> >>>> Estimating resolution as 181 >>>> Error in boxClipToRectangle: box outside rectangle >>>> Error in pixScanForForeground: invalide box >>>> >>>> On Saturday, November 25, 2023 at 10:31:49 AM UTC zdenop wrote: >>>> >>>>> Does tesseract (executable) has the same problem? >>>>> If yes, that check the content of /usr/share/tesseract-ocr/4/tessdata/ >>>>> If not follow code of tesseract executable. >>>>> >>>>> >>>>> Zdenko >>>>> >>>>> >>>>> so 25. 11. 2023 o 11:07 'sanogo sy' via tesseract-ocr < >>>>> [email protected]> napísal(a): >>>>> >>>>>> Hi every one. I got an error with tesseract. When I try to use it in >>>>>> my app, I got an error like "Failed loading language eng". >>>>>> I installed tesseract 5 with leptonica 1.79 >>>>>> >>>>>> To solve the problem I tried that command : >>>>>> export TESSDATA_PREFIX=/usr/share/tesseract-ocr/4/tessdata/ >>>>>> I cloned from git repo tesseract tessdata: >>>>>> https://github.com/tesseract-ocr/tessdata.git >>>>>> Then I moved files in /usr/share/tesseract-ocr/4/tessdat/ folder. >>>>>> But it still not working. >>>>>> >>>>>> I really need help, please. I've been working for 3 days. >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "tesseract-ocr" group. >>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>> send an email to [email protected]. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/tesseract-ocr/3ac7cbbe-6481-46da-b14f-7c933f499414n%40googlegroups.com >>>>>> <https://groups.google.com/d/msgid/tesseract-ocr/3ac7cbbe-6481-46da-b14f-7c933f499414n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "tesseract-ocr" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> >>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/tesseract-ocr/985b43a4-57b9-4854-b27f-66095cdb72cen%40googlegroups.com >>>> <https://groups.google.com/d/msgid/tesseract-ocr/985b43a4-57b9-4854-b27f-66095cdb72cen%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- > You received this message because you are subscribed to the Google Groups > "tesseract-ocr" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tesseract-ocr/ca52aa7d-619e-42b3-99dc-dfddf1e7e8d3n%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/ca52aa7d-619e-42b3-99dc-dfddf1e7e8d3n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8xtz_YLCYBsNsAOc63m8a8hb8LWKfFvJ3-Y5_3bPkX7Kg%40mail.gmail.com.

