Page 1 of 1

Invoking Tesseract simte Purebasic

Posted: Tue Sep 03, 2024 7:21 am
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

Re: Invoking Tesseract simte Purebasic

Posted: Tue Sep 03, 2024 1:09 pm
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.