v1.2.0 — Auto-scan (live detection + auto-capture)
ClearPDF Local v1.2.0 — Auto-scan (live detection + auto-capture)
vFlat-style auto-capture for the camera scanner, all classical on-device CV — no INTERNET permission, no Play Services.
What's new
- Auto-scan: hold the camera steady over a page and it detects the document edges and captures automatically. Flip through a book and it scans page after page.
- Live edge overlay: the detected document border is drawn on the preview in real time (replaces the old static frame).
- Auto / manual toggle: one tap to switch; the manual shutter still works in both modes.
Technical
DocumentFrameAnalyzer(CameraXImageAnalysis) reads each frame's Y (luma) plane as grayscale, rotates it upright, and runs the OpenCV quad detector. Stability tracking fires one auto-capture per page, re-arming only after the page leaves the frame; capture is debounced (1.2 s).DocumentDetectornow exposesdetectCornersFromGray()for the live path; the still-photo pipeline is unchanged.
Install
Download ClearPDFLocal-v1.2.0-vc4.apk below and sideload it (built & signed by CI). Requires Android 7.0 (API 24)+.
Known limitations
- Overlay alignment and auto-capture thresholds are tuned conservatively and may need device-specific adjustment.
- Curved book-page flattening (3D dewarp) is still a later phase — auto-scan captures the page, but curvature near the spine isn't flattened yet.