Parker Schuh | f2a3493 | 2019-02-16 20:39:19 -0800 | [diff] [blame] | 1 | #ifndef _AOS_VISION_IMAGE_IMAGE_DATASET_H_ |
| 2 | #define _AOS_VISION_IMAGE_IMAGE_DATASET_H_ |
| 3 | |
| 4 | #include <string> |
| 5 | #include <vector> |
| 6 | |
| 7 | namespace aos { |
| 8 | namespace vision { |
| 9 | |
| 10 | struct DatasetFrame { |
| 11 | // TODO: These should be V4L formats ideally. |
| 12 | bool is_jpeg = true; |
| 13 | std::string data; |
| 14 | }; |
| 15 | |
| 16 | std::vector<DatasetFrame> LoadDataset(const std::string &jpeg_list_filename); |
| 17 | |
Parker Schuh | 9e1d169 | 2019-02-24 14:34:04 -0800 | [diff] [blame] | 18 | DatasetFrame LoadFile(const std::string &jpeg_filename); |
| 19 | |
Parker Schuh | f2a3493 | 2019-02-16 20:39:19 -0800 | [diff] [blame] | 20 | } // namespace vision |
| 21 | } // namespace aos |
| 22 | |
| 23 | #endif // _AOS_VISION_IMAGE_IMAGE_DATASET_H_ |