feat: add receipt OCR pipeline (refs #69)
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 32s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 31s
Deploy to Staging / Verify Staging (pull_request) Successful in 2m20s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 8s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 32s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 31s
Deploy to Staging / Verify Staging (pull_request) Successful in 2m20s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 8s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped
Implement receipt-specific OCR extraction for fuel receipts: - Pattern matching modules for date, currency, and fuel data extraction - Receipt-optimized image preprocessing for thermal receipts - POST /extract/receipt endpoint with field extraction - Confidence scoring per extracted field - Cross-validation of fuel receipt data - Unit tests for all pattern matchers Extracted fields: merchantName, transactionDate, totalAmount, fuelQuantity, pricePerUnit, fuelGrade Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,23 @@
|
||||
"""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
|
||||
|
||||
__all__ = [
|
||||
"BaseExtractor",
|
||||
"ExtractionResult",
|
||||
"VinExtractor",
|
||||
"vin_extractor",
|
||||
"ReceiptExtractor",
|
||||
"receipt_extractor",
|
||||
"ReceiptExtractionResult",
|
||||
"ExtractedField",
|
||||
"FuelReceiptExtractor",
|
||||
"fuel_receipt_extractor",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user