To preface, I understand cv2.threshold can be used to apply Otsu\'s and cv2.rectangle can be used to create rectangles for an image. Code for Context:<