From 96a2df24c305d70ff1b9d48fc28814be3f80a498 Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Wed, 5 Dec 2018 07:13:25 +0100 Subject: [PATCH] Fix error in compilation when face detection is off (#8) `mtmn_config` is defined only when face detection is on. --- examples/single_chip/camera_web_server/main/app_httpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/single_chip/camera_web_server/main/app_httpd.c b/examples/single_chip/camera_web_server/main/app_httpd.c index 4440724..af6c8ef 100644 --- a/examples/single_chip/camera_web_server/main/app_httpd.c +++ b/examples/single_chip/camera_web_server/main/app_httpd.c @@ -686,7 +686,7 @@ void app_httpd_main(){ ra_filter_init(&ra_filter, 20); - +#if CONFIG_ESP_FACE_DETECT_ENABLED mtmn_config.min_face = 80; mtmn_config.pyramid = 0.7; mtmn_config.p_threshold.score = 0.6; @@ -697,7 +697,7 @@ void app_httpd_main(){ mtmn_config.o_threshold.score = 0.7; mtmn_config.o_threshold.nms = 0.4; mtmn_config.o_threshold.candidate_number = 1; - +#endif ESP_LOGI(TAG, "Starting web server on port: '%d'", config.server_port); if (httpd_start(&camera_httpd, &config) == ESP_OK) { httpd_register_uri_handler(camera_httpd, &index_uri);