I have a series of input images like the one attached. These are images of a television screen, and transformed using Canny Edge. This is not a necessary step, but I thought it would be nicer to illustrate the issue.
What I'd like to do now is find the 4 coordinates of the edges in the big(gest) square in the image. I've taken a look at HoughTransform, but while it detects the image, I have a hard time understanding how this can give me the point of the image.
Basically, I'd like to call a method like:
public Point[] findEdges(BufferedImage image)
Is there any library, algorithm, or anything else out there which can be easily used (it's a simple hobby project) in my Java application which I haven't found yet?