+ 1

How to add Image In Python3?

How to add Image In Python3? Kindly Tell me in details.. I hope you people can Help..thanks

27th Oct 2019, 7:27 AM
Saleem
Saleem - avatar
2 Antworten
+ 1
There are two popular image libraries for python PIL and Opencv Install them with pip, and to show an image With PIL: from PIL import Image im = Image.open("image.jpg") im.show() With opencv: import cv2 img = cv2.imread("test.jpg") cv2.imshow('image',img)
27th Oct 2019, 10:41 AM
Danila Karpov
Danila Karpov - avatar
0
thank u so much
27th Oct 2019, 12:13 PM
Saleem
Saleem - avatar