Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'cv2.cv2' has no attribute 'COLORMAP_INFERNO' #249

Open
zhu-228 opened this issue Nov 4, 2023 · 0 comments
Open

module 'cv2.cv2' has no attribute 'COLORMAP_INFERNO' #249

zhu-228 opened this issue Nov 4, 2023 · 0 comments

Comments

@zhu-228
Copy link

zhu-228 commented Nov 4, 2023

Hi, I ran the code today and found that it reported the following error, the following error was reported, in utils.py line 195 in the code out = cv2.applyColorMap(np.uint8(out), cv2.COLORMAP_INFERNO) the error was reported as module 'cv2.cv2' has no attribute 'COLORMAP_INFERNO' I changed it to out = cv2.applyColorMap(np.uint8(out), cv2.COLORMAP_JET) and it doesn't report error. But the output image color changed. How to solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant