Removing the background noise of a captcha image by replicating the chopping filter of TesserCap

后端 未结 2 778
梦毁少年i
梦毁少年i 2021-02-01 10:12

I have a captcha image that looks like this:

\"\"

Using a utility called TesserCap from McAfee, I could app

2条回答
  •  梦毁少年i
    2021-02-01 10:32

    Try something like this (pseudocode):

    for each row of pixels:
        if there is a group of about 3 or more pixels in a row, leave them
        else remove the pixels
    

    Then simply repeat the same thing for the columns. Seems like it might work at least a little. Going both horizontally and vertically like this will remove horizontal/vertical lines as well.

提交回复
热议问题