-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bugfix/fix_gt911_issue' into 'master'
bugfix(p4): Fixed the issue of GT911 malfunction See merge request ae_group/esp-dev-kits!254
- Loading branch information
Showing
204 changed files
with
906 additions
and
69,332 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
25 changes: 25 additions & 0 deletions
25
...ion-ev-board/examples/esp_brookesia_phone/components/apps/camera/app_humanface_detect.cpp
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,25 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include "esp_log.h" | ||
#include "iostream" | ||
#include "human_face_detect.hpp" | ||
#include "dl_tool.hpp" | ||
#include "app_humanface_detect.h" | ||
|
||
static HumanFaceDetect *detect = NULL; | ||
|
||
std::list<dl::detect::result_t> app_humanface_detect(uint16_t *frame, int width, int height) | ||
{ | ||
auto detect_results = detect->run(frame, {width, height, 3}); | ||
|
||
return detect_results; | ||
} | ||
|
||
HumanFaceDetect **get_humanface_detect() | ||
{ | ||
return &detect; | ||
} |
20 changes: 20 additions & 0 deletions
20
...ction-ev-board/examples/esp_brookesia_phone/components/apps/camera/app_humanface_detect.h
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,20 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
#pragma once | ||
|
||
#include "human_face_detect.hpp" | ||
|
||
std::list<dl::detect::result_t> app_humanface_detect(uint16_t *frame, int width, int height); | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
HumanFaceDetect **get_humanface_detect(); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
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
Oops, something went wrong.