summaryrefslogtreecommitdiff
path: root/graphics/py-easyocr
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/py-easyocr')
-rw-r--r--graphics/py-easyocr/Makefile38
-rw-r--r--graphics/py-easyocr/distinfo3
-rw-r--r--graphics/py-easyocr/pkg-descr8
3 files changed, 49 insertions, 0 deletions
diff --git a/graphics/py-easyocr/Makefile b/graphics/py-easyocr/Makefile
new file mode 100644
index 000000000000..418ed2819c10
--- /dev/null
+++ b/graphics/py-easyocr/Makefile
@@ -0,0 +1,38 @@
+PORTNAME= easyocr
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.7.2
+CATEGORIES= graphics python
+#MASTER_SITES= PYPI # no tarball
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= End-to-end multi-lingual Optical Character Recognition (OCR) solution
+WWW= https://github.com/jaidedai/easyocr
+
+LICENSE= GPLv3
+
+USES= python
+USE_PYTHON= distutils autoplist pytest
+
+RUN_DEPENDS= ${PYNUMPY} \
+ opencv>0:graphics/opencv \
+ ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyclipper>0:math/py-pyclipper@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}python-bidi>0:textproc/py-python-bidi@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyyaml>0:devel/py-pyyaml@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}scikit-image>=0:graphics/py-scikit-image@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}shapely>0:devel/py-shapely@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}torchvision>=0.5:misc/py-torchvision@${PY_FLAVOR} \
+
+USE_GITHUB= yes
+GH_ACCOUNT= jaidedai
+
+WRKSRC= ${WRKDIR}/EasyOCR-${DISTVERSION}
+
+NO_ARCH= yes
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+.include <bsd.port.mk>
diff --git a/graphics/py-easyocr/distinfo b/graphics/py-easyocr/distinfo
new file mode 100644
index 000000000000..b1fb76222f40
--- /dev/null
+++ b/graphics/py-easyocr/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1764405517
+SHA256 (jaidedai-easyocr-v1.7.2_GH0.tar.gz) = 1c20356483964c7c80ccf86f2a0957cfed47768e9bbc99b9ff2eb47cb9cb1448
+SIZE (jaidedai-easyocr-v1.7.2_GH0.tar.gz) = 79231425
diff --git a/graphics/py-easyocr/pkg-descr b/graphics/py-easyocr/pkg-descr
new file mode 100644
index 000000000000..a69382b5df06
--- /dev/null
+++ b/graphics/py-easyocr/pkg-descr
@@ -0,0 +1,8 @@
+EasyOCR is a Python package for out-of-the-box Optical Character
+Recognition (OCR) with 80+ supported languages and all common writing
+scripts, including Latin, Chinese, Arabic, Devanagari, Cyrillic, etc.
+
+This port provides:
+* the CLI OCR tool
+* the Python API for recognizing text in images through the Python
+ module EasyOCR