October 2018
Intermediate to advanced
472 pages
10h 57m
English
We will be scaling down the image dimensions, for which we will be using the cv2.resize() function:
max_dimension = max(image.shape)scale = 700/max_dimensionimage = cv2.resize(image, None, fx=scale,fy=scale)
Now we will perform a blur operation to make the pixels more normalized, for which we will be using the Gaussian kernel. Gaussian filters are very popular in the research field and are used for various operations, one of which is the blurring effect that reduces the noise and balances the image. The following code performs a blur operation:
image_blur = cv2.GaussianBlur(image, (7, 7), 0)
Then we will convert the RGB-based image into an HSV color spectrum, which will help us to extract other characteristics of the ...
Read now
Unlock full access