I\'m streaming a png image from my iPhone to my MacBook over tcp. The MacBook code is from http://docs.python.org/library/socketserver.html#requesthandler-objects. How can t
This works for me (these days):
import cv2 import numpy as np data = open('016e263c726a.raw').read() x = np.frombuffer(data, dtype='uint8').reshape(2048,2448) cv2.imshow('x',x); cv2.waitKey(); cv2.destroyAllWindows()
But it reads a RAW image saved without any specific format.