Skip to content

πŸ“„ Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

feat(rapidocr_api): add extras_require (#281)

huangbinghea58d5d2f6e79
diff --git a/api/setup.py b/api/setup.py
index 9b5f7c3..61af9ec 100644
--- a/api/setup.py
+++ b/api/setup.py
@@ -56,6 +56,11 @@ setuptools.setup(
license="Apache-2.0",
include_package_data=True,
install_requires=read_txt("requirements.txt"),
+ extras_require={
+ 'onnx': ['rapidocr-onnxruntime'],
+ 'paddle': ['rapidocr-paddle'],
+ 'openvino': ['rapidocr-openvino'],
+ },
packages=[MODULE_NAME],
package_data={"": ["*.ico", "*.css", "*.js", "*.html"]},
keywords=[