127 lines
6.5 KiB
Markdown
127 lines
6.5 KiB
Markdown
# EVAx10 Video analitics v0.3.9
|
||
|
||
A separate native Android experiment for consenting adult volunteers.
|
||
Package `com.it_screen.edgevision`. The existing FaceAPI baseline is
|
||
preserved in the sibling FaceAPI-PoC repository and remains independently
|
||
installable as `com.it_screen.audiencepoc`.
|
||
|
||
## Build and start
|
||
|
||
`./build.sh` builds the ARM64, API 30+ APK with the Windows Android SDK 35
|
||
and JDK 17 via WSL. The script pins and verifies the upstream Maven AAR.
|
||
Model assets load locally and are verified before ONNX Runtime session
|
||
creation. The signed test build is `build/EVAx10-Video-analitics-0.3.9.apk`.
|
||
|
||
```text
|
||
adb install --no-incremental -r EVAx10-Video-analitics-0.3.9.apk
|
||
adb shell am start -W -n com.it_screen.edgevision/.MainActivity
|
||
adb logcat -s EdgeVision EdgeVisionBench
|
||
```
|
||
|
||
Press **Start**, grant camera access, or choose a local test image.
|
||
Stop releases the camera. Start reuses sessions if models and provider
|
||
settings match. Benchmarks appear as JSON and CSV under
|
||
`/sdcard/Android/data/com.it_screen.edgevision/files/benchmark/` after
|
||
**Export Benchmark**. Only aggregate measurements are exported.
|
||
|
||
## Model replacement and rollback
|
||
|
||
Model replacement in this build goes through the reviewed manifests under
|
||
`assets/models/` and the SHA-256 inventory in `license-lock.json`. See
|
||
[LICENSE_REPORT.md](LICENSE_REPORT.md) for the required permissions and
|
||
evidence. Local model import is disabled. Both bundled YuNet versions can
|
||
be selected on-device.
|
||
|
||
Select the prior version from the corresponding dropdown to roll back a
|
||
model, then press Start. Both original and fixed-320 YuNet are included
|
||
for this purpose. For historical bench comparison only, tap Stop and
|
||
launch the separate baseline.
|
||
|
||
```text
|
||
adb shell am start -W -n com.it_screen.audiencepoc/.MainActivity
|
||
```
|
||
|
||
See [architecture](ARCHITECTURE.md), [licensing](LICENSE_REPORT.md),
|
||
[hardware](HARDWARE_COMPATIBILITY.md) and [benchmarks](BENCHMARK_REPORT.md).
|
||
|
||
## Visitor tracking
|
||
|
||
Before Start, open **Tracking settings** to configure confirmation (default
|
||
1000 ms), temporary loss (default 10000 ms), and target tracking FPS (default
|
||
5). Each confirmed body track counts once, and biometric matching is
|
||
disabled. Those two settings are enforced by the implementation.
|
||
|
||
The right panel starts with Current visitors, an estimate of people visible now. Confirmed track totals and their demographic breakdowns are in More. The framed
|
||
**Журнал трекинга** shows time-stamped confirmation, temporary loss,
|
||
restoration, and closure by track ID. A restoration lists the time since
|
||
first and last observation. **More** opens a scrollable diagnostics
|
||
dialog with live values and definitions. A restored ID does not increment **Confirmed Tracks**.
|
||
Confirmed Tracks includes the existing persisted confirmed-track total until **Reset Statistics** is used. It is not a unique-visitor history. Reset while someone is in the frame starts a new tracking session.
|
||
|
||
Position, shape and motion determine association. A return close to the
|
||
last known path within the timeout can reuse the ID. A return after
|
||
closure becomes another visit. A reappearance in a different part of
|
||
the frame, extended occlusion, and a low processing rate can still split
|
||
a track. Two similar trajectories can swap IDs or be merged by the detector.
|
||
|
||
See [tracking validation](VISITOR_TRACKING_REPORT.md) for the test procedure,
|
||
bench results and limits.
|
||
|
||
## Delivered device build
|
||
|
||
The previous bench APK is preserved as `build/EdgeVision-0.1.apk`.
|
||
|
||
**Visitor Session Timeout** is a separate setting (30 minutes by default).
|
||
Closing the body track leaves its visitor session eligible until that
|
||
timeout. The on-device Re-ID provider is disabled. See the
|
||
[session and Re-ID report](REID_EVALUATION.md) for the lifecycle,
|
||
benchmarks, licensing, and limits.
|
||
|
||
### Live device gauges
|
||
|
||
Below Video, the camera row shows the actual capture resolution and the observed
|
||
frame rate delivered to the app. Choose a supported resolution before pressing Start.
|
||
CPU is the smoothed process load divided by the number of available cores.
|
||
On four cores, 200% in the raw benchmark corresponds to 50% on this gauge.
|
||
Green through 40% leaves CPU headroom for playback. Amber covers over 40%
|
||
through 60%. Red starts above 60%. Android's moderate or severe thermal status
|
||
can raise the color to amber or red respectively. These are operational thresholds.
|
||
|
||
The RAM bar shows the share of memory in use according to Android. The label
|
||
shows Android's estimate of available RAM and the app's proportional set size
|
||
(PSS). Available RAM of at least 25% is green, 15–25% is amber, and below 15%
|
||
or an Android low-memory signal is red.
|
||
|
||
|
||
### Controlled Face Re-ID PoC
|
||
|
||
Build with `./build.sh --face-reid-poc`. Install
|
||
`build/EVAx10-Video-analitics-0.3.9-Face-ReID-PoC.apk` as the separate package
|
||
`com.it_screen.edgevision.facereidpoc`. Start requires on-device confirmation
|
||
that all adult test participants consent. Keep other people out of the camera view.
|
||
The default build excludes the SFace weights and implementation.
|
||
|
||
The Person Tracker continues to own Tracking IDs. A new confirmed track can
|
||
reopen an unexpired Visitor Session using a normalized SFace embedding. The
|
||
PoC keeps one qualifying embedding per session in RAM, overwrites it on expiry,
|
||
and clears sessions on Stop, reset or exit to the background. The camera runs
|
||
without recording. The app has no Internet permission and the SFace runtime
|
||
does not write profiles. APK updates never transfer embeddings because they
|
||
are never persisted. Counts shown in the PoC refer to the current camera run.
|
||
|
||
The timeout defaults to 30 minutes from the last sighting. The initial cosine
|
||
threshold is 0.55 with a margin of 0.08 to distinguish close candidates. These
|
||
are PoC settings and require field calibration. A new confirmed track waits up
|
||
to another three seconds for a usable face; short tracks that end in that window
|
||
may be missed. An ambiguous match or missing template creates a separate session
|
||
and may overestimate Unique Visitors. Poses, poor lighting and poor body-to-face
|
||
association can prevent a match. There is no liveness check.
|
||
|
||
For a consented acceptance test, keep the camera active. Enter with the face
|
||
visible. Wait for Unique Visitors = 1, then leave for longer than Lost Track
|
||
Timeout but less than Visitor Session Timeout. Re-enter and confirm a new
|
||
Tracking ID, Unique Visitors = 1, repeated detections = 1 and open sessions = 1.
|
||
Use a separate consenting participant to check that a confidently different face
|
||
gets its own session. Test expiration with a one-minute timeout and verify the
|
||
open-session count goes to zero while the person is absent.
|