Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What does img.shape return for a color image?
Remember, color images have multiple channels.
What function in OpenCV is used to read an image?
Look for the function that begins with 'cv2.'
What function is used to read an image in OpenCV?
Focus on image input functions from OpenCV.
True or False: A grayscale image can have a shape of (300, 400, 3).
Think about the characteristics of grayscale images.
You have a grayscale image of size 640x480. Write a Python snippet using OpenCV to read the image and to print the shape. Explain the expected output.
Consider how grayscale images store data.
You are tasked to resize a 1920x1080 color image to fit a model that requires 256x256 images. Write the code and describe the role of image shape in this context.
Think about how resizing impacts model accuracy.
4 more questions in this section. Enroll free to practise them all.
Enroll free