mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-07 03:56:57 +03:00
* Add files via upload * Add files via upload * Add files via upload * Add files via upload * Add files via upload * Add files via upload * Add files via upload * Add files via upload
40 lines
891 B
C++
40 lines
891 B
C++
#pragma once
|
|
|
|
#ifndef CLASSFFLOWTAKEIMAGE_H
|
|
#define CLASSFFLOWTAKEIMAGE_H
|
|
|
|
#include "ClassFlowImage.h"
|
|
#include "ClassControllCamera.h"
|
|
#include "../../include/defines.h"
|
|
|
|
#include <string>
|
|
|
|
class ClassFlowTakeImage : public ClassFlowImage
|
|
{
|
|
protected:
|
|
time_t TimeImageTaken;
|
|
string namerawimage;
|
|
|
|
esp_err_t camera_capture(void);
|
|
void takePictureWithFlash(int flash_duration);
|
|
|
|
void SetInitialParameter(void);
|
|
|
|
public:
|
|
CImageBasis *rawImage;
|
|
|
|
ClassFlowTakeImage(std::vector<ClassFlow *> *lfc);
|
|
|
|
bool ReadParameter(FILE *pfile, string &aktparamgraph);
|
|
bool doFlow(string time);
|
|
string getHTMLSingleStep(string host);
|
|
time_t getTimeImageTaken(void);
|
|
string name() { return "ClassFlowTakeImage"; };
|
|
|
|
ImageData *SendRawImage(void);
|
|
esp_err_t SendRawJPG(httpd_req_t *req);
|
|
|
|
~ClassFlowTakeImage(void);
|
|
};
|
|
|
|
#endif // CLASSFFLOWTAKEIMAGE_H
|