!pip install opencv-python==4.6.0
!sudo apt install tesseract-ocr
!pip install pytesseract==0.3.9
import pytesseract
import numpy as np
import cv2
from google.colab.patches import cv2_imshow
from matplotlib import pyplot as plt
! git clone https://github.com/sthemonica/text-recognize
img = cv2.imread(r'/content/text-recognize/Imagens/Projeto/artigo-spark.png')
cv2_imshow(img)
O erro:
KeyError: 'PNG' <PIL.Image.Image image mode=RGB size=712x850 at 0x7F7F0B0C21D0>
Como resolvo? Não encontrei nada na internet