nikolliervin / blast

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blast OCR API

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.

Getting Started

Follow the steps below to set up and run the Blast OCR API on your local machine.

Prerequisites

Make sure you have the following prerequisites installed:

Installation

  1. Clone the repository:
    git clone https://github.com/nikolliervin/blast-ocr-api.git
    

Usage

  1. Run the API (First Instance)
    uvicorn main:app --reload
  2. Make a HTTP POST Request to:
    /recognize
    
  3. Curl example:
    curl --location 'http://127.0.0.1:8000/recognize' \ --form 'image=@"C:\\Users\\...\\Desktop\\fastapi.png"'
  4. API Response
    {"text": "FastAPI."}

About

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.


Languages

Language:Python 99.8%Language:PowerShell 0.2%Language:Batchfile 0.0%Language:Dockerfile 0.0%