EVAx10_Video_analitics/README.md

94 lines
4.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# EVAx10 Video analitics v0.3.8
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.8.apk`.
```text
adb install --no-incremental -r EVAx10-Video-analitics-0.3.8.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.