learnopencv icon indicating copy to clipboard operation
learnopencv copied to clipboard

module 'cv2.cv2' has no attribute 'createTonemapDurand'

Open hongbojia opened this issue 5 years ago • 1 comments

Hi ,there is a error that module 'cv2.cv2' has no attribute 'createTonemapDurand'.I want to know how can I save it. Thank you !!!

hongbojia avatar Sep 24 '20 12:09 hongbojia

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?

brmarkus avatar Sep 24 '20 14:09 brmarkus