9/3/2023 0 Comments Opencv image resize![]() Width of the output image remains unchanged from that of the source image. In the following example, we will scale the image only along y-axis or Vertical axis. Output Image cv2.resize() along width or horizontal axis 3. Output = cv2.resize(src, dsize, interpolation = cv2.INTER_AREA)Ĭv2.imwrite('D:/cv2-resize-image-width.png',output) In the dsize, we will keep the height same as that of original image but change the width. And we keep the height of the image unchanged. In the following example, we will scale the image only along x-axis or Horizontal axis. Output Image cv2.resize() preserving aspect ratio 2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |