charlesfrye / text-recognizer-gpu

Detects one paragraph of text in an image.

  • Public
  • 19.9K runs
  • T4
  • GitHub

Run charlesfrye/text-recognizer-gpu with an API

Use one of our client libraries to get started quickly.

Set the REPLICATE_API_TOKEN environment variable

export REPLICATE_API_TOKEN=<paste-your-token-here>

Learn more about authentication

Install Replicate’s Node.js client library

npm install replicate
Learn more about setup

Run charlesfrye/text-recognizer-gpu using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

import Replicate from "replicate";
const replicate = new Replicate();

const input = {
    image: "https://replicate.delivery/mgxm/505d5d4c-bf46-47ae-adfe-6a2f836c7a36/a01-077.png"
};

const output = await replicate.run("charlesfrye/text-recognizer-gpu:88b1d3ce323d60db562cac15d0abe0fb4d6c99e58bffba6bb6836acd92f13a73", { input });
console.log(output)
//=> "And, since this is election year in West\nGermany, Dr. A...
Learn more