add cmake

pull/55/head
XiaochaoGONG 2019-04-01 20:23:29 +08:00
parent fc77793ccb
commit 42605292da
16 changed files with 134 additions and 2 deletions

@ -1 +1 @@
Subproject commit d59d9c9a81e28fc762cb3e85fead00b11bb8722e Subproject commit 4ddff6f6f600a7ea6037398b069a65d2316a42ee

View File

@ -0,0 +1,10 @@
set(COMPONENT_SRCS a.c)
set(COMPONENT_ADD_INCLUDEDIRS include)
register_component()
target_link_libraries(recorder_engine "-L ${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries(recorder_engine
esp_wakenet
nn_model
)

View File

View File

@ -1,5 +1,8 @@
# The following lines of boilerplate have to be in your project's # The following lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly # CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5) cmake_minimum_required(VERSION 3.5)
set(EXTRA_COMPONENT_DIRS ../../../components)
include($ENV{IDF_PATH}/tools/cmake/project.cmake) include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(camera_web_server) project(camera_web_server)

View File

@ -1,3 +1,10 @@
set(COMPONENT_SRCS "app_main.c" "app_wifi.c" "app_camera.c" "app_httpd.c") set(COMPONENT_SRCS "app_main.c" "app_wifi.c" "app_camera.c" "app_httpd.c")
set(COMPONENT_ADD_INCLUDEDIRS "include") set(COMPONENT_ADD_INCLUDEDIRS "include")
register_component() set(COMPONENT_REQUIRES
esp32-camera
esp-face
nvs_flash
esp_http_server
fb_gfx
)
register_component()

View File

@ -682,6 +682,7 @@ void app_httpd_main(){
mtmn_config.pyramid = 0.7; mtmn_config.pyramid = 0.7;
mtmn_config.p_threshold.score = 0.6; mtmn_config.p_threshold.score = 0.6;
mtmn_config.p_threshold.nms = 0.7; mtmn_config.p_threshold.nms = 0.7;
mtmn_config.p_threshold.candidate_number = 100;
mtmn_config.r_threshold.score = 0.7; mtmn_config.r_threshold.score = 0.7;
mtmn_config.r_threshold.nms = 0.7; mtmn_config.r_threshold.nms = 0.7;
mtmn_config.r_threshold.candidate_number = 4; mtmn_config.r_threshold.candidate_number = 4;

View File

@ -0,0 +1,7 @@
cmake_minimum_required(VERSION 3.5)
set(EXTRA_COMPONENT_DIRS ../../../components)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(detection_with_command_line)

View File

@ -0,0 +1,16 @@
set(COMPONENT_SRCS
app_main.cpp
app_facenet.c
app_camera.cpp
)
set(COMPONENT_ADD_INCLUDEDIRS
include
)
set(COMPONENT_REQUIRES
esp32-camera
esp-face
)
register_component()

View File

@ -38,6 +38,7 @@ mtmn_config_t init_config()
mtmn_config.pyramid = 0.7; mtmn_config.pyramid = 0.7;
mtmn_config.p_threshold.score = 0.6; mtmn_config.p_threshold.score = 0.6;
mtmn_config.p_threshold.nms = 0.7; mtmn_config.p_threshold.nms = 0.7;
mtmn_config.p_threshold.candidate_number = 100;
mtmn_config.r_threshold.score = 0.7; mtmn_config.r_threshold.score = 0.7;
mtmn_config.r_threshold.nms = 0.7; mtmn_config.r_threshold.nms = 0.7;
mtmn_config.r_threshold.candidate_number = 4; mtmn_config.r_threshold.candidate_number = 4;

View File

@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.5)
set(EXTRA_COMPONENT_DIRS ../../../components)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(recognition_solution)

View File

@ -0,0 +1,22 @@
set(COMPONENT_SRCS
app_main.c
app_camera.c
app_httpserver.c
app_speech_recsrc.c
app_speech_wakeup.c
app_wifi.c
)
set(COMPONENT_ADD_INCLUDEDIRS include)
set(COMPONENT_REQUIRES
esp32-camera
esp-face
nvs_flash
esp_http_server
fb_gfx
recorder_engine
spiffs
)
register_component()

View File

@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.5)
set(EXTRA_COMPONENT_DIRS ../../../components)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(recognition_wechat)

View File

@ -0,0 +1,14 @@
set(COMPONENT_SRCS
wechat_blufi.c
wechat_security.c
)
set(COMPONENT_ADD_INCLUDEDIRS include)
set(COMPONENT_REQUIRES
bt
nvs_flash
mdns
)
register_component()

View File

@ -0,0 +1,19 @@
set(COMPONENT_SRCS
app_camera.c
app_facenet.c
app_httpserver.c
app_main.c
app_wifi.c
)
set(COMPONENT_ADD_INCLUDEDIRS include)
set(COMPONENT_REQUIRES
esp32-camera
esp-face
esp_http_server
fb_gfx
network_blufi
)
register_component()

View File

@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.5)
set(EXTRA_COMPONENT_DIRS ../../../components)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(recognition_command_line)

View File

@ -0,0 +1,14 @@
set(COMPONENT_SRCS
app_main.cpp
app_facenet.c
app_camera.cpp
)
set(COMPONENT_ADD_INCLUDEDIRS include)
set(COMPONENT_REQUIRES
esp32-camera
esp-face
)
register_component()