Adding the logging info for ocr
Browse files- app/redaction.py +1 -0
app/redaction.py
CHANGED
|
@@ -68,6 +68,7 @@ class PDFRedactor:
|
|
| 68 |
|
| 69 |
# Perform OCR
|
| 70 |
data = pytesseract.image_to_data(image, output_type=pytesseract.Output.DICT)
|
|
|
|
| 71 |
|
| 72 |
num_words = len(data['text'])
|
| 73 |
for i in range(num_words):
|
|
|
|
| 68 |
|
| 69 |
# Perform OCR
|
| 70 |
data = pytesseract.image_to_data(image, output_type=pytesseract.Output.DICT)
|
| 71 |
+
logger.info(f"OCR data: {data['text']}")
|
| 72 |
|
| 73 |
num_words = len(data['text'])
|
| 74 |
for i in range(num_words):
|