#ifndef __OCR_STRUCT_H__ #define __OCR_STRUCT_H__ #include #include struct ScaleParam { int srcWidth; int srcHeight; int dstWidth; int dstHeight; float ratioWidth; float ratioHeight; }; struct TextBox { std::vector boxPoint; float score; }; struct Angle { int index; float score; double time; }; struct TextLine { std::string text; std::vector charScores; double time; }; struct TextBlock { std::vector boxPoint; float boxScore; int angleIndex; float angleScore; double angleTime; std::string text; std::vector charScores; double crnnTime; double blockTime; }; struct OcrResult { double dbNetTime; std::vector textBlocks; cv::Mat boxImg; double detectTime; std::string strRes; }; #endif //__OCR_STRUCT_H__