Python, Machine Learning, Artificial Intelligence, Data Science, Data Analytics.
another module- np. >>> import np >>> fromraw=np.fromfile(‘demo.raw’,dtype=np.uint8) >>> fromraw.shape (2359296,) >>> fromraw.shape=(768, 1024, 3) For much larger data, we can use memory mapping: >>> memmap=np.memmap(‘demo.raw’,dtype=np.uint8,shape=(768,1024,3)) This reads data from the file but