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.

34 lines
875 B

3 years ago
3 years ago
3 years ago
3 years ago
  1. /**
  2. * @file camera.cpp
  3. * @author Finny (tianjialong0106@163.com)
  4. * @brief
  5. * @version 0.1
  6. * @date 2022-09-26
  7. *
  8. * @copyright Copyright (c) 2022
  9. *
  10. */
  11. #include "camera.h"
  12. #include "who_camera.h"
  13. #include "who_motion_detection.hpp"
  14. #include "who_lcd.h"
  15. static QueueHandle_t xQueueAIFrame = NULL;
  16. static QueueHandle_t xQueueLCDFrame = NULL;
  17. void camera_motion_detection_init(void)
  18. {
  19. xQueueAIFrame = xQueueCreate(2, sizeof(camera_fb_t *));
  20. xQueueLCDFrame = xQueueCreate(2, sizeof(camera_fb_t *));
  21. register_camera(PIXFORMAT_RGB565, FRAMESIZE_240X240, 2, xQueueAIFrame);
  22. register_motion_detection(xQueueAIFrame, NULL, NULL, xQueueLCDFrame);
  23. register_lcd(xQueueLCDFrame, NULL, true);
  24. }
  25. void camera_init(void) {}
  26. void camera_registered_cb(void) {}
  27. void camera_taking_pictures(void) {}
  28. bool camera_recognition_reaction_plate(void) { return false; }