We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import cv2 import numpy as np from matplotlib import pyplot as plt
img = cv2.imread('../../pictures/threshold.jpg') img = img[17:159,3:147] cv2.namedWindow('image',cv2.WINDOW_NORMAL) cv2.imshow('image',img)
MY PROBLEM STARTS AT THIS POINT OF THE CODE (SOMETHING DOES NOT GO RIGHT WITH THE CV2.WAITKEY(0) AND THE K==115 OR K==ORD('S') .
_**while(1): k = cv2.waitKey(0) & 0xFF
if k == 27 : #wait ESC key to exit break elif k == 115 : #wait for 's' key to save and exit cv2.imwrite('../../pictures/threshold.jpg',img) break
cv2.destroyWindow('image')**_
The text was updated successfully, but these errors were encountered:
No branches or pull requests
import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('../../pictures/threshold.jpg')
img = img[17:159,3:147]
cv2.namedWindow('image',cv2.WINDOW_NORMAL)
cv2.imshow('image',img)
MY PROBLEM STARTS AT THIS POINT OF THE CODE (SOMETHING DOES NOT GO RIGHT WITH THE
CV2.WAITKEY(0) AND THE K==115 OR K==ORD('S') .
_**while(1):
k = cv2.waitKey(0) & 0xFF
cv2.destroyWindow('image')**_
The text was updated successfully, but these errors were encountered: