Use the EVAx10 app name and add dashboard help

This commit is contained in:
EVA x10 Development 2026-11-25 11:08:47 +01:00
parent fb656519a3
commit 1799a299c8
4 changed files with 33 additions and 10 deletions

View File

@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.it_screen.edgevision" android:versionCode="22" android:versionName="0.3.17"> package="com.it_screen.edgevision" android:versionCode="23" android:versionName="0.3.18">
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="34"/> <uses-sdk android:minSdkVersion="30" android:targetSdkVersion="34"/>
<uses-permission android:name="android.permission.CAMERA"/> <uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera.any" android:required="true"/> <uses-feature android:name="android.hardware.camera.any" android:required="true"/>

View File

@ -1,4 +1,4 @@
# EVAx10 Video analitics v0.3.17 # EVAx10 Video analitics v0.3.18
A separate native Android experiment for consenting adult volunteers. A separate native Android experiment for consenting adult volunteers.
Package `com.it_screen.edgevision`. The existing FaceAPI baseline is Package `com.it_screen.edgevision`. The existing FaceAPI baseline is
@ -10,10 +10,10 @@ installable as `com.it_screen.audiencepoc`.
`./build.sh` builds the ARM64, API 30+ APK with the Windows Android SDK 35 `./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. 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 Model assets load locally and are verified before ONNX Runtime session
creation. The signed test build is `build/EVAx10-Video-analitics-0.3.17.apk`. creation. The signed test build is `build/EVAx10-Video-analitics-0.3.18.apk`.
```text ```text
adb install --no-incremental -r EVAx10-Video-analitics-0.3.17.apk adb install --no-incremental -r EVAx10-Video-analitics-0.3.18.apk
adb shell am start -W -n com.it_screen.edgevision/.MainActivity adb shell am start -W -n com.it_screen.edgevision/.MainActivity
adb logcat -s EdgeVision EdgeVisionBench adb logcat -s EdgeVision EdgeVisionBench
``` ```
@ -96,7 +96,7 @@ or an Android low-memory signal is red.
### Controlled Face Re-ID PoC ### Controlled Face Re-ID PoC
Build with `./build.sh --face-reid-poc`. Install Build with `./build.sh --face-reid-poc`. Install
`build/EVAx10-Video-analitics-0.3.17-Face-ReID-PoC.apk` as the separate package `build/EVAx10-Video-analitics-0.3.18-Face-ReID-PoC.apk` as the separate package
`com.it_screen.edgevision.facereidpoc`. Start requires on-device confirmation `com.it_screen.edgevision.facereidpoc`. Start requires on-device confirmation
that all adult test participants consent. Keep other people out of the camera view. that all adult test participants consent. Keep other people out of the camera view.
The default build excludes the SFace weights and implementation. The default build excludes the SFace weights and implementation.

View File

@ -20,15 +20,14 @@ if [[ ! -f build/ort.aar ]]; then
fi fi
python3 tools/check-production-assets.py python3 tools/check-production-assets.py
manifest=AndroidManifest.xml manifest=AndroidManifest.xml
apk=build/EVAx10-Video-analitics-0.3.17.apk apk=build/EVAx10-Video-analitics-0.3.18.apk
if [[ $variant == poc ]]; then if [[ $variant == poc ]]; then
python3 tools/check-poc-assets.py python3 tools/check-poc-assets.py
manifest=build/AndroidManifest-face-reid-poc.xml manifest=build/AndroidManifest-face-reid-poc.xml
sed -e 's/package="com.it_screen.edgevision"/package="com.it_screen.edgevision.facereidpoc"/' \ sed -e 's/package="com.it_screen.edgevision"/package="com.it_screen.edgevision.facereidpoc"/' \
-e 's/android:name=".MainActivity"/android:name="com.it_screen.edgevision.MainActivity"/' \ -e 's/android:name=".MainActivity"/android:name="com.it_screen.edgevision.MainActivity"/' \
-e 's/android:label="EVAx10 Video analitics"/android:label="EVAx10 Video analitics · Face Re-ID PoC"/' \
AndroidManifest.xml > "$manifest" AndroidManifest.xml > "$manifest"
apk=build/EVAx10-Video-analitics-0.3.17-Face-ReID-PoC.apk apk=build/EVAx10-Video-analitics-0.3.18-Face-ReID-PoC.apk
fi fi
rm -rf build/classes build/dex rm -rf build/classes build/dex
mkdir -p build/classes build/dex mkdir -p build/classes build/dex

View File

@ -137,7 +137,16 @@ public final class MainActivity extends Activity {
TextView title = text(appName + " v" + appVersion(), 22); TextView title = text(appName + " v" + appVersion(), 22);
title.setSingleLine(true); title.setSingleLine(true);
title.setEllipsize(android.text.TextUtils.TruncateAt.END); title.setEllipsize(android.text.TextUtils.TruncateAt.END);
left.addView(title); LinearLayout titleRow = new LinearLayout(this);
titleRow.setGravity(Gravity.CENTER_VERTICAL);
titleRow.addView(title, new LinearLayout.LayoutParams(0, -2, 1));
Button help = button(titleRow, "?", this::showAbout);
help.setContentDescription("О приложении");
help.setTextSize(18);
help.setMinWidth(0);
help.setMinimumWidth(0);
help.getLayoutParams().width = Math.round(48 * getResources().getDisplayMetrics().density);
left.addView(titleRow);
status = text("Initializing…", 14); status = text("Initializing…", 14);
left.addView(status); left.addView(status);
preview = new Preview(); preview = new Preview();
@ -219,7 +228,7 @@ public final class MainActivity extends Activity {
currentVisitorNote.setPadding(0, 4, 0, 6); currentVisitorNote.setPadding(0, 4, 0, 6);
right.addView(currentVisitorNote); right.addView(currentVisitorNote);
if (FaceReId.CONTROLLED_POC) { if (FaceReId.CONTROLLED_POC) {
uniqueValue = counter(right, "Unique Visitors · оценка PoC"); uniqueValue = counter(right, "Unique Visitors · оценка");
repeatedValue = counter(right, "Повторные обнаружения"); repeatedValue = counter(right, "Повторные обнаружения");
sessionValue = counter(right, "Активные Visitor Sessions"); sessionValue = counter(right, "Активные Visitor Sessions");
TextView note = text("За текущий запуск камеры. Пока лицо не сопоставлено, неопределённый трек в оценку не входит.", 13); TextView note = text("За текущий запуск камеры. Пока лицо не сопоставлено, неопределённый трек в оценку не входит.", 13);
@ -254,6 +263,21 @@ public final class MainActivity extends Activity {
test.setEnabled(false); test.setEnabled(false);
} }
private void showAbout() {
String description = "Приложение анализирует видео с камеры прямо на устройстве. " +
"Оно показывает, сколько людей сейчас в кадре, и оценивает возраст по группам.";
if (FaceReId.CONTROLLED_POC) {
description += "\n\nПри возврате в пределах таймаута приложение пытается узнать посетителя " +
"и учесть его один раз. Счётчик уникальных посетителей приблизительный. " +
"Видео не записывается, а данные для сопоставления хранятся только в оперативной памяти.";
}
new android.app.AlertDialog.Builder(this)
.setTitle("О приложении")
.setMessage(description)
.setPositiveButton("Закрыть", null)
.show();
}
private void addAgeBreakdown(LinearLayout parent) { private void addAgeBreakdown(LinearLayout parent) {
TextView heading = text(FaceReId.CONTROLLED_POC ? "Возраст посетителей · оценка" : TextView heading = text(FaceReId.CONTROLLED_POC ? "Возраст посетителей · оценка" :
"Возраст по подтверждённым трекам · оценка", 14); "Возраст по подтверждённым трекам · оценка", 14);