Invoking Tesseract simte Purebasic

Just starting out? Need help? Post your questions and find answers here.
loulou2522
Enthusiast
Enthusiast
Posts: 553
Joined: Tue Oct 14, 2014 12:09 pm

Invoking Tesseract simte Purebasic

Post by loulou2522 »

I have a memory problem with tesseract and Purebasic. tesseract sometimes doesn't run for some reason I can't figure out.
Here is th two solution which works sometime but not always

Code: Select all

 ShellExecute_(0,"open","tesseract.exe","bil-000003.png essai -l fra --psm 1 -c preserve_interword_spaces=1 --dpi 400  pdf","",#SW_HIDE) 

Code: Select all

RunProgram("cmd.exe", "/C "+Chr(34)+"tesseract.exe BIL-000001.png essai -l fra  --psm 1  -c preserve_interword_spaces=1 --dpi 400 pdf" +Chr(34) ,"",#PB_Program_Wait|#PB_Program_Hide)
Can anyone have another solution to bypass this problem
Quin
Addict
Addict
Posts: 1135
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: Invoking Tesseract simte Purebasic

Post by Quin »

Hi,
I'm afraid I don't really understand the question. I don't have tesseract installed on this box although I've used it before so can't test this, but what exactly is the "memory problem", and what do you mean by doesn't Run? What happens if you just use RunProgram("tesseract", ...), too? I doubt you need to invoke CMD.exe.
Post Reply