Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Save Images | Fundamentals of Image Manipulation with Python
Fundamentals of Image Manipulation with Python
course content

Course Content

Fundamentals of Image Manipulation with Python

bookSave Images

In OpenCV, the cv2.imwrite() function is used to save an image to a specified file. The function takes in two required parameters: the file path and the image to be saved. The image can be passed in as a NumPy array or a cv2 object. The function returns a Boolean value indicating whether the save was successful (True or False).

Task
test

Swipe to show code editor

  1. Use the imwrite() function to save the output image as "output.jpg".

Mark tasks as Completed
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

In OpenCV, the cv2.imwrite() function is used to save an image to a specified file. The function takes in two required parameters: the file path and the image to be saved. The image can be passed in as a NumPy array or a cv2 object. The function returns a Boolean value indicating whether the save was successful (True or False).

Task
test

Swipe to show code editor

  1. Use the imwrite() function to save the output image as "output.jpg".

Mark tasks as Completed
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 1. Chapter 3
AVAILABLE TO ULTIMATE ONLY
We're sorry to hear that something went wrong. What happened?
some-alt