Can you replicate problem with command line /"pure" tesseract? e,g,
'C:\\Program Files\\Tesseract-OCR\\tesseract.exe'   images/invoice-sample.jpg
invoice-sample

Zdenko


pi 28. 2. 2020 o 20:31 Supharerk Thawillarp <[email protected]>
napĂ­sal(a):

>
> I'm new to tesseract and trying to follow tutorial on Windows 10 using the
> code below
>
> import cv2
> import pytesseract
> from pytesseract import Output
> pytesseract.pytesseract.tesseract_cmd = 'C:\\Program
> Files\\Tesseract-OCR\\tesseract.exe'
>
>
> img=cv2.imread('images/invoice-sample.jpg')
>
>
> d=pytesseract.image_to_data(img,output_type=Output.DICT)
>
>
>
>
> print(d.keys)
>
>
>
>
> The problem is, I keep getting error PermissionError: [WinError 5] Access
> is denied: 'from implementing image_to_data and image_to_string in Windows
> 10.
>
> Only resource I found in stackoverflow is to set tesseract_cmd, PATH and
> TESSDATA_PREFIX which did not work for me. Not even using the
> administrative cmd works.
>
> After spending a couple hours I found setting permission for tesseract.exe
> (right click, select property and go to security tab) by checking Full
> control and Modify below to make it works.
>
> Hope this will help some people strugglingthe same problem.
>
>
> [image: 1582917756731.jpg][image: 1582917788913.jpg]
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tesseract-ocr/2d9f9f66-40a5-4ce9-9f14-cca48307e9f5%40googlegroups.com
> <https://groups.google.com/d/msgid/tesseract-ocr/2d9f9f66-40a5-4ce9-9f14-cca48307e9f5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8zmxARZqneHZ7Owjr3wqUhRiu85hxAzbraPn_M9Xf_jdw%40mail.gmail.com.

Reply via email to