-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webcam does not work now #164
Comments
this is the code: import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import com.github.sarxos.webcam.Webcam;
/**
* Example of how to take single picture.
*
* @author Bartosz Firyn (SarXos)
*/
public class Webpic {
public static void main(String[] args) throws IOException {
// get default webcam and open it
Webcam webcam = Webcam.getDefault();
webcam.open();
// get image
BufferedImage image = webcam.getImage();
// save image to PNG file
ImageIO.write(image, "PNG", new File("test.png"));
}
} |
Hi @elainejo21 Please provide more details:
|
os- win 7 then webcam-capture-0.3.10-RC4.jar |
then i have slf4j-api-1.7.2.jar, bridj-0.7-20130703.103049-42.jar, slf4j-simple- api-1.7.2.jar this works fine for a month but since this morning, it did not work and receive the error above |
Please upgrade to 0.3.10-RC6 since this bug has been already reported in #131 and fixed about 4 months ago in 0.3.10-RC5. If for some reason you don't wont to upgrade (don't worry, RC6 is fully compatible with RC4 since there was only bug fixes implemented in the middle), you can go to your TEMP directory and remove all files starting with |
but i will use the same code? |
Yes. Only JAR must be updated to newer one. |
it works now! you are so great! thanks :) |
You're welcome :) |
from where shall i download webcam-capture-0.3.10-RC6.jar |
The newest one is 0.3.10-RC7 and you can find it here (webcam-capture-0.3.10-RC7-dist.zip). However, if you still want to use RC6, the you can find it here, but please note that there were many fixes introduced in RC7. |
receives this error:
The text was updated successfully, but these errors were encountered: