ClassFlowMakeImage.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #pragma once
  2. #include "ClassFlowImage.h"
  3. #include "ClassControllCamera.h"
  4. #include <string>
  5. #ifndef BLINK_GPIO
  6. #define BLINK_GPIO GPIO_NUM_4
  7. #endif
  8. #define CAMERA_MODEL_AI_THINKER
  9. class ClassFlowMakeImage :
  10. public ClassFlowImage
  11. {
  12. protected:
  13. float waitbeforepicture;
  14. float waitbeforepicture_store;
  15. framesize_t ImageSize;
  16. bool isImageSize;
  17. int ImageQuality;
  18. time_t TimeImageTaken;
  19. string namerawimage;
  20. int image_height, image_width;
  21. bool SaveAllFiles;
  22. bool FixedExposure;
  23. void CopyFile(string input, string output);
  24. esp_err_t camera_capture();
  25. void takePictureWithFlash(int flashdauer);
  26. void SetInitialParameter(void);
  27. public:
  28. CImageBasis *rawImage;
  29. ClassFlowMakeImage(std::vector<ClassFlow*>* lfc);
  30. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  31. bool doFlow(string time);
  32. string getHTMLSingleStep(string host);
  33. time_t getTimeImageTaken();
  34. string name(){return "ClassFlowMakeImage";};
  35. ImageData* SendRawImage();
  36. esp_err_t SendRawJPG(httpd_req_t *req);
  37. ~ClassFlowMakeImage(void);
  38. };