Spaces:
Sleeping
Sleeping
Update receipt_total_api.py
Browse files- 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")
|
| 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)
|