by adlez on Wed Aug 04, 2010 5:46 pm ([msg=43266]see Captcha Breaking with PHP GD[/msg])
I have a captcha, all backgrounds are the same, all letters are in 40x40 circles. I'm able to filter out everything so that I have 5 cicles each containing a letter, I just am not sure how to detect where the circles are. So if any of you have any suggestions on how to detect each circle, any help is greatly appreaciated.
by TheMindRapist on Thu Aug 05, 2010 11:13 am ([msg=43309]see Re: Captcha Breaking with PHP GD[/msg])
Is that the original image or the result of running your program? I'm guessing the latter. If so, can we see some example images of the originals please?
As far as splitting them up, if they are always spaced so evenly with little overlap you might just be able to cut the image into 5 pieces with 40px width, detecting where to start by looking for the first x value that has a black pixel somewhere along the x=value line.
by scoon1329 on Thu Aug 05, 2010 7:46 pm ([msg=43318]see Re: Captcha Breaking with PHP GD[/msg])
Or find the corresponding x value of the peak in y of each circle (as they don't overlap vertically) and cut at (x - 20) and (x + 20). Did that make sense, not sure it does when I read it back to myself...
by adlez on Thu Aug 05, 2010 8:46 pm ([msg=43319]see Re: Captcha Breaking with PHP GD[/msg])
I think I sorta understand what you are saying. I just woke up so maybe it will be more clear shortly. And ah that does help. If I'm thinking this right, the first x,y it comes to should be the peak of the cicle, so I will mess around with it and see how that goes. Thanks for the help though.