Task: Get Image Dimensions Using Python OpenCV2 (cv2)
Task: Get Image Dimensions Using Python OpenCV2 (cv2): a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that uses OpenCV2 (cv2) to load an image and extract its dimensions in the format (width, height) . The script should demonstrate the correct way to get image size using the…
The task
Write a Python script that uses OpenCV2 (cv2) to load an image and extract its dimensions in the format `(width, height)`. The script should demonstrate the correct way to get image size using the cv2/numpy interface.
Part of PrimeIntellect/Terminal-Lego-15k.