import easyocr def ocr(img,reader): result = reader.readtext(img,detail=0) if len(result)>1: return True return False