blob: 27dcb4af1587aa72f9321b675285da81c818a918 [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
Stephan Pleinesd99b1ee2024-02-02 20:56:44 -08008namespace y2019::vision {
Austin Schuh4e2629d2019-03-28 14:44:37 -07009
10class ImageWriter {
11 public:
12 ImageWriter();
13
14 void WriteImage(::aos::vision::DataRef data);
15
16 private:
17 void SetDirPath();
18
19 ::std::string file_prefix_ = std::string("debug_viewer_jpeg_");
20 ::std::string dir_path_;
21
22 unsigned int image_count_ = 0;
23};
24
Stephan Pleinesd99b1ee2024-02-02 20:56:44 -080025} // namespace y2019::vision
Austin Schuh4e2629d2019-03-28 14:44:37 -070026
27#endif // Y2019_VISION_IMAGE_WRITER_H_