
cv2.normalize(final, final, 0, 255, cv2.NORM_MINMAX)
cv2.error: OpenCV(4.5.3) :-1: error: (-5:Bad argument) in function 'normalize'
Overload resolution failed:
- Layout of the output array dst is incompatible with cv::Mat (step[ndims-1] != elemsize or step[1] != elemsize*nchannels)
- Expected Ptr<cv::UMat> for argument 'dst'