blob: f33cca735bfe7f142517f2c42cb8e863e9410647 [file] [log] [blame]
Austin Schuh4e2629d2019-03-28 14:44:37 -07001#ifndef Y2019_VISION_IMAGE_WRITER_H_
2#define Y2019_VISION_IMAGE_WRITER_H_
3
4#include <string>
5
6#include "aos/vision/image/image_types.h"
7
8namespace y2019 {
9namespace vision {
10
11class ImageWriter {
12 public:
13 ImageWriter();
14
15 void WriteImage(::aos::vision::DataRef data);
16
17 private:
18 void SetDirPath();
19
20 ::std::string file_prefix_ = std::string("debug_viewer_jpeg_");
21 ::std::string dir_path_;
22
23 unsigned int image_count_ = 0;
24};
25
26} // namespace vision
27} // namespace y2017
28
29#endif // Y2019_VISION_IMAGE_WRITER_H_