Modern Apps git

← Modern-Apps.git

measure: document the OpenCV tracker in module docs

Commit
e1186a7c4812d7f5c09d81caebd7f2c5a0d39981
Author
Vayun Mathur <[email protected]>
When
2026-11-17 03:47 UTC (19 days ago)
Parents
0008b7f
measure/AGENTS.md and the store metadata still described a
from-scratch Rust VIO with no third-party dependencies. Both now
name the actual stack: CameraX + org.opencv:opencv 4.10.0 for
tracking, pure VIO math in domain/VioMath, the engine in
platform/opencv behind the ArHitProvider seam, and the Rust crate
present but unreferenced. Entry points updated to match. The
offline / no-Play-Services claims are unchanged and still true:
OpenCV makes no network calls.

Diff

measure/AGENTS.md
diff --git a/measure/AGENTS.md b/measure/AGENTS.mdindex 9992fc9242..8b17cd390d 100644--- a/measure/AGENTS.md+++ b/measure/AGENTS.md@@ -7,14 +7,14 @@ _Install: ./install measure (dev by default)._ - Gradle: :measure / dir: measure/ - Package roots present: ui, data, domain, platform - Entry files: MainActivity.kt, Route.kt, Navigation.kt-- Deps: (none declared — camera + IMU + Rust VIO, no Play Services)+- Deps: CameraX + org.opencv:opencv 4.10.0 (Maven Central, catalog-pinned; AR tracking only — no Play Services) - Metadata: metadata_data/measure.md (present)-- Rust: yes / screenshotTest: yes+- Rust: crate present but unreferenced (legacy measure_vio, kept for reference) / screenshotTest: yes  ## Overview-**Purpose:** Offline measuring toolkit — compass, level, ruler, protractor + AR distance/area over a from-scratch visual-inertial odometry engine. Real metres, no Play Services.-**Key features:** Per-tool pages (AR/compass/level/ruler/saved/settings) + diagnostics; `domain/` pure geometry (level math, tilt, polygons, units); `platform/sensor/` IMU recording; camera intrinsics; Rust `measure_vio` behind `domain/MeasureNative`.-**Entry points:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/ArMeasurePage.kt` → `platform/MeasureViewModel.kt` → `domain/MeasureNative.kt`.+**Purpose:** Offline measuring toolkit — compass, level, ruler, protractor + AR distance/area over an OpenCV visual-inertial tracker (features/LK/essential pose/triangulation/IMU scale). Real metres, no Play Services.+**Key features:** Per-tool pages (AR/compass/level/ruler/saved/settings) + diagnostics; `domain/` pure geometry (level math, tilt, polygons, units, VIO math); `platform/sensor/` IMU recording; camera intrinsics; OpenCV tracker in `platform/opencv/` behind the `ArHitProvider` seam.+**Entry points:** `Route` → `MainActivity.kt` → `Navigation.kt` → `ui/ArMeasurePage.kt` → `platform/MeasureViewModel.kt` → `platform/opencv/OpenCvVioEngine.kt` (math in `domain/VioMath.kt`). **Gotchas:** VIO needs device calibration + motion — test measuring by moving, not screenshots; intrinsics vary per device.  ## Key files@@ -24,8 +24,8 @@ _Install: ./install measure (dev by default)._ - com/vayunmathur/measure/Route.kt ### data/ — saved measurements - com/vayunmathur/measure/data/model/Models.kt-### domain/ — pure geometry + Rust VIO bridge-- com/vayunmathur/measure/domain/MeasureNative.kt — `measure_vio` JNI bridge+### domain/ — pure geometry + VIO math+- com/vayunmathur/measure/domain/VioMath.kt — pose chaining, triangulation, plane fit, IMU scale (pure, ground-truth tested) - com/vayunmathur/measure/domain/LevelMath.kt - com/vayunmathur/measure/domain/Tilt.kt - com/vayunmathur/measure/domain/HeldOrientation.kt
metadata_data/measure.md
diff --git a/metadata_data/measure.md b/metadata_data/measure.mdindex 27fb8a7298..bd2c763fd2 100644--- a/metadata_data/measure.md+++ b/metadata_data/measure.md@@ -3,7 +3,7 @@ A measuring toolkit that runs entirely on your device Features: - Compass, bubble level, on-screen ruler, and protractor - AR distance and area measurement-- The camera is tracked by a visual-inertial odometry engine built from scratch+- The camera is tracked by a visual-inertial odometry engine (OpenCV) fused with the motion sensors - Measures in real metres without depending on Google Play Services  100% offline