📅  最后修改于: 2022-03-11 14:59:17.857000             🧑  作者: Mango
The image is not in valid type. Use np.float32(image) instead of just image.
Example:
gray = cv2.cvtColor(np.float32(imgUMat), cv2.COLOR_RGB2GRAY)