currently, I'm working on a document scanner project who captures and filter document with different effects and color but I'm a beginner to work with OpenCV.
but, now I understand how medianBlurFilter , gaussianBlurFilter , cannyFilter and bilateralFilter works.
just I am starting to do this type of filter with the use of OpenCV but I can't understand how to achieve this.
Input :
How to achieve this?:


