Lab Session: Image Segmentation

Jan. 2017


In [1]:
from scipy.misc import imread

birds = imread("birds.jpg")

plt.imshow()
plt.grid(False)


---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-1-24ce83043588> in <module>()
      1 from sklearn.datasets import load_sample_image
----> 2 china = load_sample_image("birds.jpg")
      3 plt.imshow(china)
      4 plt.grid(False)

/Users/jcid/anaconda/lib/python2.7/site-packages/sklearn/datasets/base.pyc in load_sample_image(image_name)
    732             break
    733     if index is None:
--> 734         raise AttributeError("Cannot find sample image: %s" % image_name)
    735     return images.images[index]
    736 

AttributeError: Cannot find sample image: birds.jpg

In [ ]: