mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2026-01-27 04:40:39 +03:00
test1
This commit is contained in:
@@ -3,75 +3,75 @@
|
||||
#ifndef CLASSFFLOWPOSTPROCESSING_H
|
||||
#define CLASSFFLOWPOSTPROCESSING_H
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "ClassFlow.h"
|
||||
#include "ClassFlowTakeImage.h"
|
||||
#include "ClassFlowCNNGeneral.h"
|
||||
#include "ClassFlowDefineTypes.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class ClassFlowPostProcessing :
|
||||
public ClassFlow
|
||||
class ClassFlowPostProcessing : public ClassFlow
|
||||
{
|
||||
protected:
|
||||
bool UpdatePreValueINI;
|
||||
|
||||
int PreValueAgeStartup;
|
||||
int PreValueAgeStartup;
|
||||
bool ErrorMessage;
|
||||
|
||||
ClassFlowCNNGeneral* flowAnalog;
|
||||
ClassFlowCNNGeneral* flowDigit;
|
||||
|
||||
string FilePreValue;
|
||||
ClassFlowCNNGeneral *flowAnalog;
|
||||
ClassFlowCNNGeneral *flowDigit;
|
||||
|
||||
std::string FilePreValue;
|
||||
|
||||
ClassFlowTakeImage *flowTakeImage;
|
||||
|
||||
bool LoadPreValue(void);
|
||||
string ShiftDecimal(string in, int _decShift);
|
||||
std::string ShiftDecimal(std::string in, int _decShift);
|
||||
|
||||
string ErsetzteN(string, double _prevalue);
|
||||
float checkDigitConsistency(double input, int _decilamshift, bool _isanalog, double _preValue);
|
||||
std::string ErsetzteN(std::string, double _prevalue);
|
||||
|
||||
void InitNUMBERS();
|
||||
|
||||
void handleDecimalSeparator(string _decsep, string _value);
|
||||
void handleMaxRateValue(string _decsep, string _value);
|
||||
void handleDecimalExtendedResolution(string _decsep, string _value);
|
||||
void handleMaxRateType(string _decsep, string _value);
|
||||
void handleAnalogToDigitTransitionStart(string _decsep, string _value);
|
||||
void handleAllowNegativeRate(string _decsep, string _value);
|
||||
void handleIgnoreLeadingNaN(string _decsep, string _value);
|
||||
void handleChangeRateThreshold(string _decsep, string _value);
|
||||
void handlecheckDigitIncreaseConsistency(std::string _decsep, std::string _value);
|
||||
|
||||
void handleDecimalSeparator(std::string _decsep, std::string _value);
|
||||
void handleMaxRateValue(std::string _decsep, std::string _value);
|
||||
void handleDecimalExtendedResolution(std::string _decsep, std::string _value);
|
||||
void handleMaxRateType(std::string _decsep, std::string _value);
|
||||
void handleAnalogToDigitTransitionStart(std::string _decsep, std::string _value);
|
||||
void handleAllowNegativeRate(std::string _decsep, std::string _value);
|
||||
void handleIgnoreLeadingNaN(std::string _decsep, std::string _value);
|
||||
void handleChangeRateThreshold(std::string _decsep, std::string _value);
|
||||
void handleMaxFlowRate(std::string _decsep, std::string _value);
|
||||
|
||||
std::vector<double> addNumbersTogether(std::vector<double> DigitValues, std::vector<double> AnalogValues);
|
||||
|
||||
void WriteDataLog(int _index);
|
||||
|
||||
public:
|
||||
bool PreValueUse;
|
||||
std::vector<NumberPost*> NUMBERS;
|
||||
std::vector<NumberPost *> NUMBERS;
|
||||
|
||||
ClassFlowPostProcessing(std::vector<ClassFlow*>* lfc, ClassFlowCNNGeneral *_analog, ClassFlowCNNGeneral *_digit);
|
||||
virtual ~ClassFlowPostProcessing(){};
|
||||
bool ReadParameter(FILE* pfile, string& aktparamgraph);
|
||||
bool doFlow(string time);
|
||||
string getReadout(int _number);
|
||||
string getReadoutParam(bool _rawValue, bool _noerror, int _number = 0);
|
||||
string getReadoutError(int _number = 0);
|
||||
string getReadoutRate(int _number = 0);
|
||||
string getReadoutTimeStamp(int _number = 0);
|
||||
ClassFlowPostProcessing(std::vector<ClassFlow *> *lfc, ClassFlowCNNGeneral *_analog, ClassFlowCNNGeneral *_digit);
|
||||
virtual ~ClassFlowPostProcessing() {};
|
||||
bool ReadParameter(FILE *pFile, std::string &aktparamgraph);
|
||||
bool doFlow(std::string time);
|
||||
std::string getReadout(int _number);
|
||||
std::string getReadoutParam(bool _rawValue, bool _noerror, int _number = 0);
|
||||
std::string getReadoutError(int _number = 0);
|
||||
std::string getReadoutRate(int _number = 0);
|
||||
std::string getReadoutTimeStamp(int _number = 0);
|
||||
void SavePreValue();
|
||||
string getJsonFromNumber(int i, std::string _lineend);
|
||||
string GetPreValue(std::string _number = "");
|
||||
bool SetPreValue(double zw, string _numbers, bool _extern = false);
|
||||
std::string getJsonFromNumber(int i, std::string _lineend);
|
||||
std::string GetPreValue(std::string _number = "");
|
||||
bool SetPreValue(double _newvalue, string _numbers, bool _extern = false);
|
||||
|
||||
std::string GetJSON(std::string _lineend = "\n");
|
||||
std::string getNumbersName();
|
||||
|
||||
void UpdateNachkommaDecimalShift();
|
||||
|
||||
std::vector<NumberPost*>* GetNumbers(){return &NUMBERS;};
|
||||
std::vector<NumberPost *> *GetNumbers() { return &NUMBERS; };
|
||||
|
||||
string name(){return "ClassFlowPostProcessing";};
|
||||
std::string name() { return "ClassFlowPostProcessing"; };
|
||||
};
|
||||
|
||||
#endif //CLASSFFLOWPOSTPROCESSING_H
|
||||
#endif // CLASSFFLOWPOSTPROCESSING_H
|
||||
|
||||
Reference in New Issue
Block a user