Skip to content

Commit

Permalink
Improve reconstruction
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdittrich92 committed Oct 10, 2024
1 parent 684f38f commit e77293c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doctr/utils/reconstitution.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def synthesize_page(
for block in page["blocks"]:
for line in block["lines"]:
for word in line["words"]:
if len(word["geometry"]) == 4 and not _warned:
if len(word["geometry"]) == 4 and not _warned: # pragma: no cover
logging.warning("Polygons with larger rotations will lead to inaccurate rendering")
_warned = True
response = _synthesize(
Expand Down Expand Up @@ -169,7 +169,7 @@ def synthesize_kie_page(
# Draw each word
for predictions in page["predictions"].values():
for prediction in predictions:
if len(prediction["geometry"]) == 4 and not _warned:
if len(prediction["geometry"]) == 4 and not _warned: # pragma: no cover
logging.warning("Polygons with larger rotations will lead to inaccurate rendering")
_warned = True
response = _synthesize(
Expand Down

0 comments on commit e77293c

Please sign in to comment.