0

hello friends
i m working on a project wherein we have to capture a photo using web cam for the web application..
can anybody tell me how we can do this.
i have read many artical and found a code for the stand alone appli. from "http://www.mutong.com/fischer/java/usbcam/" but it is not running it is showing the exception (Exception in thread "main" java.lang.NullPointerException) in MediaLocator videoMediaLocator = captureVideoDevice.getLocator();
can anyone tell me what is happening here as i m very new to the java...

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by neelamdwivedi
0

not sure about the webcam part, but take a look at the Robot class. It has methods to capture screen images, (createScreenCapture,, getPixelColor...)

you can do alot with this

0

not sure about the webcam part, but take a look at the Robot class. It has methods to capture screen images, (createScreenCapture,, getPixelColor...)

you can do alot with this

thank you very much for replying..but acutally in our project we are using webcam and it is a web application ..but first i m trying it for the standalone application...so do you have any idea abt this or any of your friends know how to do this then ..plz kindly help me

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.