✨ motion_detection diplay on web
parent
c3d07f4c60
commit
a10ccf76d2
|
@ -0,0 +1,8 @@
|
||||||
|
# The following lines of boilerplate have to be in your project's
|
||||||
|
# CMakeLists in this exact order for cmake to work correctly
|
||||||
|
cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
|
set(EXTRA_COMPONENT_DIRS ../../../components)
|
||||||
|
add_compile_options(-fdiagnostics-color=always)
|
||||||
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||||
|
project(motion_detection_web)
|
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
Binary file not shown.
After Width: | Height: | Size: 231 KiB |
|
@ -0,0 +1 @@
|
||||||
|
idf_component_register(SRCS "app_main.cpp")
|
|
@ -0,0 +1,21 @@
|
||||||
|
#include "who_camera.h"
|
||||||
|
#include "who_motion_detection.hpp"
|
||||||
|
#include "app_wifi.h"
|
||||||
|
#include "app_httpd.hpp"
|
||||||
|
#include "app_mdns.h"
|
||||||
|
|
||||||
|
static QueueHandle_t xQueueAIFrame = NULL;
|
||||||
|
static QueueHandle_t xQueueHttpFrame = NULL;
|
||||||
|
|
||||||
|
extern "C" void app_main()
|
||||||
|
{
|
||||||
|
app_wifi_main();
|
||||||
|
app_mdns_main();
|
||||||
|
|
||||||
|
xQueueAIFrame = xQueueCreate(2, sizeof(camera_fb_t *));
|
||||||
|
xQueueHttpFrame = xQueueCreate(2, sizeof(camera_fb_t *));
|
||||||
|
|
||||||
|
register_camera(PIXFORMAT_RGB565, FRAMESIZE_QVGA, 2, xQueueAIFrame);
|
||||||
|
register_motion_detection(xQueueAIFrame, NULL, NULL, xQueueHttpFrame);
|
||||||
|
register_httpd(xQueueHttpFrame, NULL, true);
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
|
||||||
|
|
||||||
|
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y
|
||||||
|
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
|
||||||
|
|
||||||
|
CONFIG_SPIRAM_SPEED_80M=y
|
||||||
|
|
||||||
|
CONFIG_ESP_WIFI_AP_SSID="Motion Detection"
|
||||||
|
|
||||||
|
CONFIG_ESP_TASK_WDT=n
|
||||||
|
|
||||||
|
# Wait for esp-idf stable
|
||||||
|
CONFIG_BOOTLOADER_COMPILER_OPTIMIZATION_PERF=y
|
||||||
|
CONFIG_BOOTLOADER_LOG_LEVEL_NONE=y
|
||||||
|
CONFIG_SPIRAM_MEMTEST=n
|
|
@ -0,0 +1,4 @@
|
||||||
|
CONFIG_ESP32_DEFAULT_CPU_FREQ_240=y
|
||||||
|
CONFIG_ESP32_SPIRAM_SUPPORT=y
|
||||||
|
|
||||||
|
CONFIG_CAMERA_MODULE_ESP_EYE=y
|
|
@ -0,0 +1,7 @@
|
||||||
|
CONFIG_ESP32S2_DEFAULT_CPU_FREQ_240=y
|
||||||
|
CONFIG_ESP32S2_SPIRAM_SUPPORT=y
|
||||||
|
|
||||||
|
CONFIG_ESP32S2_DATA_CACHE_16KB=y
|
||||||
|
ESP32S2_DATA_CACHE_LINE_32B=y
|
||||||
|
|
||||||
|
CONFIG_CAMERA_MODULE_ESP_S2_KALUGA=y
|
|
@ -0,0 +1,10 @@
|
||||||
|
CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240=y
|
||||||
|
CONFIG_ESP32S3_SPIRAM_SUPPORT=y
|
||||||
|
|
||||||
|
CONFIG_ESP32S3_DATA_CACHE_64KB=y
|
||||||
|
CONFIG_ESP32S3_DATA_CACHE_8WAYS=y
|
||||||
|
CONFIG_ESP32S3_DATA_CACHE_LINE_64B=y
|
||||||
|
|
||||||
|
CONFIG_CAMERA_MODULE_ESP_S3_EYE=y
|
||||||
|
CONFIG_ESPTOOLPY_NO_STUB=y
|
||||||
|
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
|
Loading…
Reference in New Issue