Clock photo metadata prefilters and original acquisition #10
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/photo-prefilters"
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?
Related #5. Draft stage-1 metadata enrichment; not merge-ready.
Contract (operator confirmed)
Stage 1 enriches metadata with metrics, stage-local verdicts/reasons and provenance. It does not remove images or decide final use. Generated ignored sidecar
.photo-curation/prefilter.json; committed structural schema; join by(set_id, file, sha256). Final pipeline combines later-stage evidence under explicit versioned policy. Attribution/source manifest remains unchanged.Analysis v2 requires EXIF-oriented original width >=1920 and height >=1080 before thumbnailing, for no-upscale 16:9 cover. Prepared assets and original byte evidence are distinct.
Implemented
• Deterministic offline Pillow/numpy scorer: resolution, cover loss, blur, exposure, exact/near duplicates, EXIF; atomic versioned evidence with config/hash/provenance, summaries, error/review/reject/pass.
• Isolated optional prefilter environment, 15 synthetic tests, schema, docs/wiki.
• Separate original acquisition:
scripts/fetch-clock-originals.py <set>downloads raw unresized bytes to ignored worktree.photo-curation/originals/<set>/, no build hook or app/shared-cache writes. HTTPS/curl, serial spacing/retry/limits, atomic hashed receipts, byte-verified resume; Commons File seed URLs resolved to original upload URLs. Download receipt schema (docs/photo-original-download.schema.json) and 4 downloader tests included.• Committed and pushed to
feat/photo-prefilters(commit13865ae).New York evidence
Prepared pool (518 assets)
All 518 prepared inputs and built resource copies scanned read-only; reports identical including hashes. 0 pass / 518 reject / 0 review / 0 errors, 5.483s and 5.511s (~94 images/s). Root cause: existing fetch reduces downloads to 1280px; all fail 1080p width. This does not establish original resolution.
Original pool (518 assets, 2.9 GiB)
All 518 manifest identities (505 download URLs + 13 seeds) acquired with 0 download errors. Analysis of original bytes: 31.461s (~16.5 images/s), 487/518 decoded, 279 pass (53.9%), 60 reject (11.6%), 148 review (28.6%), 31 error (6.0%). Evidence:
.photo-curation/new-york-originals-v2.json.In contrast to prepared assets where 100% failed resolution, only 58 original photos (11.2%) fail the 1080p requirement.
Overlapping reasons across all 518 entries:
resolution_too_small: 58cover_crop_loss(>35%): 185extreme_cover_crop(>75%): 1dark_exposure: 6crushed_shadows: 2blown_highlights: 1low_contrast: 1near_duplicate: 6exact_duplicate: 1Input errors (31 total) represent honest bounds on original inputs:
input_byte_limit: 9 (raw files >32 MiB, e.g. large archival TIFF scans like Brooklyn Bridge at 213 MiB)invalid_exif_orientation: 8unsafe_or_undecodable_input: 14 (Pillow decompressed pixel limits or unhandled format)Validation / remaining work
• All 15 synthetic tests pass (11 scorer + 4 downloader); py_compile and diff checks pass.
• Street-photography was not acquired or scanned.
• Inspect real flagged photos and review cutoffs with operator.
• Evidence merger/final eligibility policy and pre-Vision consumer are not implemented. Existing probe/bake/runtime selection and runtime 1600px/q0.7 encoding are unchanged.
• No build/test GUI, launch/quit, Vision, app photo changes or shared runtime-cache writes. make test and physical rendering remain unverified.
Operating instructions and full distributions are in
docs/photo-prefilters.md; generated original bytes/reports are not committed. No merge or issue closure.Updated for operator request in #5: analysis v2 rejects sources below EXIF-oriented 1920x1080, checking both axes for no-upscale 16:9 cover instead of discovery long/short-edge floors. Added exact-boundary, panorama, portrait, 4K and EXIF tests; schema/docs/wiki updated. All 11 isolated synthetic tests and git diff --check pass. Historical seed calibration is explicitly v1. No build, launch, Vision, runtime caches or live bundle changes. Still report-only: fresh-pass ingest enforcement is pending; runtime 1600px JPEG encoding is unchanged. Not merge-ready.
WIP: Report-only model-free clock photo prefiltersto WIP: Clock photo metadata prefilters and original acquisitionWIP: Clock photo metadata prefilters and original acquisitionto Clock photo metadata prefilters and original acquisition