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.

42 lines
1020 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
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. #include "light.h"
  16. static QueueHandle_t xQueueAIFrame = NULL;
  17. static QueueHandle_t xQueueLCDFrame = NULL;
  18. void camera_motion_detection_init(void)
  19. {
  20. xQueueAIFrame = xQueueCreate(2, sizeof(camera_fb_t *));
  21. xQueueLCDFrame = xQueueCreate(2, sizeof(camera_fb_t *));
  22. register_camera(PIXFORMAT_RGB565, FRAMESIZE_240X240, 2, xQueueAIFrame);
  23. register_motion_detection(xQueueAIFrame, NULL, NULL, xQueueLCDFrame);
  24. register_lcd(xQueueLCDFrame, NULL, true);
  25. }
  26. void camera_init(void) {}
  27. void camera_registered_cb(void) {}
  28. void camera_taking_pictures(void)
  29. {
  30. //打开补光灯
  31. T_camera_fill_light_set_level(true);
  32. //关闭补光灯
  33. T_camera_fill_light_set_level(false);
  34. }
  35. bool camera_recognition_reaction_plate(void) { return false; }