Compare commits
10 Commits
8884994599
...
88a4c75b2d
Author | SHA1 | Date |
---|---|---|
|
88a4c75b2d | |
|
a4d9e333b5 | |
|
996441a1ac | |
|
f37fe3fd3b | |
|
7dc9d94ff9 | |
|
b7eb36961f | |
|
0001a4300f | |
|
b03a084702 | |
|
e5fb6cff7c | |
|
da0d883349 |
|
@ -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
18
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue