Skip to content

CI: resolution sanity check (megapixels vs max_width×max_height) #169

Closed

Description

@ch-bas

Catch data-entry errors like a 4MP camera (2560×1440) mislabeled megapixels: 8 — hand-caught during the X-Spans import.

Add to scripts/build.js (alongside the #124 lint): for single-sensor cameras, warn/error if megapixels diverges from (max_width × max_height) / 1e6 beyond a tolerance (~±35%).

Must exempt multi-sensor cameras — panoramic / dual-lens / X-Spans legitimately use combined megapixels with single-stream max_width×max_height (e.g. SDT8C842 'Dual 8MP' → 16 MP). Detect via type (panoramic/dual-lens) or a 'Dual/Quad/x N' label, and skip those.

Activity

  1. added
    enhancement
    on Jul 27, 2026
  2. ch-bas commented on Jul 29, 2026

    @ch-bas
    OwnerAuthor

    Concrete cleanup targets surfaced by the #177 streams backfill — 14 records carry only megapixels with no max_width/max_height, so a stream (and any resolution-derived logic) can't be built for them. Exactly the class a resolution sanity check should flag:

    • ABUS (5): ipcb74615b, ppic46520, ppic46520w, ppic91000, ppic91520
    • Speco (2): o4fdms1, o8fbms1
    • Costar (7): av05cid-200, av05cid-201, av05cld-200, av10956dn-28, av12cfe-250, av16956dn-28, av4956dn-28

    They need the pixel resolution backfilled from their datasheets. (Beyond the sanity check itself, worth a small data-fix pass.)

  3. added a commit that references this issue on Jul 31, 2026
  4. added 2 commits that reference this issue on Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions