TextBlock.h 676 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef __TextBlock_H__
  2. #define __TextBlock_H__
  3. #include <string>
  4. #include <vector>
  5. #include <opencv2/imgproc.hpp>
  6. #ifdef __ANDROID__
  7. #include <android/log.h>
  8. #endif
  9. using namespace cv;
  10. struct TextBlock
  11. {
  12. std::vector<Point2f> boxVertices; // 矩形框的顶点坐标
  13. Point2f boxCenterVer; // 矩形框的中心点
  14. int cluster; //
  15. float angle; // 矩形框的角度
  16. float boxScore;
  17. float blockTime;
  18. std::wstring boxText;
  19. };
  20. struct ModelDataInfor
  21. {
  22. const void* detData;
  23. size_t detLen;
  24. const void* recData;
  25. size_t recLen;
  26. const void* recKeysData;
  27. size_t recKeysLen;
  28. const void* clsData;
  29. size_t clsLen;
  30. };
  31. #endif