File size: 296 Bytes
387c3d6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import numpy
import cv2
File = open("out.txt", 'r+')
content = File.read()
val = 0
l = []
for i in content.split("\n"):
if(i != ''):
val = int(i, 16)
l.append(val)
else:
continue
bgrImage = numpy.array(l).reshape(450, 900, 3)
cv2.imwrite('STITCH1.jpg', bgrImage)
|