Resizing an image means changing its dimensions of it, be it width alone, height alone, or changing both of them. Also, the aspect ratio of the original image could be preserved in the resized image. To resize an image, OpenCV provides cv2.resize() function.
Table of Contents
cv2.resize()
Function Definition: cv2.resize(image_array, dsize = (224,224))
- Python Library: Open CV
- Library Import: import cv2
- Mode: Stage Mode
Parameters
| Name | Type | Description | Expected Values | Default Value |
|---|---|---|---|---|
| image_array | string | Source/input image | Image Array | |
| dsize | list | Desired size for the output image | size | (224,224) |
Description
Example
There are no examples documented for this article.
