This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:edge2:npu:demos:face-recognition [2023/09/20 03:17] louis |
products:sbc:edge2:npu:demos:face-recognition [2025/04/09 23:43] (current) louis |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~tag> NPU RetinaFace FaceNet Edge2 ~~ | ~~tag> NPU RetinaFace FaceNet Edge2 ~~ | ||
- | ====== Face Recognition | + | ====== Face Recognition |
{{indexmenu_n> | {{indexmenu_n> | ||
+ | |||
+ | ===== Introduction ===== | ||
+ | |||
+ | 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 Edge2. Only show cosine similarity. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | **Inference speed test**: USB camera about **44ms** per frame. MIPI camera about **33ms** per frame. | ||
<WRAP important > | <WRAP important > | ||
Line 62: | Line 72: | ||
```shell | ```shell | ||
- | # Run | + | # Run USB camera |
$ cd install/ | $ cd install/ | ||
- | $ ./ | + | $ ./ |
+ | |||
+ | # Run MIPI camera | ||
+ | $ cd install/ | ||
+ | $ ./ | ||
``` | ``` | ||
- | '' | + | <WRAP info > |
+ | '' | ||
+ | </ |