mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 12:36:52 +03:00
Initial Code v0.1.0
This commit is contained in:
41
code/lib/jomjol_flowcontroll/ClassFlowMakeImage.h
Normal file
41
code/lib/jomjol_flowcontroll/ClassFlowMakeImage.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#pragma once
|
||||
#include "ClassFlow.h"
|
||||
#include "ClassControllCamera.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
static const char* TAG2 = "example";
|
||||
|
||||
#define BLINK_GPIO GPIO_NUM_4
|
||||
|
||||
#define CAMERA_MODEL_AI_THINKER
|
||||
|
||||
|
||||
|
||||
class ClassFlowMakeImage :
|
||||
public ClassFlow
|
||||
{
|
||||
protected:
|
||||
string LogImageLocation;
|
||||
bool isLogImage;
|
||||
float waitbeforepicture;
|
||||
framesize_t ImageSize;
|
||||
bool isImageSize;
|
||||
int ImageQuality;
|
||||
time_t TimeImageTaken;
|
||||
string namerawimage;
|
||||
|
||||
void CopyFile(string input, string output);
|
||||
|
||||
esp_err_t camera_capture();
|
||||
void takePictureWithFlash(int flashdauer);
|
||||
|
||||
public:
|
||||
ClassFlowMakeImage();
|
||||
ClassFlowMakeImage(std::vector<ClassFlow*>* lfc);
|
||||
bool ReadParameter(FILE* pfile, string& aktparamgraph);
|
||||
bool doFlow(string time);
|
||||
time_t getTimeImageTaken();
|
||||
string name(){return "ClassFlowMakeImage";};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user