This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:vim4:npu:demos:face-recognition [2024/01/04 05:23] louis |
products:sbc:vim4:npu:demos:face-recognition [2025/06/12 05:38] (current) louis |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~tag> NPU RetinaFace FaceNet VIM4 ~~ | ~~tag> NPU RetinaFace FaceNet VIM4 ~~ | ||
+ | |||
+ | **Doc for version ddk-3.4.7.7** | ||
====== Face Recognition VIM4 Demo - 7 ====== | ====== Face Recognition VIM4 Demo - 7 ====== | ||
{{indexmenu_n> | {{indexmenu_n> | ||
+ | |||
+ | Face Recognition Demo consists of two models, RetinaFace and FaceNet. It can detect face on image and recognize who it is. Here are two judgment indicators, cosine similarity and Euclidean distance. The closer the cosine similarity is to 1 and the closer the Euclidean distance is to 0, the more similar is between two faces. | ||
+ | |||
+ | Here takes **lin_1.jpg** as example. Inference results on VIM4. Only show cosine similarity. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | **Inference speed test**: USB camera about **80ms** per frame. | ||
<WRAP important > | <WRAP important > | ||
Line 19: | Line 29: | ||
``` | ``` | ||
- | <WRAP important > | + | <WRAP important> |
- | If your kernel | + | If your kernel is older than 241129, please use version before |
</ | </ | ||
Line 47: | Line 57: | ||
# Run mode 1 | # Run mode 1 | ||
- | $ sudo ./ | + | $ ./ |
``` | ``` | ||
Line 54: | Line 64: | ||
```shell | ```shell | ||
# Run mode 2 | # Run mode 2 | ||
- | $ sudo ./ | + | $ ./ |
``` | ``` | ||
Line 72: | Line 82: | ||
# Run | # Run | ||
- | $ sudo ./ | + | $ ./ |
``` | ``` | ||
'' | '' |