current position:Home>What's the matter with cv2 image to pixel conversion

What's the matter with cv2 image to pixel conversion

2022-08-06 12:33:03CSDN Q&A

What's going on

Traceback (most recent call last): File"C:/Users/Administrator/Desktop/python/pixelimageconversion.py", line 3, in  grey = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

copyright notice
author[CSDN Q&A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/218/202207302100557984.html

Random recommended