WRITING A NEW IMAGE IN PYTHON

Photo of author

By Jackson Taylor

Home » Topic » Python & OpenCv » WRITING A NEW IMAGE IN PYTHON
import cv2
                     img = cv2.imread('IMAGE_1.PNG',0) #reads the image
                     cv2.imwrite('output.PNG',img)
                     cv2.waitKey(0)
                     cv2.destroyAllWindows()
more examples
See also
POWER LINE COMMUNICATION BASED ENERGY BILLING AND LOAD CONTROLLING

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works