EV5_Beeldherk_Bomen/example/ex1 - showImg.py

9 lines
203 B
Python

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()