Cleaning up captcha image

前端 未结 3 1496
忘掉有多难
忘掉有多难 2021-02-01 19:12

I\'m trying to clean up the image above I\'ve tried several different methods using open cv, I either erode the original image too much to the point where parts of the

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 19:46

    This is not a very robust solution but it might be help full in most of the cases:

    By seeing the image sample posted above i can observe one common feature about the diagonal lines that they either start or end at the image edges while the text which we are interested in are in the middle so in this way we can determine the pixel values of those diagonal lines by searching them in the first and last few rows and columns of the image matrix and eliminate them as noise. And this approach also might be less time costly.

提交回复
热议问题