I am trying to extract the circled word from an image containing several different words.
For example, in this image:
The "MAMBAHUNT" word should be extracted because it's circled.
My strategy so far is to find the straight lines in the image. Once I have the straight lines, I can get the intersections of them to find the corners and extract the desired image.
The way I've been trying to get the straight lines is by looping through each pixel and finding where several of them in a row have the same color. However, that gives false positives because some of the words would meet this criterion.
Is there a better way to find straight lines in an image using PHP? Or a different strategy for extracting the circled word?