diff --git a/components/esp-face b/components/esp-face index b94b0ab..e9b3b9a 160000 --- a/components/esp-face +++ b/components/esp-face @@ -1 +1 @@ -Subproject commit b94b0ab005c253937001327cceb9d83d41c49a88 +Subproject commit e9b3b9a1366b798916ec5d194828362aec675cdb diff --git a/examples/single_chip/recognition_with_command_line/main/app_camera.cpp b/examples/single_chip/recognition_with_command_line/main/app_camera.cpp index 1670caa..df99c11 100644 --- a/examples/single_chip/recognition_with_command_line/main/app_camera.cpp +++ b/examples/single_chip/recognition_with_command_line/main/app_camera.cpp @@ -74,5 +74,11 @@ void app_camera_init() return; } - vTaskDelay(200 / portTICK_PERIOD_MS); + sensor_t * s = esp_camera_sensor_get(); + //initial sensors are flipped vertically and colors are a bit saturated + if (s->id.PID == OV3660_PID) { + s->set_vflip(s, 1);//flip it back + s->set_brightness(s, 1);//up the blightness just a bit + s->set_saturation(s, -2);//lower the saturation + } } diff --git a/examples/single_chip/recognition_with_command_line/main/app_facenet.c b/examples/single_chip/recognition_with_command_line/main/app_facenet.c index 1794345..e4106f7 100644 --- a/examples/single_chip/recognition_with_command_line/main/app_facenet.c +++ b/examples/single_chip/recognition_with_command_line/main/app_facenet.c @@ -174,11 +174,11 @@ void task_process(void *arg) int matched_id = recognize_face(&id_list, aligned_face); if (matched_id >= 0) - ESP_LOGI(TAG, "Matched Face ID: %d\n", matched_id); + ESP_LOGI(TAG, "Matched Face ID: %d", matched_id); else - ESP_LOGI(TAG, "No Matched Face ID\n"); + ESP_LOGI(TAG, "No Matched Face ID"); - ESP_LOGI(TAG, "Recognition time consumption: %lldms", + ESP_LOGI(TAG, "Recognition time consumption: %lldms\n", (esp_timer_get_time() - recog_match_time) / 1000); } }