Skip to content

Commit

Permalink
Update README [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
sarxos committed Nov 13, 2012
1 parent a9e1f53 commit 0fcbf45
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 41 deletions.
34 changes: 23 additions & 11 deletions README.md
Expand Up @@ -6,16 +6,32 @@ Complete documentation, API, examples, tutorials and many more can be found here

[http://webcam-capture.sarxos.pl/](http://webcam-capture.sarxos.pl/)


[![Build Status](https://secure.travis-ci.org/sarxos/webcam-capture.png?branch=master)](http://travis-ci.org/sarxos/webcam-capture)

## How To Use

### Basic Example

This is the basic example of how _Webcam Capture_ can be used to get image from PC webcam. Code
below will capture image from your PC webcam and save it in ```test.png``` file in current
directory.

```java
Webcam webcam = Webcam.getDefault();
BufferedImage image = webcam.getImage();
ImageIO.write(image, "PNG", new File("test.png"));
```

For examples of **how to use Webcam Capture with IP cameras** please follow to the [appropriate
subproject](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-driver-ipcam).

### Maven

_Webcam Capture_ is available in Maven Central, so you can either add Maven (or Ivy or Grandle)
dependency to your project or access page above and download complete ZIP package, and then add
all JARs into your project's classpath.

### Maven

```xml
<dependency>
<groupId>com.github.sarxos</groupId>
Expand All @@ -24,17 +40,13 @@ all JARs into your project's classpath.
</dependency>
```

### Ivy
### Required JARs

```xml
<dependency org="com.github.sarxos" name="webcam-capture" rev="0.3.3" />
```
If you are not using Maven nor any other dependency manager, you can simply download ZIP file
containing all required JARs. ZIP for version 0.3.1 is available for download
**[here](http://repo.sarxos.pl/maven2/com/github/sarxos/webcam-capture/0.3.1/webcam-capture-0.3.1-dist.zip)**.

### Grandle

```
group: 'com.github.sarxos', name: 'webcam-capture', version: '0.3.3'
```
## News

## License

Expand Down
61 changes: 31 additions & 30 deletions webcam-capture/pom.xml
Expand Up @@ -15,7 +15,7 @@
<packaging>bundle</packaging>

<name>Webcam Capture</name>
<description>This library allows you to use your webcams directly from Java and it's compatible with most operating systems</description>
<description>This library allows you to use your PC webcam, IP or network cameras directly from Java. It's compatible with most operating systems (Windows, Linux, MacOS).</description>
<inceptionYear>2012</inceptionYear>
<url>http://webcam-capture.sarxos.pl</url>

Expand Down Expand Up @@ -87,7 +87,7 @@
<artifactId>bridj</artifactId>
<version>0.6.1</version>
</dependency>
<dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.2</version>
Expand Down Expand Up @@ -251,34 +251,6 @@
</profiles>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<versionRange>[1.0.0,)</versionRange>
<goals>
<goal>copy-dependencies</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
Expand Down Expand Up @@ -342,6 +314,35 @@
</extension>
</extensions>

<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<versionRange>[1.0.0,)</versionRange>
<goals>
<goal>copy-dependencies</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore />
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>

</build>

<reporting>
Expand Down

0 comments on commit 0fcbf45

Please sign in to comment.