Practical Programs (8-15)
Practical Programs (8-15)
Code:
# creating dictionary
person = {"name": "Priya", "age": 18, "address": "Delhi", "phone number": "5575-1234"}
# printing dictionary
print(person)
Code:
Aim: Write a program Load an image and Give the title of the image.
Code:
import cv2
import numpy as np
img = cv2.imread('octopus.png')
#Display Image
plt.imshow(img)
plt.title('Octopus')
plt.axis('off')
plt.show()
Code:
import cv2
import numpy as np
img = cv2.imread('octopus.png')
plt.imshow(cv2.cvtColor(img, cv2.COLOR_BGR2RGB))
plt.title('Octopus')
plt.axis('off')
plt.show()