This example uses median filtering to remove noise. Images with salt and pepper noise are a good fit for this filter.
pre-processing_denoise.pygraph
factory_with_noise.png
gst-launch-1.0 filesrc location="factory_with_noise.png" ! pngdec ! videoconvert ! videomedian ! imagefreeze ! xvimagesink