You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1020 B
43 lines
1020 B
/**
|
|
* @file camera.cpp
|
|
* @author Finny (tianjialong0106@163.com)
|
|
* @brief
|
|
* @version 0.1
|
|
* @date 2022-09-26
|
|
*
|
|
* @copyright Copyright (c) 2022
|
|
*
|
|
*/
|
|
#include "camera.h"
|
|
#include "who_camera.h"
|
|
#include "who_motion_detection.hpp"
|
|
#include "who_lcd.h"
|
|
#include "light.h"
|
|
|
|
static QueueHandle_t xQueueAIFrame = NULL;
|
|
static QueueHandle_t xQueueLCDFrame = NULL;
|
|
|
|
void camera_motion_detection_init(void)
|
|
{
|
|
xQueueAIFrame = xQueueCreate(2, sizeof(camera_fb_t *));
|
|
xQueueLCDFrame = xQueueCreate(2, sizeof(camera_fb_t *));
|
|
|
|
register_camera(PIXFORMAT_RGB565, FRAMESIZE_240X240, 2, xQueueAIFrame);
|
|
register_motion_detection(xQueueAIFrame, NULL, NULL, xQueueLCDFrame);
|
|
register_lcd(xQueueLCDFrame, NULL, true);
|
|
}
|
|
|
|
void camera_init(void) {}
|
|
|
|
void camera_registered_cb(void) {}
|
|
|
|
void camera_taking_pictures(void)
|
|
{
|
|
//打开补光灯
|
|
T_camera_fill_light_set_level(true);
|
|
|
|
//关闭补光灯
|
|
T_camera_fill_light_set_level(false);
|
|
}
|
|
|
|
bool camera_recognition_reaction_plate(void) { return false; }
|