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

UserWarning #18

Open
sachinblue opened this issue Aug 27, 2019 · 1 comment
Open

UserWarning #18

sachinblue opened this issue Aug 27, 2019 · 1 comment

Comments

@sachinblue
Copy link

In sd.run() I am getting following error.

alyn-test/myenv/local/lib/python2.7/site-packages/skimage/io/_io.py:49: UserWarning: `as_grey` has been deprecated in favor of `as_gray`
  warn('`as_grey` has been deprecated in favor of `as_gray`')
@charu212
Copy link

charu212 commented Dec 6, 2019

use cv2.cvtcolor to covert it into grayscale instead of converting the image to gray scale during importing using skimage imread

#img = io.imread(img_file, as_grey=True)
img=cv2.imread(img_file) # changes are made here
img= cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)

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

2 participants