Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/madeindra/image-to-text
Image to Text (OCR) built using Typescript with Fastify and Tesseract.js
https://github.com/madeindra/image-to-text
fastify image-to-text ocr tesseract
Last synced: about 1 month ago
JSON representation
Image to Text (OCR) built using Typescript with Fastify and Tesseract.js
- Host: GitHub
- URL: https://github.com/madeindra/image-to-text
- Owner: madeindra
- Created: 2023-12-27T13:48:01.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2023-12-30T03:05:54.000Z (12 months ago)
- Last Synced: 2023-12-31T03:42:07.223Z (12 months ago)
- Topics: fastify, image-to-text, ocr, tesseract
- Language: TypeScript
- Homepage:
- Size: 274 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image to Text (OCR)
Simple Image to Text using Tesseract.js for the OCR.
![preview](https://raw.githubusercontent.com/madeindra/image-to-text/master/preview.png "preview")
## Installation
1. Clone the repository
```
git clone https://github.com/madeindra/image-to-text.git
```2. Install dependencies
```
npm install
```3. Build the project
```
npm run build
```4. Export environment variables:
```
export PORT=3000
export HOST=localhost
```5. Start the server
```
npm start
```## Usage
1. Open your browser and visit `http://localhost:3000`
2. Select your image file (try `sample.png` from this repository)
3. Click `Read Image` button
4. Result will be shown in the textarea
## API Documentation
### Recognize Text in an Image
POST /recognize
```
form/multipart-dataimage: yourimagefile
lanaguage: eng
```## TODOs
- [X] Homepage
- [X] Multiple language support
- [ ] Adjust image adjustment before OCR
- [ ] Docker support
- [ ] Testings