Compare commits

...

10 Commits

Author SHA1 Message Date
Eduardo Ramos 88a4c75b2d Update readme 2025-01-04 13:07:38 +01:00
Eduardo Ramos a4d9e333b5 Bump version 2025-01-04 13:02:16 +01:00
Eduardo Ramos 996441a1ac Update windows libs 2025-01-04 13:00:39 +01:00
Eduardo Ramos f37fe3fd3b Bump version 2024-11-28 20:21:13 +01:00
Eduardo Ramos 7dc9d94ff9 Set log level to debug in camera listing 2024-11-28 20:20:16 +01:00
Eduardo Ramos b7eb36961f
Update README.md 2024-11-26 14:14:31 +01:00
Eduardo Ramos 0001a4300f
Merge pull request #28 from eduramiba/use-libnokhwa
Use libcnokhwa
2024-11-26 13:55:22 +01:00
Eduardo Ramos b03a084702 Update lib 2024-11-26 13:48:34 +01:00
Eduardo Ramos e5fb6cff7c Update linux libs 2024-11-26 13:43:19 +01:00
Eduardo Ramos da0d883349 Remove unnecessary dependency 2024-11-26 13:31:20 +01:00
7 changed files with 6 additions and 18 deletions

View File

@ -9,7 +9,7 @@ For MacOS, it uses `AVFDriver`, based on a [custom library](https://github.com/e
# How to use
1. Add `io.github.eduramiba:webcam-capture-driver-native:1.0.0` dependency to your application.
1. Add `io.github.eduramiba:webcam-capture-driver-native:1.2.0` dependency to your application.
2. Use the driver with `Webcam.setDriver(new NativeDriver())`
3. List the devices with `Webcam.getWebcams()` as normal and use the library in your preferred way. In JavaFX it's recommended to do it as in the example below.

18
pom.xml
View File

@ -3,7 +3,7 @@
<groupId>io.github.eduramiba</groupId>
<artifactId>webcam-capture-driver-native</artifactId>
<version>1.1.0</version>
<version>1.2.0</version>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
@ -47,8 +47,7 @@
<driver.slf4j.version>2.0.16</driver.slf4j.version>
<driver.webcam-capture.version>0.3.13-SNAPSHOT</driver.webcam-capture.version>
<driver.aalto-xml.version>1.3.3</driver.aalto-xml.version>
<driver.jna.version>5.15.0</driver.jna.version>
<driver.jna.version>5.16.0</driver.jna.version>
<driver.javafx.version>19</driver.javafx.version>
@ -67,7 +66,7 @@
<driver.maven-surefire-plugin.version>3.5.2</driver.maven-surefire-plugin.version>
<driver.maven-failsafe-plugin.version>3.5.2</driver.maven-failsafe-plugin.version>
<driver.maven-exec-plugin.version>3.5.0</driver.maven-exec-plugin.version>
<driver.modernizer-plugin.version>2.9.0</driver.modernizer-plugin.version>
<driver.modernizer-plugin.version>3.0.0</driver.modernizer-plugin.version>
<driver.versions-maven-plugin.version>2.18.0</driver.versions-maven-plugin.version>
<driver.help-maven-plugin.version>3.5.1</driver.help-maven-plugin.version>
<driver.maven-enforcer-plugin.version>3.5.0</driver.maven-enforcer-plugin.version>
@ -95,12 +94,6 @@
<version>${driver.jna.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml</groupId>
<artifactId>aalto-xml</artifactId>
<version>${driver.aalto-xml.version}</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
@ -131,11 +124,6 @@
<artifactId>jna-platform</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml</groupId>
<artifactId>aalto-xml</artifactId>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>

View File

@ -36,7 +36,7 @@ public class NokhwaDriver implements WebcamDriver {
final int devicesCount = lib.cnokhwa_devices_count();
LOG.info("Available devices: {}", devicesCount);
LOG.debug("Available devices: {}", devicesCount);
if (devicesCount < 1) {
return list;
@ -69,7 +69,7 @@ public class NokhwaDriver implements WebcamDriver {
}
}
LOG.info("Found camera {} (id {}) with available formats: {}", name, uniqueId, availableFormats);
LOG.debug("Found camera {} (id {}) with available formats: {}", name, uniqueId, availableFormats);
final NokhwaVideoDevice device = new NokhwaVideoDevice(devIndex, uniqueId, name, resolutions, maxFps);
if (device.isValid()) {