Menu

Help: Error with text2image jTessBoxEditor

Help
Tu Pham
2020-08-03
2020-08-04
  • Tu Pham

    Tu Pham - 2020-08-03

    Dear friend,

    I have a problem with function text2image in TIFF/Box Generator within jTessBoxEditor
    the error is:

    Cannot run program "/usr/bin/text2image" (in directory "/Volumes/Data/Tesseract_OCR/MiAL_Tess_Train/jTessboxEditorFX/sample/vie"): error=2, No such file or directory

    I am using Mac Catalina,

    may anyone have any suggestions for this issue?

    Many thanks,

    TuPM

     
  • Tu Pham

    Tu Pham - 2020-08-04

    Thanks for suggestion,`
    I tried to follow the instructions,
    so far, I encounter other issues:

    If I run the code:
    text2image --list_available_fonts --fonts_dir=/Library/Fonts
    Error: -bash: text2image: command not found

    Before that, when I tried to install train tools
    make training
    Need to reconfigure project, so there are no errors

    Also I tried to solve that with

    sudo update_dyld_shared_cache -force
    There is warnings of "Could not find dependency"

    update_dyld_shared_cache: warning: x86_64h rejected from cached dylibs: /System/Library/PrivateFrameworks/CreateML.framework/Versions/A/CreateML (("Could not find dependency '/System/Library/PrivateFrameworks/TuriCore.framework/Versions/A/TuriCore'"))
    update_dyld_shared_cache: warning: x86_64h rejected from cached dylibs: /System/Library/PrivateFrameworks/HelloWorldMacHelper.framework/Versions/A/HelloWorldMacHelper (("Could not find dependency '/System/Library/PrivateFrameworks/UHASHelloExtensionPoint-macOS.framework/Versions/A/UHASHelloExtensionPoint-macOS'"))
    update_dyld_shared_cache: warning: x86_64h rejected from cached dylibs: /usr/lib/swift/libswiftCreateML.dylib (("Could not find dependency '/System/Library/PrivateFrameworks/TuriCore.framework/Versions/A/TuriCore'"))

    Please give me some advise,

    Thanks

     
  • Quan Nguyen

    Quan Nguyen - 2020-08-04

    Did you successfully build the training tools? Was text2image application created?

    I'm not familiar with MacOS nor have access to a Mac. You may have to post your questions on Tesseract group for help on getting trainining tools built on MacOS.

    https://groups.google.com/forum/#!forum/tesseract-ocr

     
  • Tu Pham

    Tu Pham - 2020-08-04

    Thanks Quan,

    As I research, MacOS often encounter errors related to "sudo update_dyld_shared_cache"
    then the training tools can not built due to the missing dependencies.

     

Log in to post a comment.