1.0.1 • Published 8 months ago

document-intelligence v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

Document Intelligence

Document Intelligence is an automated data processing system that uses AI and OCR to quickly extract text and structure from documents.

Install the package

npm i document-intelligence

Sample Code

const DocumentIntelligence = require('document-intelligence');

const options = {
    key: "your-key",
    endpoint: "your-endpoint"
};

const documentIntelligence = new DocumentIntelligence(options);

const formUrl = [
    "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-layout.pdf",
];

async function runTest() {
    try {
        const result = await documentIntelligence.analyzeDocuments(formUrl);
        console.log('Analysis Result:', result);
    } catch (error) {
        console.error('Error:', error);
    }
}

runTest();