Update ocr_engine.py
This commit is contained in:
@@ -70,7 +70,6 @@ class PaddleOCRBackend(OCRBackend):
|
|||||||
Extracted text string
|
Extracted text string
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
logger.info(f"Initial image mode: {image.mode if hasattr(image, 'mode') else 'N/A'}")
|
|
||||||
# Ensure image is in RGB format
|
# Ensure image is in RGB format
|
||||||
if hasattr(image, "convert"):
|
if hasattr(image, "convert"):
|
||||||
if image.mode == "RGBA":
|
if image.mode == "RGBA":
|
||||||
|
|||||||
Reference in New Issue
Block a user