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 | |
Stephan Pleines | d99b1ee | 2024-02-02 20:56:44 -0800 | [diff] [blame] | 8 | namespace y2019::vision { |
Austin Schuh | 4e2629d | 2019-03-28 14:44:37 -0700 | [diff] [blame] | 9 | |
| 10 | class 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 Pleines | d99b1ee | 2024-02-02 20:56:44 -0800 | [diff] [blame] | 25 | } // namespace y2019::vision |
Austin Schuh | 4e2629d | 2019-03-28 14:44:37 -0700 | [diff] [blame] | 26 | |
| 27 | #endif // Y2019_VISION_IMAGE_WRITER_H_ |