This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
products:sbc:edge2:npu:demos:face-recognition [2023/09/20 03:17] louis created |
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 59: | Line 69: | ||
``` | ``` | ||
- | Put your full face photo into the '' | + | Put your full face photo into the '' |
```shell | ```shell | ||
- | # Run | + | # Run USB camera |
$ cd install/ | $ cd install/ | ||
- | $ ./ | + | $ ./ |
+ | |||
+ | # Run MIPI camera | ||
+ | $ cd install/ | ||
+ | $ ./ | ||
``` | ``` | ||
- | '' | + | <WRAP info > |
+ | '' | ||
+ | </ |