I have installed tesseract in Google colab using the command
!pip install tesseract
But when I run the command
text = pytesseract.image_to_string(Image.open('cropped_img.png'))
I get the below error:
TesseractNotFoundError: tesseract is not installed or it's not in your path
Add pytesseract.pytesseract.tesseract_cmd = r'/usr/local/bin/pytesseract'
This should solve the TesseractNotFoundError.