Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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)

click to hide/show revision 2
None

updated 2019-12-03 00:57:21 -0600

berak gravatar image

TypeError: UMat() missing required argument 'ranges' (pos 2)

My code is in Python

import cv2
import numpy as np

np

image=cv2.imread('WIN_20191122_15_19_57_Pro') lane_image=np.copy(image)

lane_image=np.copy(image)

gray = cv2.cvtColor(cv2.UMat(lane_image), cv2.COLOR_RGB2GRAY) cv2.imshow("result",gray) cv2.waitKey(0)

cv2.waitKey(0)