Added check for heading to be parallel to long edge of bounding rectangle. Reduces false heading detections.