Skip to content

Commit

Permalink
Add resolutions support in OpenCV capture driver
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Aug 18, 2017
1 parent 5c14101 commit 809edcf
Show file tree
Hide file tree
Showing 12 changed files with 1,319 additions and 275 deletions.

This file was deleted.

This file was deleted.

49 changes: 49 additions & 0 deletions webcam-capture-drivers/driver-opencv/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# webcam-capture-driver-jmf

This is capture driver which uses [JavaCV](/~https://github.com/bytedeco/javacv)
interface to [OpenCV](http://opencv.org/) to access camera devices.

## Maven

Snapshot:

```xml
<repository>
<id>Sonatype OSS Snapshot Repository</id>
<url>http://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
```
```xml
<dependency>
<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture-driver-javacv</artifactId>
<version>0.3.12-SNAPSHOT</version>
</dependency>
```

## Example

```java
static {
Webcam.setDriver(new JmfDriver());
}

public static void main(String[] args) {
JFrame frame = new JFrame("JMF Webcam Capture Driver Demo");
frame.add(new WebcamPanel(Webcam.getDefault()));
frame.pack();
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
```

## License

Copyright (C) 2012 - 2017 Bartosz Firyn

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<version>0.3.12-SNAPSHOT</version>
</parent>

<artifactId>webcam-capture-driver-javacv</artifactId>
<artifactId>webcam-capture-driver-opencv</artifactId>
<packaging>jar</packaging>

<name>Webcam Capture - JavaCV Driver</name>
Expand All @@ -19,11 +19,17 @@
<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>com.nativelibs4java</groupId>
<artifactId>bridj</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacv</artifactId>
<version>1.0</version>
<artifactId>javacv-platform</artifactId>
<version>1.3.3</version>
</dependency>
</dependencies>

Expand Down
Loading

0 comments on commit 809edcf

Please sign in to comment.