Skip to content

Commit

Permalink
feat: compile fresh tesseract 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vladholubiev committed Nov 3, 2019
1 parent 9230b64 commit 7cd0e11
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file modified bin/tt.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion compile-tesseract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ make install
cd ~
git clone https://github.com/tesseract-ocr/tesseract.git
cd tesseract
git checkout 4.0.0
git checkout 4.1.0
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
./autogen.sh
./configure
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@shelf/aws-lambda-tesseract",
"version": "2.0.1",
"description": "6 MB Tesseract (with English training data) to fit inside AWS Lambda",
"description": "6 MB Tesseract 4.1 (with English training data) to fit inside AWS Lambda",
"license": "MIT",
"repository": "shelfio/aws-lambda-tesseract",
"author": {
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# aws-lambda-tesseract [![CircleCI](https://circleci.com/gh/shelfio/aws-lambda-tesseract/tree/master.svg?style=svg)](https://circleci.com/gh/shelfio/aws-lambda-tesseract/tree/master) ![](https://img.shields.io/badge/code_style-prettier-ff69b4.svg) [![Tesseract](https://img.shields.io/badge/tesserract-6_MB-brightgreen.svg)](bin/)

> 6 MB Tesseract (with English training data) to fit inside AWS Lambda
> 6 MB Tesseract 4.1 (with English training data) to fit inside AWS Lambda
Inspired by [chrome-aws-lambda](https://github.com/alixaxel/chrome-aws-lambda) & [lambda-scanner-ocr](https://github.com/philippkeller/lambda-scanner-ocr)

Expand All @@ -16,7 +16,7 @@ $ yarn add @shelf/aws-lambda-tesseract

## How does it work?

This package contains an archive with [Tesseract 4.0](https://github.com/tesseract-ocr/tesseract) compiled for usage in AWS Lambda environment.
This package contains an archive with [Tesseract 4.1](https://github.com/tesseract-ocr/tesseract) compiled for usage in AWS Lambda environment.

When a Lambda starts, it unpacks an archive with a binary to the `/tmp` folder and makes sure it's done only once per Lambda cold start.

Expand Down

0 comments on commit 7cd0e11

Please sign in to comment.