How to remove border of microsoft word in text image in opencv ?
I have this picture which the border make by Microsoft word office :
I want to remove the border make by Microsoft word office to be like this :
so how I can do it ?
In Microsoft Office i don't know ;) but the simples static way using OpenCV is to define a mask, where the inner region (where the text is) is set to 0 and the outer region (where the stripe is) is set to 255. Afterwards call
image.setTo(Scalar(255,255,255), mask);