Questions tagged [ocrmypdf]
19 questions
0
votes
1 answer
ocrmypdf 13.4.1 command line works, but API missing text layers when using output_type="pdf"
I recently upgraded from ocrmypdf 9.0.3/tesseract 4.x to ocrmypdf 13.4.1/tesseract 5.1.
When using ocrmypdf 9.x or 13.x, this works on on the cli:
$ ocrmypdf --output-type pdf sample-file.pdf output-file.pdf
However, when I use the API within my…

William
- 181
- 1
- 11
0
votes
0 answers
how to detect the unknow text language in a image?
I have N number of scanned images. the images contain different languages like Chinese, Arabic and Japanese. I tried to do OCR process for the files using OCRMYPDF and tesseract. both required the language of the input file. But I don't know the…

Hariharan AR
- 1,386
- 11
- 20
0
votes
0 answers
Reliably Detect Spyder IDE
How do I reliably detect if a script/module is being run in the Spyder IDE?
I've hit an issue running ocrmypdf in the spyder IDE. It works on cmd and anaconda prompt. It errors out when run in the spyder IDE, on windows 7 & 10, various machines,…

Spencer
- 5
- 3
0
votes
1 answer
Import ocrmypdf in Visual Stdio Code in Python
I would like to import ocrmypdf.
I have installed the package using pip install --upgrade --user ocrmypdf
but as I tried to import in VSC with:
import ocrmypdf
it caught error:
[WinError 2] The system cannot find the file specified
[WinError 2] The…

nilsinelabore
- 4,143
- 17
- 65
- 122