omkar56 commited on
Commit
35fa5b9
·
1 Parent(s): 08c6313

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -0
main.py CHANGED
@@ -42,6 +42,7 @@ async def ocr(
42
  try:
43
  content = await image.read()
44
  image = Image.open(BytesIO(content))
 
45
  text = pytesseract.image_to_string(image, lang = 'eng')
46
  # text = pytesseract.image_to_string(image, lang="+".join(languages))
47
  except Exception as e:
 
42
  try:
43
  content = await image.read()
44
  image = Image.open(BytesIO(content))
45
+ print("[image]",image)
46
  text = pytesseract.image_to_string(image, lang = 'eng')
47
  # text = pytesseract.image_to_string(image, lang="+".join(languages))
48
  except Exception as e: