Invoking Tesseract simte Purebasic
Posted: Tue Sep 03, 2024 7:21 am
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
Can anyone have another solution to bypass this problem
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)