Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jul 2018 18:36:17 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r475598 - in head/graphics: . py-pyocr
Message-ID:  <201807281836.w6SIaHLY074338@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sat Jul 28 18:36:16 2018
New Revision: 475598
URL: https://svnweb.freebsd.org/changeset/ports/475598

Log:
  New port: graphics/py-pyocr: Python wrapper for OCR engines (Tesseract, Cuneiform, etc)

Added:
  head/graphics/py-pyocr/
  head/graphics/py-pyocr/Makefile   (contents, props changed)
  head/graphics/py-pyocr/distinfo   (contents, props changed)
  head/graphics/py-pyocr/pkg-descr   (contents, props changed)
Modified:
  head/graphics/Makefile

Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile	Sat Jul 28 18:33:15 2018	(r475597)
+++ head/graphics/Makefile	Sat Jul 28 18:36:16 2018	(r475598)
@@ -937,6 +937,7 @@
     SUBDIR += py-pyglet
     SUBDIR += py-pygooglechart
     SUBDIR += py-pygraphviz
+    SUBDIR += py-pyocr
     SUBDIR += py-pypillowfight
     SUBDIR += py-pyproj
     SUBDIR += py-pyqtgraph

Added: head/graphics/py-pyocr/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/py-pyocr/Makefile	Sat Jul 28 18:36:16 2018	(r475598)
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+PORTNAME=	pyocr
+DISTVERSION=	0.5.2
+CATEGORIES=	graphics python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Python wrapper for OCR engines (Tesseract, Cuneiform, etc)
+
+LICENSE=	GPLv3
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
+
+USES=		gmake python
+USE_PYTHON=	distutils autoplist
+NO_ARCH=	yes
+
+.include <bsd.port.mk>

Added: head/graphics/py-pyocr/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/py-pyocr/distinfo	Sat Jul 28 18:36:16 2018	(r475598)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1532763489
+SHA256 (pyocr-0.5.2.tar.gz) = bdc4d43bf9b63c2a9a4b2c9a1a623a0e63c8e6600eede5dbe866b31f3a5f2207
+SIZE (pyocr-0.5.2.tar.gz) = 17532

Added: head/graphics/py-pyocr/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/py-pyocr/pkg-descr	Sat Jul 28 18:36:16 2018	(r475598)
@@ -0,0 +1,21 @@
+PyOCR is an optical character recognition (OCR) tool wrapper for python. That
+is, it helps using various OCR tools from a Python program.
+
+It has been tested only on GNU/Linux systems. It should also work on similar
+systems (*BSD, etc). It may or may not work on Windows, MacOSX, etc.
+
+Supported OCR tools:
+* Libtesseract (Python bindings for the C API)
+* Tesseract (wrapper: fork + exec)
+* Cuneiform (wrapper: fork + exec)
+
+Features:
+* Supports all the image formats supported by Pillow, including jpeg, png, gif,
+  bmp, tiff and others
+* Various output types: text only, bounding boxes, etc.
+* Orientation detection (Tesseract and libtesseract only)
+* Can focus on digits only (Tesseract and libtesseract only)
+* Can save and reload boxes in hOCR format
+* PDF generation (libtesseract only)
+
+WWW: https://gitlab.gnome.org/World/OpenPaperwork/pyocr



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807281836.w6SIaHLY074338>