Hello ,

I'm writing a python script where I use multiproccesing library to launch 
 multiple tesseract instances in parallel.
when I use multiple calls to tesseract but in sequence using loop ,it works 
.However ,when I try to parallel code everything looks fine but  I'm not 
getting any results.
Here's my code :

  

def processPage(i):

    
 
    nameJPG="converted-"+str(i)+".jpg"
    nameHocr="converted-"+str(i)
    
p=subprocess.check_call(["tesseract",nameJPG,nameHocr,"-l","eng","hocr"])
    print "tesseract did the job for the ",str(i+1),"page" 

pool1=Pool(4)
    pool1.map(processPage, range(len(pdf.pages)))

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/c6b09ae8-d207-4170-8295-a6b52fdcd7f1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to