I want to use the current array to be the output array of the blur operation made in the frame image and im getting this error:
TypeError: <unknown> is not a numpy array
I already checked and both are arrays of the same size and type, I dont understand why this is happening.
Part of the code:
previous = np.zeros((frameHeight,frameWidth,3),np.uint8) #blank image with 640x480 and 3 channels
difference = np.zeros((frameHeight,frameWidth,3),np.uint8)
current = np.zeros((frameHeight,frameWidth,3),np.uint8)
while True:
# Capture a frame
flag,frame = capture.read()
cv2.flip(frame, flipCode=1)
# Difference between frames
cv2.blur(frame, current, (15,15))