Untitled

 avatar
unknown
plain_text
2 years ago
343 B
5
Indexable
import cv2
# Load the image image = cv2.imread("image.jpg")
# Get the dimensions of the image height, width, channels = image.shape
# Calculate the total number of pixels total_pixels = height * width 
print("Height of the image:", height) 
print("Width of the image:", width) 
print("Total number of pixels in the image:", total_pixels)
Editor is loading...