feat(recipe): ship archival-fidelity form-scan chain (MK-19) #36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/recipe-form-scan-archival-MK-19"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Replaces the MK-18 passthrough stub at
src/image/recipes/form-scan.tomlwith the archival-fidelity chain spec'd in MK-19:deskew->despeckle(conservative threshold/radius) ->constrained-sharpen(light, edge-aware). The chain preserves the FM-screened mid-tone panels for human review while still correcting sheet-fed skew, removing CCD speckle, and tightening text outside the panels.OCR-prep stays out of scope: re-run
monkey image autowith--class binary-scanon the archival output when binarising is needed.What changed
src/image/recipes/form-scan.toml: three-step chain replaces the passthrough stub.contrast-stretch,local-contrast,boost-screen,vivid-screen,stamp,sharp-abstract) along with the failure mode for each.No code changes outside the recipe file.
Acceptance criteria status (from MK-19)
every_embedded_recipe_parsespasses (cargo test every_embedded_recipe_parses).just check(fmt + clippy + build + Docker stage) passes.monkey image auto <fixture> /tmp/out.png --class form-scanagainsttests/fixtures/classify/form-scan/: not verifiable in this environment. The fixtures directory is gitignored (tests/fixtures/per.gitignore) and no fixtures are checked out locally. Reviewer with a populated fixture tree can validate by runningjust classify-fixturesor the explicitmonkey image autocommand above.Test plan
cargo test every_embedded_recipe_parsesjust checkmonkey image autoagainst the 1099-MISC / 1099-NEC / vehicle-inspection fixtures, confirm panels remain visually mid-tone (not crushed toward white), attach before/after PNGs.Closes MK-19.