mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-09-24 16:29:01 +08:00
Update ocr_engine.py
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user