Opencv Error while sending png images through pytesseract
Opencv Error while sending png images through pytesseract Question: I am using pytesseract for ocr and it works fine for jpg,jpeg and some png files but crashes on selected png files which are mobile screenshots Here is my code: img = cv2.imread(‘test.png’,cv2.COLOR_BGR2GRAY) custom_config = r’–oem 3 –psm 6′ data=pytesseract.image_to_string(img, config=custom_config) print(data) The error generated is: …