Complete the code to get the shape of the image array.
image_shape = image.[1]The shape property gives the dimensions of the image array, such as height, width, and channels.
Complete the code to find the data type of the image pixels.
image_type = image.[1]The dtype property tells you the data type of the image pixels, like uint8 or float32.
Fix the error in the code to get the total number of pixels in the image.
total_pixels = image.[1]The size property returns the total number of elements (pixels) in the image array.
Fill both blanks to create a dictionary with image shape and data type.
image_info = {'shape': image.[1], 'dtype': image.[2]This dictionary stores the image's dimensions under 'shape' and the pixel data type under 'dtype'.
Fill all three blanks to create a summary string with image shape, data type, and total pixels.
summary = f"Shape: {image.[1], Type: {image.[2], Pixels: {image.[3]"
This string shows the image's shape, data type, and total number of pixels for a quick overview.