blob: 10ea13e5c53e913ceba138c8e5070f3637f2d0bc [file] [log] [blame]
Parker Schuhf2a34932019-02-16 20:39:19 -08001#ifndef _AOS_VISION_IMAGE_IMAGE_DATASET_H_
2#define _AOS_VISION_IMAGE_IMAGE_DATASET_H_
3
4#include <string>
5#include <vector>
6
Stephan Pleinesd99b1ee2024-02-02 20:56:44 -08007namespace aos::vision {
Parker Schuhf2a34932019-02-16 20:39:19 -08008
9struct DatasetFrame {
10 // TODO: These should be V4L formats ideally.
11 bool is_jpeg = true;
12 std::string data;
13};
14
15std::vector<DatasetFrame> LoadDataset(const std::string &jpeg_list_filename);
16
Parker Schuh9e1d1692019-02-24 14:34:04 -080017DatasetFrame LoadFile(const std::string &jpeg_filename);
18
Stephan Pleinesd99b1ee2024-02-02 20:56:44 -080019} // namespace aos::vision
Parker Schuhf2a34932019-02-16 20:39:19 -080020
21#endif // _AOS_VISION_IMAGE_IMAGE_DATASET_H_