Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: 'Vision' when using apple_ocr.ocr #3

Open
jaydip-tss opened this issue May 10, 2024 · 1 comment
Open

ModuleNotFoundError: 'Vision' when using apple_ocr.ocr #3

jaydip-tss opened this issue May 10, 2024 · 1 comment

Comments

@jaydip-tss
Copy link

I'm trying to use the apple_ocr.ocr module for Optical Character Recognition (OCR). However, I'm encountering a ModuleNotFoundError: No module named 'Vision'.

Steps to Reproduce:

Install apple_ocr (if not already installed).
Import OCR from apple_ocr.ocr and Image from PIL.
Open an image using Image.open("image_filename.jpeg").
Try creating an OCR instance: ocr_instance = OCR(image=image).

Expected Behavior:

The OCR class from apple_ocr.ocr should be created successfully.

Actual Behavior:

A ModuleNotFoundError: No module named 'Vision' is raised.

Additional Information:

Running on Google Colab

If you have any insights into the missing Vision module, mention them here.

Request:

Could you please investigate why the Vision module is not found?
Are there specific installation instructions for apple_ocr that include this dependency?

@thisi5patrick
Copy link

Hey @jaydip-tss had a similar issue and apparently you also have to install pyobjc-framework-Vision

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants