1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- #ifndef OPENCV_DATASETS_TR_SVT_HPP
- #define OPENCV_DATASETS_TR_SVT_HPP
- #include <string>
- #include <vector>
- #include "opencv2/datasets/dataset.hpp"
- #include <opencv2/core.hpp>
- namespace cv
- {
- namespace datasets
- {
- struct tag
- {
- std::string value;
- int height, width, x, y;
- };
- struct TR_svtObj : public Object
- {
- std::string fileName;
- std::vector<std::string> lex;
- std::vector<tag> tags;
- };
- class CV_EXPORTS TR_svt : public Dataset
- {
- public:
- virtual void load(const std::string &path) = 0;
- static Ptr<TR_svt> create();
- };
- }
- }
- #endif
|