ClassFlowMakeImage.h 1.0 KB

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