MyTetra Share
Делитесь знаниями!
wait for ESC
Время создания: 21.06.2017 21:34
Раздел: Python - Модули - OpenCV - images
Запись: xintrea/mytetra_db_mcold/master/base/1498069731rwzey0t16r/text.html на raw.githubusercontent.com
# coding: utf8

import numpy as np
import cv2

img = cv2.imread(
'sc.bmp',0)
cv2.imshow(
'image',img)
k = cv2.waitKey(
0)
if k == 27: # wait for ESC key to exit
cv2.destroyAllWindows()
elif k == ord('s'): # wait for 's' key to save and exit
cv2.imwrite('messigray.png',img)
cv2.destroyAllWindows()
 
MyTetra Share v.0.59
Яндекс индекс цитирования