cv2.resize()

Function Definition: cv2.resize(image_array, dsize = (224,224))

Parameters

NameTypeDescriptionExpected ValuesDefault Value
image_arraystringSource/input imageImage Array
dsizelistDesired size for the output imagesize(224,224)

Description

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.

Example

There are no examples documented for this article.