https://github.com/iwstkhr/aws-lambda-tesseract-ocr-sample
Tesseract OCR Sample with AWS Lambda Container Images using AWS SAM
https://github.com/iwstkhr/aws-lambda-tesseract-ocr-sample
aws lambda tesseract-ocr
Last synced: 5 months ago
JSON representation
Tesseract OCR Sample with AWS Lambda Container Images using AWS SAM
- Host: GitHub
- URL: https://github.com/iwstkhr/aws-lambda-tesseract-ocr-sample
- Owner: iwstkhr
- Created: 2022-06-21T20:24:10.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-31T14:46:24.000Z (9 months ago)
- Last Synced: 2024-11-09T20:44:10.379Z (6 months ago)
- Topics: aws, lambda, tesseract-ocr
- Language: Python
- Homepage:
- Size: 783 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS Lambda Tesseract OCR Sample
Tesseract OCR Sample with AWS Lambda Container Images using AWS SAMPlease refer to [How to Run Tesseract OCR + pytesseract in AWS Lambda Container Images](https://wasabee.dev/2022/06/how-to-run-tesseract-ocr-with-pytesseract-in-lambda-container-images/) for more details.
## Requirements
- AWS SAM
- Python 3.9## Build
```shell
sam build
```## Local Invoke
```shell
sam local invoke
```## Deploy
Set your ECR repository URI to `--image-repository`.```shell
sam deploy \
--stack-name aws-lambda-tesseract-ocr-sample \
--image-repository 123456789012.dkr.ecr.ap-northeast-1.amazonaws.com/tesseract-ocr-lambda \
--capabilities CAPABILITY_IAM
```## Delete
```shell
sam delete --stack-name aws-lambda-tesseract-ocr-sample
```