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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
You'd have to build Tesseract's training tools:
https://tesseract-ocr.github.io/tessdoc/TrainingTesseract-4.00.html
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
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
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.