I'm working with openCV library in Python and I have very strange behaviour:
I have a code like this:
...
img = cv2.imread(imgpath)
key = cv2.waitKey(1)
if key == ord('p'):
do_something()
else:
print key, ord('p')
...
When I'm running my code and pressing p
button, I can see the following:
1048688 112
It means that integer representation of p
button is 1048688, but expected 112.
What is strange yet, this code was working during a few last days, but now it's not working. I haven't any changes in this code.
Any ideas? It it possible that something changed in system?