<div align="center"> <h1>@angularai/doc-intelligence</h1> <p>📄 AI-powered document processing and OCR for Angular applications</p>
npm install @angularai/doc-intelligence📄 AI-powered document processing and OCR for Angular applications
@angularai/doc-intelligence provides AI-powered document processing, OCR, and text extraction capabilities for Angular applications. Extract text, analyze documents, and process PDFs with intelligent AI assistance.
- 📄 Document Processing: Extract text from PDFs, images, and documents
- 🔍 OCR Support: Optical character recognition for scanned documents
- 🧠 AI Analysis: Intelligent document understanding and summarization
- 📊 Data Extraction: Extract structured data from unstructured documents
- 🔧 Fully Typed: Complete TypeScript support
- 📱 File Upload: Drag-and-drop file upload component
``bash`
npm install @angularai/doc-intelligence @angularai/core
`typescript
import { Component } from '@angular/core';
import { DocProcessorComponent } from '@angularai/doc-intelligence';
@Component({
selector: 'app-doc-processor',
standalone: true,
imports: [DocProcessorComponent],
template:
[apiKey]="apiKey"
(textExtracted)="onTextExtracted($event)"
(documentAnalyzed)="onAnalyzed($event)"
/>
})
export class DocProcessorComponent {
apiKey = 'your-openai-api-key';
onTextExtracted(text: string) {
console.log('Extracted text:', text);
}
onAnalyzed(analysis: DocumentAnalysis) {
console.log('Document analysis:', analysis);
}
}
`
`typescript
import { Component, inject } from '@angular/core';
import { DocIntelligenceService } from '@angularai/doc-intelligence';
@Component({ ... })
export class DocumentComponent {
private docService = inject(DocIntelligenceService);
async processDocument(file: File) {
this.docService.extractText(file).subscribe({
next: (text) => console.log('Extracted:', text),
error: (err) => console.error('Error:', err)
});
}
async summarizeDocument(file: File) {
this.docService.summarize(file).subscribe({
next: (summary) => console.log('Summary:', summary)
});
}
}
`
`typescript
@Injectable({ providedIn: 'root' })
export class DocIntelligenceService {
// Extract text from document
extractText(file: File): Observable
// Summarize document content
summarize(file: File): Observable
// Extract structured data
extractData(file: File, schema: DataSchema): Observable
// Analyze document
analyze(file: File): Observable
}
``
| Type | Extensions | Status |
|------|------------|--------|
| PDF | .pdf | ✅ Available |
| Images | .jpg, .png, .gif | ✅ Available |
| Documents | .doc, .docx | ✅ Available |
| Text | .txt, .md | ✅ Available |
| Package | Description |
|---------|-------------|
| @angularai/core | Core AI functionality |
| @angularai/image-caption | AI image captioning |
| Framework | Repository | Status |
|-----------|-----------|--------|
| Vue.js | @aivue | ✅ Available |
| React | @anthropic-ai/react | ✅ Available |
| Angular | @angularai | ✅ Available |
| Svelte | @svelteai | 💡 Planned |
MIT © AngularAI