mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
image without any text will show a warning (#14132)
This commit is contained in:
parent
4772fad2b5
commit
1eeca9c72f
@ -975,6 +975,9 @@ def main():
|
||||
if result is not None:
|
||||
lines = []
|
||||
for res in result:
|
||||
if res is None:
|
||||
logger.warning(f"No text found in image {img_path}")
|
||||
continue
|
||||
for line in res:
|
||||
logger.info(line)
|
||||
lines.append(pprint.pformat(line) + "\n")
|
||||
|
Loading…
x
Reference in New Issue
Block a user