[fiscus-capture] Receipts: the fields every Czech receipt shows, read from an OCR's words; payment.receipt_attached
fiscus_capture::receipt::read takes the OCR's lines (words with boxes and confidence in thousandths) and finds the total, date and time, IČO (check digit), DIČ and the shop's name by their labels, never a shop's layout; unsure words mark their field, the shop is always to check; bounded, control characters dropped, a proptest. The phone's post takes a receipt (source receipt, ico, dic). The ledger gains payment.receipt_attached (the payment keeps its merchant and key), known_shop and receipt_match (exactly one candidate or none). docs/07_receipts.md; fixtures/receipts/ waits for redacted samples. v0.9.0.
This commit is contained in:
@@ -13,6 +13,7 @@ pub mod merchant;
|
||||
pub mod money;
|
||||
pub mod pay;
|
||||
pub mod project;
|
||||
pub mod receipt;
|
||||
pub mod share;
|
||||
pub mod split;
|
||||
pub mod state;
|
||||
@@ -20,4 +21,5 @@ pub mod state;
|
||||
pub use date::{Date, Timestamp};
|
||||
pub use event::{BudgetId, CaptureKind, Category, Decision, Event, EventBody, EventId, PaymentId, Settlement, SplitId};
|
||||
pub use money::Haler;
|
||||
pub use receipt::{KnownShop, ReceiptInfo};
|
||||
pub use state::{EffectivePayment, Glyph, Origin, ShareView, State};
|
||||
|
||||
Reference in New Issue
Block a user