Skip to main content

Azure Form Recognizer client library for Deno

A port of Azure Cognitive Services Form Recognizer for Deno is a cloud service that uses machine learning to analyze text and structured data from your documents. It includes the following main features:

  • Layout - Extract text, table structures, and selection marks, along with their bounding region coordinates, from documents.
  • Document - Analyze entities, key-value pairs, tables, and selection marks from documents using the general prebuilt document model.
  • Read - Read information about textual elements, such as page words and lines in addition to text language information.
  • Prebuilt - Analyze data from certain types of common documents (such as receipts, invoices, business cards, or identity documents) using prebuilt models.
  • Custom - Build custom models to extract text, field values, selection marks, and table data from documents. Custom models are built with your own data, so they’re tailored to your documents.

Source code | Package (NPM) | API reference documentation | Product documentation | Samples

Getting started

import { DocumentAnalysisClient, AzureKeyCredential } from "https://cdn.jsdelivr.net/gh/y10/ai-form-recognizer/mod.ts";

const credential = new AzureKeyCredential("<api key>");
const client = new DocumentAnalysisClient(
  "https://<resource name>.cognitiveservices.azure.com",
  credential
);

// Form Recognizer supports many different types of files.
const awaiter = await client.analyzeFromUrl("<model ID>", "https://your.website.com/shared/document.pdf");

const result = await awaiter.wait();

Prerequisites