I have an opencv image:
img = cv2.imread(filename)
img = cv2.GaussianBlur(img, (5, 5), 0.15)
now I want to write it directly into zip
zipf = zipfile.ZipFile('out.zip', 'w', zipfile.ZIP_DEFLATED)
zipf.write(...)
Guess it's something to do with cv2.imencode()
but not sure.
Can you help? Thanks