diff --git a/camera/chandra-camera b/camera/chandra-camera index b55eceb..047f59a 100755 --- a/camera/chandra-camera +++ b/camera/chandra-camera @@ -32,6 +32,9 @@ VIDEO_EXTS = (".mp4", ".mkv", ".webm") QUAD_BAYER_MODELS = {"imx371"} +# Pause between QR scans: scanning runs as long as the photo viewfinder is open. +QR_SCAN_INTERVAL_S = 0.5 + # Default live viewfinder/video sizes: 1600x1200 selects full-FOV 2x2-binned 4:3 on IMX519. PREFERRED_VIEWFINDER_SIZES = [ (1600, 1200), @@ -2405,7 +2408,7 @@ def run_worker(cameras, initial_index): scanner = QRScanner(cv2) reporter = QRReporter() last_seq = -1 - while not stop_flag.wait(0.2): + while not stop_flag.wait(QR_SCAN_INTERVAL_S): eng = engine_holder[0] if eng is None or not qr_on.is_set() or eng.is_recording(): continue diff --git a/docs/handset.md b/docs/handset.md index 0bb0a08..77f1a45 100644 --- a/docs/handset.md +++ b/docs/handset.md @@ -60,7 +60,7 @@ Chandra includes KMS/libinput/compositor adaptations tailored for mainline Linux ## Camera App (`chandra-camera`) - [`camera/chandra-camera`](../camera/chandra-camera), [`camera/chandra-camera-ui.c`](../camera/chandra-camera-ui.c), and [`camera/chandra-camera-isp.c`](../camera/chandra-camera-isp.c) provide a native GTK3/Cairo Wayland camera app with a C/OpenMP Quad-Bayer ISP library (`libchandra-camera-isp.so`) installed via [`session/install.py`](../session/install.py) with its desktop launcher and icon (`Camera`). -- **QR scanner:** in photo mode the camera reads QR codes with OpenCV's own detectors about 5 times a second (the **QR** pill turns it off). A card shows the text with **Open** (web links), **Join** (WPA and open `WIFI:` codes, through NetworkManager) and **Copy**; nothing is opened or joined before a tap. +- **QR scanner:** in photo mode the camera reads QR codes with OpenCV's own detectors about twice a second (the **QR** pill turns it off). A card shows the text with **Open** (web links), **Join** (WPA and open `WIFI:` codes, through NetworkManager) and **Copy**; nothing is opened or joined before a tap. - Supports multi-sensor `libcamera` discovery and live switching (`Back · imx519`, `Front · imx371`, `Back 2 · imx376` on OnePlus 6T, with automatic V4L2 fallback on desktops), sensor orientation transform + front-camera mirror preview, `libcamera` SoftISP CCM tuning (`camera/ipa/simple/*.yaml`), VCM contrast autofocus with tap-to-focus (`lc898217xc`), Photo mode (`HD` instant / `Full` high-resolution `StillCapture` or 3-frame raw burst merge on Quad-Bayer, `0`/`3s`/`10s` self-timer, 3×3 rule-of-thirds grid) saving JPEGs to `~/Pictures/Camera`, Video mode recording exact-PTS VFR H.264 MP4s (`MatroskaI420Muxer` + `ffmpeg`) to `~/Videos/Camera`, an in-app photo gallery viewer, rear flash/torch LED control (`/sys/class/leds/white:flash`) through `org.freedesktop.login1.Session.SetBrightness`, and hardware volume-button or `Space`/`Return` shutter control. ## Remote Control Over Tailscale (`chandra-remote`)