document-intelligence
v1.0.1
Published
Document Intelligence is an automated data processing system that uses AI and OCR to quickly extract text and structure from documents.
Downloads
2
Readme
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();