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/10/31 03:03] jacobe [Compile and run] |
products:sbc:vim4:npu:demos:face-recognition [2024/12/03 02:54] (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 ====== | ||
Line 18: | Line 20: | ||
$ git clone https:// | $ git clone https:// | ||
``` | ``` | ||
+ | |||
+ | <WRAP important> | ||
+ | If your kernel is older than 241129, please use version before tag ddk-3.4.7.7. | ||
+ | </ | ||
==== Install dependencies ==== | ==== Install dependencies ==== | ||
Line 43: | Line 49: | ||
# Run mode 1 | # Run mode 1 | ||
- | $ sudo ./ | + | $ ./ |
``` | ``` | ||
Line 50: | Line 56: | ||
```shell | ```shell | ||
# Run mode 2 | # Run mode 2 | ||
- | $ sudo ./ | + | $ ./ |
``` | ``` | ||
Line 58: | Line 64: | ||
Put your full face photo into the '' | Put your full face photo into the '' | ||
- | |||
- | == Compile == | ||
```shell | ```shell | ||
+ | # Compile | ||
$ cd vim4_npu_applications/ | $ cd vim4_npu_applications/ | ||
$ mkdir build | $ mkdir build | ||
Line 67: | Line 72: | ||
$ cmake .. | $ cmake .. | ||
$ make | $ make | ||
- | ``` | ||
- | == Run== | + | # Run |
- | + | $ ./face_recognition_cap | |
- | **MIPI Camera** | + | |
- | + | ||
- | ``` | + | |
- | $ sudo ./retinaface_cap | + | |
- | ``` | + | |
- | + | ||
- | **USB Camera** | + | |
- | ``` | + | |
- | $ cd build | + | |
- | $ sudo ./ | + | |
``` | ``` | ||
- | **TIP**: Replace | + | '' |