I tried to show region of interest (ROI) based on drawContours area roi2 = clone1[contour[[0]]] cv2.imshow("roi2", roi2) instead of rectangle
roi2 = clone1[contour[[0]]]
cv2.imshow("roi2", roi2)