After completely installation and done all the work i am getting Permission denied error do any one have solution

26 Views Asked by At

code

import cv2
import pytesseract
 
pytesseract.pytesseract.tesseract_cmd = '/Users/navroop/Desktop/text reco/tesseract'
img = cv2.imread("car.png")

PermissionError                           Traceback (most recent call last)
Cell In[13], line 58
     55 file = open("recognized.txt", "a")
     57 # Apply OCR on the cropped image
---> 58 text = pytesseract.image_to_string(cropped)
     60 # Appending the text into file
     61 file.write(text)

PermissionError: [Errno 13] Permission denied: '/Users/navroop/Desktop/text reco/tesseract'
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...

I have tried to clone the repo of tesseract and then mentioning he path of that downloaded file and using it for extracting image from a png file

0

There are 0 best solutions below