mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-09 13:06:54 +03:00
Update 20201119
This commit is contained in:
@@ -90,7 +90,6 @@ bool ClassFlowPostProcessing::LoadPreValue(void)
|
||||
void ClassFlowPostProcessing::SavePreValue(float value, string zwtime)
|
||||
{
|
||||
FILE* pFile;
|
||||
PreValue = value;
|
||||
|
||||
pFile = fopen(FilePreValue.c_str(), "w");
|
||||
|
||||
@@ -323,6 +322,9 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
|
||||
}
|
||||
Value = std::stof(ReturnValue);
|
||||
ReturnValueNoError = ReturnValue;
|
||||
|
||||
PreValueOkay = true;
|
||||
PreValue = Value;
|
||||
|
||||
SavePreValue(Value, zwtime);
|
||||
}
|
||||
@@ -360,7 +362,11 @@ bool ClassFlowPostProcessing::doFlow(string zwtime)
|
||||
ReturnValue = ReturnValue + "\t" + error;
|
||||
|
||||
if (error.length() == 0)
|
||||
{
|
||||
PreValue = Value;
|
||||
SavePreValue(Value, zwtime);
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user