learnopencv
learnopencv copied to clipboard
module 'cv2.cv2' has no attribute 'createTonemapDurand'
Hi ,there is a error that module 'cv2.cv2' has no attribute 'createTonemapDurand'.I want to know how can I save it. Thank you !!!
If you check the OpenCV documentation, e.g. for OpenCV in version v4.4.0 here: "https://docs.opencv.org/4.4.0/de/daa/group__xphoto.html#ga51a091aa54e26b3546316ce2c1df190b" the "namespace" looks like this:
retval = cv.xphoto.createTonemapDurand( [, gamma[, contrast[, saturation[, sigma_color[, sigma_space]]]]] )
Are you referring to old source code, maybe the module/namespace has changed to "xphoto" in the meantime?