TypeError: UMat() missing required argument 'ranges' (pos 2)
My code is in Python
import cv2
import numpy as np
image=cv2.imread('WIN_20191122_15_19_57_Pro')
lane_image=np.copy(image)
gray = cv2.cvtColor(cv2.UMat(lane_image), cv2.COLOR_RGB2GRAY)
cv2.imshow("result",gray)
cv2.waitKey(0)