diff --git a/README.md b/README.md index d648004..06e9f5a 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This has been tested with Python 3.11. Newer/older versions might work. It can b - [Manga OCR](https://github.com/kha-white/manga-ocr): refer to the readme for installation ("m" key) - [EasyOCR](https://github.com/JaidedAI/EasyOCR): refer to the readme for installation ("e" key) - [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR): refer to the [wiki](https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.7/doc/doc_en/quickstart_en.md) for installation ("o" key) -- Apple Vision framework: this will work on macOS Ventura or later if pyobjc (`pip install pyobjc`) is installed. In my experience, the best of the local providers for horizontal text ("a" key) +- Apple Vision framework: this will work on macOS Ventura or later. In my experience, the best of the local providers for horizontal text ("a" key) - WinRT OCR: this will work on Windows 10 or later if winocr (`pip install winocr`) is installed. It can also be used by installing winocr on a Windows virtual machine and running the server (`winocr_serve`), installing requests (`pip install requests`) and specifying the IP address of the Windows VM/machine in the config file (see below) ("w" key) ## Cloud providers diff --git a/owocr/ocr.py b/owocr/ocr.py index f2e2653..15bbbd3 100644 --- a/owocr/ocr.py +++ b/owocr/ocr.py @@ -210,11 +210,8 @@ class AppleVision: elif int(platform.mac_ver()[0].split('.')[0]) < 13: logger.warning('Apple Vision is not supported on macOS older than Ventura/13.0!') else: - if 'objc' not in sys.modules: - logger.warning('pyobjc not available, Apple Vision will not work!') - else: - self.available = True - logger.info('Apple Vision ready') + self.available = True + logger.info('Apple Vision ready') def __call__(self, img_or_path): if isinstance(img_or_path, str) or isinstance(img_or_path, Path):