• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

web camera -- java

 
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am designing a java project which need a web camera. Which product has java SDK ?

I am always wondering, how java control a hardware, such as sensor, web camera? people said we need firstly C coding (ioctl) ,then use JNI to wrap it. Some people said we just need to access specific file. And some people said we need to programming serial port communication.

Which one is right?

Thanks
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose it depends what type of webcam you have....I played with TimCam @ http://timcam.sourceforge.net/ a bit. It uses Java Media Framework to talk to the camera. In my case a Logitech Pro 3000. It works quite well but freezes up occasionally, but maybe it just needs better error handling.
 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

but maybe it just needs better error handling.



could you share your some coding with us, if you don't mind.

Thanks
 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeremy,

your application can capture audio too ?

Thanks

Edward
 
Jez Nicholson
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The basic open source code available @ http://timcam.sourceforge.net/ works fine and would make a good starting point for investigating JMF.
 
    Bookmark Topic Watch Topic
  • New Topic