Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kishyassin/ocr-in-go-fiber
Optical Character Recognition (OCR) on uploaded images using the gosseract library.
https://github.com/kishyassin/ocr-in-go-fiber
fiber-framework golang ocr ocr-text-reader tesseract-ocr
Last synced: 8 days ago
JSON representation
Optical Character Recognition (OCR) on uploaded images using the gosseract library.
- Host: GitHub
- URL: https://github.com/kishyassin/ocr-in-go-fiber
- Owner: kishyassin
- License: mit
- Created: 2024-12-30T10:26:36.000Z (16 days ago)
- Default Branch: main
- Last Pushed: 2025-01-01T00:48:24.000Z (14 days ago)
- Last Synced: 2025-01-01T01:22:03.185Z (14 days ago)
- Topics: fiber-framework, golang, ocr, ocr-text-reader, tesseract-ocr
- Language: Go
- Homepage:
- Size: 0 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OCR-in-GO-Fiber
This project is a simple web application built with Go and the Fiber framework that performs Optical Character Recognition (OCR) on uploaded images using the `gosseract` library.
## Features
- Upload an image file
- Perform OCR on the uploaded image
- Return the extracted text as a JSON response## Requirements
- Go 1.20 or later
- Fiber v2.38.0
- gosseract v2.3.0## Installation
1. Clone the repository:
```sh
git clone https://github.com/kishyassin/OCR-in-GO-Fiber.git
cd OCR-in-GO-Fiber
```2. Install the dependencies:
```sh
go mod tidy
```## Usage
1. Run the application:
```sh
go run main.go
```2. The application will start on port 3000. You can upload an image file to the `/upload` endpoint using a tool like `curl` or Postman.
Example using `curl`:
```sh
curl -X POST http://localhost:3000/upload -F "file=@path/to/your/image.png"
```3. The server will respond with the extracted text in JSON format.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.