I have been able to detect circular coins and find brightness & radii values but not a heptagon. I have used hough-circle in open cv to find circle and found brightness