Austin Schuh | 4e2629d | 2019-03-28 14:44:37 -0700 | [diff] [blame] | 1 | #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 | |
| 8 | namespace y2019 { |
| 9 | namespace vision { |
| 10 | |
| 11 | class 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_ |