Removed outliers based on contour hierarchy and convexity.
Detected required 24 corners.
Process current frame only if all 6 inner squares are detected.
Switched to a 3x3 median filter.

To-do: Label the detected corners properly.