{"id":51604069,"url":"https://github.com/thatsfguy/pictureslidecapture","last_synced_at":"2026-07-12T00:01:56.997Z","repository":{"id":370577397,"uuid":"1292435340","full_name":"thatSFguy/pictureSlideCapture","owner":"thatSFguy","description":"⚠️ ALPHA — Tethered DSLR capture for digitizing 35mm slides \u0026 negatives, run from any browser. A stdlib-only Python web app; deployable as a Raspberry Pi flash-and-go appliance.","archived":false,"fork":false,"pushed_at":"2026-07-09T16:57:34.000Z","size":256,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-09T17:14:17.685Z","etag":null,"topics":["digitization","dslr","film-scanning","gphoto2","raspberry-pi"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thatSFguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-07T14:22:12.000Z","updated_at":"2026-07-09T16:57:40.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thatSFguy/pictureSlideCapture","commit_stats":null,"previous_names":["thatsfguy/pictureslidecapture"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/thatSFguy/pictureSlideCapture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatSFguy%2FpictureSlideCapture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatSFguy%2FpictureSlideCapture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatSFguy%2FpictureSlideCapture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatSFguy%2FpictureSlideCapture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thatSFguy","download_url":"https://codeload.github.com/thatSFguy/pictureSlideCapture/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thatSFguy%2FpictureSlideCapture/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35377925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-11T02:00:05.354Z","response_time":104,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["digitization","dslr","film-scanning","gphoto2","raspberry-pi"],"created_at":"2026-07-12T00:01:55.956Z","updated_at":"2026-07-12T00:01:56.989Z","avatar_url":"https://github.com/thatSFguy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Film Scanning Rig\n\n\u003e ## ⚠️ Alpha\n\u003e Early and under active development. It works end-to-end on the author's setup\n\u003e (Canon EOS 400D on a Raspberry Pi Zero W), but it's been tested on exactly one\n\u003e camera and rig, has **no authentication** (designed for a trusted home LAN),\n\u003e and interfaces may change. Use at your own risk; expect rough edges.\n\nDigitize 35mm slides and negatives with a tethered Canon DSLR — a web app you\ndrive from any browser to place a slide, capture it, and review the batch.\n\n\u003e **Status:** manual capture app is working (including a Raspberry Pi flash-and-go\n\u003e appliance with in-app updates); the automated XY gantry is deferred until the\n\u003e manual workflow is proven. See [CLAUDE.md](CLAUDE.md) for hardware/dev notes.\n\n## What it is\n\nA DSLR is mounted over a backlit high-CRI light pad; film is placed in a holder\nunder the lens and triggered over USB. The host runs a small **stdlib-only\nPython web app** (`capture_server.py`) that talks to the camera via `gphoto2`\nand serves a phone/tablet/desktop UI. No live view on the target camera (Canon\nEOS 400D / Rebel XTi), so the workflow is shoot → review, optimized for volume.\n\n## Requirements\n\n- Linux host (dev machine now; a Raspberry Pi later). macOS works too.\n- [`gphoto2`](http://gphoto.org/) — `sudo apt install gphoto2`\n- Python 3 (standard library only — **nothing to `pip install`**)\n- Optional: `exiftool` (`sudo apt install libimage-exiftool-perl`) for full EXIF\n  metadata; without it the app writes a JPEG comment instead.\n- A Canon DSLR supported by gphoto2. On the 400D: set **Communication → PC\n  connection** and the mode dial to **M**.\n\n## Quick start\n\n```bash\nsudo apt install gphoto2\npython3 capture_server.py            # then open http://localhost:8080\n```\n\nOptions: `--port 8080`, `--out-dir ./captures`, `--prefix trip72`, `--no-setup`.\n\n### Deploy as an appliance (Raspberry Pi Zero 2 W)\n\nBuild a configured SD-card image **once** (`deploy/setup_pi.sh` installs gphoto2,\ncamera permissions, Comitup for WiFi provisioning, and the systemd service),\nthen it's **flash-and-go**: plug in the Pi → it raises a `slidescanner-XXXX`\nWiFi AP → enter your network → it reconnects → scan at\n`http://slidescanner.local:8080`. Full two-phase guide in\n[`deploy/DEPLOY.md`](deploy/DEPLOY.md).\n\nPrebuilt appliance images are attached to\n[Releases](https://github.com/thatSFguy/pictureSlideCapture/releases) — flash the\nlatest `slidescanner-*-armhf.img.xz` with Raspberry Pi Imager (32-bit, boots\nboth the Pi Zero W and Zero 2 W).\n\n### Updating\n\nOnce deployed, update from the browser: **Setup → System → Check for updates**.\nIt pulls the latest **release tag** and restarts — no SSH, no reflash. (This\nupdates the *app* only; changes to the OS image or provisioning still need a new\nflashed image.) Requires the Pi to have internet access.\n\n## Using the app — three modes\n\n- **Setup** (once per batch): pick **Slides** or **Negatives** preset, set a\n  group name, fine-tune exposure, take a **Test shot** to check it, then\n  *Start capturing*.\n- **Capture** (the fast loop): large last shot, a glanceable exposure verdict,\n  and a running count. Keyboard-first for high volume.\n- **Review** (after): thumbnail grid with exposure flags, filter to flagged\n  frames, caption/delete/download individual images, or download the whole\n  group as a zip.\n\n### Keyboard shortcuts\n\n| Key | Action |\n|-----|--------|\n| `Space` / `Enter` | Capture |\n| `R` / `Backspace` | Redo last (delete + recapture) |\n| `←` / `→` | Browse recent (Capture) / prev-next (Review lightbox) |\n| `[` / `]` | Go to Setup / Review |\n| `Esc` | Close the Review lightbox |\n| `Delete` | Delete (Review lightbox) |\n\n## Recommended camera settings\n\nISO 100, f/8, Manual mode, fixed (Daylight) white balance; **JPEG** for slides,\n**RAW+JPEG** for negatives (RAW is essential for inversion). Shutter is the one\nvalue dialed in per session against your light pad using the Test shot +\nexposure aid. Focus once, manually, on the film plane. Full rationale in\n[CLAUDE.md](CLAUDE.md).\n\n## Files\n\n| File | Role |\n|------|------|\n| `capture_server.py` | The web app (HTTP server + embedded UI + all endpoints) |\n| `camera.py` | gphoto2 wrapper: detect, get/set config, capture, retries |\n| `jpegstats.py` | Pure-stdlib JPEG brightness reader for the exposure aid |\n| `advance.py` | Auto slide-advance output (stub): capture → advance → repeat, settings-driven (motor+switch / stepper); default off |\n| `scanner.py` | Gantry dead-reckoning batch loop (deferred automation phase) |\n| `CLAUDE.md` | Detailed hardware, protocol, and development notes |\n\nCaptured images and per-group sidecars (`captions.json`, `exposure.json`) are\nwritten under `captures/` and are git-ignored.\n\n## Post-processing\n\nNegatives require inversion — [Negative Lab Pro](https://www.negativelabpro.com/)\n(Lightroom), FilmLab, or darktable's negadoctor. Slides need only minor\ncorrection.\n\n## Roadmap\n\n- [x] Camera tethering + full-res capture over USB\n- [x] Web capture app: presets, exposure aid, captions, review/cull, export\n- [x] Raspberry Pi appliance deploy kit (`deploy/`) — untested on hardware\n- [x] CI image build (GitHub Actions → flashable `.img` on tag/Release)\n- [ ] Speed up CI: native ARM runners instead of QEMU (~30 min → a few min);\n      gated on cost for a private repo, so revisit when public\n- [ ] Physical rig: light pad, film holder with registration, camera mount\n- [ ] First hardware shakedown of the Pi deploy (Comitup AP flow, real capture)\n- [x] Web-based self-update: a button in the UI that pulls the latest release\n      and restarts the service (no SSH needed on the appliance)\n- [ ] Security hardening before going public: attack-surface review of the web\n      app, remove SSH from the appliance (reflash-on-failure is the recovery\n      path), scope sudo to a command allowlist, default-deny inbound firewall\n- [ ] First-connect trust prompt: choose **Trusted home network** (no login) vs\n      **Shared/untrusted** (set an access PIN → hashed, signed session cookie,\n      all stdlib) — the clean fix for the currently-open web UI\n- [ ] Serve on the default **port 80**: fold WiFi provisioning into the app\n      (`nmcli`/Comitup API) and drop `comitup-web`, so one service on one port\n      does setup + scanning (also shrinks attack surface). Until then, an\n      `slidescanner.local` QR-code bookmark hides the `:8080`.\n- [ ] Auto slide-advance (`advance.py`): stub + API done; needs hardware\n      bring-up (motor + stop-switch or stepper) and a UI toggle in Setup\n- [ ] Automated XY gantry (GRBL) for hands-free batch scanning (`scanner.py`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatsfguy%2Fpictureslidecapture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthatsfguy%2Fpictureslidecapture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthatsfguy%2Fpictureslidecapture/lists"}