Learn Before
Concept

Exporting / Writing Images

After performing manipulation on the images, we would often want to save a copy for later usage and or for reference. We can use the cv2.imwrite() method to achieve this. We can specify the file type and name with this method.

cv2.imwrite('new_img.jpg', img)

This can be a good embedded feature as users often wish to modify label and then export the labeled photo for usage in ML or general analysis.

0

1

Updated 2021-06-11

Tags

Python Programming Language

Data Science