All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 3m1s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 31s
Deploy to Staging / Verify Staging (pull_request) Successful in 2m19s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 7s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped
Implement async PDF processing for owner's manuals with maintenance schedule extraction: - Add PDF preprocessor with PyMuPDF for text/scanned PDF handling - Add maintenance pattern matching (mileage, time, fluid specs) - Add service name mapping to maintenance subtypes - Add table detection and parsing for schedule tables - Add manual extractor orchestrating the complete pipeline - Add POST /extract/manual endpoint for async job submission - Add Redis job queue support for manual extraction jobs - Add progress tracking during processing Processing pipeline: 1. Analyze PDF structure (text layer vs scanned) 2. Find maintenance schedule sections 3. Extract text or OCR scanned pages at 300 DPI 4. Detect and parse maintenance tables 5. Normalize service names and extract intervals 6. Return structured maintenance schedules with confidence scores Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
36 lines
963 B
Python
36 lines
963 B
Python
"""Extractors package for domain-specific OCR extraction."""
|
|
from app.extractors.base import BaseExtractor, ExtractionResult
|
|
from app.extractors.vin_extractor import VinExtractor, vin_extractor
|
|
from app.extractors.receipt_extractor import (
|
|
ReceiptExtractor,
|
|
receipt_extractor,
|
|
ReceiptExtractionResult,
|
|
ExtractedField,
|
|
)
|
|
from app.extractors.fuel_receipt import FuelReceiptExtractor, fuel_receipt_extractor
|
|
from app.extractors.manual_extractor import (
|
|
ManualExtractor,
|
|
manual_extractor,
|
|
ManualExtractionResult,
|
|
ExtractedSchedule,
|
|
VehicleInfo,
|
|
)
|
|
|
|
__all__ = [
|
|
"BaseExtractor",
|
|
"ExtractionResult",
|
|
"VinExtractor",
|
|
"vin_extractor",
|
|
"ReceiptExtractor",
|
|
"receipt_extractor",
|
|
"ReceiptExtractionResult",
|
|
"ExtractedField",
|
|
"FuelReceiptExtractor",
|
|
"fuel_receipt_extractor",
|
|
"ManualExtractor",
|
|
"manual_extractor",
|
|
"ManualExtractionResult",
|
|
"ExtractedSchedule",
|
|
"VehicleInfo",
|
|
]
|