ClassFlowDigit.h 745 B

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #include "ClassFlowImage.h"
  3. #include "Helper.h"
  4. #include <string>
  5. struct roi {
  6. int posx, posy, deltax, deltay;
  7. int resultklasse;
  8. string name;
  9. roi* next;
  10. };
  11. class ClassFlowDigit :
  12. public ClassFlowImage
  13. {
  14. protected:
  15. std::vector<roi*> ROI;
  16. string cnnmodelfile;
  17. int modelxsize, modelysize;
  18. bool doNeuralNetwork(string time);
  19. bool doAlignAndCut(string time);
  20. public:
  21. ClassFlowDigit();
  22. ClassFlowDigit(std::vector<ClassFlow*>* lfc);
  23. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  24. bool doFlow(string time);
  25. string getHTMLSingleStep(string host);
  26. string getReadout();
  27. std::vector<HTMLInfo*> GetHTMLInfo();
  28. string name(){return "ClassFlowDigit";};
  29. };