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.

16 lines
551 B

  1. #include "camera.h"
  2. #include "who_camera.h"
  3. #include "who_motion_detection.hpp"
  4. #include "who_lcd.h"
  5. static QueueHandle_t xQueueAIFrame = NULL;
  6. static QueueHandle_t xQueueLCDFrame = NULL;
  7. void camera_motion_detection_init(void)
  8. {
  9. xQueueAIFrame = xQueueCreate(2, sizeof(camera_fb_t *));
  10. xQueueLCDFrame = xQueueCreate(2, sizeof(camera_fb_t *));
  11. register_camera(PIXFORMAT_RGB565, FRAMESIZE_240X240, 2, xQueueAIFrame);
  12. register_motion_detection(xQueueAIFrame, NULL, NULL, xQueueLCDFrame);
  13. register_lcd(xQueueLCDFrame, NULL, true);
  14. }