Answers for "cv2 get image size"

3

opencv get image size

img = cv2.imread('myImage.jpg')
height, width, channels = img.shape
Posted by: Guest on May-24-2021
2

python cv2 get image shape

import cv2

input_image = cv2.imread('path to image')

input_image_height, input_image_width, input_image_channels = input_image.shape
Posted by: Guest on May-24-2021

Python Answers by Framework

Browse Popular Code Answers by Language