How to accept image as user input in python
<p>I writing a program on image processing. At the moment, I have included, the image name in the program. 
I am trying out, if its possible, for the user to input the image, so the program is able to serve any image.</p>

<p>There is a way to accept user input in python, but how can i accept an image as a input, the path the leads to the image.??</p>

<p>first few lines of the program, looking for way, to accept the image  "house1.jpg" from the user. The path for this image in my pc is "C:\Python27\house1"</p>

<pre><code>import Image
#open the images
im1 = Image.open("house1.jpg").convert("L")
im2 = Image.open("house2.jpg").convert("L")

im1.save(house1.jpg")
im2.save(house2.jpg")

sizex, sizey = im1.size
</code></pre>

<p>....</p>
