mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 12:36:52 +03:00
* comment translation * translation part #2 * code translation from DE to ENG #part3 * translation #4 * dismantled =>splitted * bereich => range * Update defines.h Co-authored-by: jomjol <30766535+jomjol@users.noreply.github.com>
51 lines
1.0 KiB
C++
51 lines
1.0 KiB
C++
#pragma once
|
|
#include "ClassFlowImage.h"
|
|
#include "ClassControllCamera.h"
|
|
#include "../../include/defines.h"
|
|
|
|
#include <string>
|
|
|
|
class ClassFlowMakeImage :
|
|
public ClassFlowImage
|
|
{
|
|
protected:
|
|
float waitbeforepicture;
|
|
float waitbeforepicture_store;
|
|
framesize_t ImageSize;
|
|
bool isImageSize;
|
|
int ImageQuality;
|
|
time_t TimeImageTaken;
|
|
string namerawimage;
|
|
int image_height, image_width;
|
|
bool SaveAllFiles;
|
|
bool FixedExposure;
|
|
|
|
|
|
|
|
void CopyFile(string input, string output);
|
|
|
|
esp_err_t camera_capture();
|
|
void takePictureWithFlash(int flash_duration);
|
|
|
|
|
|
void SetInitialParameter(void);
|
|
|
|
public:
|
|
CImageBasis *rawImage;
|
|
|
|
ClassFlowMakeImage(std::vector<ClassFlow*>* lfc);
|
|
|
|
bool ReadParameter(FILE* pfile, string& aktparamgraph);
|
|
bool doFlow(string time);
|
|
string getHTMLSingleStep(string host);
|
|
time_t getTimeImageTaken();
|
|
string name(){return "ClassFlowMakeImage";};
|
|
|
|
ImageData* SendRawImage();
|
|
esp_err_t SendRawJPG(httpd_req_t *req);
|
|
|
|
~ClassFlowMakeImage(void);
|
|
};
|
|
|
|
|