Dear the tesseract Community,

I am trying to run pytesseract with psm = 2 in python 3.7
I am using package pytesseract== 0.3.6
When running the command: 
pytesseract.image_to_data(img, config='--psm 2')
I am getting the following error
FileNotFoundError Traceback (most recent call last)
.
.
.
../../ocr/env/lib/python3.7/site-packages/pytesseract/pytesseract.py in 
run_and_get_output(image, extension, lang, config, nice, timeout, 
return_bytes) 282 run_tesseract(**kwargs) 283 filename = 
kwargs['output_filename_base'] + extsep + extension --> 284 with 
open(filename, 'rb') as output_file: 285 if return_bytes: 286 return 
output_file.read() FileNotFoundError: [Errno 2] No such file or directory: 
'/var/folders/ny/3tlpn81n4f1c49fvyffm9x8w0000gn/T/tess_wih07ayx.box'
After searching I thought it is only happening on my Mac but testing on a 
linux machine the problem also exists

When I am using tesseract cmd it is working just fine :

tesseract 'test_images/028.png' ouput --psm 2

Orientation: 0

WritingDirection: 0

TextlineOrder: 2

Deskew angle: -0.0007


I am wondering if it is me misusing it or if there is something I am 
missing here 

P.S. other psm modes are working just fine
Thanks for all your efforts.

-- 
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 tesseract-ocr+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/c734fe6f-02df-4ebf-9a96-c908cf4cb8e4n%40googlegroups.com.

Reply via email to