2022-01-24 15:57:30 +08:00
|
|
|
#include "who_camera.h"
|
|
|
|
#include "who_cat_face_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();
|
|
|
|
|
|
|
|
xQueueAIFrame = xQueueCreate(2, sizeof(camera_fb_t *));
|
|
|
|
xQueueHttpFrame = xQueueCreate(2, sizeof(camera_fb_t *));
|
|
|
|
|
|
|
|
register_camera(PIXFORMAT_RGB565, FRAMESIZE_QVGA, 2, xQueueAIFrame);
|
2023-03-02 19:35:31 +08:00
|
|
|
app_mdns_main();
|
2022-01-24 15:57:30 +08:00
|
|
|
register_cat_face_detection(xQueueAIFrame, NULL, NULL, xQueueHttpFrame);
|
|
|
|
register_httpd(xQueueHttpFrame, NULL, true);
|
2023-03-02 19:35:31 +08:00
|
|
|
}
|