mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 20:46:52 +03:00
Update 20200925
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user