An algorithm that has plagued several days to find an idea
For example, it is probably an "against", which is composed of "1", and there are scattered "1" around it ", I want to remove these scattered "1. My idea is to calculate the number of "1" connected together. when the number of "1" does not exceed a constant, set them to 0 to get the stored block.
Simply put, I want to obtain the number of "1" in a pattern composed of "1", which is composed of "1" in.
. How to write this algorithm? my algorithm is so bad.
Reply to discussion (solution)
Gaussian noise reduction algorithm
Take the surrounding area of each point to see if it is three consecutive steps (there can be one shift ). No, it must be deleted.
Take the surrounding area of each point to see if it is three consecutive steps (there can be one shift ). No, it must be deleted.
At the beginning, recursive continuous checks are used. The results show that the efficiency is too low...
Gaussian noise reduction algorithm
Baidu and Google have little information. can I provide a link to the instance code?
I think we can only use graphics-related algorithms and mathematical algorithms to avoid the mistaken removal of vertices on I in against.
I think we can only use graphics-related algorithms and mathematical algorithms to avoid the mistaken removal of vertices on I in against.
Are you recommended?
Wood, not familiar with graphics
Can go to graphic images/machine vision http://bbs.csdn.net/forums/ST_Image ask
All I think is to generate an against image in a font, which is different from the source image, but it does not seem to be a good solution.
Wood, not familiar with graphics
Can go to graphic images/machine vision http://bbs.csdn.net/forums/ST_Image ask
All I think is to generate an against image in a font, which is different from the source image, but it does not seem to be a good solution.
Oh, anyway, thx
Your requirement may be related to this http://bbs.csdn.net/topics/390438979
This is exactly the same as your idea. I use it as an array, scan each character row by row, and then count the percentage. In fact, the efficiency is low and scary.
Your requirement may be related to this http://bbs.csdn.net/topics/390438979
Worship!
Your requirement may be related to this http://bbs.csdn.net/topics/390438979
Worship!
The principle is probably the same. the learning mentioned in the software is nothing more than adding a verification code library. I think the main difficulty is to remove interference from the front and extract relatively pure word blocks.