Skip to content

Commit

Permalink
fix: fix run_ocr.py script (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael0202 authored Dec 5, 2024
1 parent 32de49b commit 4a98976
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions open_prices/proofs/management/commands/run_ocr.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def handle(self, *args, **options) -> None: # type: ignore
glob.iglob("**/*", root_dir=settings.IMAGES_DIR), desc="images"
):
image_path = settings.IMAGES_DIR / image_path_str
if ".400." in image_path.name:
# Skip thumbnails
continue
result = fetch_and_save_ocr_data(image_path, override=override)
processed += int(result)

Expand Down

0 comments on commit 4a98976

Please sign in to comment.