728x90
반응형
- 전체 에러 문구
cv2.error: OpenCV(4.9.0) /io/opencv/modules/imgproc/src/filter.simd.hpp:3231: error: (-215:Assertion failed) cn == CV_MAT_CN(dstType) && ddepth >= sdepth in function 'getLinearFilter'
OpenCV에서 seamlessClone함수 사용시 발생 할 수 있는 에러인데요.
seamlessClone()의 파라미터로 주어지는 mask와 src 이미지의 데이터 타입이 달라 발생합니다.
두 개의 데이터 타입을 맞춰주면 됩니다.
- 해결방법
mask = mask.astype(np.uint8)
728x90
반응형