Python-opencv: Read image data from stdin,cv2.waitKey()