To resize the width and height of the image.
To set up and run the script, follow the instructions below:
-
Install the required dependencies:
cv2
-
Run the script:
- Execute the script using a Python interpreter.
The script performs the following steps:
- Imports the necessary libraries (
cv2
). - Take an image named 'input_image.jpg'.
- Execute the script, you will see the output_image.jpg file generated by the script which is resized.
The script saves the generated output image as "output_image.jpg" in the current directory which contains the resized image.
Author: Tisha Garg