JaidedAI / EasyOCR

Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.
https://www.jaided.ai
Apache License 2.0
23.88k stars 3.12k forks source link

Fix: import get_display #1283

Closed Yepness closed 2 months ago

Yepness commented 2 months ago

Fix get display import "from bidi import get_display" and no longer from "bidi.algorithm import get_display" this PR aim to fix that issue.

Melanee-Melanee commented 2 months ago

Please install this version of python-bidi:

!pip install python-bidi==0.4.2

vinsunkavalli commented 2 months ago

@Yepness I think the requirements also need to be changed to reflect that easyocr only supports newer versions of python-bidi if this change is implemented?

Yepness commented 2 months ago

@vinsunkavalli The current requirements reference the latest version of python-bidi, which includes the import adjustment. Therefore, there are two possible solutions:

  1. Adjust the code based on the latest version of the repository (PR).

  2. Modify the requirements to python-bidi==0.4.2 to use the currently deprecated import.

sagarishere commented 2 months ago

@JaidedTeam

rkcosmos commented 2 months ago

Thanks everyone.