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",