EVAx10_Video_analitics/BENCHMARK_REPORT.md

4.1 KiB
Raw Permalink Blame History

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 and CSV, and the baseline JSON and 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 and 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 and CSV.