!apt install tesseract-ocr
!pip install pytesserac
import pytesseract
from PIL import Image
# Open image file
image = Image.open("/content/book.PNG")
# Recognize text
text = pytesseract.image_to_string(image)
print(text)
I wrote this code in google colab and getting an error "cannot identify image file '/content/book.PNG'"
I am expecting the code to run.