Answers for "how to capture photo with cv2 in python"

8

how to print image with cv2

cv2.imshow('image',img)
cv2.waitKey(0)
Posted by: Guest on February-27-2021
0

image in cv2

img = cv2.imread('img/cat.png') #img folder is in same file/path as .ipynb file

cv2.imshow('image', img)
cv2.waitKey(0)
cv2.destroyAllWindows()
Posted by: Guest on April-19-2022

Browse Popular Code Answers by Language