Forums

PIL Capture and store images

I am using Debian Linux and Python 2.7 with PIL. I want to capture an image from a webcam and store it in a file. What are the ways in which this can be done? Also,I want to covert the image for modification using Scipy. What is the procedure.for this.

Hi subhradeep -- is this running on PythonAnywhere? If so, because your code runs on our servers, you'd need to write a web app, and in the web pages for your app you'd need to use JavaScript to control the webcam. This Stack Overflow post has some hints on how to do that.

If it's on your own machine and isn't using PythonAnywhere, I don't know the answer -- but perhaps someone else here might be able to chime in?

I need to run the code on raspberry pi on Debian Wheezy

This probably isn't the best place to get help, then -- it's the forums for PythonAnywhere, an online Python development environment and hosting service.

Still, it's possible that there's someone else in the forums here who's done what you're trying to do and might be able to help. Anyone?

Anyways thanks for the help