Update ocr_engine.py

This commit is contained in:
Liwx
2025-08-29 12:24:58 +08:00
committed by lyingbug
parent 7d0037fc2d
commit a1473fe731
@@ -70,7 +70,6 @@ class PaddleOCRBackend(OCRBackend):
Extracted text string
"""
try:
logger.info(f"Initial image mode: {image.mode if hasattr(image, 'mode') else 'N/A'}")
# Ensure image is in RGB format
if hasattr(image, "convert"):
if image.mode == "RGBA":