-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Solan Shang
committed
Mar 15, 2019
1 parent
ce2d068
commit cfc8b46
Showing
4 changed files
with
81 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,13 +10,45 @@ examples/libfacedetectcnn-example.cpp shows how to use the library. | |
|
||
![Examples](/images/cnnresult.png "Detection example") | ||
|
||
How to Compile | ||
------------- | ||
## How to Compile | ||
|
||
* Please add -O3 to turn on optimizations when you compile the source code using g++. | ||
* Please choose 'Maximize Speed/-O2' when you compile the source code using Microsoft Visual Studio. | ||
|
||
CNN-based Face Detection on Windows | ||
------------- | ||
Create a folder build | ||
|
||
``` | ||
mkdir -p build; cd build; rm -rf *; | ||
``` | ||
|
||
### Cross build for aarch64 | ||
1. set cross compiler for aarch64 (please refer to aarch64-toolchain.cmake) | ||
2. set opencv path since the example code depends on opencv | ||
|
||
``` | ||
cmake \ | ||
-DENABLE_INT8=ON \ | ||
-DENABLE_NEON=ON \ | ||
-DCMAKE_BUILD_TYPE=RELEASE \ | ||
-DCMAKE_TOOLCHAIN_FILE=../aarch64-toolchain.cmake \ | ||
.. | ||
make | ||
``` | ||
|
||
### Native build for avx2 | ||
``` | ||
cmake \ | ||
-DENABLE_INT8=ON \ | ||
-DENABLE_AVX2=ON \ | ||
-DCMAKE_BUILD_TYPE=RELEASE \ | ||
-DDEMO=ON \ | ||
.. | ||
make | ||
``` | ||
|
||
## CNN-based Face Detection on Windows | ||
|
||
| Method |Time | FPS |Time | FPS | | ||
|--------------------|--------------|-------------|--------------|-------------| | ||
|
@@ -33,8 +65,7 @@ CNN-based Face Detection on Windows | |
* Minimal face size ~12x12 | ||
* Intel(R) Core(TM) i7-7700 CPU @ 3.6GHz. | ||
|
||
CNN-based Face Detection on ARM Linux (Raspberry Pi 3 B+) | ||
------------- | ||
## CNN-based Face Detection on ARM Linux (Raspberry Pi 3 B+) | ||
|
||
| Method |Time | FPS |Time | FPS | | ||
|--------------------|--------------|-------------|--------------|-------------| | ||
|
@@ -49,16 +80,13 @@ CNN-based Face Detection on ARM Linux (Raspberry Pi 3 B+) | |
* Raspberry Pi 3 B+, Broadcom BCM2837B0, Cortex-A53 (ARMv8) 64-bit SoC @ 1.4GHz | ||
|
||
|
||
Author | ||
------------- | ||
## Author | ||
* Shiqi Yu, <[email protected]> | ||
|
||
Contributors | ||
------------- | ||
## Contributors | ||
* Jia Wu | ||
* Shengyin Wu | ||
* Dong Xu | ||
|
||
Acknowledgment | ||
------------- | ||
## Acknowledgment | ||
The work is partly supported by the Science Foundation of Shenzhen (Grant No. JCYJ20150324141711699). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
set(CMAKE_SYSTEM_NAME Linux) | ||
set(CMAKE_SYSTEM_VERSION 1) | ||
set(CMAKE_SYSTEM_PROCESSOR "aarch64") | ||
set(CMAKE_CXX_COMPILER "/opt/linaro/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-g++") | ||
set(CMAKE_C_COMPILER "/opt/linaro/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters