mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 20:46:52 +03:00
* Show image for flow not started + take image
* Update
* Adding new images
* .
* Avoid multiple Access-Control-Allow-Origin * (#1859)
* Avoid multiple Access-Control-Allow-Origin *
* Adapt loglevel to debug
* Update build.yaml
* .
* New state "initialization (delayed)", renaming
* Overview: Renamed "Status" + switched position
* Improve data logging on errors (#1839)
* use error level for log if "Rate to High" or "Negative Rate"
* remove redundant data logging
* .
* .
* update time also in case of an error
* move calculation of difference to the top as discussed in PR 1839
Co-authored-by: CaCO3 <caco@ruinelli.ch>
* Heap tracing (#1861)
* Update sdkconfig.esp32cam-dev-task-analysis.defaults
* Update defines.h
* Update platformio.ini
* Update main.cpp
* Update defines.h
* Update ClassFlowCNNGeneral.cpp
* Update platformio.ini
* disable HIMEM (external > 4mb ram) not used (#1864)
#force disable HIMEM as not used in default config, can be enabled with [env:esp32cam-dev-himem]
#free 256kb of internal memory :
#I (2112) esp_himem: Initialized. Using last 8 32KB address blocks for bank switching on 4352 KB of physical memory.
CONFIG_SPIRAM_BANKSWITCH_ENABLE=n
#CONFIG_SPIRAM_BANKSWITCH_RESERVE is not set
* Update ota_page.html (#1866)
Fixed the firework to match the actual button text.
Fixed other random typos.
* add AlignmentAlgo=off option (#1867)
* Replace outdated wiki links, wording (#1871)
* Revert "add AlignmentAlgo=off option (#1867)" (#1876)
This reverts commit 3de4cc7c56.
* fixed typo (#1881)
Co-authored-by: CaCO3 <caco@ruinelli.ch>
* Show WIFI signal text labels / Log RSSI value to logfile (#1877)
* Overview: WIFI RSSI strength text labels
* Log RSSI value (debug level)
* Typo
* Update config.ini (#1880)
* Update Changelog.md for release (#1892)
Co-authored-by: github-actions <github-actions@github.com>
* Update Changelog.md
* Remove newline in version (#1891)
* remove newline in version
* .
* .
Co-authored-by: CaCO3 <caco@ruinelli.ch>
Co-authored-by: CaCO3 <caco@ruinelli.ch>
Co-authored-by: CaCO3 <caco3@ruinelli.ch>
Co-authored-by: Nicolas Liaudat <nliaudat@users.noreply.github.com>
Co-authored-by: AngryApostrophe <89547888+AngryApostrophe@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
95 lines
2.2 KiB
C++
95 lines
2.2 KiB
C++
#pragma once
|
|
|
|
#ifndef CLASSFLOWCONTROLL_H
|
|
#define CLASSFLOWCONTROLL_H
|
|
|
|
#include <string>
|
|
|
|
#include "ClassFlow.h"
|
|
#include "ClassFlowMakeImage.h"
|
|
#include "ClassFlowAlignment.h"
|
|
#include "ClassFlowCNNGeneral.h"
|
|
#include "ClassFlowPostProcessing.h"
|
|
#ifdef ENABLE_MQTT
|
|
#include "ClassFlowMQTT.h"
|
|
#endif //ENABLE_MQTT
|
|
#ifdef ENABLE_INFLUXDB
|
|
#include "ClassFlowInfluxDB.h"
|
|
#endif //ENABLE_INFLUXDB
|
|
#include "ClassFlowCNNGeneral.h"
|
|
#include "ClassFlowWriteList.h"
|
|
|
|
class ClassFlowControll :
|
|
public ClassFlow
|
|
{
|
|
protected:
|
|
std::vector<ClassFlow*> FlowControll;
|
|
ClassFlowPostProcessing* flowpostprocessing;
|
|
ClassFlowAlignment* flowalignment;
|
|
ClassFlowCNNGeneral* flowanalog;
|
|
ClassFlowCNNGeneral* flowdigit;
|
|
// ClassFlowDigit* flowdigit;
|
|
ClassFlowMakeImage* flowmakeimage;
|
|
ClassFlow* CreateClassFlow(std::string _type);
|
|
|
|
bool AutoStart;
|
|
float AutoIntervall;
|
|
bool SetupModeActive;
|
|
void SetInitialParameter(void);
|
|
std::string aktstatus;
|
|
int aktRunNr;
|
|
|
|
public:
|
|
void InitFlow(std::string config);
|
|
bool doFlow(string time);
|
|
void doFlowMakeImageOnly(string time);
|
|
bool getStatusSetupModus(){return SetupModeActive;};
|
|
string getReadout(bool _rawvalue, bool _noerror);
|
|
string getReadoutAll(int _type);
|
|
string UpdatePrevalue(std::string _newvalue, std::string _numbers, bool _extern);
|
|
string GetPrevalue(std::string _number = "");
|
|
bool ReadParameter(FILE* pfile, string& aktparamgraph);
|
|
string getJSON();
|
|
string getNumbersName();
|
|
|
|
string TranslateAktstatus(std::string _input);
|
|
|
|
#ifdef ENABLE_MQTT
|
|
string GetMQTTMainTopic();
|
|
#endif //ENABLE_MQTT
|
|
|
|
#ifdef ALGROI_LOAD_FROM_MEM_AS_JPG
|
|
void DigitalDrawROI(CImageBasis *_zw);
|
|
void AnalogDrawROI(CImageBasis *_zw);
|
|
#endif
|
|
|
|
esp_err_t GetJPGStream(std::string _fn, httpd_req_t *req);
|
|
esp_err_t SendRawJPG(httpd_req_t *req);
|
|
|
|
std::string doSingleStep(std::string _stepname, std::string _host);
|
|
|
|
bool isAutoStart(long &_intervall);
|
|
|
|
std::string* getActStatus();
|
|
void setActStatus(std::string _aktstatus);
|
|
|
|
std::vector<HTMLInfo*> GetAllDigital();
|
|
std::vector<HTMLInfo*> GetAllAnalog();
|
|
|
|
t_CNNType GetTypeDigital();
|
|
t_CNNType GetTypeAnalog();
|
|
|
|
#ifdef ENABLE_MQTT
|
|
bool StartMQTTService();
|
|
#endif //ENABLE_MQTT
|
|
|
|
int CleanTempFolder();
|
|
|
|
string name(){return "ClassFlowControll";};
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|