1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00

Add graphics/p5-Image-OCR-Tesseract

perform ocr on an image and output text to stdout
This commit is contained in:
Dan Langille 2018-12-18 20:18:05 +00:00
parent 61593aa4ac
commit e3148578a5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=487769
5 changed files with 51 additions and 0 deletions

View File

@ -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

View File

@ -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>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1545145985
SHA256 (Image-OCR-Tesseract-1.24.tar.gz) = cd3428eb2aa9d12154bafbaa89e3d32f41a7b3c6c63884b80857643ca1431262
SIZE (Image-OCR-Tesseract-1.24.tar.gz) = 1468013

View File

@ -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

View File

@ -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