SAIFIINDUSTRIES's picture
Add Batch 5 with 10 repos
387c3d6 verified
Raw
History Blame Contribute Delete
296 Bytes
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)