cv2 报错
error: OpenCV(4.6.0) /io/opencv/modules/imgproc/src/color.simd_helpers.hpp:94: error: (-2:Unspecified error) in function ‘cv::impl::{anonymous}::CvtHelper
Unsupported depth of input image:
‘VDepth::contains(depth)’
where
‘depth’ is 6 (CV_64F)
调整数据的类型即可, np.float32 或者 uint8
cv2.cvtColor(over.astype("uint8"), cv2.COLOR_RGB2BGR)
上一篇:DVWA_xss
下一篇:查找算法之费氏搜寻法