Question: The road.png is shown here. Use the following python code to load the road.png file. Make sure to save the road.png file in the same
The road.png is shown here. Use the following python code to load the road.png file. Make sure to save the road.png file in the same directory where the python file is executing. Using the PyCharm software, and in the same directory where the road.png file is saved
import cv2 # Reading the image using imread() function image = cv2.imread('road.png') # Extracting the height and width of an image h, w = image.shape[:2] # Displaying the height and width print("Height = {}, Width = {}".format(h, w))
Height = 299, Width = 449

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
