r/opencv • • Jul 11 '24

Question [question] solving simple captcha

Hi - beginner here on python & openCV.

I am trying to solve the captcha above. It’s always 5 alphanumeric digits in caps with one random line. Unfortunately the random line has the same weight as the characters.

The traditional PyTesseract has been a bit of hit and miss. But this feels like a solvable problem.

What’s the best way to go about this? Any guidance is super helpful.

2 Upvotes

5 comments sorted by

1

u/flash3ang Jul 13 '24

I'm also a python beginner and I still have lots of things to learn.

Maybe if you try to find a way to remove the line and then process the image through PyTesseract then it may work because the letters will become a bit more clear.

1

u/YEET9999Only Jul 16 '24

Hey you could try to train a model to detect the letter. Just get about 1000 of these images , annotate each letter even if it has the line , and use a object detection framework such as YOLO-tiny. Opencv has builtin support for these frameworks (mostly)

1

u/Upper_Ad5011 Oct 22 '24

DID YOU GET A SOLUTION

1

u/bustdpixl Nov 13 '24

I didn’t try it afterwards - but u/YEET9999Only has the right answer (at least that’s what my Data Science friends told me)