Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Nov 2025 20:50:11 +0000
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 641c004f4131 - main - graphics/py-easyocr: New port: End-to-end multi-lingual Optical Character Recognition (OCR) solution
Message-ID:  <692b5c83.2b8eb.4f112eda@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=641c004f4131caf0d4b79fe1daccb3cba7af6b6b

commit 641c004f4131caf0d4b79fe1daccb3cba7af6b6b
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-11-29 20:46:39 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-11-29 20:50:01 +0000

    graphics/py-easyocr: New port: End-to-end multi-lingual Optical Character Recognition (OCR) solution
---
 graphics/Makefile             |  1 +
 graphics/py-easyocr/Makefile  | 38 ++++++++++++++++++++++++++++++++++++++
 graphics/py-easyocr/distinfo  |  3 +++
 graphics/py-easyocr/pkg-descr |  8 ++++++++
 4 files changed, 50 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index 51f35b13adad..9f97fe7467df 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -925,6 +925,7 @@
     SUBDIR += py-dj52-sorl-thumbnail
     SUBDIR += py-django-easy-thumbnails
     SUBDIR += py-djvulibre
+    SUBDIR += py-easyocr
     SUBDIR += py-exifread
     SUBDIR += py-f3d
     SUBDIR += py-face_recognition
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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?692b5c83.2b8eb.4f112eda>