minstradamus commited on
Commit
7e87f71
·
verified ·
1 Parent(s): f55e107

Update receipt_total_api.py

Browse files
Files changed (1) hide show
  1. receipt_total_api.py +1 -1
receipt_total_api.py CHANGED
@@ -19,7 +19,7 @@ classifier = pipeline(
19
 
20
  def ocr_image_to_text(image: Image.Image) -> str:
21
 
22
- image = image.convert("L") # grayscale
23
 
24
  config = r"--psm 6"
25
  text = pytesseract.image_to_string(image, lang="rus", config=config)
 
19
 
20
  def ocr_image_to_text(image: Image.Image) -> str:
21
 
22
+ image = image.convert("L")
23
 
24
  config = r"--psm 6"
25
  text = pytesseract.image_to_string(image, lang="rus", config=config)