-
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
SIGSEGV when running Webcam Capture API on Raspberry Pi model B #315
Comments
Hello sarxos, Thanks a lot for the wonderful wrapper for webcam capturing, though do you have any estimated time of date for when this issue notably with the Raspberry Pi B+ will be fixed? I am currently using the Pi for a regional science fair project competition with your library, and would want to display a demo of the program on a Raspberry Pi. Though, I have obtained this exact error as well. |
Hi @Dranithix, This issue can be observed when using default capture driver (or webcam-capture-vlcj-driver, but the SIGSEGV stack is different in this case). I doubt it can be fixed without changes in the BridJ issue 525 so I would not expect this to be done soon. The good news is that I managed to run Webcam Capture API on my RasPi model B using webcam-capture-driver-v4l4j. Therefore, everything should work well in your case when you set it instead of default one. // set Webcam Capture V4L4J driver to be used instead of default one
static {
Webcam.setDriver(new V4l4jDriver());
}
// do the other things you would like to do
public static void main(String[] args) throws Exception {
Webcam webcam = Webcam.getDefault();
webcam.open();
ImageIO.write(webcam.getImage(), "PNG", new File("hello-world.png"));
webcam.close();
} But, as I stated above, it was tested on model B and I'm not sure how B+ will react with the Just FYI, to make use of webcam-capture-driver-v4l4j you should add these JARs to your classpath: |
The text was updated successfully, but these errors were encountered: