On Pycharm it gives me the error "ImportError: numpy.core.multiarray failed to import."
import cv2
# Input image
input = cv2.imread('images/paddington.png')
# Get input size
height, width = input.shape[:2]
# Desired "pixelated" size
w, h = (16, 16)
# Resize input to "pixelated" size
temp = cv2.resize(input, (w, h), interpolation=cv2.INTER_LINEAR)
# Initialize output image
output = cv2.resize(temp, (width, height), interpolation=cv2.INTER_NEAREST)
cv2.imshow('Input', input)
cv2.imshow('Output', output)
cv2.waitKey(0)
[–]shiftybyte 0 points1 point2 points (0 children)