Initial EVAx10 Video analitics release source with reviewed model licenses

This commit is contained in:
EVA x10 Development 2026-11-25 07:35:17 +01:00
commit 6479f31684
48 changed files with 11781 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build/

47
ARCHITECTURE.md Normal file
View File

@ -0,0 +1,47 @@
# Edge Vision v0.1 architecture
`VideoSource` emits immutable bitmap frames and camera metrics. Camera2
consumes latest YUV frames on its own looper, samples preview frames and
rotates by the sensor orientation. It preserves the negotiated source
resolution in metrics and downsamples the analysis image to at most 640
pixels wide. RTSP, USB and file sources can implement the same interface.
The test-image source is available for deterministic local smoke tests.
`InferenceEngine` exposes providers, reusable model sessions, named tensor
execution and runtime metrics. `OrtEngine` verifies manifest size and
SHA-256, validates the ONNX session against declared input and outputs and
profiles first-run node assignment. Accelerator selection and actual node
placement are shown separately. The owner serializes all use and release of
ORT sessions on one worker. A future RKNN implementation can implement
this interface without camera or analytics changes.
Adapters convert pixels and decode outputs independently of the source.
YuNet implements face detection. Two Cydral ONNX sessions produce the
age distribution and classification probabilities independently. Adapter types are explicit
in the model manifest. Compatible weights can be replaced independently after license review and a new build.
A new tensor contract requires an adapter.
The worker admits at most one frame at a time. Busy, interval and
preview-sampling skips are counted. Camera HAL losses are unavailable.
The UI consumes the latest preview and normalized face boxes. Camera
permission and lifecycle are owned by the separate native APK. Inference
results from stopped generations are discarded.
The tracker uses geometry and temporary in-memory IDs. After two
observations, a new track can be matched against recent visits by comparing
normalized SFace embeddings. YuNet landmarks align the face crop, and pose,
size and sharpness checks reject poor samples. At most three pose templates
are retained per visit and up to 256 visits live in memory. A repeat requires
two confident matches to the same inactive visit, separated in time and
ahead of the runner-up. Unknown matches are resolved as new visits after
a short delay. A repeat never updates aggregate demographics.
The repeat window starts from last appearance. Stop, restart and Reset
Statistics clear the templates. The aggregator stores totals and buckets
in private preferences. Benchmark export stores only counters and timing.
The on-screen tracking log holds up to four recent decisions in memory.
Model selection, provider, interval, threads and confidence are kept in an
independent session configuration. Digital DNA can map declarative fields
to that configuration in a later version. The current APK has no network
permission.

12
AndroidManifest.xml Normal file
View File

@ -0,0 +1,12 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.it_screen.edgevision" android:versionCode="4" android:versionName="0.2.2">
<uses-sdk android:minSdkVersion="30" android:targetSdkVersion="34"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-feature android:name="android.hardware.camera.any" android:required="true"/>
<application android:label="EVAx10 Video analitics" android:allowBackup="false"
android:hardwareAccelerated="true" android:theme="@android:style/Theme.Material.NoActionBar">
<activity android:name=".MainActivity" android:exported="true" android:screenOrientation="landscape">
<intent-filter><action android:name="android.intent.action.MAIN"/><category android:name="android.intent.category.LAUNCHER"/></intent-filter>
</activity>
</application>
</manifest>

75
BENCHMARK_REPORT.md Normal file
View File

@ -0,0 +1,75 @@
# Initial benchmark · 24 November 2026
Measured on the RK3566 Android 13 bench. Old and new packages were run
sequentially against the same camera and the same unoccupied view at the
three exact stream resolutions. The tests used a 200 ms target interval.
Baseline ran TinyFaceDetector input 320 on WebGL (Mali-G52). Native used
fixed-input YuNet 320 with XNNPACK, two threads, and CPU fallback kernels.
The native capture path downsamples to a maximum analysis-frame width of
640 before the YuNet letterbox. The models and preprocessing differ.
| Camera scene, no detected faces | FaceAPI detection | FaceAPI rate ceiling* | Native detection | Native measured FPS |
| --- | ---: | ---: | ---: | ---: |
| 640×480 | 299.8 ms | 3.3 | 69.7 ms | 4.2 |
| 1280×720 | 305.8 ms | 3.3 | 66.5 ms | 4.2 |
| 1600×1200 | 356.9 ms | 2.8 | 66.0 ms | 4.1 |
*FaceAPI rate here is calculated from median processing time, excluding
capture and scheduling overhead. Native rates are completions per second.
Each statistic is a median of short-run samples after the first sample(s).
With no faces, total latency was within 0.2 ms of detector latency.
At 640×480 the native provider comparison showed CPU 85.1 ms / 4.2 FPS,
XNNPACK 69.7 ms / 4.2 FPS, and NNAPI-reference 351.0 ms / 2.5 FPS.
ORT profiling identified 57 XNNPACK and 23 CPU node events in the detector
first run, and 12 XNNPACK and 15 CPU events in the first age/gender run.
The NNAPI profile recorded one partition. The platform enumerated only
a reference CPU implementation, so this does not show NPU execution.
Both implementations processed the same local 640×480 multi-face
fixture, based on the FaceAPI demo image. They each detected three faces.
The baseline took 193.7 ms to detect and 255.2 ms for crop/classification
at every sampled iteration. Native medians were 76.7 ms detector and
26.4 ms for iterations in which its tracker invoked the age/gender model.
The native combined median of 81.7 ms includes iterations that skipped
classification. Native registered three visits and classified two faces
into Female, one into Unknown, and three into 25–34. These are model outputs.
No demographic ground truth was applied.
| Other observations | FaceAPI baseline | Native |
| --- | ---: | ---: |
| APK size | 1,295,746 bytes | about 22.5 MB |
| Cold start, Android `am start -W TotalTime` | 2,078 ms | 1,594 ms |
| Median main-process CPU, no-face 640×480 run | 38.5% | 100.6% |
| Median main-process PSS, no-face 640×480 run | 112.2 MiB | 149.3 MiB |
CPU 100% means one full logical core. FaceAPI's main-process counters
omit WebView's separate renderer. These CPU and RAM figures cannot
establish end-to-end resource savings across the two implementations.
A shell reading outside the timed loops showed the SoC sensor at around
46–48 °C. Controlled thermal and long-duration stability comparisons
were not performed.
Real detection recall, age error and gender accuracy require consented,
annotated recordings or tests. Fixture detections are smoke checks with
expected counts, not an accuracy benchmark. One- and multi-person
performance at higher camera resolutions was not measured with controlled
subjects. See the raw [native JSON](benchmarks/native-initial.json) and
[CSV](benchmarks/native-initial.csv), and the [baseline JSON](benchmarks/baseline.json)
and [CSV](benchmarks/baseline.csv).
With the identical 640×480 single-face fixture both runs detected one
face. FaceAPI medians were 197.0 ms detection, 88.2 ms crop/classification,
and 281.5 ms total. Native medians were 4.9 FPS and 87.3 ms detection.
The final native build ran the fixture for about one minute with zero
reported runtime errors. Latency samples are in
[native solo JSON](benchmarks/native-solo.json) and
[CSV](benchmarks/native-solo.csv).
The Android split-screen test put Edge Vision beside installed
EVA x10 Player 5.1.60. Both tasks were visible with player surfaces
present. Edge Vision held the real camera and completed inference at
about 3.6–4.3 FPS during the reported end of the short run. A named
production playlist and continuous playback quality were not validated.
The split-screen samples are in [JSON](benchmarks/native-split.json)
and [CSV](benchmarks/native-split.csv).

41
HARDWARE_COMPATIBILITY.md Normal file
View File

@ -0,0 +1,41 @@
# Physical Android bench
Paired hardware is the same RK3566 tablet used by FaceAPI. Actual firmware
is Android 13 (API 33), model RK3566, product rk3566_t, platform rk356x,
ABI arm64-v8a. Android 11 (API 30) is the build minimum and was not available
for a separate physical run. There is approximately 1.9 GiB usable RAM
and 5.0 GiB free on /data at diagnosis. Screen 1280×800, Mali-G52.
Camera2 device 0 is BACK, sensor orientation 180°, exposed by the external
camera HAL. The device reports 640×480, 1280×720 and 1600×1200 among its YUV
modes. No 1920×1080 sensor mode was advertised.
- Rockchip (vendor) RKNPU driver reported **0.9.2**. Vendor library
`/vendor/lib64/librknnrt.so` identifies RKNN Runtime **1.5.2**.
- Vendor HIDL advertises `rockchip.hardware.neuralnetworks@1.0`. Android's
public NNAPI NDK enumerated exactly one device, `nnapi-reference`, type
CPU. The vendor RKNN HAL is not evidence of NNAPI NPU availability.
- The APK runs CPU kernels and XNNPACK on ARM CPU. ORT profile with fixed
320 detector showed 57 XNNPACK and 23 CPU nodes. RKNN was inspected only.
- No root, firmware changes or replacement of system libraries were used.
The dashboard shows temperature N/A when no public per-app CPU temperature
signal is available. ADB can read the `soc-thermal` zone for bench sampling.
The optional, read-only probe source is `tools/nnapi-devices.c`.
The camera is exclusive unless the OEM supports concurrent clients on that
physical device. The two packages can be installed together.
The installed Android package requests CAMERA only. It acquired the camera,
loaded both local sessions and ran inference with the package lacking
INTERNET permission. ADB remained connected over Wi-Fi.
The stock FaceAPI baseline and Edge Vision remain installed under different
packages. A separate split-screen smoke test confirmed Edge Vision camera
and inference activity alongside the visible EVA x10 player. See the
benchmark report for scope and measured rate.
The model-registry smoke test imported a pinned YuNet copy as a new
version, validated it in ONNX Runtime, selected it, and ran live
inference. The bundled fixed320 version was then selected and verified
again on the live camera.

54
LICENSE_REPORT.md Normal file
View File

@ -0,0 +1,54 @@
# Licensing review
## Production admission policy
Every shipped third-party library, AI runtime, and trained model must have
documented, royalty-free permission for commercial use, modification, and
redistribution in EVA x10. Review the exact binary or model weights and the
corresponding license scope. Download access, a code-only license, an
unreviewed conversion, or a private distribution channel is insufficient.
Record the source revision, artifact SHA-256, permission evidence, required
notices, and origin of any converted weights before admitting an artifact.
Prefer MIT, Apache-2.0, or BSD. CC0-1.0 is permitted for weights with an
explicit dedication. A contradictory or unclear grant blocks release.
The normal APK build always checks the reviewed inventory and hashes in
`license-lock.json`, all three model permissions, the upstream evidence URLs,
and the presence of local notices. Runtime loads only approved APK assets and
verifies each model hash again. The former local model import path is disabled,
including for imports made by older installations. Changing models requires
reviewing and updating the manifest and lock together.
## Reviewed components
| Shipped component | Version and provenance | Grant and evidence |
| --- | --- | --- |
| ONNX Runtime Android | Microsoft Maven AAR 1.32.0, pinned SHA-256. Java classes and two ARM64 libraries. | MIT per the [exact Maven POM](https://repo.maven.apache.org/maven2/com/microsoft/onnxruntime/onnxruntime-android/1.32.0/onnxruntime-android-1.32.0.pom). Include MIT text and Microsoft third-party notices for the matching release. |
| YuNet detector | OpenCV Zoo 2026may, commit `47534e27c9851bb1128ccc0102f1145e27f23f98`. Upstream ONNX and local fixed-320 derivative. | MIT explicitly covers all files in the [model directory](https://github.com/opencv/opencv_zoo/blob/47534e27c9851bb1128ccc0102f1145e27f23f98/models/face_detection_yunet/README.md#license), including weights. Keep copyright and MIT text. The fixed-320 derivative changes the graph input dimensions. |
| SFace INT8 embeddings | OpenCV Zoo 2021dec INT8, commit `eb9f4f2d4b79b58e5513b5d25d5f0243a8357bf4`. | Apache-2.0 explicitly covers all files in the [model directory](https://github.com/opencv/opencv_zoo/blob/eb9f4f2d4b79b58e5513b5d25d5f0243a8357bf4/models/face_recognition_sface/README.md#license), including the shipped quantized weights. Keep the upstream license and applicable attribution. |
| Cydral Age and Gender v1 | Original Dlib weights attributed to Cydral Technology. ONNX exports pinned to [conversion commit `6ddb6ce…`](https://github.com/mowshon/age-and-gender/tree/6ddb6ce2d598705ccbe2067967b2f8be01fd3914), with separate source and export hashes in the upstream model manifest. | The [Dlib model inventory](https://github.com/davisking/dlib-models/blob/fd81b6308a6a73d4ce08859eb2f4b628a21e27a2/README.md#dnn_gender_classifier_v1datbz2) explicitly applies CC0-1.0 to each named weight artifact. The ONNX distributor confirms the same grant for its converted weights. CC0 permits commercial use, adaptation, and redistribution. The APK includes the text and provenance notice. |
ONNX Runtime is the only external binary library in the APK. ARM64 ELF
dependencies resolve to Android system libraries and the sibling ONNX Runtime
library. XNNPACK and other bundled upstream components are covered by the
shipped ONNX Runtime notices, which include the XNNPACK BSD terms. The
ONNX format tools, Python, OpenCV binaries, Dlib binaries, landmark predictor
from the conversion repository, Android SDK build tools, and host JDK are
not distributed in this APK. NNAPI is an Android platform API.
## Excluded components and scope
Intel `age-gender-recognition-retail-0013` had no confirmed grant for the
specific downloadable weights and derivative used here. Its model weights
and converter were removed. The old APKs, FaceAPI baseline, and historical
benchmarks are archival. They are not production artifacts or evidence of
rights. The production repository is seeded from a clean commit so the old
Intel weights are absent throughout its published history.
The model grants cover the software artifacts. They do not license
training photos, which are not distributed. They also do not establish
compliance for a particular biometric deployment. Cydral's original face
chips use Dlib eye-corner landmarks. This port approximates that geometry
using YuNet eye centers; age and gender accuracy must be measured separately
on consenting adults. Existing stored aggregate counts are preserved
across the upgrade.

61
README.md Normal file
View File

@ -0,0 +1,61 @@
# EVAx10 Video analitics v0.2.2
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.2.2.apk`.
```text
adb install --no-incremental -r EVAx10-Video-analitics-0.2.2.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).
## Repeat visits and tracking log
Before Start, set **Окно повтора, мин** to 1, 2, 5, 10, 30 or 60 minutes.
In **Журнал трекинга**, a newly counted track shows “Новый визит · Total +1”.
A confidently matched returning track shows “Тот же человек · Total без изменений”.
An uncertain case shows “Проверяем повтор” until resolved. For a repeat test,
look squarely at the camera, leave the frame for more than three seconds,
then return within the window without pressing Stop. Returning after the
window counts a new visit. Clear Stats or Stop clears the in-memory embeddings.
On-device thresholds are experimental: pose and illumination can cause false
matches or missed repeats.
## Delivered device build
The previous bench APK is preserved as `build/EdgeVision-0.1.apk`.

6
THIRD_PARTY_NOTICES.md Normal file
View File

@ -0,0 +1,6 @@
# Third-party notices
- [ONNX Runtime Android Maven 1.32.0 POM](https://repo.maven.apache.org/maven2/com/microsoft/onnxruntime/onnxruntime-android/1.32.0/onnxruntime-android-1.32.0.pom). MIT text and the same-version upstream notice file from Microsoft's 1.32.0 Python distribution are in `assets/notices`. Android-specific provenance is recorded in the Maven POM and build hash. No Python modules are shipped.
- [YuNet model-directory MIT license](https://github.com/opencv/opencv_zoo/blob/47534e27c9851bb1128ccc0102f1145e27f23f98/models/face_detection_yunet/LICENSE). Shiqi Yu copyright. Text copied to `assets/notices/yunet-LICENSE.txt`.
- [OpenCV Zoo SFace model-directory Apache-2.0 license](https://github.com/opencv/opencv_zoo/blob/eb9f4f2d4b79b58e5513b5d25d5f0243a8357bf4/models/face_recognition_sface/LICENSE). Text copied to `assets/notices/sface-LICENSE.txt`.
- [Cydral Age and Gender weight grants](https://github.com/davisking/dlib-models/blob/fd81b6308a6a73d4ce08859eb2f4b628a21e27a2/README.md#dnn_gender_classifier_v1datbz2). CC0-1.0 text and ONNX conversion provenance in `assets/notices`.

36
assets/models/age-v1.json Normal file
View File

@ -0,0 +1,36 @@
{
"id": "cydral-age",
"name": "Cydral Age",
"version": "v1-onnx-6ddb6ce",
"type": "age",
"adapter": "cydral-age",
"format": "ONNX",
"file": "models/age-v1.onnx",
"size": 10768819,
"sha256": "4f9f0075200bd8ea6cd65ae6e6893cf820c513169382c08e82e533158358ed1c",
"source": "https://github.com/mowshon/age-and-gender/blob/6ddb6ce2d598705ccbe2067967b2f8be01fd3914/src/age_and_gender/models/age-v1.onnx",
"providers": [
"CPU"
],
"license": "CC0-1.0",
"licenseEvidence": "https://github.com/davisking/dlib-models/blob/fd81b6308a6a73d4ce08859eb2f4b628a21e27a2/README.md",
"licenseNotice": "notices/cydral-CC0-1.0.txt",
"input": {
"name": "images",
"width": 64,
"height": 64,
"layout": "NCHW",
"dtype": "float32"
},
"outputs": [
"probabilities"
],
"preprocessing": "YuNet eye centers, approximate dlib face chip; normalized RGB",
"postprocessing": "Expected age over 81 classes",
"limitations": "Original uses dlib eye-corner alignment; port uses YuNet eye centers. Accuracy requires field validation.",
"commercialUse": true,
"modificationAllowed": true,
"redistributionAllowed": true,
"licenseVerification": "verified",
"productionAllowed": true
}

BIN
assets/models/age-v1.onnx Normal file

Binary file not shown.

View File

@ -0,0 +1,36 @@
{
"id": "cydral-gender",
"name": "Cydral Gender",
"version": "v1-onnx-6ddb6ce",
"type": "gender",
"adapter": "cydral-gender",
"format": "ONNX",
"file": "models/gender-v1.onnx",
"size": 530620,
"sha256": "d4c4116cf720cde18de28a09071d8e1826bcff7935ef3470052163f3f6b5d734",
"source": "https://github.com/mowshon/age-and-gender/blob/6ddb6ce2d598705ccbe2067967b2f8be01fd3914/src/age_and_gender/models/gender-v1.onnx",
"providers": [
"CPU"
],
"license": "CC0-1.0",
"licenseEvidence": "https://github.com/davisking/dlib-models/blob/fd81b6308a6a73d4ce08859eb2f4b628a21e27a2/README.md",
"licenseNotice": "notices/cydral-CC0-1.0.txt",
"input": {
"name": "images",
"width": 32,
"height": 32,
"layout": "NCHW",
"dtype": "float32"
},
"outputs": [
"probabilities"
],
"preprocessing": "YuNet eye centers, approximate dlib face chip; normalized RGB",
"postprocessing": "Female/male probabilities",
"limitations": "Original uses dlib eye-corner alignment; port uses YuNet eye centers. Accuracy requires field validation.",
"commercialUse": true,
"modificationAllowed": true,
"redistributionAllowed": true,
"licenseVerification": "verified",
"productionAllowed": true
}

Binary file not shown.

View File

@ -0,0 +1,36 @@
{
"id": "opencv-sface",
"name": "SFace INT8",
"version": "2021dec",
"type": "embedding",
"adapter": "sface",
"format": "ONNX",
"file": "models/sface-int8.onnx",
"size": 9896933,
"sha256": "2b0e941e6f16cc048c20aee0c8e31f569118f65d702914540f7bfdc14048d78a",
"source": "https://github.com/opencv/opencv_zoo/blob/eb9f4f2d4b79b58e5513b5d25d5f0243a8357bf4/models/face_recognition_sface/face_recognition_sface_2021dec_int8.onnx",
"license": "Apache-2.0",
"productionAllowed": true,
"providers": [
"CPU"
],
"input": {
"name": "data",
"width": 112,
"height": 112,
"layout": "NCHW",
"dtype": "float32"
},
"outputs": [
"fc1"
],
"preprocessing": "Five-point alignment, RGB 0–255",
"postprocessing": "L2 normalization and cosine similarity",
"limitations": "Temporary deduplication; local thresholds require bench validation",
"licenseEvidence": "https://github.com/opencv/opencv_zoo/blob/eb9f4f2d4b79b58e5513b5d25d5f0243a8357bf4/models/face_recognition_sface/README.md#license",
"licenseNotice": "notices/sface-LICENSE.txt",
"commercialUse": true,
"modificationAllowed": true,
"redistributionAllowed": true,
"licenseVerification": "verified"
}

Binary file not shown.

View File

@ -0,0 +1,51 @@
{
"format": "ONNX",
"providers": [
"CPU",
"XNNPACK",
"NNAPI"
],
"hardware": "Android API 30+, ARM64; CPU fallback",
"id": "opencv-yunet",
"name": "YuNet",
"version": "2026may-fixed320",
"type": "face",
"adapter": "yunet",
"source": "https://media.githubusercontent.com/media/opencv/opencv_zoo/47534e27c9851bb1128ccc0102f1145e27f23f98/models/face_detection_yunet/face_detection_yunet_2026may.onnx",
"license": "MIT",
"commercialUse": true,
"redistributionAllowed": true,
"licenseVerification": "verified",
"productionAllowed": true,
"input": {
"name": "input",
"width": 320,
"height": 320,
"layout": "NCHW",
"dtype": "float32"
},
"outputs": [
"cls_8",
"cls_16",
"cls_32",
"obj_8",
"obj_16",
"obj_32",
"bbox_8",
"bbox_16",
"bbox_32",
"kps_8",
"kps_16",
"kps_32"
],
"preprocessing": "BGR 0–255, letterbox top-left",
"postprocessing": "sqrt(cls*obj), stride decode, IoU NMS",
"limitations": "Frontal/near-frontal faces; small and occluded faces may be missed",
"file": "models/yunet-320.onnx",
"size": 229653,
"sha256": "d4914077f9b91524e9c52e34507abe9ea7fe274ad484038af8d16eede887803c",
"derivation": "ONNX Runtime 1.32.0 make_dynamic_shape_fixed; verified tensor equivalence",
"licenseEvidence": "https://github.com/opencv/opencv_zoo/blob/47534e27c9851bb1128ccc0102f1145e27f23f98/models/face_detection_yunet/README.md#license",
"licenseNotice": "notices/yunet-LICENSE.txt",
"modificationAllowed": true
}

Binary file not shown.

50
assets/models/yunet.json Normal file
View File

@ -0,0 +1,50 @@
{
"format": "ONNX",
"providers": [
"CPU",
"XNNPACK",
"NNAPI"
],
"hardware": "Android API 30+, ARM64; CPU fallback",
"id": "opencv-yunet",
"name": "YuNet",
"version": "2026may",
"type": "face",
"adapter": "yunet",
"source": "https://media.githubusercontent.com/media/opencv/opencv_zoo/47534e27c9851bb1128ccc0102f1145e27f23f98/models/face_detection_yunet/face_detection_yunet_2026may.onnx",
"license": "MIT",
"commercialUse": true,
"redistributionAllowed": true,
"licenseVerification": "verified",
"productionAllowed": true,
"input": {
"name": "input",
"width": 320,
"height": 320,
"layout": "NCHW",
"dtype": "float32"
},
"outputs": [
"cls_8",
"cls_16",
"cls_32",
"obj_8",
"obj_16",
"obj_32",
"bbox_8",
"bbox_16",
"bbox_32",
"kps_8",
"kps_16",
"kps_32"
],
"preprocessing": "BGR 0–255, letterbox top-left",
"postprocessing": "sqrt(cls*obj), stride decode, IoU NMS",
"limitations": "Frontal/near-frontal faces; small and occluded faces may be missed",
"file": "models/yunet.onnx",
"size": 229738,
"sha256": "ebafce4e3c118d6554634be5c27ab333b4c047a9a8c3faf1d7cf93101c22f0f0",
"licenseEvidence": "https://github.com/opencv/opencv_zoo/blob/47534e27c9851bb1128ccc0102f1145e27f23f98/models/face_detection_yunet/README.md#license",
"licenseNotice": "notices/yunet-LICENSE.txt",
"modificationAllowed": true
}

BIN
assets/models/yunet.onnx Normal file

Binary file not shown.

View File

@ -0,0 +1,9 @@
# Age and gender model notice
The original dlib age and gender network weights were contributed by Cydral
Technology to the `davisking/dlib-models` project and dedicated to the public
domain under CC0 1.0.
Source: <https://github.com/davisking/dlib-models>
License: <https://creativecommons.org/publicdomain/zero/1.0/>

21
assets/notices/LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) Microsoft Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,117 @@
CC0 1.0 Universal
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator and
subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for the
purpose of contributing to a commons of creative, cultural and scientific
works ("Commons") that the public can reliably and without fear of later
claims of infringement build upon, modify, incorporate in other works, reuse
and redistribute as freely as possible in any form whatsoever and for any
purposes, including without limitation commercial purposes. These owners may
contribute to the Commons to promote the ideal of a free culture and the
further production of creative, cultural and scientific works, or to gain
reputation or greater distribution for their Work in part through the use and
efforts of others.
For these and/or other purposes and motivations, and without any expectation
of additional consideration or compensation, the person associating CC0 with a
Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
and publicly distribute the Work under its terms, with knowledge of his or her
Copyright and Related Rights in the Work and the meaning and intended legal
effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not limited
to, the following:
i. the right to reproduce, adapt, distribute, perform, display, communicate,
and translate a Work;
ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or likeness
depicted in a Work;
iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;
v. rights protecting the extraction, dissemination, use and reuse of data in
a Work;
vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation thereof,
including any amended or successor version of such directive); and
vii. other similar, equivalent or corresponding rights throughout the world
based on applicable law or treaty, and any national implementations thereof.
2. Waiver. To the greatest extent permitted by, but not in contravention of,
applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
and Related Rights and associated claims and causes of action, whether now
known or unknown (including existing as well as future claims and causes of
action), in the Work (i) in all territories worldwide, (ii) for the maximum
duration provided by applicable law or treaty (including future time
extensions), (iii) in any current or future medium and for any number of
copies, and (iv) for any purpose whatsoever, including without limitation
commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
the Waiver for the benefit of each member of the public at large and to the
detriment of Affirmer's heirs and successors, fully intending that such Waiver
shall not be subject to revocation, rescission, cancellation, termination, or
any other legal or equitable action to disrupt the quiet enjoyment of the Work
by the public as contemplated by Affirmer's express Statement of Purpose.
3. Public License Fallback. Should any part of the Waiver for any reason be
judged legally invalid or ineffective under applicable law, then the Waiver
shall be preserved to the maximum extent permitted taking into account
Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
is so judged Affirmer hereby grants to each affected person a royalty-free,
non transferable, non sublicensable, non exclusive, irrevocable and
unconditional license to exercise Affirmer's Copyright and Related Rights in
the Work (i) in all territories worldwide, (ii) for the maximum duration
provided by applicable law or treaty (including future time extensions), (iii)
in any current or future medium and for any number of copies, and (iv) for any
purpose whatsoever, including without limitation commercial, advertising or
promotional purposes (the "License"). The License shall be deemed effective as
of the date CC0 was applied by Affirmer to the Work. Should any part of the
License for any reason be judged legally invalid or ineffective under
applicable law, such partial invalidity or ineffectiveness shall not
invalidate the remainder of the License, and in such case Affirmer hereby
affirms that he or she will not (i) exercise any of his or her remaining
Copyright and Related Rights in the Work or (ii) assert any associated claims
and causes of action with respect to the Work, in either case contrary to
Affirmer's express Statement of Purpose.
4. Limitations and Disclaimers.
a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.
b. Affirmer offers the Work as-is and makes no representations or warranties
of any kind concerning the Work, express, implied, statutory or otherwise,
including without limitation warranties of title, merchantability, fitness
for a particular purpose, non infringement, or the absence of latent or
other defects, accuracy, or the present or absence of errors, whether or not
discoverable, all to the greatest extent permissible under applicable law.
c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without limitation
any person's Copyright and Related Rights in the Work. Further, Affirmer
disclaims responsibility for obtaining any necessary consents, permissions
or other rights required for any use of the Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to this
CC0 or use of the Work.
For more information, please see
<http://creativecommons.org/publicdomain/zero/1.0/>

View File

@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2020 Shiqi Yu <shiqi.yu@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

51
benchmarks/baseline.csv Normal file
View File

@ -0,0 +1,51 @@
scene,resolution,backend,input_size,interval_ms,sample,faces,detection_ms,age_gender_ms,total_ms,cpu_pct,pss_mib
camera,640×480,webgl,320,200,1,0,2131.5,,2132.399999999907,76,111.6669921875
camera,640×480,webgl,320,200,2,0,321.5,,321.79999999981374,45,111.7353515625
camera,640×480,webgl,320,200,3,0,317.6999999997206,,317.89999999990687,63,111.9033203125
camera,640×480,webgl,320,200,4,0,337.10000000009313,,337.3000000002794,38,111.9873046875
camera,640×480,webgl,320,200,5,0,310.79999999981374,,310.89999999990687,41,112.1376953125
camera,640×480,webgl,320,200,6,0,288.8000000002794,,288.90000000037253,36,112.2216796875
camera,640×480,webgl,320,200,7,0,283.40000000037253,,283.5,37,112.0498046875
camera,640×480,webgl,320,200,8,0,328.10000000009313,,328.20000000018626,58,112.4091796875
camera,640×480,webgl,320,200,9,0,245.20000000018626,,245.5,39,112.4677734375
camera,640×480,webgl,320,200,10,0,261.60000000009313,,261.70000000018626,34,112.5439453125
camera,1280×720,webgl,320,200,1,0,265.5,,265.6999999997206,107,117.138671875
camera,1280×720,webgl,320,200,2,0,277.5,,277.70000000018626,32,116.546875
camera,1280×720,webgl,320,200,3,0,277.39999999990687,,277.60000000009313,31,116.626953125
camera,1280×720,webgl,320,200,4,0,339.70000000018626,,339.89999999990687,28,116.6953125
camera,1280×720,webgl,320,200,5,0,361.39999999990687,,361.60000000009313,54,116.841796875
camera,1280×720,webgl,320,200,6,0,345.60000000009313,,345.79999999981374,28,116.9072265625
camera,1280×720,webgl,320,200,7,0,334.10000000009313,,334.29999999981374,28,116.3369140625
camera,1280×720,webgl,320,200,8,0,267.5,,267.60000000009313,31,116.4013671875
camera,1280×720,webgl,320,200,9,0,267.8000000002794,,267.8000000002794,43,116.5126953125
camera,1280×720,webgl,320,200,10,0,261.89999999990687,,262.10000000009313,30,116.5751953125
camera,1600×1200,webgl,320,200,1,0,291.6999999997206,,291.89999999990687,80,121.953125
camera,1600×1200,webgl,320,200,2,0,343.1999999997206,,343.39999999990687,29,120.6875
camera,1600×1200,webgl,320,200,3,0,380.39999999990687,,380.6999999997206,103,118.43359375
camera,1600×1200,webgl,320,200,4,0,355.3000000002794,,355.5,29,118.5703125
camera,1600×1200,webgl,320,200,5,0,358.5,,358.70000000018626,28,118.478515625
camera,1600×1200,webgl,320,200,6,0,362.79999999981374,,363,64,118.58203125
camera,1600×1200,webgl,320,200,7,0,344.6999999997206,,344.89999999990687,27,118.658203125
camera,1600×1200,webgl,320,200,8,0,349.60000000009313,,349.8000000002794,98,117.416015625
camera,1600×1200,webgl,320,200,9,0,341.89999999990687,,342.10000000009313,31,117.3974609375
camera,1600×1200,webgl,320,200,10,0,361.89999999990687,,362.10000000009313,30,117.4560546875
Solo,640×480,webgl,320,200,1,1,354.5,1446.6999999997206,1801.1999999997206,79,117.5498046875
Solo,640×480,webgl,320,200,2,1,256.40000000037253,84.89999999990687,341.3000000002794,44,117.7626953125
Solo,640×480,webgl,320,200,3,1,204.10000000009313,92.39999999990687,296.5,69,118.0185546875
Solo,640×480,webgl,320,200,4,1,191.60000000009313,87.29999999981374,278.89999999990687,52,118.1943359375
Solo,640×480,webgl,320,200,5,1,191.10000000009313,90,281.10000000009313,52,118.3349609375
Solo,640×480,webgl,320,200,6,1,198.79999999981374,83.10000000009313,281.89999999990687,54,118.5029296875
Solo,640×480,webgl,320,200,7,1,184.60000000009313,89.10000000009313,273.70000000018626,54,118.6455078125
Solo,640×480,webgl,320,200,8,1,196.6999999997206,82.3000000002794,279,55,118.8251953125
Solo,640×480,webgl,320,200,9,1,209,81,290,94,119.0556640625
Solo,640×480,webgl,320,200,10,1,197.29999999981374,111.10000000009313,308.39999999990687,55,119.1962890625
Group,640×480,webgl,320,200,1,3,250.40000000037253,296.39999999990687,546.8000000002794,46,120.3681640625
Group,640×480,webgl,320,200,2,3,192.59999999962747,341,533.5999999996275,58,120.6884765625
Group,640×480,webgl,320,200,3,3,195.59999999962747,291.8000000002794,487.39999999990687,56,121.0830078125
Group,640×480,webgl,320,200,4,3,199.70000000018626,240.6999999997206,440.39999999990687,72,121.5087890625
Group,640×480,webgl,320,200,5,3,186.10000000009313,249.20000000018626,435.3000000002794,63,121.8681640625
Group,640×480,webgl,320,200,6,3,196.3000000002794,237.6999999997206,434,64,122.2392578125
Group,640×480,webgl,320,200,7,3,183.10000000009313,320.79999999981374,503.89999999990687,58,120.12890625
Group,640×480,webgl,320,200,8,3,196.6999999997206,311.39999999990687,508.09999999962747,70,120.5
Group,640×480,webgl,320,200,9,3,191.79999999981374,236.20000000018626,428,62,120.8828125
Group,640×480,webgl,320,200,10,3,188.70000000018626,261.20000000018626,449.90000000037253,68,121.16015625
1 scene resolution backend input_size interval_ms sample faces detection_ms age_gender_ms total_ms cpu_pct pss_mib
2 camera 640×480 webgl 320 200 1 0 2131.5 2132.399999999907 76 111.6669921875
3 camera 640×480 webgl 320 200 2 0 321.5 321.79999999981374 45 111.7353515625
4 camera 640×480 webgl 320 200 3 0 317.6999999997206 317.89999999990687 63 111.9033203125
5 camera 640×480 webgl 320 200 4 0 337.10000000009313 337.3000000002794 38 111.9873046875
6 camera 640×480 webgl 320 200 5 0 310.79999999981374 310.89999999990687 41 112.1376953125
7 camera 640×480 webgl 320 200 6 0 288.8000000002794 288.90000000037253 36 112.2216796875
8 camera 640×480 webgl 320 200 7 0 283.40000000037253 283.5 37 112.0498046875
9 camera 640×480 webgl 320 200 8 0 328.10000000009313 328.20000000018626 58 112.4091796875
10 camera 640×480 webgl 320 200 9 0 245.20000000018626 245.5 39 112.4677734375
11 camera 640×480 webgl 320 200 10 0 261.60000000009313 261.70000000018626 34 112.5439453125
12 camera 1280×720 webgl 320 200 1 0 265.5 265.6999999997206 107 117.138671875
13 camera 1280×720 webgl 320 200 2 0 277.5 277.70000000018626 32 116.546875
14 camera 1280×720 webgl 320 200 3 0 277.39999999990687 277.60000000009313 31 116.626953125
15 camera 1280×720 webgl 320 200 4 0 339.70000000018626 339.89999999990687 28 116.6953125
16 camera 1280×720 webgl 320 200 5 0 361.39999999990687 361.60000000009313 54 116.841796875
17 camera 1280×720 webgl 320 200 6 0 345.60000000009313 345.79999999981374 28 116.9072265625
18 camera 1280×720 webgl 320 200 7 0 334.10000000009313 334.29999999981374 28 116.3369140625
19 camera 1280×720 webgl 320 200 8 0 267.5 267.60000000009313 31 116.4013671875
20 camera 1280×720 webgl 320 200 9 0 267.8000000002794 267.8000000002794 43 116.5126953125
21 camera 1280×720 webgl 320 200 10 0 261.89999999990687 262.10000000009313 30 116.5751953125
22 camera 1600×1200 webgl 320 200 1 0 291.6999999997206 291.89999999990687 80 121.953125
23 camera 1600×1200 webgl 320 200 2 0 343.1999999997206 343.39999999990687 29 120.6875
24 camera 1600×1200 webgl 320 200 3 0 380.39999999990687 380.6999999997206 103 118.43359375
25 camera 1600×1200 webgl 320 200 4 0 355.3000000002794 355.5 29 118.5703125
26 camera 1600×1200 webgl 320 200 5 0 358.5 358.70000000018626 28 118.478515625
27 camera 1600×1200 webgl 320 200 6 0 362.79999999981374 363 64 118.58203125
28 camera 1600×1200 webgl 320 200 7 0 344.6999999997206 344.89999999990687 27 118.658203125
29 camera 1600×1200 webgl 320 200 8 0 349.60000000009313 349.8000000002794 98 117.416015625
30 camera 1600×1200 webgl 320 200 9 0 341.89999999990687 342.10000000009313 31 117.3974609375
31 camera 1600×1200 webgl 320 200 10 0 361.89999999990687 362.10000000009313 30 117.4560546875
32 Solo 640×480 webgl 320 200 1 1 354.5 1446.6999999997206 1801.1999999997206 79 117.5498046875
33 Solo 640×480 webgl 320 200 2 1 256.40000000037253 84.89999999990687 341.3000000002794 44 117.7626953125
34 Solo 640×480 webgl 320 200 3 1 204.10000000009313 92.39999999990687 296.5 69 118.0185546875
35 Solo 640×480 webgl 320 200 4 1 191.60000000009313 87.29999999981374 278.89999999990687 52 118.1943359375
36 Solo 640×480 webgl 320 200 5 1 191.10000000009313 90 281.10000000009313 52 118.3349609375
37 Solo 640×480 webgl 320 200 6 1 198.79999999981374 83.10000000009313 281.89999999990687 54 118.5029296875
38 Solo 640×480 webgl 320 200 7 1 184.60000000009313 89.10000000009313 273.70000000018626 54 118.6455078125
39 Solo 640×480 webgl 320 200 8 1 196.6999999997206 82.3000000002794 279 55 118.8251953125
40 Solo 640×480 webgl 320 200 9 1 209 81 290 94 119.0556640625
41 Solo 640×480 webgl 320 200 10 1 197.29999999981374 111.10000000009313 308.39999999990687 55 119.1962890625
42 Group 640×480 webgl 320 200 1 3 250.40000000037253 296.39999999990687 546.8000000002794 46 120.3681640625
43 Group 640×480 webgl 320 200 2 3 192.59999999962747 341 533.5999999996275 58 120.6884765625
44 Group 640×480 webgl 320 200 3 3 195.59999999962747 291.8000000002794 487.39999999990687 56 121.0830078125
45 Group 640×480 webgl 320 200 4 3 199.70000000018626 240.6999999997206 440.39999999990687 72 121.5087890625
46 Group 640×480 webgl 320 200 5 3 186.10000000009313 249.20000000018626 435.3000000002794 63 121.8681640625
47 Group 640×480 webgl 320 200 6 3 196.3000000002794 237.6999999997206 434 64 122.2392578125
48 Group 640×480 webgl 320 200 7 3 183.10000000009313 320.79999999981374 503.89999999990687 58 120.12890625
49 Group 640×480 webgl 320 200 8 3 196.6999999997206 311.39999999990687 508.09999999962747 70 120.5
50 Group 640×480 webgl 320 200 9 3 191.79999999981374 236.20000000018626 428 62 120.8828125
51 Group 640×480 webgl 320 200 10 3 188.70000000018626 261.20000000018626 449.90000000037253 68 121.16015625

397
benchmarks/baseline.json Executable file
View File

@ -0,0 +1,397 @@
[
{
"scene": "camera",
"actual": "640×480",
"backend": "webgl",
"interval_ms": 200,
"input_size": 320,
"trace": [
{
"detection_ms": 2131.5,
"age_gender_ms": null,
"total_ms": 2132.399999999907,
"faces": 0,
"raw": "76,114347"
},
{
"detection_ms": 321.5,
"age_gender_ms": null,
"total_ms": 321.79999999981374,
"faces": 0,
"raw": "45,114417"
},
{
"detection_ms": 317.6999999997206,
"age_gender_ms": null,
"total_ms": 317.89999999990687,
"faces": 0,
"raw": "63,114589"
},
{
"detection_ms": 337.10000000009313,
"age_gender_ms": null,
"total_ms": 337.3000000002794,
"faces": 0,
"raw": "38,114675"
},
{
"detection_ms": 310.79999999981374,
"age_gender_ms": null,
"total_ms": 310.89999999990687,
"faces": 0,
"raw": "41,114829"
},
{
"detection_ms": 288.8000000002794,
"age_gender_ms": null,
"total_ms": 288.90000000037253,
"faces": 0,
"raw": "36,114915"
},
{
"detection_ms": 283.40000000037253,
"age_gender_ms": null,
"total_ms": 283.5,
"faces": 0,
"raw": "37,114739"
},
{
"detection_ms": 328.10000000009313,
"age_gender_ms": null,
"total_ms": 328.20000000018626,
"faces": 0,
"raw": "58,115107"
},
{
"detection_ms": 245.20000000018626,
"age_gender_ms": null,
"total_ms": 245.5,
"faces": 0,
"raw": "39,115167"
},
{
"detection_ms": 261.60000000009313,
"age_gender_ms": null,
"total_ms": 261.70000000018626,
"faces": 0,
"raw": "34,115245"
}
]
},
{
"scene": "camera",
"actual": "1280×720",
"backend": "webgl",
"interval_ms": 200,
"input_size": 320,
"trace": [
{
"detection_ms": 265.5,
"age_gender_ms": null,
"total_ms": 265.6999999997206,
"faces": 0,
"raw": "107,119950"
},
{
"detection_ms": 277.5,
"age_gender_ms": null,
"total_ms": 277.70000000018626,
"faces": 0,
"raw": "32,119344"
},
{
"detection_ms": 277.39999999990687,
"age_gender_ms": null,
"total_ms": 277.60000000009313,
"faces": 0,
"raw": "31,119426"
},
{
"detection_ms": 339.70000000018626,
"age_gender_ms": null,
"total_ms": 339.89999999990687,
"faces": 0,
"raw": "28,119496"
},
{
"detection_ms": 361.39999999990687,
"age_gender_ms": null,
"total_ms": 361.60000000009313,
"faces": 0,
"raw": "54,119646"
},
{
"detection_ms": 345.60000000009313,
"age_gender_ms": null,
"total_ms": 345.79999999981374,
"faces": 0,
"raw": "28,119713"
},
{
"detection_ms": 334.10000000009313,
"age_gender_ms": null,
"total_ms": 334.29999999981374,
"faces": 0,
"raw": "28,119129"
},
{
"detection_ms": 267.5,
"age_gender_ms": null,
"total_ms": 267.60000000009313,
"faces": 0,
"raw": "31,119195"
},
{
"detection_ms": 267.8000000002794,
"age_gender_ms": null,
"total_ms": 267.8000000002794,
"faces": 0,
"raw": "43,119309"
},
{
"detection_ms": 261.89999999990687,
"age_gender_ms": null,
"total_ms": 262.10000000009313,
"faces": 0,
"raw": "30,119373"
}
]
},
{
"scene": "camera",
"actual": "1600×1200",
"backend": "webgl",
"interval_ms": 200,
"input_size": 320,
"trace": [
{
"detection_ms": 291.6999999997206,
"age_gender_ms": null,
"total_ms": 291.89999999990687,
"faces": 0,
"raw": "80,124880"
},
{
"detection_ms": 343.1999999997206,
"age_gender_ms": null,
"total_ms": 343.39999999990687,
"faces": 0,
"raw": "29,123584"
},
{
"detection_ms": 380.39999999990687,
"age_gender_ms": null,
"total_ms": 380.6999999997206,
"faces": 0,
"raw": "103,121276"
},
{
"detection_ms": 355.3000000002794,
"age_gender_ms": null,
"total_ms": 355.5,
"faces": 0,
"raw": "29,121416"
},
{
"detection_ms": 358.5,
"age_gender_ms": null,
"total_ms": 358.70000000018626,
"faces": 0,
"raw": "28,121322"
},
{
"detection_ms": 362.79999999981374,
"age_gender_ms": null,
"total_ms": 363,
"faces": 0,
"raw": "64,121428"
},
{
"detection_ms": 344.6999999997206,
"age_gender_ms": null,
"total_ms": 344.89999999990687,
"faces": 0,
"raw": "27,121506"
},
{
"detection_ms": 349.60000000009313,
"age_gender_ms": null,
"total_ms": 349.8000000002794,
"faces": 0,
"raw": "98,120234"
},
{
"detection_ms": 341.89999999990687,
"age_gender_ms": null,
"total_ms": 342.10000000009313,
"faces": 0,
"raw": "31,120215"
},
{
"detection_ms": 361.89999999990687,
"age_gender_ms": null,
"total_ms": 362.10000000009313,
"faces": 0,
"raw": "30,120275"
}
]
},
{
"scene": "Solo",
"actual": "640×480",
"backend": "webgl",
"interval_ms": 200,
"input_size": 320,
"trace": [
{
"detection_ms": 354.5,
"age_gender_ms": 1446.6999999997206,
"total_ms": 1801.1999999997206,
"faces": 1,
"raw": "79,120371"
},
{
"detection_ms": 256.40000000037253,
"age_gender_ms": 84.89999999990687,
"total_ms": 341.3000000002794,
"faces": 1,
"raw": "44,120589"
},
{
"detection_ms": 204.10000000009313,
"age_gender_ms": 92.39999999990687,
"total_ms": 296.5,
"faces": 1,
"raw": "69,120851"
},
{
"detection_ms": 191.60000000009313,
"age_gender_ms": 87.29999999981374,
"total_ms": 278.89999999990687,
"faces": 1,
"raw": "52,121031"
},
{
"detection_ms": 191.10000000009313,
"age_gender_ms": 90,
"total_ms": 281.10000000009313,
"faces": 1,
"raw": "52,121175"
},
{
"detection_ms": 198.79999999981374,
"age_gender_ms": 83.10000000009313,
"total_ms": 281.89999999990687,
"faces": 1,
"raw": "54,121347"
},
{
"detection_ms": 184.60000000009313,
"age_gender_ms": 89.10000000009313,
"total_ms": 273.70000000018626,
"faces": 1,
"raw": "54,121493"
},
{
"detection_ms": 196.6999999997206,
"age_gender_ms": 82.3000000002794,
"total_ms": 279,
"faces": 1,
"raw": "55,121677"
},
{
"detection_ms": 209,
"age_gender_ms": 81,
"total_ms": 290,
"faces": 1,
"raw": "94,121913"
},
{
"detection_ms": 197.29999999981374,
"age_gender_ms": 111.10000000009313,
"total_ms": 308.39999999990687,
"faces": 1,
"raw": "55,122057"
}
]
},
{
"scene": "Group",
"actual": "640×480",
"backend": "webgl",
"interval_ms": 200,
"input_size": 320,
"trace": [
{
"detection_ms": 250.40000000037253,
"age_gender_ms": 296.39999999990687,
"total_ms": 546.8000000002794,
"faces": 3,
"raw": "46,123257"
},
{
"detection_ms": 192.59999999962747,
"age_gender_ms": 341,
"total_ms": 533.5999999996275,
"faces": 3,
"raw": "58,123585"
},
{
"detection_ms": 195.59999999962747,
"age_gender_ms": 291.8000000002794,
"total_ms": 487.39999999990687,
"faces": 3,
"raw": "56,123989"
},
{
"detection_ms": 199.70000000018626,
"age_gender_ms": 240.6999999997206,
"total_ms": 440.39999999990687,
"faces": 3,
"raw": "72,124425"
},
{
"detection_ms": 186.10000000009313,
"age_gender_ms": 249.20000000018626,
"total_ms": 435.3000000002794,
"faces": 3,
"raw": "63,124793"
},
{
"detection_ms": 196.3000000002794,
"age_gender_ms": 237.6999999997206,
"total_ms": 434,
"faces": 3,
"raw": "64,125173"
},
{
"detection_ms": 183.10000000009313,
"age_gender_ms": 320.79999999981374,
"total_ms": 503.89999999990687,
"faces": 3,
"raw": "58,123012"
},
{
"detection_ms": 196.6999999997206,
"age_gender_ms": 311.39999999990687,
"total_ms": 508.09999999962747,
"faces": 3,
"raw": "70,123392"
},
{
"detection_ms": 191.79999999981374,
"age_gender_ms": 236.20000000018626,
"total_ms": 428,
"faces": 3,
"raw": "62,123784"
},
{
"detection_ms": 188.70000000018626,
"age_gender_ms": 261.20000000018626,
"total_ms": 449.90000000037253,
"faces": 3,
"raw": "68,124068"
}
]
}
]

View File

@ -0,0 +1,50 @@
runtime,provider,threads,detector,demographics,detector_nodes,demographics_nodes,resolution,camera_fps,inference_fps,detection_ms,age_gender_ms,total_ms,session_load_ms,interval_ms,cpu_pct,pss_mib,cpu_temperature_c,frame_drops,errors,faces,uptime_s
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","14.7","5.3","67.1","null","67.1","638.8","200","null","130.8","null","17","0","0","3"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.1","68.5","null","68.5","638.8","200","101.4","149.3","null","32","0","0","4"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.7","4.1","83.9","null","84.0","638.8","200","105.9","167.8","null","47","0","0","6"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","68.5","null","68.6","638.8","200","107.2","119.6","null","62","0","0","7"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","63.9","null","63.9","638.8","200","100.6","138.0","null","77","0","0","8"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.1","70.1","null","70.2","638.8","200","98.6","156.3","null","92","0","0","9"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.7","4.2","64.9","null","64.9","638.8","200","99.8","174.8","null","107","0","0","11"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.0","93.3","null","93.3","638.8","200","106.1","126.8","null","122","0","0","12"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","70.5","null","70.5","638.8","200","101.4","145.2","null","137","0","0","13"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.7","4.2","68.2","null","68.2","638.8","200","99.6","163.5","null","152","0","0","14"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","70.4","null","70.4","638.8","200","104.2","114.9","null","167","0","0","15"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","68.4","null","68.4","638.8","200","100.9","133.4","null","182","0","0","17"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.1","71.0","null","71.0","638.8","200","98.9","151.8","null","197","0","0","18"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","70.0","null","70.0","638.8","200","99.3","170.1","null","212","0","0","19"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.7","4.2","69.7","null","69.7","638.8","200","105.5","121.1","null","227","0","0","20"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","67.6","null","67.6","638.8","200","99.6","139.4","null","242","0","0","21"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","70.0","null","70.0","638.8","200","99.4","157.7","null","257","0","0","23"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","640×480","16.6","4.2","66.9","null","66.9","638.8","200","99.4","176.0","null","272","0","0","24"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","6.4","66.1","null","66.2","0.0","200","null","106.5","null","6","0","3","165"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.8","76.9","null","77.0","0.0","200","105.2","113.3","null","11","0","3","166"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.8","93.1","27.2","120.3","0.0","200","88.7","113.6","null","17","0","3","168"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.1","91.2","null","91.4","0.0","200","96.0","94.1","null","23","0","3","169"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","64.5","19.0","83.5","0.0","200","90.6","102.1","null","28","0","3","170"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","72.0","null","72.1","0.0","200","89.3","110.2","null","33","0","3","171"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","81.5","null","81.7","0.0","200","91.3","94.4","null","39","0","3","172"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","76.1","null","76.2","0.0","200","91.0","101.0","null","43","0","3","173"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.7","76.7","26.4","103.1","0.0","200","89.7","107.6","null","49","0","3","174"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.1","68.2","null","68.3","0.0","200","85.8","91.5","null","54","0","3","175"
"ONNX Runtime 1.32.0","CPU","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=91}","CPU (awaiting first run)","640×480","17.5","5.3","81.7","null","81.7","431.1","200","null","146.8","null","15","0","0","193"
"ONNX Runtime 1.32.0","CPU","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=91}","CPU (awaiting first run)","640×480","16.7","4.2","77.9","null","77.9","431.1","200","138.0","159.1","null","30","0","0","194"
"ONNX Runtime 1.32.0","CPU","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=91}","CPU (awaiting first run)","640×480","16.6","3.9","140.9","null","140.9","431.1","200","146.0","170.7","null","42","0","0","195"
"ONNX Runtime 1.32.0","CPU","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=91}","CPU (awaiting first run)","640×480","16.7","4.3","89.0","null","89.0","431.1","200","157.1","117.5","null","57","0","0","196"
"ONNX Runtime 1.32.0","CPU","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=91}","CPU (awaiting first run)","640×480","16.6","4.2","81.2","null","81.3","431.1","200","137.3","135.8","null","72","0","0","197"
"ONNX Runtime 1.32.0","NNAPI","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{Nnapi=1}","NNAPI (awaiting first run)","640×480","17.6","3.5","349.0","null","349.0","742.5","200","null","141.2","null","19","0","0","202"
"ONNX Runtime 1.32.0","NNAPI","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{Nnapi=1}","NNAPI (awaiting first run)","640×480","16.6","2.8","347.0","null","347.0","742.5","200","149.4","155.9","null","35","0","0","203"
"ONNX Runtime 1.32.0","NNAPI","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{Nnapi=1}","NNAPI (awaiting first run)","640×480","16.6","2.5","351.0","null","351.0","742.5","200","140.5","171.6","null","52","0","0","204"
"ONNX Runtime 1.32.0","NNAPI","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{Nnapi=1}","NNAPI (awaiting first run)","640×480","16.6","2.5","366.7","null","366.8","742.5","200","139.4","188.4","null","69","0","0","205"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1600×1200","17.6","5.4","65.6","null","65.7","545.2","200","null","121.1","null","15","0","0","262"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1600×1200","16.7","4.2","65.0","null","65.0","545.2","200","102.2","136.6","null","30","0","0","264"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1600×1200","16.6","4.0","97.9","null","97.9","545.2","200","106.2","154.8","null","45","0","0","265"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1600×1200","16.6","4.3","64.1","null","64.2","545.2","200","109.1","113.6","null","60","0","0","266"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1600×1200","16.6","4.1","66.0","null","66.0","545.2","200","100.3","131.8","null","75","0","0","267"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1600×1200","16.7","4.1","79.2","null","79.2","545.2","200","100.9","150.1","null","90","0","0","269"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1280×720","17.6","5.1","81.2","null","81.3","0.0","200","null","103.7","null","15","0","0","272"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1280×720","16.6","4.2","65.9","null","65.9","0.0","200","94.6","119.0","null","30","0","0","273"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1280×720","16.6","4.1","65.8","null","65.8","0.0","200","90.7","134.6","null","45","0","0","274"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1280×720","16.6","4.1","72.6","null","72.6","0.0","200","95.2","93.8","null","60","0","0","276"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1280×720","16.5","4.2","66.5","null","66.6","0.0","200","90.9","109.2","null","75","0","0","277"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","XNNPACK (awaiting first run)","1280×720","16.6","4.2","67.5","null","67.5","0.0","200","90.9","124.8","null","90","0","0","278"
1 runtime provider threads detector demographics detector_nodes demographics_nodes resolution camera_fps inference_fps detection_ms age_gender_ms total_ms session_load_ms interval_ms cpu_pct pss_mib cpu_temperature_c frame_drops errors faces uptime_s
2 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 14.7 5.3 67.1 null 67.1 638.8 200 null 130.8 null 17 0 0 3
3 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.6 4.1 68.5 null 68.5 638.8 200 101.4 149.3 null 32 0 0 4
4 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.7 4.1 83.9 null 84.0 638.8 200 105.9 167.8 null 47 0 0 6
5 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.6 4.2 68.5 null 68.6 638.8 200 107.2 119.6 null 62 0 0 7
6 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.6 4.2 63.9 null 63.9 638.8 200 100.6 138.0 null 77 0 0 8
7 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.6 4.1 70.1 null 70.2 638.8 200 98.6 156.3 null 92 0 0 9
8 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.7 4.2 64.9 null 64.9 638.8 200 99.8 174.8 null 107 0 0 11
9 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.6 4.0 93.3 null 93.3 638.8 200 106.1 126.8 null 122 0 0 12
10 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.6 4.2 70.5 null 70.5 638.8 200 101.4 145.2 null 137 0 0 13
11 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.7 4.2 68.2 null 68.2 638.8 200 99.6 163.5 null 152 0 0 14
12 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.6 4.2 70.4 null 70.4 638.8 200 104.2 114.9 null 167 0 0 15
13 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.6 4.2 68.4 null 68.4 638.8 200 100.9 133.4 null 182 0 0 17
14 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.6 4.1 71.0 null 71.0 638.8 200 98.9 151.8 null 197 0 0 18
15 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.6 4.2 70.0 null 70.0 638.8 200 99.3 170.1 null 212 0 0 19
16 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.7 4.2 69.7 null 69.7 638.8 200 105.5 121.1 null 227 0 0 20
17 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.6 4.2 67.6 null 67.6 638.8 200 99.6 139.4 null 242 0 0 21
18 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.6 4.2 70.0 null 70.0 638.8 200 99.4 157.7 null 257 0 0 23
19 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.6 4.2 66.9 null 66.9 638.8 200 99.4 176.0 null 272 0 0 24
20 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 6.4 66.1 null 66.2 0.0 200 null 106.5 null 6 0 3 165
21 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.8 76.9 null 77.0 0.0 200 105.2 113.3 null 11 0 3 166
22 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.8 93.1 27.2 120.3 0.0 200 88.7 113.6 null 17 0 3 168
23 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.1 91.2 null 91.4 0.0 200 96.0 94.1 null 23 0 3 169
24 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.0 64.5 19.0 83.5 0.0 200 90.6 102.1 null 28 0 3 170
25 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.0 72.0 null 72.1 0.0 200 89.3 110.2 null 33 0 3 171
26 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.9 81.5 null 81.7 0.0 200 91.3 94.4 null 39 0 3 172
27 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.9 76.1 null 76.2 0.0 200 91.0 101.0 null 43 0 3 173
28 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.7 76.7 26.4 103.1 0.0 200 89.7 107.6 null 49 0 3 174
29 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.1 68.2 null 68.3 0.0 200 85.8 91.5 null 54 0 3 175
30 ONNX Runtime 1.32.0 CPU 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=91} CPU (awaiting first run) 640×480 17.5 5.3 81.7 null 81.7 431.1 200 null 146.8 null 15 0 0 193
31 ONNX Runtime 1.32.0 CPU 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=91} CPU (awaiting first run) 640×480 16.7 4.2 77.9 null 77.9 431.1 200 138.0 159.1 null 30 0 0 194
32 ONNX Runtime 1.32.0 CPU 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=91} CPU (awaiting first run) 640×480 16.6 3.9 140.9 null 140.9 431.1 200 146.0 170.7 null 42 0 0 195
33 ONNX Runtime 1.32.0 CPU 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=91} CPU (awaiting first run) 640×480 16.7 4.3 89.0 null 89.0 431.1 200 157.1 117.5 null 57 0 0 196
34 ONNX Runtime 1.32.0 CPU 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=91} CPU (awaiting first run) 640×480 16.6 4.2 81.2 null 81.3 431.1 200 137.3 135.8 null 72 0 0 197
35 ONNX Runtime 1.32.0 NNAPI 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {Nnapi=1} NNAPI (awaiting first run) 640×480 17.6 3.5 349.0 null 349.0 742.5 200 null 141.2 null 19 0 0 202
36 ONNX Runtime 1.32.0 NNAPI 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {Nnapi=1} NNAPI (awaiting first run) 640×480 16.6 2.8 347.0 null 347.0 742.5 200 149.4 155.9 null 35 0 0 203
37 ONNX Runtime 1.32.0 NNAPI 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {Nnapi=1} NNAPI (awaiting first run) 640×480 16.6 2.5 351.0 null 351.0 742.5 200 140.5 171.6 null 52 0 0 204
38 ONNX Runtime 1.32.0 NNAPI 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {Nnapi=1} NNAPI (awaiting first run) 640×480 16.6 2.5 366.7 null 366.8 742.5 200 139.4 188.4 null 69 0 0 205
39 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 1600×1200 17.6 5.4 65.6 null 65.7 545.2 200 null 121.1 null 15 0 0 262
40 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 1600×1200 16.7 4.2 65.0 null 65.0 545.2 200 102.2 136.6 null 30 0 0 264
41 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 1600×1200 16.6 4.0 97.9 null 97.9 545.2 200 106.2 154.8 null 45 0 0 265
42 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 1600×1200 16.6 4.3 64.1 null 64.2 545.2 200 109.1 113.6 null 60 0 0 266
43 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 1600×1200 16.6 4.1 66.0 null 66.0 545.2 200 100.3 131.8 null 75 0 0 267
44 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 1600×1200 16.7 4.1 79.2 null 79.2 545.2 200 100.9 150.1 null 90 0 0 269
45 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 1280×720 17.6 5.1 81.2 null 81.3 0.0 200 null 103.7 null 15 0 0 272
46 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 1280×720 16.6 4.2 65.9 null 65.9 0.0 200 94.6 119.0 null 30 0 0 273
47 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 1280×720 16.6 4.1 65.8 null 65.8 0.0 200 90.7 134.6 null 45 0 0 274
48 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 1280×720 16.6 4.1 72.6 null 72.6 0.0 200 95.2 93.8 null 60 0 0 276
49 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 1280×720 16.5 4.2 66.5 null 66.6 0.0 200 90.9 109.2 null 75 0 0 277
50 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 1280×720 16.6 4.2 67.5 null 67.5 0.0 200 90.9 124.8 null 90 0 0 278

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,35 @@
runtime,provider,threads,detector,demographics,detector_nodes,demographics_nodes,resolution,camera_fps,inference_fps,detection_ms,age_gender_ms,total_ms,session_load_ms,interval_ms,cpu_pct,pss_mib,cpu_temperature_c,frame_drops,errors,faces,uptime_s
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","6.0","88.0","null","88.1","861.4","200","null","127.4","null","8","0","1","23"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","88.3","null","88.5","861.4","200","84.7","134.2","null","13","0","1","24"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.1","67.5","null","67.6","861.4","200","80.6","142.1","null","18","0","1","25"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","67.9","null","68.0","861.4","200","92.7","121.8","null","23","0","1","26"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","85.9","null","86.0","861.4","200","85.4","128.2","null","28","0","1","27"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","87.3","null","87.4","861.4","200","83.9","134.8","null","34","0","1","28"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","88.0","null","88.2","861.4","200","89.8","142.7","null","40","0","1","30"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","91.1","null","91.2","861.4","200","95.3","105.3","null","45","0","1","31"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","87.7","null","87.8","861.4","200","90.3","113.1","null","51","0","1","32"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","106.8","null","106.9","861.4","200","84.7","121.4","null","57","0","1","33"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","88.1","null","88.2","861.4","200","87.5","105.8","null","63","0","1","34"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","79.0","null","79.1","861.4","200","87.9","113.6","null","69","0","1","36"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","65.0","null","65.1","861.4","200","88.2","120.2","null","73","0","1","37"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","67.8","null","67.9","861.4","200","85.4","126.7","null","78","0","1","38"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","74.3","null","74.4","861.4","200","88.2","108.2","null","83","0","1","39"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","70.1","null","70.2","861.4","200","86.2","114.8","null","88","0","1","40"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","74.3","null","74.4","861.4","200","80.8","121.4","null","93","0","1","41"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.8","97.5","null","97.7","861.4","200","87.9","104.5","null","99","0","1","42"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","90.1","null","90.1","861.4","200","84.3","112.4","null","105","0","1","43"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","66.5","null","66.6","861.4","200","82.2","120.2","null","110","0","1","44"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","67.3","null","67.4","861.4","200","88.3","120.0","null","115","0","1","45"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.7","90.3","null","90.5","861.4","200","88.0","101.6","null","121","0","1","46"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","91.0","null","91.2","861.4","200","88.8","108.1","null","126","0","1","47"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","102.1","null","102.3","861.4","200","90.0","114.7","null","131","0","1","48"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","78.2","null","78.4","861.4","200","92.9","99.1","null","136","0","1","49"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.8","100.1","null","100.3","861.4","200","87.2","105.6","null","142","0","1","50"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","97.9","null","98.1","861.4","200","85.6","112.2","null","147","0","1","51"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","90.7","null","90.9","861.4","200","87.3","120.0","null","153","0","1","53"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.9","95.7","null","95.9","861.4","200","91.6","102.9","null","159","0","1","54"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.1","67.9","null","68.0","861.4","200","79.3","111.5","null","164","0","1","55"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","68.6","null","68.7","861.4","200","80.2","118.0","null","169","0","1","56"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.0","67.0","null","67.1","861.4","200","82.7","101.1","null","174","0","1","57"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","4.8","99.0","null","99.1","861.4","200","88.3","107.7","null","180","0","1","58"
"ONNX Runtime 1.32.0","XNNPACK","2","YuNet 2026may-fixed320","Intel Age/Gender 2023.0-fp32-onnx1","{CPU=23, Xnnpack=57}","{CPU=15, Xnnpack=12}","Test 640×480","null","5.1","66.3","null","66.4","861.4","200","83.1","115.5","null","185","0","1","59"
1 runtime provider threads detector demographics detector_nodes demographics_nodes resolution camera_fps inference_fps detection_ms age_gender_ms total_ms session_load_ms interval_ms cpu_pct pss_mib cpu_temperature_c frame_drops errors faces uptime_s
2 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 6.0 88.0 null 88.1 861.4 200 null 127.4 null 8 0 1 23
3 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.0 88.3 null 88.5 861.4 200 84.7 134.2 null 13 0 1 24
4 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.1 67.5 null 67.6 861.4 200 80.6 142.1 null 18 0 1 25
5 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.9 67.9 null 68.0 861.4 200 92.7 121.8 null 23 0 1 26
6 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.9 85.9 null 86.0 861.4 200 85.4 128.2 null 28 0 1 27
7 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.0 87.3 null 87.4 861.4 200 83.9 134.8 null 34 0 1 28
8 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.0 88.0 null 88.2 861.4 200 89.8 142.7 null 40 0 1 30
9 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.9 91.1 null 91.2 861.4 200 95.3 105.3 null 45 0 1 31
10 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.0 87.7 null 87.8 861.4 200 90.3 113.1 null 51 0 1 32
11 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.9 106.8 null 106.9 861.4 200 84.7 121.4 null 57 0 1 33
12 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.0 88.1 null 88.2 861.4 200 87.5 105.8 null 63 0 1 34
13 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.0 79.0 null 79.1 861.4 200 87.9 113.6 null 69 0 1 36
14 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.9 65.0 null 65.1 861.4 200 88.2 120.2 null 73 0 1 37
15 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.9 67.8 null 67.9 861.4 200 85.4 126.7 null 78 0 1 38
16 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.9 74.3 null 74.4 861.4 200 88.2 108.2 null 83 0 1 39
17 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.9 70.1 null 70.2 861.4 200 86.2 114.8 null 88 0 1 40
18 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.9 74.3 null 74.4 861.4 200 80.8 121.4 null 93 0 1 41
19 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.8 97.5 null 97.7 861.4 200 87.9 104.5 null 99 0 1 42
20 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.0 90.1 null 90.1 861.4 200 84.3 112.4 null 105 0 1 43
21 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.0 66.5 null 66.6 861.4 200 82.2 120.2 null 110 0 1 44
22 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.9 67.3 null 67.4 861.4 200 88.3 120.0 null 115 0 1 45
23 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.7 90.3 null 90.5 861.4 200 88.0 101.6 null 121 0 1 46
24 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.0 91.0 null 91.2 861.4 200 88.8 108.1 null 126 0 1 47
25 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.9 102.1 null 102.3 861.4 200 90.0 114.7 null 131 0 1 48
26 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.0 78.2 null 78.4 861.4 200 92.9 99.1 null 136 0 1 49
27 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.8 100.1 null 100.3 861.4 200 87.2 105.6 null 142 0 1 50
28 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.9 97.9 null 98.1 861.4 200 85.6 112.2 null 147 0 1 51
29 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.0 90.7 null 90.9 861.4 200 87.3 120.0 null 153 0 1 53
30 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.9 95.7 null 95.9 861.4 200 91.6 102.9 null 159 0 1 54
31 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.1 67.9 null 68.0 861.4 200 79.3 111.5 null 164 0 1 55
32 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.0 68.6 null 68.7 861.4 200 80.2 118.0 null 169 0 1 56
33 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.0 67.0 null 67.1 861.4 200 82.7 101.1 null 174 0 1 57
34 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 4.8 99.0 null 99.1 861.4 200 88.3 107.7 null 180 0 1 58
35 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} {CPU=15, Xnnpack=12} Test 640×480 null 5.1 66.3 null 66.4 861.4 200 83.1 115.5 null 185 0 1 59

818
benchmarks/native-solo.json Normal file
View File

@ -0,0 +1,818 @@
[
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 6,
"detection_ms": 88,
"age_gender_ms": null,
"total_ms": 88.1,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": null,
"pss_mib": 127.4,
"cpu_temperature_c": null,
"frame_drops": 8,
"errors": 0,
"faces": 1,
"uptime_s": 23
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5,
"detection_ms": 88.3,
"age_gender_ms": null,
"total_ms": 88.5,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 84.7,
"pss_mib": 134.2,
"cpu_temperature_c": null,
"frame_drops": 13,
"errors": 0,
"faces": 1,
"uptime_s": 24
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5.1,
"detection_ms": 67.5,
"age_gender_ms": null,
"total_ms": 67.6,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 80.6,
"pss_mib": 142.1,
"cpu_temperature_c": null,
"frame_drops": 18,
"errors": 0,
"faces": 1,
"uptime_s": 25
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.9,
"detection_ms": 67.9,
"age_gender_ms": null,
"total_ms": 68,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 92.7,
"pss_mib": 121.8,
"cpu_temperature_c": null,
"frame_drops": 23,
"errors": 0,
"faces": 1,
"uptime_s": 26
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.9,
"detection_ms": 85.9,
"age_gender_ms": null,
"total_ms": 86,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 85.4,
"pss_mib": 128.2,
"cpu_temperature_c": null,
"frame_drops": 28,
"errors": 0,
"faces": 1,
"uptime_s": 27
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5,
"detection_ms": 87.3,
"age_gender_ms": null,
"total_ms": 87.4,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 83.9,
"pss_mib": 134.8,
"cpu_temperature_c": null,
"frame_drops": 34,
"errors": 0,
"faces": 1,
"uptime_s": 28
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5,
"detection_ms": 88,
"age_gender_ms": null,
"total_ms": 88.2,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 89.8,
"pss_mib": 142.7,
"cpu_temperature_c": null,
"frame_drops": 40,
"errors": 0,
"faces": 1,
"uptime_s": 30
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.9,
"detection_ms": 91.1,
"age_gender_ms": null,
"total_ms": 91.2,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 95.3,
"pss_mib": 105.3,
"cpu_temperature_c": null,
"frame_drops": 45,
"errors": 0,
"faces": 1,
"uptime_s": 31
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5,
"detection_ms": 87.7,
"age_gender_ms": null,
"total_ms": 87.8,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 90.3,
"pss_mib": 113.1,
"cpu_temperature_c": null,
"frame_drops": 51,
"errors": 0,
"faces": 1,
"uptime_s": 32
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.9,
"detection_ms": 106.8,
"age_gender_ms": null,
"total_ms": 106.9,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 84.7,
"pss_mib": 121.4,
"cpu_temperature_c": null,
"frame_drops": 57,
"errors": 0,
"faces": 1,
"uptime_s": 33
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5,
"detection_ms": 88.1,
"age_gender_ms": null,
"total_ms": 88.2,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 87.5,
"pss_mib": 105.8,
"cpu_temperature_c": null,
"frame_drops": 63,
"errors": 0,
"faces": 1,
"uptime_s": 34
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5,
"detection_ms": 79,
"age_gender_ms": null,
"total_ms": 79.1,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 87.9,
"pss_mib": 113.6,
"cpu_temperature_c": null,
"frame_drops": 69,
"errors": 0,
"faces": 1,
"uptime_s": 36
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.9,
"detection_ms": 65,
"age_gender_ms": null,
"total_ms": 65.1,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 88.2,
"pss_mib": 120.2,
"cpu_temperature_c": null,
"frame_drops": 73,
"errors": 0,
"faces": 1,
"uptime_s": 37
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.9,
"detection_ms": 67.8,
"age_gender_ms": null,
"total_ms": 67.9,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 85.4,
"pss_mib": 126.7,
"cpu_temperature_c": null,
"frame_drops": 78,
"errors": 0,
"faces": 1,
"uptime_s": 38
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.9,
"detection_ms": 74.3,
"age_gender_ms": null,
"total_ms": 74.4,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 88.2,
"pss_mib": 108.2,
"cpu_temperature_c": null,
"frame_drops": 83,
"errors": 0,
"faces": 1,
"uptime_s": 39
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.9,
"detection_ms": 70.1,
"age_gender_ms": null,
"total_ms": 70.2,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 86.2,
"pss_mib": 114.8,
"cpu_temperature_c": null,
"frame_drops": 88,
"errors": 0,
"faces": 1,
"uptime_s": 40
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.9,
"detection_ms": 74.3,
"age_gender_ms": null,
"total_ms": 74.4,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 80.8,
"pss_mib": 121.4,
"cpu_temperature_c": null,
"frame_drops": 93,
"errors": 0,
"faces": 1,
"uptime_s": 41
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.8,
"detection_ms": 97.5,
"age_gender_ms": null,
"total_ms": 97.7,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 87.9,
"pss_mib": 104.5,
"cpu_temperature_c": null,
"frame_drops": 99,
"errors": 0,
"faces": 1,
"uptime_s": 42
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5,
"detection_ms": 90.1,
"age_gender_ms": null,
"total_ms": 90.1,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 84.3,
"pss_mib": 112.4,
"cpu_temperature_c": null,
"frame_drops": 105,
"errors": 0,
"faces": 1,
"uptime_s": 43
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5,
"detection_ms": 66.5,
"age_gender_ms": null,
"total_ms": 66.6,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 82.2,
"pss_mib": 120.2,
"cpu_temperature_c": null,
"frame_drops": 110,
"errors": 0,
"faces": 1,
"uptime_s": 44
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.9,
"detection_ms": 67.3,
"age_gender_ms": null,
"total_ms": 67.4,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 88.3,
"pss_mib": 120,
"cpu_temperature_c": null,
"frame_drops": 115,
"errors": 0,
"faces": 1,
"uptime_s": 45
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.7,
"detection_ms": 90.3,
"age_gender_ms": null,
"total_ms": 90.5,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 88,
"pss_mib": 101.6,
"cpu_temperature_c": null,
"frame_drops": 121,
"errors": 0,
"faces": 1,
"uptime_s": 46
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5,
"detection_ms": 91,
"age_gender_ms": null,
"total_ms": 91.2,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 88.8,
"pss_mib": 108.1,
"cpu_temperature_c": null,
"frame_drops": 126,
"errors": 0,
"faces": 1,
"uptime_s": 47
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.9,
"detection_ms": 102.1,
"age_gender_ms": null,
"total_ms": 102.3,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 90,
"pss_mib": 114.7,
"cpu_temperature_c": null,
"frame_drops": 131,
"errors": 0,
"faces": 1,
"uptime_s": 48
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5,
"detection_ms": 78.2,
"age_gender_ms": null,
"total_ms": 78.4,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 92.9,
"pss_mib": 99.1,
"cpu_temperature_c": null,
"frame_drops": 136,
"errors": 0,
"faces": 1,
"uptime_s": 49
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.8,
"detection_ms": 100.1,
"age_gender_ms": null,
"total_ms": 100.3,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 87.2,
"pss_mib": 105.6,
"cpu_temperature_c": null,
"frame_drops": 142,
"errors": 0,
"faces": 1,
"uptime_s": 50
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.9,
"detection_ms": 97.9,
"age_gender_ms": null,
"total_ms": 98.1,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 85.6,
"pss_mib": 112.2,
"cpu_temperature_c": null,
"frame_drops": 147,
"errors": 0,
"faces": 1,
"uptime_s": 51
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5,
"detection_ms": 90.7,
"age_gender_ms": null,
"total_ms": 90.9,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 87.3,
"pss_mib": 120,
"cpu_temperature_c": null,
"frame_drops": 153,
"errors": 0,
"faces": 1,
"uptime_s": 53
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.9,
"detection_ms": 95.7,
"age_gender_ms": null,
"total_ms": 95.9,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 91.6,
"pss_mib": 102.9,
"cpu_temperature_c": null,
"frame_drops": 159,
"errors": 0,
"faces": 1,
"uptime_s": 54
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5.1,
"detection_ms": 67.9,
"age_gender_ms": null,
"total_ms": 68,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 79.3,
"pss_mib": 111.5,
"cpu_temperature_c": null,
"frame_drops": 164,
"errors": 0,
"faces": 1,
"uptime_s": 55
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5,
"detection_ms": 68.6,
"age_gender_ms": null,
"total_ms": 68.7,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 80.2,
"pss_mib": 118,
"cpu_temperature_c": null,
"frame_drops": 169,
"errors": 0,
"faces": 1,
"uptime_s": 56
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5,
"detection_ms": 67,
"age_gender_ms": null,
"total_ms": 67.1,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 82.7,
"pss_mib": 101.1,
"cpu_temperature_c": null,
"frame_drops": 174,
"errors": 0,
"faces": 1,
"uptime_s": 57
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 4.8,
"detection_ms": 99,
"age_gender_ms": null,
"total_ms": 99.1,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 88.3,
"pss_mib": 107.7,
"cpu_temperature_c": null,
"frame_drops": 180,
"errors": 0,
"faces": 1,
"uptime_s": 58
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age\/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "{CPU=15, Xnnpack=12}",
"resolution": "Test 640×480",
"camera_fps": null,
"inference_fps": 5.1,
"detection_ms": 66.3,
"age_gender_ms": null,
"total_ms": 66.4,
"session_load_ms": 861.4,
"interval_ms": 200,
"cpu_pct": 83.1,
"pss_mib": 115.5,
"cpu_temperature_c": null,
"frame_drops": 185,
"errors": 0,
"faces": 1,
"uptime_s": 59
}
]

View File

@ -0,0 +1,12 @@
runtime,provider,threads,detector,demographics,detector_nodes,demographics_nodes,resolution,camera_fps,inference_fps,detection_ms,age_gender_ms,total_ms,session_load_ms,interval_ms,cpu_pct,pss_mib,cpu_temperature_c,frame_drops,errors,faces,uptime_s
ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,14.6,4.2,276.7,,276.8,973.6,200,,115.4,,15,0,0,15
ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,9.9,3.9,130.4,,130.4,973.6,200,127.4,133.5,,22,0,0,16
ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,12.5,2.8,243.2,,243.3,973.6,200,107.4,146.7,,30,0,0,17
ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,11.9,3.9,206.8,,206.8,973.6,200,126.5,163.8,,39,0,0,18
ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,13.7,4.1,183,,183,973.6,200,145.6,111.3,,52,0,0,20
ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,15.6,4,143.1,,143.2,973.6,200,116.7,130.8,,68,0,0,21
ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,16.5,4.3,137.3,,137.4,973.6,200,120.9,149.1,,82,0,0,22
ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,16.8,3.8,162.1,,162.2,973.6,200,127.6,88.5,,92,0,0,23
ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,11.8,4.3,182.7,,182.7,973.6,200,126.6,108.1,,103,0,0,24
ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,14.6,3.6,252.6,,252.6,973.6,200,120.9,126.3,,115,0,0,25
ONNX Runtime 1.32.0,XNNPACK,2,YuNet 2026may-fixed320,Intel Age/Gender 2023.0-fp32-onnx1,"{CPU=23, Xnnpack=57}",XNNPACK (awaiting first run),640×480,13.5,2.9,423.2,,423.2,973.6,200,86.7,137.4,,118,0,0,27
1 runtime provider threads detector demographics detector_nodes demographics_nodes resolution camera_fps inference_fps detection_ms age_gender_ms total_ms session_load_ms interval_ms cpu_pct pss_mib cpu_temperature_c frame_drops errors faces uptime_s
2 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 14.6 4.2 276.7 276.8 973.6 200 115.4 15 0 0 15
3 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 9.9 3.9 130.4 130.4 973.6 200 127.4 133.5 22 0 0 16
4 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 12.5 2.8 243.2 243.3 973.6 200 107.4 146.7 30 0 0 17
5 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 11.9 3.9 206.8 206.8 973.6 200 126.5 163.8 39 0 0 18
6 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 13.7 4.1 183 183 973.6 200 145.6 111.3 52 0 0 20
7 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 15.6 4 143.1 143.2 973.6 200 116.7 130.8 68 0 0 21
8 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.5 4.3 137.3 137.4 973.6 200 120.9 149.1 82 0 0 22
9 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 16.8 3.8 162.1 162.2 973.6 200 127.6 88.5 92 0 0 23
10 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 11.8 4.3 182.7 182.7 973.6 200 126.6 108.1 103 0 0 24
11 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 14.6 3.6 252.6 252.6 973.6 200 120.9 126.3 115 0 0 25
12 ONNX Runtime 1.32.0 XNNPACK 2 YuNet 2026may-fixed320 Intel Age/Gender 2023.0-fp32-onnx1 {CPU=23, Xnnpack=57} XNNPACK (awaiting first run) 640×480 13.5 2.9 423.2 423.2 973.6 200 86.7 137.4 118 0 0 27

View File

@ -0,0 +1,266 @@
[
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "XNNPACK (awaiting first run)",
"resolution": "640×480",
"camera_fps": 14.6,
"inference_fps": 4.2,
"detection_ms": 276.7,
"age_gender_ms": null,
"total_ms": 276.8,
"session_load_ms": 973.6,
"interval_ms": 200,
"cpu_pct": null,
"pss_mib": 115.4,
"cpu_temperature_c": null,
"frame_drops": 15,
"errors": 0,
"faces": 0,
"uptime_s": 15
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "XNNPACK (awaiting first run)",
"resolution": "640×480",
"camera_fps": 9.9,
"inference_fps": 3.9,
"detection_ms": 130.4,
"age_gender_ms": null,
"total_ms": 130.4,
"session_load_ms": 973.6,
"interval_ms": 200,
"cpu_pct": 127.4,
"pss_mib": 133.5,
"cpu_temperature_c": null,
"frame_drops": 22,
"errors": 0,
"faces": 0,
"uptime_s": 16
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "XNNPACK (awaiting first run)",
"resolution": "640×480",
"camera_fps": 12.5,
"inference_fps": 2.8,
"detection_ms": 243.2,
"age_gender_ms": null,
"total_ms": 243.3,
"session_load_ms": 973.6,
"interval_ms": 200,
"cpu_pct": 107.4,
"pss_mib": 146.7,
"cpu_temperature_c": null,
"frame_drops": 30,
"errors": 0,
"faces": 0,
"uptime_s": 17
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "XNNPACK (awaiting first run)",
"resolution": "640×480",
"camera_fps": 11.9,
"inference_fps": 3.9,
"detection_ms": 206.8,
"age_gender_ms": null,
"total_ms": 206.8,
"session_load_ms": 973.6,
"interval_ms": 200,
"cpu_pct": 126.5,
"pss_mib": 163.8,
"cpu_temperature_c": null,
"frame_drops": 39,
"errors": 0,
"faces": 0,
"uptime_s": 18
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "XNNPACK (awaiting first run)",
"resolution": "640×480",
"camera_fps": 13.7,
"inference_fps": 4.1,
"detection_ms": 183,
"age_gender_ms": null,
"total_ms": 183,
"session_load_ms": 973.6,
"interval_ms": 200,
"cpu_pct": 145.6,
"pss_mib": 111.3,
"cpu_temperature_c": null,
"frame_drops": 52,
"errors": 0,
"faces": 0,
"uptime_s": 20
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "XNNPACK (awaiting first run)",
"resolution": "640×480",
"camera_fps": 15.6,
"inference_fps": 4,
"detection_ms": 143.1,
"age_gender_ms": null,
"total_ms": 143.2,
"session_load_ms": 973.6,
"interval_ms": 200,
"cpu_pct": 116.7,
"pss_mib": 130.8,
"cpu_temperature_c": null,
"frame_drops": 68,
"errors": 0,
"faces": 0,
"uptime_s": 21
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "XNNPACK (awaiting first run)",
"resolution": "640×480",
"camera_fps": 16.5,
"inference_fps": 4.3,
"detection_ms": 137.3,
"age_gender_ms": null,
"total_ms": 137.4,
"session_load_ms": 973.6,
"interval_ms": 200,
"cpu_pct": 120.9,
"pss_mib": 149.1,
"cpu_temperature_c": null,
"frame_drops": 82,
"errors": 0,
"faces": 0,
"uptime_s": 22
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "XNNPACK (awaiting first run)",
"resolution": "640×480",
"camera_fps": 16.8,
"inference_fps": 3.8,
"detection_ms": 162.1,
"age_gender_ms": null,
"total_ms": 162.2,
"session_load_ms": 973.6,
"interval_ms": 200,
"cpu_pct": 127.6,
"pss_mib": 88.5,
"cpu_temperature_c": null,
"frame_drops": 92,
"errors": 0,
"faces": 0,
"uptime_s": 23
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "XNNPACK (awaiting first run)",
"resolution": "640×480",
"camera_fps": 11.8,
"inference_fps": 4.3,
"detection_ms": 182.7,
"age_gender_ms": null,
"total_ms": 182.7,
"session_load_ms": 973.6,
"interval_ms": 200,
"cpu_pct": 126.6,
"pss_mib": 108.1,
"cpu_temperature_c": null,
"frame_drops": 103,
"errors": 0,
"faces": 0,
"uptime_s": 24
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "XNNPACK (awaiting first run)",
"resolution": "640×480",
"camera_fps": 14.6,
"inference_fps": 3.6,
"detection_ms": 252.6,
"age_gender_ms": null,
"total_ms": 252.6,
"session_load_ms": 973.6,
"interval_ms": 200,
"cpu_pct": 120.9,
"pss_mib": 126.3,
"cpu_temperature_c": null,
"frame_drops": 115,
"errors": 0,
"faces": 0,
"uptime_s": 25
},
{
"runtime": "ONNX Runtime 1.32.0",
"provider": "XNNPACK",
"threads": 2,
"detector": "YuNet 2026may-fixed320",
"demographics": "Intel Age/Gender 2023.0-fp32-onnx1",
"detector_nodes": "{CPU=23, Xnnpack=57}",
"demographics_nodes": "XNNPACK (awaiting first run)",
"resolution": "640×480",
"camera_fps": 13.5,
"inference_fps": 2.9,
"detection_ms": 423.2,
"age_gender_ms": null,
"total_ms": 423.2,
"session_load_ms": 973.6,
"interval_ms": 200,
"cpu_pct": 86.7,
"pss_mib": 137.4,
"cpu_temperature_c": null,
"frame_drops": 118,
"errors": 0,
"faces": 0,
"uptime_s": 27
}
]

51
build.sh Executable file
View File

@ -0,0 +1,51 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
sdk=${WINDOWS_ANDROID_SDK:-/mnt/c/Users/Andrei/AppData/Local/Android/Sdk}
jdk=${WINDOWS_JDK:-'/mnt/c/Program Files/Eclipse Adoptium/jdk-17.0.17.10-hotspot'}
tools="$sdk/build-tools/35.0.0"
jar=$(wslpath -w "$sdk/platforms/android-35/android.jar")
mkdir -p build
ort_url=https://repo.maven.apache.org/maven2/com/microsoft/onnxruntime/onnxruntime-android/1.32.0/onnxruntime-android-1.32.0.aar
if [[ ! -f build/ort.aar ]]; then
curl -fsSL "$ort_url" -o build/ort.aar
fi
python3 tools/check-production-assets.py
rm -rf build/classes build/dex
mkdir -p build/classes build/dex
python3 - <<'PACK'
from pathlib import Path
from zipfile import ZipFile
with ZipFile('build/ort.aar') as aar:
Path('build/ort.jar').write_bytes(aar.read('classes.jar'))
PACK
ort_jar=$(wslpath -w "$PWD/build/ort.jar")
"$jdk/bin/javac.exe" -encoding UTF-8 -source 8 -target 8 -classpath "$jar;$ort_jar" -d build/classes src/*.java
classes=()
for class_file in build/classes/com/it_screen/edgevision/*.class; do
classes+=("$(wslpath -w "$PWD/$class_file")")
done
"$jdk/bin/java.exe" -cp "$(wslpath -w "$tools/lib/d8.jar")" com.android.tools.r8.D8 --min-api 26 --lib "$jar" --output "$(wslpath -w "$PWD/build/dex")" "${classes[@]}" "$ort_jar"
"$tools/aapt2.exe" link -I "$jar" --manifest AndroidManifest.xml -o build/assets.apk
python3 - <<'PY'
import shutil
from pathlib import Path
import zipfile
shutil.copyfile('build/assets.apk', 'build/unsigned.apk')
with zipfile.ZipFile('build/unsigned.apk', 'a') as apk:
apk.write('build/dex/classes.dex', 'classes.dex')
with zipfile.ZipFile('build/ort.aar') as aar:
for source in aar.namelist():
if source.startswith('jni/arm64-v8a/') and source.endswith('.so'):
apk.writestr(source.replace('jni/', 'lib/', 1), aar.read(source),
compress_type=zipfile.ZIP_DEFLATED)
for asset in sorted(Path('assets').rglob('*')):
if asset.is_file():
apk.write(asset, asset.as_posix(), compress_type=zipfile.ZIP_DEFLATED)
PY
"$tools/zipalign.exe" -f 4 build/unsigned.apk build/aligned.apk
if [[ ! -f build/poc-debug.p12 ]]; then
"$jdk/bin/keytool.exe" -genkeypair -keystore build/poc-debug.p12 -storepass android -alias edgevision -keyalg RSA -keysize 2048 -validity 3650 -dname CN=EdgeVision
fi
"$jdk/bin/java.exe" -jar "$(wslpath -w "$tools/lib/apksigner.jar")" sign --ks build/poc-debug.p12 --ks-pass pass:android --out build/EVAx10-Video-analitics-0.2.2.apk build/aligned.apk
"$jdk/bin/java.exe" -jar "$(wslpath -w "$tools/lib/apksigner.jar")" verify --verbose build/EVAx10-Video-analitics-0.2.2.apk

28
license-lock.json Normal file
View File

@ -0,0 +1,28 @@
{
"models": {
"age-v1.json": "4f9f0075200bd8ea6cd65ae6e6893cf820c513169382c08e82e533158358ed1c",
"gender-v1.json": "d4c4116cf720cde18de28a09071d8e1826bcff7935ef3470052163f3f6b5d734",
"sface-int8.json": "2b0e941e6f16cc048c20aee0c8e31f569118f65d702914540f7bfdc14048d78a",
"yunet-320.json": "d4914077f9b91524e9c52e34507abe9ea7fe274ad484038af8d16eede887803c",
"yunet.json": "ebafce4e3c118d6554634be5c27ab333b4c047a9a8c3faf1d7cf93101c22f0f0"
},
"runtimeAarSha256": "8e8dbb412ed4939675a157702f0c1e3621b436a645af7f7244536ac20bfad628",
"assetInventory": {
"models/age-v1.json": "53a6ef17e552ee73c7732b78d797a8d9bb8d1dea55ab5f1d9d72b4d013f5ad1f",
"models/age-v1.onnx": "4f9f0075200bd8ea6cd65ae6e6893cf820c513169382c08e82e533158358ed1c",
"models/gender-v1.json": "d166b8e6f615bde33840fb2031be0144180f39f7feb4a47e3bd6ae74af85fec2",
"models/gender-v1.onnx": "d4c4116cf720cde18de28a09071d8e1826bcff7935ef3470052163f3f6b5d734",
"models/sface-int8.json": "0cecf333c4076d18ddb75ab441695a1990f31d54ff8b66d68a684b2e0d0b65a3",
"models/sface-int8.onnx": "2b0e941e6f16cc048c20aee0c8e31f569118f65d702914540f7bfdc14048d78a",
"models/yunet-320.json": "048c0116fccbf37c0443892c20c2bcbbc78164adcc9631ffa14d60e1dc6f60d1",
"models/yunet-320.onnx": "d4914077f9b91524e9c52e34507abe9ea7fe274ad484038af8d16eede887803c",
"models/yunet.json": "ef262db23553cb60ffbf032d86f7eb6579ffac876535ebb6a2de4a0f7816bbc8",
"models/yunet.onnx": "ebafce4e3c118d6554634be5c27ab333b4c047a9a8c3faf1d7cf93101c22f0f0",
"notices/Cydral-age-gender-models.md": "bc8ef03ce2fcb9349977a9f357a44f1194ef13b67fee1b7562ffa49e12d35bf2",
"notices/LICENSE": "2f07c72751aed99790b8a4869cf2311df85a860b22ded05fa22803587a48922c",
"notices/ThirdPartyNotices.txt": "d8696258afcf9df7827a5e01d6b6d55ee9b461b4e82020f5f48242deb9cc2270",
"notices/cydral-CC0-1.0.txt": "6a1ee543e5282cd9061881edf462e6fdab181f328da71fc2c9a6950a80e94d01",
"notices/sface-LICENSE.txt": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30",
"notices/yunet-LICENSE.txt": "c83b8120c50ccbd4c4f96edf53141bdd566ebb8f8e9227e415326aa1b1aba958"
}
}

109
src/Audience.java Normal file
View File

@ -0,0 +1,109 @@
package com.it_screen.edgevision;
import java.util.*;
final class VisitorTracker {
private final List<Track> tracks = new ArrayList<>();
private int nextId = 1;
List<Track> update(List<Face> faces, long now, long timeout) {
tracks.removeIf(track -> now - track.seen > timeout);
List<Track> visible = new ArrayList<>();
Set<Track> used = new HashSet<>();
for (Face face : faces) {
Track best = null;
float score = 0.2f;
for (Track track : tracks) {
if (used.contains(track)) continue;
float overlap = face.overlap(track.face);
if (overlap >= score) { score = overlap; best = track; }
}
if (best == null) {
best = new Track(nextId++);
tracks.add(best);
}
best.face = face;
best.seen = now;
best.observations++;
used.add(best);
visible.add(best);
}
return visible;
}
void clear() { tracks.clear(); }
static final class Track {
final int id;
final VisitMemory.Candidate visit = new VisitMemory.Candidate();
boolean repeat;
boolean checkingLogged;
Face face;
long seen, classified;
int observations, ageCount, ageSum, male, female;
int countedAge = -1;
int countedGender = -1;
float score;
Track(int id) { this.id = id; }
boolean needsClassification(long now) {
return classified == 0 || (now - classified >= 800 && (ageCount < 3 || Math.max(male, female) < 3));
}
void sample(Demographics result, Integer age, String gender, long now) {
classified = now;
if (age != null && ageCount < 5) { ageCount++; ageSum += age; }
if ("Male".equals(gender) && male < 5) male++;
if ("Female".equals(gender) && female < 5) female++;
score = result.confidence;
}
Integer averageAge() { return ageCount == 0 ? null : Math.round((float) ageSum / ageCount); }
int gender() { return male == female ? 2 : (male > female ? 0 : 1); }
String label() {
Integer age = averageAge();
return "#" + id + " " + (age == null ? "Age unknown" : "~" + age) + " " +
AudienceAggregator.GENDERS[gender()] + (score > 0 ? " " + Math.round(score * 100) + "%" : "");
}
}
}
final class AudienceAggregator {
static final String[] GENDERS = {"Male", "Female", "Unknown"};
static final String[] AGES = {"Under 18", "18–24", "25–34", "35–44", "45–59", "60+", "Unknown"};
final int[] genders = new int[GENDERS.length];
final int[] ages = new int[AGES.length];
int visits;
boolean observe(VisitorTracker.Track track) {
if (track.visit.visit == 0 || track.repeat) return false;
int age = ageGroup(track.averageAge());
int gender = track.gender();
if (track.countedAge == age && track.countedGender == gender) return false;
if (track.countedAge == -1) visits++;
else {
ages[track.countedAge]--;
genders[track.countedGender]--;
}
ages[age]++;
genders[gender]++;
track.countedAge = age;
track.countedGender = gender;
return true;
}
void reset() {
visits = 0;
Arrays.fill(genders, 0);
Arrays.fill(ages, 0);
}
private int ageGroup(Integer age) {
if (age == null || age < 18 || age > 80) return 6;
if (age < 25) return 1;
if (age < 35) return 2;
if (age < 45) return 3;
return age < 60 ? 4 : 5;
}
}

43
src/Benchmark.java Normal file
View File

@ -0,0 +1,43 @@
package com.it_screen.edgevision;
import java.io.File;
import java.nio.file.Files;
import java.util.ArrayDeque;
import java.util.Iterator;
import org.json.JSONArray;
import org.json.JSONObject;
final class Benchmark {
private final ArrayDeque<JSONObject> samples = new ArrayDeque<>();
void add(JSONObject data) {
if (samples.size() == 1200) samples.removeFirst();
samples.addLast(data);
}
File save(File directory) throws Exception {
if (directory == null || (!directory.isDirectory() && !directory.mkdirs()))
throw new IllegalStateException("Benchmark directory unavailable");
JSONArray rows = new JSONArray();
for (JSONObject sample : samples) rows.put(sample);
File base = new File(directory, "edge-vision-" + System.currentTimeMillis());
Files.write(new File(base + ".json").toPath(), rows.toString(2).getBytes(java.nio.charset.StandardCharsets.UTF_8));
StringBuilder csv = new StringBuilder();
if (!samples.isEmpty()) {
JSONObject first = samples.getFirst();
java.util.List<String> fields = new java.util.ArrayList<>();
Iterator<String> keys = first.keys();
while (keys.hasNext()) fields.add(keys.next());
csv.append(String.join(",", fields)).append('\n');
for (JSONObject sample : samples) {
String delimiter = "";
for (String field : fields) {
csv.append(delimiter).append('"').append(sample.optString(field).replace("\"", "\"\"")).append('"');
delimiter = ",";
}
csv.append('\n');
}
}
Files.write(new File(base + ".csv").toPath(), csv.toString().getBytes(java.nio.charset.StandardCharsets.UTF_8));
return base;
}
}

View File

@ -0,0 +1,62 @@
package com.it_screen.edgevision;
import android.graphics.Bitmap;
import android.graphics.Matrix;
final class CydralDemographics implements AgeEstimator, GenderEstimator {
private static final Demographics UNKNOWN = new Demographics(null, "Unknown", 0);
private final Predictor age, gender;
CydralDemographics(Predictor age, Predictor gender) {
this.age = age;
this.gender = gender;
}
Demographics classify(Bitmap image, Face face) throws Exception {
float[] points = face.landmarks;
if (points == null || face.confidence < 0.7f ||
Math.min(face.box.width() * image.getWidth(), face.box.height() * image.getHeight()) < 48 ||
Math.hypot(points[2] - points[0], points[3] - points[1]) < 16) return UNKNOWN;
float[] distribution = age.predict(image, points);
if (distribution == null || distribution.length != 81) return UNKNOWN;
float estimate = 0.25f * distribution[0];
for (int years = 1; years < distribution.length; years++) estimate += years * distribution[years];
if (!Float.isFinite(estimate) || estimate < 18 || estimate > 80) return UNKNOWN;
float[] classes = gender.predict(image, points);
if (classes == null || classes.length != 2 || !Float.isFinite(classes[0]) || !Float.isFinite(classes[1]))
return new Demographics(Math.round(estimate), "Unknown", 0);
return new Demographics(Math.round(estimate), classes[0] >= classes[1] ? "Female" : "Male",
Math.max(classes[0], classes[1]));
}
long runs() { return age.session.runs() + gender.session.runs(); }
String providerAssignment() {
return "Age " + age.session.providerAssignment() + " / Gender " + gender.session.providerAssignment();
}
@Override public Integer age(Demographics result) { return result.age; }
@Override public String gender(Demographics result, float threshold) {
return result.confidence >= threshold ? result.gender : "Unknown";
}
static final class Predictor extends ImageModel {
private static final float[] RGB_MEANS = {122.781998f, 117.000999f, 104.297997f};
private final float[] targetEyes;
Predictor(InferenceEngine.Model session, ModelRegistry.Entry entry) throws Exception {
super(session, entry);
// Approximate the reference's padded dlib chip using YuNet eye centers.
targetEyes = new float[]{0.30524f * width, 0.30099f * height,
0.68080f * width, 0.30088f * height};
}
float[] predict(Bitmap image, float[] landmarks) throws Exception {
Matrix transform = new Matrix();
if (!transform.setPolyToPoly(landmarks, 0, targetEyes, 0, 2)) return null;
return runNormalized(image, transform, RGB_MEANS).get("probabilities");
}
}
}

18
src/InferenceEngine.java Normal file
View File

@ -0,0 +1,18 @@
package com.it_screen.edgevision;
import java.util.Map;
import java.util.Set;
interface InferenceEngine extends AutoCloseable {
Set<String> providers();
Model load(ModelRegistry.Entry specification, String provider, int threads) throws Exception;
@Override void close();
interface Model extends AutoCloseable {
Map<String, float[]> run(String input, float[] data, long[] shape, Set<String> outputs) throws Exception;
String providerAssignment();
long runs();
double lastInferenceMs();
@Override void close() throws Exception;
}
}

164
src/InternalCamera.java Normal file
View File

@ -0,0 +1,164 @@
package com.it_screen.edgevision;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.ImageFormat;
import android.hardware.camera2.*;
import android.media.Image;
import android.media.ImageReader;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.SystemClock;
import android.util.Size;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
final class InternalCamera implements VideoSource {
private final CameraManager manager;
private final int targetWidth, targetHeight;
private final HandlerThread thread = new HandlerThread("EdgeVision-Camera");
private Handler handler;
private volatile boolean closed;
private CameraDevice camera;
private CameraCaptureSession session;
private ImageReader reader;
private Listener listener;
private int rotation;
private int[] pixels;
private long lastFrame, epoch, dropped;
private int frameCount;
private double fps;
InternalCamera(Context context, int width, int height) {
manager = (CameraManager) context.getSystemService(Context.CAMERA_SERVICE);
targetWidth = width;
targetHeight = height;
}
static String id(CameraManager manager) throws CameraAccessException {
String[] ids = manager.getCameraIdList();
if (ids.length == 0) throw new IllegalStateException("No camera");
for (String id : ids) {
Integer direction = manager.getCameraCharacteristics(id).get(CameraCharacteristics.LENS_FACING);
if (direction != null && direction == CameraCharacteristics.LENS_FACING_BACK) return id;
}
return ids[0];
}
static Size[] sizes(CameraManager manager) throws CameraAccessException {
return manager.getCameraCharacteristics(id(manager)).get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP)
.getOutputSizes(ImageFormat.YUV_420_888);
}
@Override public void start(Listener listener) {
this.listener = listener;
thread.start();
handler = new Handler(thread.getLooper());
handler.post(this::open);
}
@SuppressLint("MissingPermission")
private void open() {
if (closed) return;
try {
String id = id(manager);
CameraCharacteristics characteristics = manager.getCameraCharacteristics(id);
Integer orientation = characteristics.get(CameraCharacteristics.SENSOR_ORIENTATION);
rotation = orientation == null ? 0 : orientation;
Size size = Arrays.stream(sizes(manager)).min(Comparator.comparingLong(s ->
Math.abs(s.getWidth() - targetWidth) + Math.abs(s.getHeight() - targetHeight))).orElseThrow();
reader = ImageReader.newInstance(size.getWidth(), size.getHeight(), ImageFormat.YUV_420_888, 4);
reader.setOnImageAvailableListener(this::receive, handler);
manager.openCamera(id, new CameraDevice.StateCallback() {
@Override public void onOpened(CameraDevice value) {
if (closed) { value.close(); return; }
camera = value;
configure();
}
@Override public void onDisconnected(CameraDevice value) { value.close(); fail("Camera disconnected"); }
@Override public void onError(CameraDevice value, int code) { value.close(); fail("Camera error " + code); }
}, handler);
} catch (Exception error) { fail(error.toString()); }
}
private void configure() {
try {
camera.createCaptureSession(Collections.singletonList(reader.getSurface()), new CameraCaptureSession.StateCallback() {
@Override public void onConfigured(CameraCaptureSession value) {
if (closed) { value.close(); return; }
session = value;
try {
CaptureRequest.Builder request = camera.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW);
request.addTarget(reader.getSurface());
session.setRepeatingRequest(request.build(), null, handler);
} catch (Exception error) { fail(error.toString()); }
}
@Override public void onConfigureFailed(CameraCaptureSession value) { fail("Cannot configure camera stream"); }
}, handler);
} catch (Exception error) { fail(error.toString()); }
}
private void receive(ImageReader input) {
try (Image image = input.acquireLatestImage()) {
if (closed || image == null) return;
long now = SystemClock.elapsedRealtime();
frameCount++;
if (epoch == 0) epoch = now;
if (now - epoch >= 1000) {
fps = 1000.0 * frameCount / (now - epoch);
frameCount = 0;
epoch = now;
}
if (now - lastFrame < 75) { dropped++; return; }
lastFrame = now;
listener.frame(convert(image), image.getWidth() + "×" + image.getHeight(), fps, dropped);
} catch (Exception error) { if (!closed) fail(error.toString()); }
}
private Bitmap convert(Image image) {
Image.Plane[] planes = image.getPlanes();
ByteBuffer y = planes[0].getBuffer(), u = planes[1].getBuffer(), v = planes[2].getBuffer();
int fullW = image.getWidth(), fullH = image.getHeight();
int w = Math.min(fullW, 640), h = fullH * w / fullW;
boolean transpose = rotation == 90 || rotation == 270;
int outW = transpose ? h : w, outH = transpose ? w : h;
if (pixels == null || pixels.length != outW * outH) pixels = new int[outW * outH];
int yr = planes[0].getRowStride(), ur = planes[1].getRowStride(), vr = planes[2].getRowStride();
int yp = planes[0].getPixelStride(), up = planes[1].getPixelStride(), vp = planes[2].getPixelStride();
for (int row = 0; row < h; row++) {
int py = row * fullH / h;
for (int col = 0; col < w; col++) {
int px = col * fullW / w;
int luma = Math.max(0, (y.get(py * yr + px * yp) & 255) - 16);
int cb = (u.get(py / 2 * ur + px / 2 * up) & 255) - 128;
int cr = (v.get(py / 2 * vr + px / 2 * vp) & 255) - 128;
int r = clamp((298 * luma + 409 * cr + 128) >> 8);
int g = clamp((298 * luma - 100 * cb - 208 * cr + 128) >> 8);
int b = clamp((298 * luma + 516 * cb + 128) >> 8);
int index = rotation == 180 ? (h - 1 - row) * w + w - 1 - col :
rotation == 90 ? col * h + h - 1 - row :
rotation == 270 ? (w - 1 - col) * h + row : row * w + col;
pixels[index] = 0xff000000 | r << 16 | g << 8 | b;
}
}
return Bitmap.createBitmap(pixels, outW, outH, Bitmap.Config.ARGB_8888);
}
private static int clamp(int value) { return Math.max(0, Math.min(255, value)); }
private void fail(String reason) { if (!closed) listener.error(reason); }
@Override public void close() {
closed = true;
if (handler == null) return;
handler.post(() -> {
if (session != null) session.close();
if (camera != null) camera.close();
if (reader != null) reader.close();
thread.quitSafely();
});
}
}

638
src/MainActivity.java Normal file
View File

@ -0,0 +1,638 @@
package com.it_screen.edgevision;
import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.graphics.*;
import android.hardware.camera2.CameraManager;
import android.os.*;
import android.view.*;
import android.widget.*;
import java.util.*;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicLong;
import org.json.JSONObject;
public final class MainActivity extends Activity {
private final ExecutorService inference = Executors.newSingleThreadExecutor();
private final AtomicBoolean busy = new AtomicBoolean();
private final AtomicBoolean previewQueued = new AtomicBoolean();
private final AtomicLong skipped = new AtomicLong();
private final VisitorTracker tracker = new VisitorTracker();
private final VisitMemory visitMemory = new VisitMemory();
private final ArrayDeque<String> visitEvents = new ArrayDeque<>();
private final AudienceAggregator totals = new AudienceAggregator();
private final Benchmark benchmark = new Benchmark();
private final Handler ui = new Handler(Looper.getMainLooper());
private final long startedAt = SystemClock.elapsedRealtime();
private volatile long generation, nextFrame;
private volatile Bitmap previewFrame;
private VideoSource source;
private InferenceEngine engine;
private ModelRegistry registry;
private Settings loaded;
private YuNet detector;
private CydralDemographics demographics;
private SFace faceEmbedding;
private SharedPreferences preferences;
private List<ModelRegistry.Entry> faceModels, demographicModels;
private List<String> providers;
private long metricsEpoch, frameCount, lastCpu, lastCpuAt, errors;
private double aiFps;
private double loadMs;
private TextView status, dashboard, stats, trackingLog;
private Preview preview;
private Button start, stop, test;
private Spinner resolution, interval, detection, classification, provider, threadCount, faceModel, ageModel, visitWindow;
private boolean running;
@Override public void onCreate(Bundle state) {
super.onCreate(state);
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY);
preferences = getSharedPreferences("aggregates", MODE_PRIVATE);
totals.visits = preferences.getInt("total", 0);
readCounts("age", totals.ages);
readCounts("gender", totals.genders);
createDashboard();
updateStats(0, totals.visits, totals.genders.clone(), totals.ages.clone());
try {
registry = new ModelRegistry(getAssets());
engine = new OrtEngine(registry, getCacheDir());
providers = new ArrayList<>(engine.providers());
providers.retainAll(List.of("CPU", "XNNPACK", "NNAPI"));
providers.sort(Comparator.comparingInt(List.of("CPU", "XNNPACK", "NNAPI")::indexOf));
faceModels = registry.list("face");
demographicModels = registry.list("age");
choices(provider, providers);
if (providers.contains("XNNPACK")) provider.setSelection(providers.indexOf("XNNPACK"));
choices(faceModel, faceModels);
for (int i = 0; i < faceModels.size(); i++) {
if (faceModels.get(i).json.optString("version").equals("2026may-fixed320")) faceModel.setSelection(i);
}
choices(ageModel, demographicModels);
configureSizes();
setStatus("Ready · adult volunteers only");
setRunning(false);
} catch (Exception | LinkageError error) {
setStatus("Initialization error: " + error);
start.setEnabled(false);
test.setEnabled(false);
}
}
private void readCounts(String prefix, int[] counts) {
for (int i = 0; i < counts.length; i++) counts[i] = preferences.getInt(prefix + i, 0);
}
private void persist() {
SharedPreferences.Editor write = preferences.edit().putInt("total", totals.visits);
for (int i = 0; i < totals.ages.length; i++) write.putInt("age" + i, totals.ages[i]);
for (int i = 0; i < totals.genders.length; i++) write.putInt("gender" + i, totals.genders[i]);
write.apply();
}
private void configureSizes() {
try {
SizeList list = new SizeList(InternalCamera.sizes((CameraManager) getSystemService(CAMERA_SERVICE)));
choices(resolution, list.values);
if (list.values.contains("640×480")) resolution.setSelection(list.values.indexOf("640×480"));
} catch (Exception error) {
android.util.Log.w("EdgeVision", "Camera sizes unavailable before permission", error);
}
}
private static final class SizeList {
final List<String> values = new ArrayList<>();
SizeList(android.util.Size[] input) {
Arrays.sort(input, Comparator.comparingLong(s -> (long) s.getWidth() * s.getHeight()));
for (android.util.Size size : input) values.add(size.getWidth() + "×" + size.getHeight());
}
}
private void createDashboard() {
LinearLayout root = new LinearLayout(this);
root.setOrientation(LinearLayout.HORIZONTAL);
root.setBackgroundColor(0xff101821);
LinearLayout left = column();
left.setPadding(16, 10, 12, 10);
root.addView(left, new LinearLayout.LayoutParams(0, -1, 2));
String appName = getApplicationInfo().loadLabel(getPackageManager()).toString();
TextView title = text(appName + " v" + appVersion(), 22);
title.setSingleLine(true);
title.setEllipsize(android.text.TextUtils.TruncateAt.END);
left.addView(title);
status = text("Initializing…", 14);
left.addView(status);
preview = new Preview();
left.addView(preview, new LinearLayout.LayoutParams(-1, 0, 1));
LinearLayout actions = new LinearLayout(this);
left.addView(actions);
start = button(actions, "Start", () -> {
if (checkSelfPermission(Manifest.permission.CAMERA) == PackageManager.PERMISSION_GRANTED) startCamera();
else requestPermissions(new String[]{Manifest.permission.CAMERA}, 1);
});
stop = button(actions, "Stop", () -> halt("Camera stopped"));
button(actions, "Reset Statistics", this::reset);
button(actions, "Export Benchmark", () -> inference.execute(() -> {
try {
java.io.File file = benchmark.save(getExternalFilesDir("benchmark"));
ui.post(() -> Toast.makeText(this, "Saved " + file.getName() + " JSON / CSV", Toast.LENGTH_LONG).show());
} catch (Exception error) { ui.post(() -> setStatus(error.toString())); }
}));
test = button(actions, "Test Image", () -> {
Intent picker = new Intent(Intent.ACTION_OPEN_DOCUMENT).setType("image/*").addCategory(Intent.CATEGORY_OPENABLE);
startActivityForResult(picker, 2);
});
LinearLayout row1 = new LinearLayout(this), row2 = new LinearLayout(this);
left.addView(row1);
left.addView(row2);
resolution = setting(row1, "Resolution", "640×480", "1280×720");
interval = setting(row1, "Interval ms", "100", "200", "500", "1000");
interval.setSelection(1);
detection = setting(row1, "Detection threshold", "0.5", "0.6", "0.7", "0.8", "0.9");
detection.setSelection(1);
classification = setting(row1, "Class. threshold", "0.6", "0.7", "0.8", "0.9", "0.95");
classification.setSelection(2);
provider = setting(row2, "Execution provider", "CPU");
threadCount = setting(row2, "Threads", "1", "2", "3", "4");
threadCount.setSelection(1);
faceModel = setting(row2, "Detector", "Loading");
ageModel = setting(row2, "Age / gender", "Loading");
visitWindow = setting(row2, "Окно повтора, мин", "1", "2", "5", "10", "30", "60");
visitWindow.setSelection(Math.max(0, Math.min(5, preferences.getInt("visit_window", 0))));
visitWindow.setOnItemSelectedListener(new android.widget.AdapterView.OnItemSelectedListener() {
@Override public void onItemSelected(android.widget.AdapterView<?> parent, View view, int pos, long id) {
preferences.edit().putInt("visit_window", pos).apply();
}
@Override public void onNothingSelected(android.widget.AdapterView<?> parent) { }
});
ScrollView scroll = new ScrollView(this);
scroll.setBackgroundColor(0xff1a2833);
root.addView(scroll, new LinearLayout.LayoutParams(0, -1, 1));
LinearLayout right = column();
right.setPadding(14, 10, 12, 10);
scroll.addView(right);
stats = text("", 14);
dashboard = text("Runtime ONNX Runtime 1.32.0\nMetrics N/A", 14);
right.addView(text("Журнал трекинга", 16));
trackingLog = text("Ожидание лица", 13);
right.addView(trackingLog);
right.addView(stats);
right.addView(dashboard);
setContentView(root);
start.setEnabled(false);
test.setEnabled(false);
}
private String appVersion() {
try {
return getPackageManager().getPackageInfo(getPackageName(), 0).versionName;
} catch (PackageManager.NameNotFoundException error) {
throw new IllegalStateException("Own package metadata is unavailable", error);
}
}
private LinearLayout column() {
LinearLayout view = new LinearLayout(this);
view.setOrientation(LinearLayout.VERTICAL);
return view;
}
private TextView text(String value, int size) {
TextView text = new TextView(this);
text.setText(value);
text.setTextSize(size);
text.setTextColor(0xffe5f2fa);
return text;
}
private Button button(LinearLayout parent, String name, Runnable action) {
Button view = new Button(this);
view.setText(name);
view.setAllCaps(false);
view.setOnClickListener(v -> action.run());
parent.addView(view);
return view;
}
private Spinner setting(LinearLayout parent, String name, String... values) {
LinearLayout wrapper = column();
wrapper.addView(text(name, 12));
Spinner spinner = new Spinner(this);
spinner.setContentDescription(name);
choices(spinner, Arrays.asList(values));
wrapper.addView(spinner);
parent.addView(wrapper, new LinearLayout.LayoutParams(0, -2, 1));
return spinner;
}
private void choices(Spinner spinner, List<?> values) {
ArrayAdapter<Object> adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, values.toArray());
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
spinner.setAdapter(adapter);
}
private void setStatus(String message) {
status.setText(message);
android.util.Log.i("EdgeVision", message);
}
private void setRunning(boolean value) {
running = value;
start.setEnabled(!value);
test.setEnabled(!value);
stop.setEnabled(value);
for (Spinner control : new Spinner[]{resolution, interval, detection, classification, provider, threadCount, faceModel, ageModel, visitWindow})
control.setEnabled(!value);
}
private Settings readSettings() {
return new Settings(resolution.getSelectedItem().toString(),
Integer.parseInt(interval.getSelectedItem().toString()),
Float.parseFloat(detection.getSelectedItem().toString()),
Float.parseFloat(classification.getSelectedItem().toString()),
(String) provider.getSelectedItem(), Integer.parseInt(threadCount.getSelectedItem().toString()),
faceModels.get(faceModel.getSelectedItemPosition()), demographicModels.get(ageModel.getSelectedItemPosition()),
Long.parseLong(visitWindow.getSelectedItem().toString()) * 60000L);
}
private void startCamera() {
if (running) return;
Settings selection = readSettings();
String[] dimensions = selection.resolution.split("×");
begin(selection, new InternalCamera(this, Integer.parseInt(dimensions[0]), Integer.parseInt(dimensions[1])));
}
private void begin(Settings selection, VideoSource input) {
setRunning(true);
setStatus("Loading model sessions…");
final long run = ++generation;
nextFrame = 0;
skipped.set(0);
inference.execute(() -> {
tracker.clear();
visitMemory.clear();
visitEvents.clear();
ui.post(() -> { if (generation == run) trackingLog.setText("Ожидание лица"); });
metricsEpoch = 0;
frameCount = 0;
aiFps = 0;
lastCpuAt = 0;
try {
load(selection);
ui.post(() -> {
if (generation != run) return;
source = input;
setStatus("Opening source · " + selection.provider);
source.start(new VideoSource.Listener() {
@Override public void frame(Bitmap frame, String size, double fps, long drops) {
accept(run, selection, frame, size, fps, drops);
}
@Override public void error(String reason) { failed(run, reason); }
});
});
} catch (Exception | LinkageError error) { failed(run, error.toString()); }
});
}
private void load(Settings config) throws Exception {
if (loaded != null && loaded.sameModels(config)) { loadMs = 0; return; }
long startAt = System.nanoTime();
engine.close();
loaded = null;
if (!"yunet".equals(config.face.json.getString("adapter")) || !"cydral-age".equals(config.age.json.getString("adapter")))
throw new IllegalArgumentException("Unknown model adapter");
try {
detector = new YuNet(engine.load(config.face, config.provider, config.threads), config.face);
ModelRegistry.Entry gender = registry.list("gender").get(0);
demographics = new CydralDemographics(
new CydralDemographics.Predictor(engine.load(config.age, "CPU", config.threads), config.age),
new CydralDemographics.Predictor(engine.load(gender, "CPU", config.threads), gender));
ModelRegistry.Entry embedding = registry.list("embedding").get(0);
faceEmbedding = new SFace(engine.load(embedding, "CPU", config.threads), embedding);
loaded = config;
loadMs = ms(startAt);
} catch (Exception failure) {
engine.close();
throw failure;
}
}
private void accept(long run, Settings config, Bitmap bitmap, String size, double fps, long sourceDrops) {
if (generation != run) return;
previewFrame = bitmap;
if (previewQueued.compareAndSet(false, true)) ui.post(() -> {
previewQueued.set(false);
if (generation == run) preview.invalidate();
});
long now = SystemClock.elapsedRealtime();
if (now < nextFrame || !busy.compareAndSet(false, true)) { skipped.incrementAndGet(); return; }
nextFrame = now + config.interval;
inference.execute(() -> {
try {
if (generation == run) analyze(run, config, bitmap, size, fps, sourceDrops, now);
} catch (Exception error) { failed(run, error.toString()); }
finally { busy.set(false); }
});
}
private void analyze(long run, Settings config, Bitmap frame, String size, double cameraFps,
long sourceDrops, long now) throws Exception {
long inferenceAt = System.nanoTime();
List<Face> faces = detector.detect(frame, config.detection);
double faceMs = ms(inferenceAt);
long ageAt = System.nanoTime();
List<VisitorTracker.Track> visible = tracker.update(faces, now, Math.max(3000, 3L * config.interval));
List<DrawBox> overlays = new ArrayList<>();
visitMemory.expire(now, config.visitWindowMs);
Set<Integer> activeVisits = new HashSet<>();
for (VisitorTracker.Track track : visible) {
if (track.visit.visit != 0) activeVisits.add(track.visit.visit);
}
boolean changed = false;
int probes = 0;
int classifications = 0;
long runs = demographics.runs();
for (VisitorTracker.Track track : visible) {
if (track.needsClassification(now) && classifications < 6) {
Demographics estimate = demographics.classify(frame, track.face);
track.sample(estimate, demographics.age(estimate), demographics.gender(estimate, config.classification), now);
classifications++;
}
if (track.observations >= 2) {
VisitMemory.Sample sample = null;
long delay = track.visit.visit == 0 ? 250 : 1200;
if (probes < 2 && now - track.visit.lastProbe >= delay) {
track.visit.lastProbe = now;
sample = faceEmbedding.sample(frame, track.face, angle -> visitMemory.needsAngle(track.visit, angle));
probes++;
}
if (track.visit.visit != 0) {
visitMemory.refresh(track.visit, sample, now);
} else {
VisitMemory.Decision decision = visitMemory.decide(track.id, track.visit, sample, activeVisits, now);
if (decision != null) {
track.repeat = decision.repeat;
activeVisits.add(track.visit.visit);
addVisitEvent("#" + track.id + " · " + (track.repeat
? "Тот же человек (визит #" + track.visit.visit + ") · Total без изменений"
: "Новый визит · Total +1 · " + decision.reason));
} else if (!track.checkingLogged) {
track.checkingLogged = true;
addVisitEvent("#" + track.id + " · Проверяем повтор");
}
}
}
changed |= totals.observe(track);
overlays.add(new DrawBox(track.face.box, track.label()));
}
if (generation != run) return;
if (changed) persist();
double ageMs = demographics.runs() == runs ? -1 : ms(ageAt);
double totalMs = ms(inferenceAt);
long current = SystemClock.elapsedRealtime();
if (metricsEpoch == 0) metricsEpoch = current;
frameCount++;
boolean sampled = current - metricsEpoch >= 1000;
if (sampled) {
aiFps = 1000.0 * frameCount / (current - metricsEpoch);
metricsEpoch = current;
frameCount = 0;
}
int visits = totals.visits;
int[] genders = totals.genders.clone(), ages = totals.ages.clone();
final String tracking = visitEvents.isEmpty() ? "Ожидание лица" : String.join("\n", visitEvents);
final String detail;
if (sampled) {
JSONObject report = metrics(config, size, cameraFps, faceMs, ageMs, totalMs, sourceDrops, faces.size());
benchmark.add(report);
detail = describe(report);
android.util.Log.i("EdgeVisionBench", report.toString());
} else detail = null;
ui.post(() -> {
if (generation != run) return;
status.setText("Source active · adult estimates");
if (!tracking.contentEquals(trackingLog.getText())) trackingLog.setText(tracking);
preview.boxes = overlays;
preview.invalidate();
updateStats(faces.size(), visits, genders, ages);
if (detail != null) dashboard.setText(detail);
});
}
private JSONObject metrics(Settings config, String size, double cameraFps, double faceMs, double ageMs,
double totalMs, long sourceDrops, int faces) throws Exception {
long now = SystemClock.elapsedRealtime(), cpu = android.os.Process.getElapsedCpuTime();
Object cpuPercent = lastCpuAt == 0 ? JSONObject.NULL : round(100.0 * (cpu - lastCpu) / Math.max(1, now - lastCpuAt));
lastCpuAt = now;
lastCpu = cpu;
return new JSONObject()
.put("runtime", "ONNX Runtime 1.32.0").put("provider", config.provider).put("threads", config.threads)
.put("detector", config.face.toString()).put("demographics", config.age + " / Cydral Gender v1")
.put("detector_nodes", detector.session.providerAssignment())
.put("demographics_nodes", demographics.providerAssignment())
.put("resolution", size).put("camera_fps", cameraFps <= 0 ? JSONObject.NULL : round(cameraFps))
.put("inference_fps", round(aiFps)).put("detection_ms", round(faceMs))
.put("age_gender_ms", ageMs < 0 ? JSONObject.NULL : round(ageMs))
.put("total_ms", round(totalMs)).put("session_load_ms", round(loadMs)).put("interval_ms", config.interval)
.put("cpu_pct", cpuPercent).put("pss_mib", round(Debug.getPss() / 1024.0)).put("cpu_temperature_c", JSONObject.NULL)
.put("frame_drops", sourceDrops + skipped.get()).put("errors", errors)
.put("faces", faces).put("uptime_s", (now - startedAt) / 1000);
}
private String describe(JSONObject data) {
return "\nDiagnostic Dashboard\n" +
"Runtime " + value(data, "runtime") + "\n" +
"Execution Provider " + value(data, "provider") + " · " + value(data, "threads") + " threads\n" +
"Face nodes " + value(data, "detector_nodes") + "\n" +
"Age/gender nodes " + value(data, "demographics_nodes") + "\n" +
"Models " + value(data, "detector") + " / " + value(data, "demographics") + "\n" +
"Resolution " + value(data, "resolution") + "\n" +
"Camera / AI FPS " + value(data, "camera_fps") + " / " + value(data, "inference_fps") + "\n" +
"Face / Age-Gender ms " + value(data, "detection_ms") + " / " + value(data, "age_gender_ms") + "\n" +
"Total processing ms " + value(data, "total_ms") + "\n" +
"CPU (process) " + value(data, "cpu_pct") + "%\n" +
"RAM (PSS) " + value(data, "pss_mib") + " MiB\n" +
"CPU Temperature " + value(data, "cpu_temperature_c") + "\n" +
"Skipped frames " + value(data, "frame_drops") + "\n" +
"Runtime errors " + value(data, "errors") + "\n" +
"Uptime " + value(data, "uptime_s") + " s";
}
private static Object value(JSONObject data, String key) { return data.isNull(key) ? "N/A" : data.opt(key); }
private static double ms(long start) { return (System.nanoTime() - start) / 1e6; }
private static double round(double value) { return Math.round(value * 10) / 10.0; }
private void updateStats(int current, int visits, int[] genders, int[] ages) {
StringBuilder body = new StringBuilder("Total visits ").append(visits).append("\nCurrent visitors ").append(current);
for (int i = 0; i < genders.length; i++) body.append('\n').append(AudienceAggregator.GENDERS[i]).append(" ").append(genders[i]);
body.append("\n\nEstimated age (adult-only)");
for (int i = 0; i < ages.length; i++) body.append('\n').append(AudienceAggregator.AGES[i]).append(" ").append(i == 0 ? "N/A" : ages[i]);
stats.setText(body);
}
private void failed(long run, String reason) {
android.util.Log.e("EdgeVision", reason);
inference.execute(() -> errors++);
ui.post(() -> { if (generation == run) halt(reason + " · select CPU to retry"); });
}
private void addVisitEvent(String event) {
if (visitEvents.size() == 4) visitEvents.removeLast();
visitEvents.addFirst(event);
}
private void reset() {
inference.execute(() -> {
tracker.clear();
visitMemory.clear();
visitEvents.clear();
totals.reset();
persist();
ui.post(() -> {
preview.boxes = java.util.Collections.emptyList();
preview.invalidate();
trackingLog.setText("Журнал очищен");
updateStats(0, 0, new int[3], new int[7]);
});
});
}
private void halt(String message) {
generation++;
if (source != null) {
source.close();
source = null;
}
previewFrame = null;
preview.boxes = java.util.Collections.emptyList();
preview.invalidate();
setRunning(false);
setStatus(message);
inference.execute(() -> {
visitMemory.clear();
int visits = totals.visits;
int[] genders = totals.genders.clone(), ages = totals.ages.clone();
ui.post(() -> { if (!running) updateStats(0, visits, genders, ages); });
});
}
@Override public void onRequestPermissionsResult(int request, String[] permissions, int[] grants) {
super.onRequestPermissionsResult(request, permissions, grants);
if (request == 1 && grants.length > 0 && grants[0] == PackageManager.PERMISSION_GRANTED) {
configureSizes();
startCamera();
} else if (request == 1) setStatus("Camera permission denied");
}
@Override protected void onActivityResult(int request, int code, Intent data) {
super.onActivityResult(request, code, data);
if (code != RESULT_OK || data == null || data.getData() == null) return;
android.net.Uri uri = data.getData();
if (request != 2) return;
begin(readSettings(), new VideoSource() {
private boolean closed;
private final Runnable cleanup = () -> closed = true;
@Override public void start(Listener listener) {
inference.execute(() -> {
try {
android.graphics.ImageDecoder.Source image = ImageDecoder.createSource(getContentResolver(), uri);
Bitmap bitmap = ImageDecoder.decodeBitmap(image, (decoder, info, item) -> {
decoder.setAllocator(ImageDecoder.ALLOCATOR_SOFTWARE);
int width = info.getSize().getWidth(), height = info.getSize().getHeight();
float scale = Math.min(1, 960f / Math.max(width, height));
decoder.setTargetSize(Math.max(1, Math.round(width * scale)), Math.max(1, Math.round(height * scale)));
});
ui.post(new Runnable() {
@Override public void run() {
if (closed) return;
listener.frame(bitmap, "Test " + bitmap.getWidth() + "×" + bitmap.getHeight(), 0, 0);
ui.postDelayed(this, 100);
}
});
} catch (Exception failure) { listener.error(failure.toString()); }
});
}
@Override public void close() { cleanup.run(); }
});
}
@Override protected void onStop() {
if (running) halt("Stopped in background");
super.onStop();
}
@Override protected void onDestroy() {
if (engine != null) inference.execute(engine::close);
inference.shutdown();
super.onDestroy();
}
private static final class Settings {
final String resolution, provider;
final int interval, threads;
final long visitWindowMs;
final float detection, classification;
final ModelRegistry.Entry face, age;
Settings(String resolution, int interval, float detection, float classification, String provider,
int threads, ModelRegistry.Entry face, ModelRegistry.Entry age, long visitWindowMs) {
this.resolution = resolution;
this.interval = interval;
this.detection = detection;
this.classification = classification;
this.provider = provider;
this.threads = threads;
this.face = face;
this.age = age;
this.visitWindowMs = visitWindowMs;
}
boolean sameModels(Settings other) {
return other.face == face && other.age == age && other.provider.equals(provider) && other.threads == threads;
}
}
private static final class DrawBox {
final RectF rect;
final String label;
DrawBox(RectF rect, String label) { this.rect = rect; this.label = label; }
}
private final class Preview extends View {
private final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.FILTER_BITMAP_FLAG);
List<DrawBox> boxes = java.util.Collections.emptyList();
Preview() { super(MainActivity.this); }
@Override protected void onDraw(Canvas canvas) {
canvas.drawColor(0xff080d12);
Bitmap frame = previewFrame;
if (frame == null) return;
float scale = Math.min(getWidth() / (float) frame.getWidth(), getHeight() / (float) frame.getHeight());
float width = scale * frame.getWidth(), height = scale * frame.getHeight();
float x = (getWidth() - width) / 2, y = (getHeight() - height) / 2;
paint.setColor(Color.WHITE);
paint.setStyle(Paint.Style.FILL);
canvas.drawBitmap(frame, null, new RectF(x, y, x + width, y + height), paint);
for (DrawBox box : boxes) {
RectF rect = box.rect;
RectF target = new RectF(x + rect.left * width, y + rect.top * height,
x + rect.right * width, y + rect.bottom * height);
paint.setColor(0xff68e2bf);
paint.setStrokeWidth(2);
paint.setStyle(Paint.Style.STROKE);
canvas.drawRect(target, paint);
paint.setStyle(Paint.Style.FILL);
paint.setTextSize(17);
float top = Math.max(y + 20, target.top);
paint.setColor(0xff0d212c);
canvas.drawRect(target.left, top - 20, target.left + paint.measureText(box.label) + 8, top + 2, paint);
paint.setColor(Color.WHITE);
canvas.drawText(box.label, target.left + 3, top - 3, paint);
}
}
}
}

73
src/ModelRegistry.java Normal file
View File

@ -0,0 +1,73 @@
package com.it_screen.edgevision;
import android.content.res.AssetManager;
import java.io.InputStream;
import java.security.MessageDigest;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.json.JSONObject;
final class ModelRegistry {
private final AssetManager assets;
ModelRegistry(AssetManager assets) {
this.assets = assets;
}
List<Entry> list(String type) throws Exception {
List<Entry> entries = new ArrayList<>();
String[] paths = assets.list("models");
if (paths == null) return entries;
for (String path : paths) {
if (!path.endsWith(".json")) continue;
try (InputStream in = assets.open("models/" + path)) {
Entry entry = new Entry(new JSONObject(new String(readBytes(in), java.nio.charset.StandardCharsets.UTF_8)));
if (entry.json.getString("type").equals(type) && entry.approved()) entries.add(entry);
}
}
entries.sort(java.util.Comparator.comparing(Entry::toString));
return Collections.unmodifiableList(entries);
}
byte[] verified(Entry entry) throws Exception {
String path = entry.json.getString("file");
if (!path.matches("models/[A-Za-z0-9._-]+\\.onnx") || !"ONNX".equals(entry.json.getString("format")))
throw new IllegalArgumentException("Invalid ONNX asset " + path);
if (!entry.approved()) throw new SecurityException("Model is not approved for production: " + entry);
try (InputStream in = assets.open(path)) {
byte[] bytes = readBytes(in);
verify(entry.json, bytes);
return bytes;
}
}
private void verify(JSONObject manifest, byte[] bytes) throws Exception {
byte[] digest = MessageDigest.getInstance("SHA-256").digest(bytes);
StringBuilder hex = new StringBuilder();
for (byte b : digest) hex.append(String.format(java.util.Locale.ROOT, "%02x", b & 255));
if (bytes.length != manifest.getLong("size") || !hex.toString().equalsIgnoreCase(manifest.getString("sha256")))
throw new SecurityException("Model checksum mismatch: " + manifest.getString("id"));
}
static byte[] readBytes(InputStream stream) throws java.io.IOException {
java.io.ByteArrayOutputStream output = new java.io.ByteArrayOutputStream();
byte[] buffer = new byte[8192];
for (int count; (count = stream.read(buffer)) >= 0;) {
if (output.size() > 32 * 1024 * 1024 - count) throw new java.io.IOException("Asset exceeds 32 MiB");
output.write(buffer, 0, count);
}
return output.toByteArray();
}
static final class Entry {
final JSONObject json;
Entry(JSONObject json) { this.json = json; }
boolean approved() {
return json.optBoolean("productionAllowed") && json.optBoolean("commercialUse") &&
json.optBoolean("modificationAllowed") && json.optBoolean("redistributionAllowed") &&
"verified".equals(json.optString("licenseVerification"));
}
JSONObject input() throws Exception { return json.getJSONObject("input"); }
@Override public String toString() { return json.optString("name") + " " + json.optString("version"); }
}
}

145
src/OrtEngine.java Normal file
View File

@ -0,0 +1,145 @@
package com.it_screen.edgevision;
import ai.onnxruntime.*;
import java.io.File;
import java.nio.FloatBuffer;
import java.nio.file.Files;
import java.util.EnumSet;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
import org.json.JSONArray;
final class OrtEngine implements InferenceEngine {
private final OrtEnvironment environment = OrtEnvironment.getEnvironment();
private final ModelRegistry registry;
private final File cache;
private final Set<Model> open = new LinkedHashSet<>();
OrtEngine(ModelRegistry registry, File cache) {
this.registry = registry;
this.cache = cache;
}
@Override public Set<String> providers() {
Set<String> names = new LinkedHashSet<>();
for (OrtProvider provider : OrtEnvironment.getAvailableProviders()) names.add(provider.name());
return names;
}
@Override public Model load(ModelRegistry.Entry entry, String provider, int threads) throws Exception {
boolean supported = false;
JSONArray allowed = entry.json.getJSONArray("providers");
for (int i = 0; i < allowed.length(); i++) supported |= provider.equals(allowed.getString(i));
if (!supported || !providers().contains(provider)) throw new IllegalArgumentException("Unavailable provider: " + provider);
byte[] bytes = registry.verified(entry);
try (OrtSession.SessionOptions options = new OrtSession.SessionOptions()) {
options.setIntraOpNumThreads(provider.equals("XNNPACK") ? 1 : threads);
options.setInterOpNumThreads(1);
if ("XNNPACK".equals(provider)) {
options.addConfigEntry("session.intra_op.allow_spinning", "0");
options.addXnnpack(Map.of("intra_op_num_threads", Integer.toString(threads)));
} else if ("NNAPI".equals(provider)) {
options.addNnapi(EnumSet.of(ai.onnxruntime.providers.NNAPIFlags.CPU_DISABLED));
}
options.enableProfiling(new File(cache, "ort-profile-" + System.nanoTime()).getAbsolutePath());
OrtSession session = environment.createSession(bytes, options);
try {
String inputName = entry.input().getString("name");
if (session.getInputNames().size() != 1 || !session.getInputNames().contains(inputName))
throw new IllegalArgumentException("Unexpected model input: " + session.getInputNames());
TensorInfo input = (TensorInfo) session.getInputInfo().get(inputName).getInfo();
long[] shape = input.getShape();
long[] expectedShape = {1, 3, entry.input().getInt("height"), entry.input().getInt("width")};
if (input.type != OnnxJavaType.FLOAT || shape.length != expectedShape.length)
throw new IllegalArgumentException("Expected float32 NCHW input");
for (int axis = 0; axis < shape.length; axis++) {
if (shape[axis] > 0 && shape[axis] != expectedShape[axis])
throw new IllegalArgumentException("Manifest input shape does not match model");
}
JSONArray expected = entry.json.getJSONArray("outputs");
for (int i = 0; i < expected.length(); i++) {
if (!session.getOutputNames().contains(expected.getString(i)))
throw new IllegalArgumentException("Missing model output " + expected.getString(i));
}
Model model = new Session(session, provider);
open.add(model);
return model;
} catch (Exception failure) {
session.close();
throw failure;
}
}
}
@Override public void close() {
for (Model model : new LinkedHashSet<>(open)) {
try { model.close(); } catch (Exception error) { android.util.Log.w("EdgeVision", "Session close", error); }
}
}
private final class Session implements Model {
private final OrtSession session;
private long runs;
private double inferenceMs;
private boolean profilePending = true;
private String assignment;
Session(OrtSession session, String provider) {
this.session = session;
assignment = provider + " (awaiting first run)";
}
@Override public Map<String,float[]> run(String input, float[] data, long[] shape, Set<String> outputs) throws Exception {
Map<String,float[]> values = new LinkedHashMap<>();
long start = System.nanoTime();
try (OnnxTensor tensor = OnnxTensor.createTensor(environment, FloatBuffer.wrap(data), shape);
OrtSession.Result result = session.run(Map.of(input, tensor), outputs)) {
for (Map.Entry<String, OnnxValue> item : result) {
FloatBuffer buffer = ((OnnxTensor) item.getValue()).getFloatBuffer();
float[] value = new float[buffer.remaining()];
buffer.get(value);
values.put(item.getKey(), value);
}
}
inferenceMs = (System.nanoTime() - start) / 1e6;
runs++;
finishProfile();
return values;
}
private void finishProfile() {
if (!profilePending) return;
profilePending = false;
File profile = null;
try {
profile = new File(session.endProfiling());
JSONArray events = new JSONArray(new String(Files.readAllBytes(profile.toPath()), java.nio.charset.StandardCharsets.UTF_8));
Map<String,Integer> nodes = new LinkedHashMap<>();
for (int i = 0; i < events.length(); i++) {
org.json.JSONObject args = events.getJSONObject(i).optJSONObject("args");
if (args == null) continue;
String provider = args.optString("provider");
if (!provider.isEmpty()) nodes.merge(provider.replace("ExecutionProvider", ""), 1, Integer::sum);
}
assignment = nodes.isEmpty() ? "N/A (no profiled nodes)" : nodes.toString();
android.util.Log.i("EdgeVision", "ORT node assignment " + assignment);
} catch (Exception error) {
assignment = "N/A (profiling unavailable)";
android.util.Log.w("EdgeVision", "Profiling", error);
} finally {
if (profile != null) profile.delete();
}
}
@Override public String providerAssignment() { return assignment; }
@Override public long runs() { return runs; }
@Override public double lastInferenceMs() { return inferenceMs; }
@Override public void close() throws Exception {
finishProfile();
session.close();
open.remove(this);
}
}
}

70
src/SFace.java Normal file
View File

@ -0,0 +1,70 @@
package com.it_screen.edgevision;
import android.graphics.Bitmap;
import android.graphics.Matrix;
final class SFace extends ImageModel {
private static final float[] REFERENCE = {
38.2946f, 51.6963f, 73.5318f, 51.5014f, 56.0252f, 71.7366f,
41.5493f, 92.3655f, 70.7299f, 92.2041f
};
SFace(InferenceEngine.Model session, ModelRegistry.Entry entry) throws Exception {
super(session, entry);
}
VisitMemory.Sample sample(Bitmap frame, Face face, java.util.function.IntPredicate needsAngle) throws Exception {
float[] points = face.landmarks;
if (points == null || face.confidence < 0.72f ||
Math.min(face.box.width() * frame.getWidth(), face.box.height() * frame.getHeight()) < 64) return null;
for (int i = 0; i < points.length; i++) {
if (!Float.isFinite(points[i]) || points[i] < 0 ||
points[i] >= (i % 2 == 0 ? frame.getWidth() : frame.getHeight())) return null;
}
float dx = points[2] - points[0], dy = points[3] - points[1];
float eyeDistanceSquared = dx * dx + dy * dy;
if (eyeDistanceSquared < 20 * 20) return null;
float nosePosition = ((points[4] - points[0]) * dx + (points[5] - points[1]) * dy) / eyeDistanceSquared;
if (nosePosition < -0.05f || nosePosition > 1.05f) return null;
int angle = nosePosition < 0.34f ? 0 : nosePosition > 0.66f ? 2 : 1;
if (!needsAngle.test(angle)) return null;
Matrix alignment = align(points);
float[] aligned = points.clone();
alignment.mapPoints(aligned);
double error = 0;
for (int i = 0; i < aligned.length; i++) error += Math.pow(aligned[i] - REFERENCE[i], 2);
if (error > 500) return null;
java.util.Map<String, float[]> output = runAligned(frame, alignment);
if (output == null) return null;
float[] vector = output.get("fc1");
double norm = 0;
for (float value : vector) norm += value * value;
if (vector.length != 128 || !Double.isFinite(norm) || norm <= 0) return null;
norm = Math.sqrt(norm);
for (int i = 0; i < vector.length; i++) vector[i] /= norm;
return new VisitMemory.Sample(vector, angle);
}
private Matrix align(float[] points) {
float x = 0, y = 0, u = 0, v = 0;
for (int i = 0; i < points.length; i += 2) {
x += points[i] / 5;
y += points[i+1] / 5;
u += REFERENCE[i] / 5;
v += REFERENCE[i+1] / 5;
}
float a = 0, b = 0, scale = 0;
for (int i = 0; i < points.length; i += 2) {
float px = points[i] - x, py = points[i+1] - y;
float qx = REFERENCE[i] - u, qy = REFERENCE[i+1] - v;
a += px * qx + py * qy;
b += px * qy - py * qx;
scale += px * px + py * py;
}
a /= scale;
b /= scale;
Matrix transform = new Matrix();
transform.setValues(new float[]{a, -b, u - a*x + b*y, b, a, v - b*x - a*y, 0, 0, 1});
return transform;
}
}

12
src/VideoSource.java Normal file
View File

@ -0,0 +1,12 @@
package com.it_screen.edgevision;
import android.graphics.Bitmap;
interface VideoSource extends AutoCloseable {
interface Listener {
void frame(Bitmap frame, String resolution, double cameraFps, long sourceDrops);
void error(String description);
}
void start(Listener listener);
@Override void close();
}

176
src/VisionModels.java Normal file
View File

@ -0,0 +1,176 @@
package com.it_screen.edgevision;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import java.util.*;
import org.json.JSONArray;
interface FaceDetector {
List<Face> detect(Bitmap frame, float threshold) throws Exception;
}
interface AgeEstimator {
Integer age(Demographics result);
}
interface GenderEstimator {
String gender(Demographics result, float threshold);
}
final class Face {
final RectF box;
final float confidence;
final float[] landmarks;
Face(RectF box, float confidence, float[] landmarks) {
this.box = box;
this.confidence = confidence;
this.landmarks = landmarks;
}
float overlap(Face other) {
RectF intersection = new RectF(box);
if (!intersection.intersect(other.box)) return 0;
float area = intersection.width() * intersection.height();
return area / (box.width() * box.height() + other.box.width() * other.box.height() - area);
}
}
final class Demographics {
final Integer age;
final String gender;
final float confidence;
Demographics(Integer age, String gender, float confidence) {
this.age = age;
this.gender = gender;
this.confidence = confidence;
}
}
abstract class ImageModel {
final InferenceEngine.Model session;
final int width, height;
private final String input;
private final Set<String> outputs = new LinkedHashSet<>();
private final Bitmap buffer;
private final Canvas canvas;
private final Paint filter = new Paint(Paint.FILTER_BITMAP_FLAG);
private final int[] pixels;
private final float[] tensor;
ImageModel(InferenceEngine.Model session, ModelRegistry.Entry entry) throws Exception {
this.session = session;
input = entry.input().getString("name");
width = entry.input().getInt("width");
height = entry.input().getInt("height");
if (width <= 0 || height <= 0 || width > 1024 || height > 1024)
throw new IllegalArgumentException("Invalid adapter dimensions");
JSONArray names = entry.json.getJSONArray("outputs");
for (int i = 0; i < names.length(); i++) outputs.add(names.getString(i));
buffer = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
canvas = new Canvas(buffer);
pixels = new int[width * height];
tensor = new float[3 * pixels.length];
}
Map<String,float[]> run(Bitmap frame, Rect crop, RectF destination) throws Exception {
buffer.eraseColor(android.graphics.Color.BLACK);
canvas.drawBitmap(frame, crop, destination, filter);
return infer(false, null);
}
Map<String,float[]> runAligned(Bitmap frame, android.graphics.Matrix transform) throws Exception {
buffer.eraseColor(android.graphics.Color.BLACK);
canvas.drawBitmap(frame, transform, filter);
buffer.getPixels(pixels, 0, width, 0, 0, width, height);
// Measure local detail around the eyes and nose, away from the crop edges.
double sum = 0, squares = 0;
int count = 0;
for (int y = 42; y < 87; y += 2) {
for (int x = 30; x < 83; x += 2) {
int i = y * width + x;
int response = 4 * green(i) - green(i-1) - green(i+1) - green(i-width) - green(i+width);
sum += response;
squares += response * response;
count++;
}
}
if (squares / count - Math.pow(sum / count, 2) < 18) return null;
return infer(true, null);
}
Map<String,float[]> runNormalized(Bitmap frame, android.graphics.Matrix transform, float[] means) throws Exception {
buffer.eraseColor(android.graphics.Color.BLACK);
canvas.drawBitmap(frame, transform, filter);
buffer.getPixels(pixels, 0, width, 0, 0, width, height);
return infer(true, means);
}
private int green(int index) { return (pixels[index] >> 8) & 255; }
private Map<String,float[]> infer(boolean rgb, float[] means) throws Exception {
if (!rgb) buffer.getPixels(pixels, 0, width, 0, 0, width, height);
for (int i = 0; i < pixels.length; i++) {
int pixel = pixels[i];
int first = rgb ? (pixel >> 16) & 255 : pixel & 255;
int third = rgb ? pixel & 255 : (pixel >> 16) & 255;
int second = (pixel >> 8) & 255;
tensor[i] = means == null ? first : (first - means[0]) / 256f;
tensor[i + pixels.length] = means == null ? second : (second - means[1]) / 256f;
tensor[i + 2 * pixels.length] = means == null ? third : (third - means[2]) / 256f;
}
return session.run(input, tensor, new long[]{1, 3, height, width}, outputs);
}
}
final class YuNet extends ImageModel implements FaceDetector {
YuNet(InferenceEngine.Model session, ModelRegistry.Entry entry) throws Exception { super(session, entry); }
@Override public List<Face> detect(Bitmap frame, float threshold) throws Exception {
float scale = Math.min((float) width / frame.getWidth(), (float) height / frame.getHeight());
float drawnWidth = frame.getWidth() * scale;
float drawnHeight = frame.getHeight() * scale;
Map<String,float[]> result = run(frame, null, new RectF(0, 0, drawnWidth, drawnHeight));
List<Face> candidates = new ArrayList<>();
for (int stride : new int[]{8,16,32}) {
float[] cls = result.get("cls_" + stride);
float[] obj = result.get("obj_" + stride);
float[] bbox = result.get("bbox_" + stride);
float[] points = result.get("kps_" + stride);
int cols = width / stride;
for (int i = 0; i < cls.length; i++) {
float score = (float) Math.sqrt(clamp(cls[i], 1) * clamp(obj[i], 1));
if (score < threshold) continue;
int p = 4 * i;
float cx = (i % cols + bbox[p]) * stride;
float cy = (i / cols + bbox[p + 1]) * stride;
float halfW = (float) Math.exp(bbox[p + 2]) * stride / 2;
float halfH = (float) Math.exp(bbox[p + 3]) * stride / 2;
RectF rect = new RectF(clamp(cx - halfW, drawnWidth) / drawnWidth,
clamp(cy - halfH, drawnHeight) / drawnHeight,
clamp(cx + halfW, drawnWidth) / drawnWidth, clamp(cy + halfH, drawnHeight) / drawnHeight);
if (rect.width() <= 0 || rect.height() <= 0) continue;
float[] landmarks = null;
if (points != null) {
landmarks = new float[10];
for (int j = 0; j < 5; j++) {
landmarks[2*j] = (i % cols + points[10*i + 2*j]) * stride / scale;
landmarks[2*j+1] = (i / cols + points[10*i + 2*j+1]) * stride / scale;
}
}
candidates.add(new Face(rect, score, landmarks));
}
}
candidates.sort(Comparator.comparingDouble((Face face) -> face.confidence).reversed());
List<Face> accepted = new ArrayList<>();
for (Face face : candidates) {
if (accepted.stream().noneMatch(other -> face.overlap(other) > 0.3)) accepted.add(face);
if (accepted.size() == 32) break;
}
return accepted;
}
private static float clamp(float value, float max) { return Math.max(0, Math.min(max, value)); }
}

116
src/VisitMemory.java Normal file
View File

@ -0,0 +1,116 @@
package com.it_screen.edgevision;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
final class VisitMemory {
private static final float MATCH = 0.55f;
private static final float MARGIN = 0.08f;
private static final long DECISION_MS = 2500;
private final Map<Integer, Visit> visits = new HashMap<>();
static final class Sample {
final float[] vector;
final int angle;
Sample(float[] vector, int angle) { this.vector = vector; this.angle = angle; }
}
static final class Decision {
final boolean repeat;
final String reason;
Decision(boolean repeat, String reason) { this.repeat = repeat; this.reason = reason; }
}
static final class Candidate {
int visit;
int previousMatch;
int misses;
long started = -1;
long lastProbe = -1000;
}
private static final class Visit {
final Map<Integer, float[]> templates = new HashMap<>();
long seen;
float similarity(float[] probe) {
float maximum = -1;
for (float[] vector : templates.values()) {
float dot = 0;
for (int i = 0; i < probe.length; i++) dot += probe[i] * vector[i];
maximum = Math.max(maximum, dot);
}
return maximum;
}
}
void expire(long now, long window) {
visits.values().removeIf(visit -> now - visit.seen >= window);
}
boolean needsAngle(Candidate candidate, int angle) {
Visit visit = visits.get(candidate.visit);
return visit == null || !visit.templates.containsKey(angle);
}
void refresh(Candidate candidate, Sample sample, long now) {
Visit visit = visits.get(candidate.visit);
if (visit == null) return;
visit.seen = now;
if (sample != null && (visit.templates.isEmpty() || visit.similarity(sample.vector) >= MATCH)) {
visit.templates.putIfAbsent(sample.angle, sample.vector);
}
}
Decision decide(int trackId, Candidate candidate, Sample sample, Set<Integer> active, long now) {
if (candidate.started < 0) candidate.started = now;
if (sample != null) {
int best = 0;
float bestScore = -1, runnerUp = -1;
for (Map.Entry<Integer, Visit> entry : visits.entrySet()) {
float score = entry.getValue().similarity(sample.vector);
if (score > bestScore) {
runnerUp = bestScore;
bestScore = score;
best = entry.getKey();
} else runnerUp = Math.max(runnerUp, score);
}
if (bestScore >= MATCH && bestScore - runnerUp >= MARGIN && !active.contains(best)) {
if (candidate.previousMatch == best) {
candidate.visit = best;
visits.get(best).seen = now;
return new Decision(true, "совпадение подтверждено");
}
candidate.previousMatch = best;
candidate.misses = 0;
} else {
candidate.previousMatch = 0;
candidate.misses = bestScore < MATCH - MARGIN ? candidate.misses + 1 : 0;
if (best == 0 || candidate.misses >= 2)
return newVisit(trackId, candidate, sample, now, "совпадений в окне нет");
if (bestScore >= MATCH && active.contains(best))
return newVisit(trackId, candidate, sample, now, "совпавший визит уже в кадре");
}
}
if (now - candidate.started >= DECISION_MS)
return newVisit(trackId, candidate, sample, now, "совпадение не подтверждено");
return null;
}
private Decision newVisit(int trackId, Candidate candidate, Sample sample, long now, String reason) {
if (visits.size() >= 256) {
visits.entrySet().stream().min(Comparator.comparingLong(entry -> entry.getValue().seen))
.ifPresent(entry -> visits.remove(entry.getKey()));
}
Visit visit = new Visit();
visit.seen = now;
if (sample != null) visit.templates.put(sample.angle, sample.vector);
visits.put(trackId, visit);
candidate.visit = trackId;
return new Decision(false, reason);
}
void clear() { visits.clear(); }
}

View File

@ -0,0 +1,46 @@
"""Fail closed for unreviewed model manifests, model assets and runtime binaries."""
import hashlib
import json
from pathlib import Path
import sys
root = Path(__file__).resolve().parents[1]
assets = root / "assets"
models = assets / "models"
lock = json.loads((root / "license-lock.json").read_text())
required_rights = ("commercialUse", "modificationAllowed", "redistributionAllowed", "productionAllowed")
allowed_licenses = {"MIT", "Apache-2.0", "CC0-1.0", "BSD-2-Clause", "BSD-3-Clause"}
def check(condition, message):
if not condition:
sys.exit("Production license gate: " + message)
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
inventory = {p.name for p in models.glob("*.json")}
check(inventory == set(lock["models"]), "manifest inventory differs from reviewed lock")
expected_assets = set(inventory)
for name, approved_hash in lock["models"].items():
model = json.loads((models / name).read_text())
filename = Path(model["file"]).name
artifact = models / filename
expected_assets.add(filename)
check(model["file"] == f"models/{filename}" and artifact.suffix == ".onnx", f"{name} invalid artifact path")
check(model["license"] in allowed_licenses and model["licenseVerification"] == "verified" and
all(model.get(right) is True for right in required_rights), f"{name} does not grant all required rights")
notice = assets / model["licenseNotice"]
check(model["licenseEvidence"].startswith("https://") and notice.parent == assets / "notices" and
notice.is_file(), f"{name} license evidence and local notice are required")
check(artifact.is_file() and artifact.stat().st_size == model["size"] and
model["sha256"] == approved_hash == digest(artifact), f"{name} model bytes differ from reviewed lock")
check({p.name for p in models.iterdir()} == expected_assets, "unexpected content in models/")
packaged = {p.relative_to(assets).as_posix(): p for p in assets.rglob("*") if p.is_file()}
check(set(packaged) == set(lock["assetInventory"]), "APK asset inventory differs from reviewed lock")
for name, path in packaged.items():
check(digest(path) == lock["assetInventory"][name], f"{name} differs from reviewed asset lock")
check(digest(root / "build/ort.aar") == lock["runtimeAarSha256"], "unreviewed runtime AAR")
print("Production license gate passed")

22
tools/nnapi-devices.c Normal file
View File

@ -0,0 +1,22 @@
#include <android/NeuralNetworks.h>
#include <stdio.h>
int main(void) {
uint32_t count = 0;
int result = ANeuralNetworks_getDeviceCount(&count);
printf("NNAPI getDeviceCount status=%d count=%u\n", result, count);
if (result != ANEURALNETWORKS_NO_ERROR) return 1;
for (uint32_t i = 0; i < count; i++) {
ANeuralNetworksDevice *device = NULL;
int32_t type = 0;
int64_t level = 0;
const char *name = NULL, *version = NULL;
if (ANeuralNetworks_getDevice(i, &device) != ANEURALNETWORKS_NO_ERROR) return 2;
ANeuralNetworksDevice_getName(device, &name);
ANeuralNetworksDevice_getVersion(device, &version);
ANeuralNetworksDevice_getType(device, &type);
ANeuralNetworksDevice_getFeatureLevel(device, &level);
printf("%u: name=%s version=%s type=%d feature=%lld\n", i, name, version, type, (long long) level);
}
return 0;
}