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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Easyocr / PaddleOCR package #2502

Open
ravirathore opened this issue May 5, 2022 · 2 comments
Open

Add Easyocr / PaddleOCR package #2502

ravirathore opened this issue May 5, 2022 · 2 comments

Comments

@ravirathore
Copy link

Hi,

Request to please add support for any of these packages. These are very popular. Will also increase pyodide popularity. Please let know if its possible.

馃悕 Package Request

  • Package Name and Version : Easyocr
  • Package URL : https://pypi.org/project/easyocr/
  • Package Dependencies that needs to be resolved first: torch, torchvision, opencv-python

馃悕 Package Request

Thanks and regards,

@rth
Copy link
Member

rth commented May 5, 2022

Thanks for opening this issue.

pypi.org/project/easyocr

Easyocr is by itself a pure python package, so you can install it with micropip from PyPi,

>>> import micropip
>>> await micropip.install(['easyocr'])

however currently this would fail as it has a dependency on torch which still needs porting #1625 (and it's difficult).

pypi.org/project/paddleocr

This is maybe would be easier to achieve. The first step would be to make sure all of its dependencies are included in Pyodide. The process to add new packages is documented in https://pyodide.org/en/stable/development/new-packages.html

@ravirathore
Copy link
Author

Hi,

Thanks for the reply.

PaddleOCR needs PaddlePaddle. Their following dependencies are not in this list: https://github.com/pyodide/pyodide/tree/main/packages

protobuf
requests
astor
paddle_bfloat
opt_einsum
shapely
imgaug
pyclipper
lmdb
visualdl
python-Levenshtein
opencv-contrib-python
cython
premailer
openpyxl

Will try to add them.

Please let know if there's an example document available. (e.g. adding bigger packages like scipy)

Thanks and regards,

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

No branches or pull requests

2 participants