I am trying to select a Region of Interest using cv2.selectROI() by using a namedWindow("name",WINDOW_AUTOSIZE)
But when I select the ROI I cannot visualize the box.
With namedWindow("name",WINDOW_NORMAL) the box is visible, it works.
if __name__ == '__main__' :
# Read image
im = cv2.imread("386368.jpg")
showCrosshair = False
fromCenter = False
cv2.namedWindow("Image",2)
r = cv2.selectROI("Image", im, fromCenter, showCrosshair)
cv2.waitKey(30)
Same problem when I use cv2.resize() too. Should I increase the waitKey value? or How can I solve this issue.