OpenCV TypeError: Expected cv::UMat for argument 'src' - What is this?

后端 未结 11 1351
故里飘歌
故里飘歌 2020-12-01 15:44

Disclaimer: huge openCV noob

Traceback (most recent call last):

File \"lanes2.py\", line 22, in

canny = canny(lane_image)         


        
11条回答
  •  情歌与酒
    2020-12-01 16:24

    gray = cv2.cvtColor(cv2.UMat(imgUMat), cv2.COLOR_RGB2GRAY)
    

    UMat is a part of the Transparent API (TAPI) than help to write one code for the CPU and OpenCL implementations.

提交回复
热议问题