feat(image): add classify subcommand (MK-6) #24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/image-classify"
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?
Implements MK-6 (Layer 1 of the MK-5 training-loop design).
Summary
monkey image classify <input>which prints<class>\t<confidence>to stdout. Classes:color-photo,mono-photo,binary-scan,halftone-scan,receipt,screenshot,unknown.src/image/classify.toml, overridable via$XDG_CONFIG_HOME/monkey/classify.toml(or$HOME/.config/monkey/classify.toml). Tuning iterations need no rebuild.toml = "0.8",serde = { version = "1", features = ["derive"] }. Both small and well-established; no model runtime, no FFT crate.What this unblocks
monkey image autorecipe runner (future sub-issue of MK-5), which dispatches on the label this subcommand emits.Design notes worth flagging
Test plan
cargo test(62 tests pass, 10 new inimage::classify::tests).just check(fmt + clippy-D warnings+ cargo build + Docker builder-stage compile).