Untitled

mail@pastecode.io avatarunknown
plain_text
13 days ago
343 B
1
Indexable
Never
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)