Go to the source code of this file.
Functions | |
| void | DumpNvBufSurface (NvBufSurface *in_surface, NvDsBatchMeta *batch_meta, const std::string &image_name, guint frame_num, GstVideoFormat video_fmt, void *&scratch_nvbuf_surface, bool batched_mode=true, PrettyLogger *logger=nullptr) |
| Dumps NvBufSurface data to file. More... | |
| bool | dump_tensor (const Tensor &tensor, const std::string &image_name, bool batched_mode=true, PrettyLogger *logger=nullptr) |
| Dump tensor as a raw data file. More... | |
| bool dump_tensor | ( | const Tensor & | tensor, |
| const std::string & | image_name, | ||
| bool | batched_mode = true, |
||
| PrettyLogger * | logger = nullptr |
||
| ) |
Dump tensor as a raw data file.
This function dumps the tensor data to a raw file format with appropriate extensions based on the tensor data type and channel count.
| tensor | The Tensor structure containing all tensor information |
| image_name | Base name for the output file |
| batched_mode | True to create a single tiled image with all batches, false for individual files |
| logger | PrettyLogger instance for logging dump operations |
| void DumpNvBufSurface | ( | NvBufSurface * | in_surface, |
| NvDsBatchMeta * | batch_meta, | ||
| const std::string & | image_name, | ||
| guint | frame_num, | ||
| GstVideoFormat | video_fmt, | ||
| void *& | scratch_nvbuf_surface, | ||
| bool | batched_mode = true, |
||
| PrettyLogger * | logger = nullptr |
||
| ) |
Dumps NvBufSurface data to file.
This function dumps the raw frame data from an NvBufSurface to a file. The file format is determined by the video format of the surface.
| in_surface | The NvBufSurface to dump |
| batch_meta | Metadata associated with the surface |
| image_name | Base name for output files |
| frame_num | Current frame number for naming |
| video_fmt | Input video format enumeration |
| scratch_nvbuf_surface | Scratch buffer for copying device memory to host |
| batched_mode | True to create a single tiled image with all batches, false for individual files |
| logger | PrettyLogger instance for logging dump operations |