From owner-svn-ports-head@freebsd.org Tue Dec 18 20:18:07 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 391C7133DFEF; Tue, 18 Dec 2018 20:18:07 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CDCE586449; Tue, 18 Dec 2018 20:18:06 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C13473FF0; Tue, 18 Dec 2018 20:18:06 +0000 (UTC) (envelope-from dvl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wBIKI66h035408; Tue, 18 Dec 2018 20:18:06 GMT (envelope-from dvl@FreeBSD.org) Received: (from dvl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wBIKI58m035404; Tue, 18 Dec 2018 20:18:05 GMT (envelope-from dvl@FreeBSD.org) Message-Id: <201812182018.wBIKI58m035404@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dvl set sender to dvl@FreeBSD.org using -f From: Dan Langille Date: Tue, 18 Dec 2018 20:18:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r487769 - in head/graphics: . p5-Image-OCR-Tesseract X-SVN-Group: ports-head X-SVN-Commit-Author: dvl X-SVN-Commit-Paths: in head/graphics: . p5-Image-OCR-Tesseract X-SVN-Commit-Revision: 487769 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: CDCE586449 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.98)[-0.977,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2018 20:18:07 -0000 Author: dvl Date: Tue Dec 18 20:18:05 2018 New Revision: 487769 URL: https://svnweb.freebsd.org/changeset/ports/487769 Log: Add graphics/p5-Image-OCR-Tesseract perform ocr on an image and output text to stdout Added: head/graphics/p5-Image-OCR-Tesseract/ head/graphics/p5-Image-OCR-Tesseract/Makefile (contents, props changed) head/graphics/p5-Image-OCR-Tesseract/distinfo (contents, props changed) head/graphics/p5-Image-OCR-Tesseract/pkg-descr (contents, props changed) head/graphics/p5-Image-OCR-Tesseract/pkg-plist (contents, props changed) Modified: head/graphics/Makefile Modified: head/graphics/Makefile ============================================================================== --- head/graphics/Makefile Tue Dec 18 20:12:33 2018 (r487768) +++ head/graphics/Makefile Tue Dec 18 20:18:05 2018 (r487769) @@ -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 Added: head/graphics/p5-Image-OCR-Tesseract/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/p5-Image-OCR-Tesseract/Makefile Tue Dec 18 20:18:05 2018 (r487769) @@ -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 Added: head/graphics/p5-Image-OCR-Tesseract/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/p5-Image-OCR-Tesseract/distinfo Tue Dec 18 20:18:05 2018 (r487769) @@ -0,0 +1,3 @@ +TIMESTAMP = 1545145985 +SHA256 (Image-OCR-Tesseract-1.24.tar.gz) = cd3428eb2aa9d12154bafbaa89e3d32f41a7b3c6c63884b80857643ca1431262 +SIZE (Image-OCR-Tesseract-1.24.tar.gz) = 1468013 Added: head/graphics/p5-Image-OCR-Tesseract/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/p5-Image-OCR-Tesseract/pkg-descr Tue Dec 18 20:18:05 2018 (r487769) @@ -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 Added: head/graphics/p5-Image-OCR-Tesseract/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/p5-Image-OCR-Tesseract/pkg-plist Tue Dec 18 20:18:05 2018 (r487769) @@ -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