12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- /*M
- #ifndef OPENCV_DATASETS_OR_MNIST_HPP
- #define OPENCV_DATASETS_OR_MNIST_HPP
- #include <string>
- #include <vector>
- #include "opencv2/datasets/dataset.hpp"
- #include <opencv2/core.hpp>
- namespace cv
- {
- namespace datasets
- {
- struct OR_mnistObj : public Object
- {
- char label;
- Mat image;
- };
- class CV_EXPORTS OR_mnist : public Dataset
- {
- public:
- virtual void load(const std::string &path) = 0;
- static Ptr<OR_mnist> create();
- };
- }
- }
- #endif
|