123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- #ifndef OPENCV_DATASETS_VOC_PASCAL_HPP
- #define OPENCV_DATASETS_VOC_PASCAL_HPP
- #include <string>
- #include <vector>
- #include "opencv2/datasets/dataset.hpp"
- #include <opencv2/core.hpp>
- namespace cv
- {
- namespace datasets
- {
- struct PascalPart: public Object
- {
- std::string name;
- int xmin;
- int ymin;
- int xmax;
- int ymax;
- };
- struct PascalObj: public PascalPart
- {
- std::string pose;
- bool truncated;
- bool difficult;
- bool occluded;
- std::vector<PascalPart> parts;
- };
- struct OR_pascalObj : public Object
- {
- std::string filename;
- int width;
- int height;
- int depth;
- std::vector<PascalObj> objects;
- };
- class CV_EXPORTS OR_pascal : public Dataset
- {
- public:
- virtual void load(const std::string &path) = 0;
- static Ptr<OR_pascal> create();
- };
- }
- }
- #endif
|