esp-who/examples/cat_face_detection/lcd/main/app_main.cpp

19 lines
554 B
C++
Raw Normal View History

#include "who_camera.h"
#include "who_cat_face_detection.hpp"
#include "who_lcd.h"
#include "who_trace.h"
static QueueHandle_t xQueueAIFrame = NULL;
static QueueHandle_t xQueueLCDFrame = NULL;
extern "C" void app_main()
{
xQueueAIFrame = xQueueCreate(2, sizeof(camera_fb_t *));
xQueueLCDFrame = xQueueCreate(2, sizeof(camera_fb_t *));
register_camera(PIXFORMAT_RGB565, FRAMESIZE_240X240, 2, xQueueAIFrame);
register_cat_face_detection(xQueueAIFrame, NULL, NULL, xQueueLCDFrame, false);
register_lcd(xQueueLCDFrame, NULL, true);
}