pdf_ocr_vlm 1.2.2
pdf_ocr_vlm: ^1.2.2 copied to clipboard
HTTP OCR engine for dart_pdf_editor that adds a selectable, searchable text layer to scanned PDFs using a self-hosted VLM or any JSON OCR service.
// ignore_for_file: avoid_print
import 'package:pdf_ocr_vlm/pdf_ocr_vlm.dart';
void main() {
final engine = VlmOcrEngine.dotsOcr(
endpoint: Uri.parse('http://localhost:8000/v1/chat/completions'),
model: 'model',
);
print('OCR endpoint: ${engine.endpoint}');
print('Languages: ${engine.languages}');
engine.close();
}