Update 20200925

This commit is contained in:
jomjol
2020-09-25 08:42:45 +02:00
parent 0868c22ac6
commit a08144cc9f
15 changed files with 392 additions and 25 deletions

View File

@@ -10,6 +10,8 @@
#include "CTfLiteClass.h"
#endif
#include "ClassLogFile.h"
ClassFlowAnalog::ClassFlowAnalog()
{
isLogImage = false;
@@ -140,7 +142,10 @@ string ClassFlowAnalog::getHTMLSingleStep(string host)
bool ClassFlowAnalog::doFlow(string time)
{
doAlignAndCut(time);
if (!doAlignAndCut(time)){
return false;
};
doNeuralNetwork(time);
return true;
@@ -160,6 +165,12 @@ bool ClassFlowAnalog::doAlignAndCut(string time)
CImageBasis *img_roi = NULL;
CAlignAndCutImage *caic = new CAlignAndCutImage(input);
if (!caic->ImageOkay()){
LogFile.WriteToFile("ClassFlowAnalog::doAlignAndCut not okay!");
delete caic;
return false;
}
if (input_roi.length() > 0)
img_roi = new CImageBasis(input_roi);