Re: [tesseract-ocr] Re: Unable to get Orientation with node-tesseract, Warning, detects only orientation with -l eng Error, OSD requires a model for the legacy engine

2024-01-12 Thread Oliver Saintilien
Sorry for the confusion, When I do tesseract .recognize(`C:\\Users\\osain\\OneDrive\\Desktop\\1992 Spring\\ Document_20240109_0014.jpg`, { lang: "eng", oem: 1, psm: 0, }) I get Command failed: tesseract "C:\Users\osain\OneDrive\Desktop\1992 Spring\Document_20240109_0014.jp

Re: [tesseract-ocr] Re: Unable to get Orientation with node-tesseract, Warning, detects only orientation with -l eng Error, OSD requires a model for the legacy engine

2024-01-12 Thread Oliver Saintilien
Sorry for the confusion, When I do tesseract .recognize(`C:\\Users\\osain\\OneDrive\\Desktop\\1992 Spring\\ Document_20240109_0014.jpg`, { lang: "eng", oem: 1, psm: 0, }) I get Command failed: tesseract "C:\Users\osain\OneDrive\Desktop\1992 Spring\Document_20240109_0014.j

Re: [tesseract-ocr] Unable to build on macOS Mojave (10.14)

2024-01-12 Thread Benoît Mars
Yes, the future looks complicated for this version of macOS, but I do not really have the choice… Now the error is with the line #69: src/training/unicharset_extractor.cpp:69:58: error: 'u8string' is unavailable: introduced in macOS 10.15 It prevents me from installing ffmpeg which is really pa

Re: [tesseract-ocr] Re: Unable to get Orientation with node-tesseract, Warning, detects only orientation with -l eng Error, OSD requires a model for the legacy engine

2024-01-12 Thread Zdenko Podobny
*tesseract executable problem:* for TESSDATA_PREFIX you use a path with space and you did not not escape it properly. That is why you get an error about an existing file ("C:\Program/eng.traineddata"). Solutions: a) use path without speciation characters like space b) learn how to properly escaped

Re: [tesseract-ocr] Unable to build on macOS Mojave (10.14)

2024-01-12 Thread Zdenko Podobny
ffmpeg needs tesseract training tools as dependency? I guess something is misconfigured. On most unix-like system training tools are separated and not installed by default Can you avoid the 'make training' step? I also wonder why the tesseract build process did not stop during configuration p

Re: [tesseract-ocr] Re: Unable to get Orientation with node-tesseract, Warning, detects only orientation with -l eng Error, OSD requires a model for the legacy engine

2024-01-12 Thread Ger Hobbelt
On Fri, 12 Jan 2024, 14:08 Oliver Saintilien, wrote: > Something else I tried was this > const tesseract = require("node-tesseract-ocr") > > tesseract > .recognize(`C:\\Users\\osain\\OneDrive\\Desktop\\1992 Spring\\ > Document_20240109_0014.jpg`, { > lang: "eng", > oem: 1, > psm: 0,

Re: [tesseract-ocr] Re: Unable to get Orientation with node-tesseract, Warning, detects only orientation with -l eng Error, OSD requires a model for the legacy engine

2024-01-12 Thread Oliver Saintilien
Great it works like a charm now, thanks very much for your help. On Friday, January 12, 2024 at 10:42:05 AM UTC-5 g...@hobbelt.com wrote: > On Fri, 12 Jan 2024, 14:08 Oliver Saintilien, wrote: > >> Something else I tried was this >> const tesseract = require("node-tesseract-ocr") >> > tesseract

Re: [tesseract-ocr] Re: Unable to get Orientation with node-tesseract, Warning, detects only orientation with -l eng Error, OSD requires a model for the legacy engine

2024-01-12 Thread Oliver Saintilien
Oh right, for those facing a similar issue, what I did was 1. relpace the eng.traineddata file with the eng.traineddata found here tesseract-ocr/tessdata: Trained models with fast variant of the "best" LSTM models + legacy models (github.com)