I'm using Python + Scipy + Scikit-image + numpy for the first time.
I'm using this page for help, and I've only changed the given code a bit to pick up an image of my liking:
tree = misc.imread('C:\\Users\\app\\Pictures\\treephoto1.jpg')
type(tree)
<type 'numpy.ndarray' >
tree.shape, tree.dtype((512, 512), dtype('uint8'))
But I'm getting the following error:
type(tree) <type 'numpy.ndarray'>
^
SyntaxError: invalid syntax
What's wrong with the syntax? I'm using python 2.7 on Windows, and all the related toolkits are also according to Python 2.7.
I need to convert the image to a 2-D numpy array so that I can use the canny edge detector with it.