aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordvl <dvl@FreeBSD.org>2018-12-19 04:18:05 +0800
committerdvl <dvl@FreeBSD.org>2018-12-19 04:18:05 +0800
commit650f53fbdbcc6bdb72f1ec5ec7eea05a529b1ff6 (patch)
tree69a57281ab50fad2453a1ebf8e4914507ae12aa1 /graphics
parente3f13d06cfeefe627d7be268acb86dfdb2c1ee14 (diff)
downloadfreebsd-ports-gnome-650f53fbdbcc6bdb72f1ec5ec7eea05a529b1ff6.tar.gz
freebsd-ports-gnome-650f53fbdbcc6bdb72f1ec5ec7eea05a529b1ff6.tar.zst
freebsd-ports-gnome-650f53fbdbcc6bdb72f1ec5ec7eea05a529b1ff6.zip
Add graphics/p5-Image-OCR-Tesseract
perform ocr on an image and output text to stdout
Diffstat (limited to 'graphics')
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/p5-Image-OCR-Tesseract/Makefile25
-rw-r--r--graphics/p5-Image-OCR-Tesseract/distinfo3
-rw-r--r--graphics/p5-Image-OCR-Tesseract/pkg-descr17
-rw-r--r--graphics/p5-Image-OCR-Tesseract/pkg-plist5
5 files changed, 51 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index bc737242def2..8569c2fde132 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -763,6 +763,7 @@
SUBDIR += p5-Image-Math-Constrain
SUBDIR += p5-Image-MetaData-GQview
SUBDIR += p5-Image-MetaData-JPEG
+ SUBDIR += p5-Image-OCR-Tesseract
SUBDIR += p5-Image-ObjectDetect
SUBDIR += p5-Image-PBMlib
SUBDIR += p5-Image-PNG-Libpng
diff --git a/graphics/p5-Image-OCR-Tesseract/Makefile b/graphics/p5-Image-OCR-Tesseract/Makefile
new file mode 100644
index 000000000000..679a78689aa9
--- /dev/null
+++ b/graphics/p5-Image-OCR-Tesseract/Makefile
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+PORTNAME= Image-OCR-Tesseract
+PORTVERSION= 1.24
+CATEGORIES= graphics perl5
+MASTER_SITES= CPAN
+MASTER_SITE_SUBDIR= CPAN:LEOCHARRE
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= dvl@FreeBSD.org
+COMMENT= Read an image with Resseract OCR and get output
+
+LICENSE= GPLv3
+
+MYDEPENDS= tesseract>0:graphics/tesseract \
+ ImageMagick6-nox11>0:graphics/ImageMagick6-nox11
+BUILD_DEPENDS= ${MY_DEPENDS}
+RUN_DEPENDS= ${MY_DEPENDS}
+
+USES= perl5
+USE_PERL5= configure
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/graphics/p5-Image-OCR-Tesseract/distinfo b/graphics/p5-Image-OCR-Tesseract/distinfo
new file mode 100644
index 000000000000..63cdeea3c066
--- /dev/null
+++ b/graphics/p5-Image-OCR-Tesseract/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1545145985
+SHA256 (Image-OCR-Tesseract-1.24.tar.gz) = cd3428eb2aa9d12154bafbaa89e3d32f41a7b3c6c63884b80857643ca1431262
+SIZE (Image-OCR-Tesseract-1.24.tar.gz) = 1468013
diff --git a/graphics/p5-Image-OCR-Tesseract/pkg-descr b/graphics/p5-Image-OCR-Tesseract/pkg-descr
new file mode 100644
index 000000000000..40e818e13d4e
--- /dev/null
+++ b/graphics/p5-Image-OCR-Tesseract/pkg-descr
@@ -0,0 +1,17 @@
+Provides a perl interface to tesseract.
+
+This is just an interface to make it quick an easy to get ocr output from an
+image file. No matter what image type you provide, imagemagick convert is
+called to turn it into the format for tesseract
+
+Also accepts any image input- takes care of converting your imput image to a
+tiff to the required specs, without changing the original.
+
+Example usage:
+
+ocr ./image.jpg > ./savetext.txt
+ocr ./image.png
+ocr ./image1.jpg ./image2.jpg > ./alltext.txt
+ocr ./image*jpg
+
+WWW: https://metacpan.org/release/LEOCHARRE/Image-OCR-Tesseract-1.24
diff --git a/graphics/p5-Image-OCR-Tesseract/pkg-plist b/graphics/p5-Image-OCR-Tesseract/pkg-plist
new file mode 100644
index 000000000000..081969e09495
--- /dev/null
+++ b/graphics/p5-Image-OCR-Tesseract/pkg-plist
@@ -0,0 +1,5 @@
+bin/ocr
+%%SITE_PERL%%/Image/OCR/Tesseract.pm
+%%SITE_PERL%%/Image/OCR/Tesseract.pod
+%%PERL5_MAN1%%/ocr.1.gz
+%%PERL5_MAN3%%/Image::OCR::Tesseract.3.gz