OCR

Read the text in a picture or PDF

Returns the text, Tesseract's confidence and, with words=true, every word with its box. A PDF is read up to 10 pages at a time at 300 dpi; a PDF that already holds text is read faster by /v1/pdf/text. Options go in the query string, or as form fields when the file is sent as multipart/form-data.

post/v1/ocr

Request

  • Base URL: https://api.dharun.dev
  • URL: https://api.dharun.dev/v1/ocr
  • Auth: none declared

Query parameters

langstring

Languages, joined by + or a comma: eng, hin, tam, tel, kan, mal, ben, guj, pan, ori, mar (or en, ta, hi...). Default eng.

words'true' | 'false'

Also return each word with its confidence and box.

firstinteger

PDF: first page to read. Default 1.

lastinteger

PDF: last page to read; at most 10 pages per request.

Response

Success

dataunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.