An attempt at using template matching for detecting if the door is up or down