forked from pfsense/FreeBSD-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perform ocr on an image and output text to stdout
- Loading branch information
Showing
5 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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= [email protected] | ||
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1545145985 | ||
SHA256 (Image-OCR-Tesseract-1.24.tar.gz) = cd3428eb2aa9d12154bafbaa89e3d32f41a7b3c6c63884b80857643ca1431262 | ||
SIZE (Image-OCR-Tesseract-1.24.tar.gz) = 1468013 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |