Blast OCR is a Python API that provides a simple endpoint for optical character recognition (OCR) using Tesseract. The API takes an image as input, processes it using Tesseract, and returns the extracted text from the image.
Follow the steps below to set up and run the Blast OCR API on your local machine.
Make sure you have the following prerequisites installed:
- Python 3.10
- Tesseract OCR
- Clone the repository:
git clone https://github.com/nikolliervin/blast-ocr-api.git
- Run the API (First Instance)
uvicorn main:app --reload
- Make a HTTP POST Request to:
/recognize
- Curl example:
curl --location 'http://127.0.0.1:8000/recognize' \ --form 'image=@"C:\\Users\\...\\Desktop\\fastapi.png"'
- API Response
{"text": "FastAPI."}