Skip to content

Commit b89709d

Browse files
committed
3.27
1 parent 73680db commit b89709d

File tree

4 files changed

+2
-7
lines changed

4 files changed

+2
-7
lines changed

examples/usercmodule/BSP/Image-Recognition/esp_face_detection.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,9 @@ void face_detection_task(void *pvParameters) {
4040
HumanFaceDetectMNP01 detector2(0.4F, 0.3F, 10);
4141
while (true) {
4242
camera_fb_t *frame = esp_camera_fb_get();
43-
printf("idf1\n");
4443
if (frame != NULL) {
4544
std::list<dl::detect::result_t> &detect_candidates = detector.infer((uint16_t *)frame->buf, {(int)frame->height, (int)frame->width, 3});
4645
std::list<dl::detect::result_t> &detect_results = detector2.infer((uint16_t *)frame->buf, {(int)frame->height, (int)frame->width, 3}, detect_candidates);
47-
printf("idf2\n");
48-
// xSemaphoreTake(face_mutex, portMAX_DELAY);
4946
face_result.num = detect_results.size();
5047
if (!detect_results.empty()) {
5148
auto prediction = detect_results.begin();
@@ -97,7 +94,6 @@ mp_obj_t esp_face_detection(void) {
9794
mp_obj_new_int(face_result.y1),
9895
mp_obj_new_int(face_result.y2)
9996
};
100-
printf("jieguo\n");
10197
// xSemaphoreGive(face_mutex);
10298
return mp_obj_new_list(5, elements);
10399
}

examples/usercmodule/micropython.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ include(${CMAKE_CURRENT_LIST_DIR}/cexample/micropython.cmake)
99
# Add the CPP example.
1010
include(${CMAKE_CURRENT_LIST_DIR}/cppexample/micropython.cmake)
1111

12-
include(${CMAKE_CURRENT_LIST_DIR}/BSP/models/micropython.cmake)
12+
#include(${CMAKE_CURRENT_LIST_DIR}/BSP/models/micropython.cmake)
1313
include(${CMAKE_CURRENT_LIST_DIR}/BSP/CAMERA/micropython.cmake)
1414
include(${CMAKE_CURRENT_LIST_DIR}/BSP/AUDIO/micropython.cmake)
1515
include(${CMAKE_CURRENT_LIST_DIR}/BSP/Image-Recognition/micropython.cmake)

ports/esp32/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
#include "usb_serial_jtag.h"
6161
#include "modmachine.h"
6262
#include "modnetwork.h"
63-
6463
#if MICROPY_BLUETOOTH_NIMBLE
6564
#include "extmod/modbluetooth.h"
6665
#endif

ports/esp32/mpconfigport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
#elif CONFIG_IDF_TARGET_ESP32S2 && !CONFIG_SPIRAM
3636
#define MICROPY_GC_INITIAL_HEAP_SIZE (36 * 1024)
3737
#else
38-
#define MICROPY_GC_INITIAL_HEAP_SIZE (64 * 1024)
38+
#define MICROPY_GC_INITIAL_HEAP_SIZE (128 * 1024)
3939
#endif
4040
#endif
4141

0 commit comments

Comments
 (0)