EV5_Beeldherk_Bomen/example/ex1 - showImg.py

9 lines
203 B
Python
Raw Normal View History

2023-09-06 13:35:15 +02:00
import numpy as np
import cv2
import os
# Load an color image in grayscale
img = cv2.imread(os.path.join(os.getcwd(), './res/balls.png'),0)
cv2.imshow('image',img)
cv2.waitKey(0)
cv2.destroyAllWindows()