自定义发票检测器扩展
【免费下载链接】pdf-inspectorFast Rust library for PDF inspection, classification, and text extraction. Intelligently detects scanned vs text-based PDFs to enable smart routing decisions.项目地址: https://gitcode.com/gh_mirrors/pdf/pdf-inspector
功能概述
本扩展为pdf-inspector添加了专用发票文档检测功能。
安装使用
use pdf_inspector_extensions::invoice::InvoiceDetector; let detector = InvoiceDetector::new(); let result = detector.detect("invoice.pdf")?;配置选项
strict_mode: bool- 严格模式(默认:false)field_threshold: f32- 字段检测阈值(默认:0.8)
示例
见examples/invoice_detection.rs
【免费下载链接】pdf-inspectorFast Rust library for PDF inspection, classification, and text extraction. Intelligently detects scanned vs text-based PDFs to enable smart routing decisions.项目地址: https://gitcode.com/gh_mirrors/pdf/pdf-inspector
创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考