I am coming up short on a general solution on how to give write permissions to executables or scripts run on windows 10 powershell (or cygwin). Note however (following advice given in a comment) that if I specify the full output file path as pointing to the Downloads folder then writing does work for the windows binary (not for the cygwin version). Note I also tried running a tesseract version for cygwin from the cygwin bash but shell responds to any tesseract command with a blank line: > I tried altering permissions in powershell with >Set-ExecutionPolicy AllSigned -Scope Process -ForceĪnd >Set-ExecutionPolicy Unrestricted -Scope Process -Force > + FullyQualifiedErrorId : NativeCommandError > + CategoryInfo : NotSpecified: (Tesseract Open. If I run with powershell ISE I get more output: > tesseract : Tesseract Open Source OCR Engine v3.02 with Leptonica At The shell responds with >Tesseract with Open Source OCR Engine v3.02 with Leptonicaīut balks when it comes to the write step with error: >Cannot create ouput file out.txt I started up powershell in administrator mode (by right-clicking and selecting "Run as administrator") and ran from the command line in a folder on the Desktop containing the image on which to perform OCR: >tesseract image.jpg out I am running a downloaded windows binary, not a native build (I also tried a cygwin version, with slightly worse results, see below). Sources and instructions to run the program are here. I am trying to run tesseract on windows10 (home ed), but this question is really more generic.
0 Comments
Leave a Reply. |