Using HDF5 model

You need to implement this by yourself. I’ve told you how to get the original image and the output image, please calculate the reconstruct errors and convert the error to black and white image by yourself.

And then you can replace the GstNvBufSurface content by overriding the NvBufSurface. Please refer to DeepStream SDK FAQ - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums