From 0fcbf4597ba491caaa3c7a528b5de056b2ead144 Mon Sep 17 00:00:00 2001 From: Bartosz Firyn Date: Tue, 13 Nov 2012 22:00:40 +0100 Subject: [PATCH] Update README [ci skip] --- README.md | 34 +++++++++++++++-------- webcam-capture/pom.xml | 61 +++++++++++++++++++++--------------------- 2 files changed, 54 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index fc947811..81576f5c 100644 --- a/README.md +++ b/README.md @@ -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 com.github.sarxos @@ -24,17 +40,13 @@ all JARs into your project's classpath. ``` -### Ivy +### Required JARs -```xml - -``` +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 diff --git a/webcam-capture/pom.xml b/webcam-capture/pom.xml index 71992510..93272b5d 100644 --- a/webcam-capture/pom.xml +++ b/webcam-capture/pom.xml @@ -15,7 +15,7 @@ bundle Webcam Capture - This library allows you to use your webcams directly from Java and it's compatible with most operating systems + 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). 2012 http://webcam-capture.sarxos.pl @@ -87,7 +87,7 @@ bridj 0.6.1 - + org.slf4j slf4j-api 1.7.2 @@ -251,34 +251,6 @@ - - - - org.eclipse.m2e - lifecycle-mapping - 1.0.0 - - - - - - org.apache.maven.plugins - maven-dependency-plugin - [1.0.0,) - - copy-dependencies - - - - - - - - - - - - @@ -342,6 +314,35 @@ + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.apache.maven.plugins + maven-dependency-plugin + [1.0.0,) + + copy-dependencies + + + + + + + + + + + + +