Skip to content

Commit

Permalink
Update fswebcam driver README.md [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Feb 19, 2015
1 parent 0a198cb commit e73d57f
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions webcam-capture-drivers/driver-fswebcam/README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,29 @@
# FsWebcam Capture Driver

This capture driver is designed to allow developers to use console program called
_fswebcam_ written by Philip Heron as the source of images for Webcam Capture API.
This capture driver works on **only** on *nix and requires
[fswebcam](https://github.com/fsphil/fswebcam) command line too to be installed
on the environment where Webcam Capture API is used.
This capture driver is designed to allow developers to use console program called _fswebcam_ written by Philip Heron as the source of images for Webcam Capture API. This capture driver works on **only** on *nix and requires [fswebcam](https://github.com/fsphil/fswebcam) command line too to be installed on the environment where Webcam Capture API is used.

To install fswebcam:

```plain
sudo apt-get install fswebcam
$ sudo apt-get install fswebcam
```

## Download

The latest **development** version JAR (aka SNAPSHOT) can be downloaded [here](https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=com.github.sarxos&a=webcam-capture-driver-fswebcam&v=0.3.10-SNAPSHOT).
The latest **stable** ZIP bundle can be downloaded [here](http://repo.sarxos.pl/maven2/com/github/sarxos/webcam-capture-driver-fswebcam/0.3.10/webcam-capture-driver-fswebcam-0.3.10-dist.zip).

The latest **development** version JAR (aka SNAPSHOT) can be downloaded [here](https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=com.github.sarxos&a=webcam-capture-driver-fswebcam&v=0.3.11-SNAPSHOT).

The latest **stable** ZIP bundle can be downloaded [here](http://repo.sarxos.pl/maven2/com/github/sarxos/webcam-capture-driver-fswebcam/0.3.10-RC7/webcam-capture-driver-fswebcam-0.3.10-RC7-dist.zip).

## Maven

Stable:

```xml
<repository>
<id>SarXos Repository</id>
<url>http://www.sarxos.pl/repo/maven2</url>
</repository>
```
```xml
<dependency>
<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture-driver-fswebcam</artifactId>
<version>0.3.10-RC7</version>
<version>0.3.10</version>
</dependency>
```

Expand All @@ -48,7 +39,7 @@ Snapshot:
<dependency>
<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture-driver-fswebcam</artifactId>
<version>0.3.10-SNAPSHOT</version>
<version>0.3.11-SNAPSHOT</version>
</dependency>
```

Expand All @@ -74,7 +65,7 @@ public class TakePictureExample {
BufferedImage image = webcam.getImage();

// save image to PNG file
ImageIO.write(image, "PNG", new File("test.png"));
ImageIO.write(image, "JPG", new File("test.jpg"));

// close webcam
webcam.close();
Expand All @@ -84,9 +75,7 @@ public class TakePictureExample {

## Issues

There are several known issues. If you have an idea of how those can
be fixed, please send the pull request with the code change and I will
be happy to merge it into the master branch.
There are several known issues. If you have an idea of how those can be fixed, please send the pull request with the code change and I will be happy to merge it into the master branch.

1. Single call to getImage() causes webcam to be re-open again,
2. Because of 1, webcam diode is blinking,
Expand All @@ -96,7 +85,7 @@ be happy to merge it into the master branch.

## License

Copyright (C) 2014 Bartosz Firyn
Copyright (C) 2014 - 2015 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:

Expand Down

0 comments on commit e73d57f

Please sign in to comment.