Reputation: 531
I need the user input after showing an image, but the problem is that the image window will not close and will freeze. Do you have some solution or alternative that I can use to get the user input?
Code:
import cv2
img = cv2.imread("begin.jpg")
cv2.imshow("test",img)
cv2.destroyAllWindows()
raw_input("test:")
Problem: Window that show image will not close
Cause: raw_input(). Removing the raw_input() the window closes as expected.
I expect more than one character from the user.
Thank you so much
Upvotes: 1
Views: 7071
Reputation: 11
I had the same problem: I found the next info in openCV DevZone, it looks like a bug: http://code.opencv.org/issues/2911 it works for me.
Upvotes: 1