78 lines
6.0 KiB
Markdown
78 lines
6.0 KiB
Markdown
# 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. |
|
|
| NanoDet-Plus person detection | OpenCV Zoo 2022nov, pinned commit `48b10fa505aeb51fbd127fc60a5c660040e823b7`; graph resized to 256, weights unchanged. | Apache-2.0 explicitly covers all files in the [model directory](https://github.com/opencv/opencv_zoo/blob/48b10fa505aeb51fbd127fc60a5c660040e823b7/models/object_detection_nanodet/README.md#license). Keep the upstream license and 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.
|
|
|
|
|
|
## Controlled PoC model registry entry
|
|
|
|
OpenCV Zoo SFace `face_recognition_sface_2021dec_int8.onnx` comes from
|
|
revision `eb9f4f2d4b79b58e5513b5d25d5f0243a8357bf4`. The upstream
|
|
[model README](https://github.com/opencv/opencv_zoo/blob/eb9f4f2d4b79b58e5513b5d25d5f0243a8357bf4/models/face_recognition_sface/README.md#license)
|
|
explicitly applies Apache-2.0 to all directory files, including these weights.
|
|
The [LFS pointer](https://raw.githubusercontent.com/opencv/opencv_zoo/eb9f4f2d4b79b58e5513b5d25d5f0243a8357bf4/models/face_recognition_sface/face_recognition_sface_2021dec_int8.onnx)
|
|
pins 9,896,933 bytes and SHA-256
|
|
`2b0e941e6f16cc048c20aee0c8e31f569118f65d702914540f7bfdc14048d78a`.
|
|
The unchanged weights, attribution and license are tracked under `poc/assets`.
|
|
Apache-2.0 permits commercial use, modification and redistribution under its
|
|
terms. The separate PoC manifest sets `productionAllowed: false`. The default
|
|
APK excludes the weights and implementation. Commercial activation stays
|
|
blocked pending review of GDPR and other applicable requirements.
|
|
|
|
The published license grant and the provenance review are separate. The
|
|
[OpenCV Zoo discussion for this exact INT8 export](https://github.com/opencv/opencv_zoo/issues/318)
|
|
still lacks a documented mapping to the training dataset and confirmation
|
|
of the original checkpoint authorization. The registry verifies the published
|
|
grant and exact binary for controlled internal testing. Production clearance
|
|
requires resolving provenance as well as the privacy review.
|