Page 265 - AI Ver 1.0 Class 10
P. 265
• Let us now crop only the tongue:
• Let us now crop only the red block from the above RGB combination:
Shading a Portion of an Image
The pixel value of the image can be changed to shade the image, make it black or white to hide some portion
of the image.
img[1500:2500,1000:2000]=[255,255,255] #make white shade in given range
plt.imshow(cv2.cvtColor(img, cv2.COLOR_BGR2RGB))#display image with given shade
Computer Vision 263

