123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- #ifndef OPENCV_DATASETS_TR_ICDAR_HPP
- #define OPENCV_DATASETS_TR_ICDAR_HPP
- #include <string>
- #include <vector>
- #include "opencv2/datasets/dataset.hpp"
- #include <opencv2/core.hpp>
- namespace cv
- {
- namespace datasets
- {
- struct word
- {
- std::string value;
- int height, width, x, y;
- };
- struct TR_icdarObj : public Object
- {
- std::string fileName;
- std::vector<std::string> lex100;
- std::vector<std::string> lexFull;
- std::vector<word> words;
- };
- class CV_EXPORTS TR_icdar : public Dataset
- {
- public:
- virtual void load(const std::string &path) = 0;
- static Ptr<TR_icdar> create();
- };
- }
- }
- #endif
|