OpenCV assignment 2 for detecting the bounds and points of a door in a noisy environment, and determine whether or not it is open