diff --git a/bin/tt.tar.gz b/bin/tt.tar.gz index 69111ed..93cd580 100644 Binary files a/bin/tt.tar.gz and b/bin/tt.tar.gz differ diff --git a/compile-tesseract.sh b/compile-tesseract.sh index 9563507..f419225 100644 --- a/compile-tesseract.sh +++ b/compile-tesseract.sh @@ -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 diff --git a/package.json b/package.json index e370bc5..2538938 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/readme.md b/readme.md index 9720fb8..7456ca8 100644 --- a/readme.md +++ b/readme.md @@ -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) @@ -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.