October 2018
Intermediate to advanced
472 pages
10h 57m
English
The first thing in any data science problem is to explore and understand the data. This helps us to make our objective clear. So, let's first load the image and examine the properties of that image, such as the color spectrum and the dimensions:
# Loading image and displayimage = cv2.imread('./ferrari.png')show(image)
Following is the output:

Since the order of the image stored in the memory is Blue Green Red (BGR), we need to convert it into Red Green Blue (RGB):
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)show(image)
Following is the output:
Read now
Unlock full access