![]() Plt.imshow(cv2.cvtColor(img, cv2.COLOR_BGR2RGB))Įxample – 1: Resize the Image to Half By Calculating Pixel Size We can see the original size of the image is 800×534 Next, we will read a sample image for our example and display it. Import matplotlib.pyplot as plt Read Sample Image and Display Let us start by importing the OpenCV library as shown below. Neighborhood, it produces the highest quality but is slow.Įxamples of cv2.resize() in Python OpenCV
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |