Capturing Image from Webcam in Java

Capturing a single image from my webcam in Java or Python

On windows it is easy to interact with your webcam with pygame:

from VideoCapture import Device
cam = Device()
cam.saveSnapshot('image.jpg')

I haven't tried using pygame on linux (all my linux boxen are servers without X), but this link might be helpful http://www.jperla.com/blog/post/capturing-frames-from-a-webcam-on-linux

java capture webcam image

May be old, but it is quite reliable and simple. Give it a try!

You can find alternatives like FMJ, which is API-compatible with JMF.

Xuggle is very good too.



Related Topics



Leave a reply



Submit