ClassFlowMakeImage.h 857 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. #include "ClassFlow.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 ClassFlow
  9. {
  10. protected:
  11. string LogImageLocation;
  12. bool isLogImage;
  13. float waitbeforepicture;
  14. framesize_t ImageSize;
  15. bool isImageSize;
  16. int ImageQuality;
  17. time_t TimeImageTaken;
  18. string namerawimage;
  19. void CopyFile(string input, string output);
  20. esp_err_t camera_capture();
  21. void takePictureWithFlash(int flashdauer);
  22. public:
  23. ClassFlowMakeImage();
  24. ClassFlowMakeImage(std::vector<ClassFlow*>* lfc);
  25. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  26. bool doFlow(string time);
  27. string getHTMLSingleStep(string host);
  28. time_t getTimeImageTaken();
  29. string name(){return "ClassFlowMakeImage";};
  30. };