sarxos / webcam-capture

The goal of this project is to allow integrated or USB-connected webcams to be accessed directly from Java. Using provided libraries users are able to read camera images and detect motion. Main project consist of several sub projects - the root one, which contains required classes, build-in webcam driver compatible with Windows, Linux and Mac OS, which can stream images as fast as your camera can serve them (up to 50 FPS). Main project can be used standalone, but user is able to replace build-in driver with different one - such as OpenIMAJ, GStreamer, V4L4j, JMF, LTI-CIVIL, FMJ, etc.
http://webcam-capture.sarxos.pl
MIT License
2.28k stars 1.11k forks source link

[v4l4j Driver] Resolved bug which failed the initialisation of all video devices if a single video file could not be opened correctly. #938

Open Ben-D-Anderson opened 3 months ago

Ben-D-Anderson commented 3 months ago

getWebcams() and all related forms of the method would fail on the v4l4j driver in the case that there was a single video file under /dev that was not a functional video camera - this pull request attempts to resolve that problem whilst maintaining a suitable level of error reporting.