Skip to main content

Photos and/or Video from USB WebCan in Java?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
CodeCook
Offline
Joined: 2011-08-24

Can anyone point me as to how to take a picture from a USB WebCam (i.e. Logitech) in Java? I've looked at the Java Media Framework but it looks like really old contents. What the right way to do this in 2011 using Java 6 or Java 7? Also, what the easiest way to capture video from a camera? I'm not looking to build an aplet. I just want to learn how to work with a web cam using Java (if possible). I know that there are for-sale libraries and API's to do this. I'm wondering there's a free open-source project / library available. Does standard Java support this? Thanks guys and gals.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
anaq
Offline
Joined: 2006-04-04

Hi,

I've used the Java Media Framework - yes it's old, but it works... Another way is to use Red5 (java/tomcat server) with flash frontend.

Michael