From 1a23578692d91929a981698458c36a9c06b1c13f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Budy=C5=9B?= Date: Wed, 9 Mar 2022 21:32:44 +0100 Subject: [PATCH] 0.1.7 release --- manga_ocr/__init__.py | 2 +- manga_ocr/ocr.py | 5 ++++- setup.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/manga_ocr/__init__.py b/manga_ocr/__init__.py index 0860b14..51002f0 100644 --- a/manga_ocr/__init__.py +++ b/manga_ocr/__init__.py @@ -1,3 +1,3 @@ -__version__ = '0.1.5' +__version__ = '0.1.7' from manga_ocr.ocr import MangaOcr diff --git a/manga_ocr/ocr.py b/manga_ocr/ocr.py index 0ce5b50..8710353 100644 --- a/manga_ocr/ocr.py +++ b/manga_ocr/ocr.py @@ -21,7 +21,10 @@ class MangaOcr: else: logger.info('Using CPU') - self(Path(__file__).parent.parent / 'assets/example.jpg') + example_path = Path(__file__).parent / 'assets/example.jpg' + if not example_path.is_file(): + example_path = Path(__file__).parent.parent / 'assets/example.jpg' + self(example_path) logger.info('OCR ready') diff --git a/setup.py b/setup.py index 476251d..3a87b84 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ long_description = (Path(__file__).parent / "README.md").read_text('utf-8').spli setup( name="manga-ocr", - version='0.1.5', + version='0.1.7', description="OCR for Japanese manga", long_description=long_description, long_description_content_type="text/markdown",