GithubHelp home page GithubHelp logo

image-to-text-apifyactor's Introduction

Actor - Image to Text

The actor takes an input image in a specified format (base64 or url) and using asked Optic Character Recognition (OCR) model (PaddleOCR or Tesseract) extracts textual data in required language (See OCR model documentations for available languages). The result is saved into Key-Value store as one of output formats (pdf, txt or bbox)

INPUT

Input of this actor should be JSON file with following fields:

Field Type Description Allowed values
input_type String Input image format base64 or url
input_image String Image Any valid string value
language String Text language See OCR model documentations (e.g en)
ocr String Specific OCR model paddle or tesseract
output_format String Desired output format bbox/pdf for PaddleOCR or txt/pdf for Tesseract

Sample Input

{
    "input_type": "url",
    "input_image": "https://images4.programmersought.com/934/e8/e89758ae0ed991f1c8aba947addec9e6.png",
    "lang": "eng",
    "ocr": "tesseract", 
    "output_format": "txt" 
}

OUTPUT

Once the actor finishes, it will output a textual data in specified format.

  • bbox : list of bounding boxes and text inside
  • pdf : Base64 encoded pdf file
  • txt : String text

Sample Output

{
    "response": "Sample PDF Document\n\nRobert Maron\nGrzegorz. Grudziriski\n\nFebruary 20, 1999\n\x0c", 
    "error": None
}

image-to-text-apifyactor's People

Contributors

valeh2012 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.