Skip to content

Commit 070031e

Browse files
committed
Update version in README and site files
1 parent 3ac52cb commit 070031e

File tree

3 files changed

+43
-18
lines changed

3 files changed

+43
-18
lines changed

README.md

+32-10
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,29 @@ Complete documentation, API, examples, tutorials and many more can be found here
1111

1212
## Features
1313

14-
* Define simple API,
15-
* Do not require additional software to be installed on PC,
14+
* Simple and thread-safe API,
15+
* No additional software required,
1616
* Supports multiple platforms (Windows, Linux, Mac OS, etc) and various architectures (32-bit, 64-bit, ARM),
17-
* Can stream images from build-in or USB-connected PC webcams,
18-
* Can stream images from IP / network cameras,
17+
* Stream images from build-in or USB-connected PC webcams,
18+
* Stream images from IP / network cameras,
19+
* Detect motion,
20+
* Available in Maven Central,
1921
* Can re-stream images,
20-
* Can detect motion,
21-
* Is available in Maven Central,
22-
* Is also available as standalone ZIP binaries with all dependencies included,
22+
* Also available as standalone ZIP binaries with all dependencies included,
2323
* Supports additional video grabbing drivers (such as OpenIMAJ, LTI-CIVIL, JMF, FMJ, OpenCV, VLC, IP Camera),
24-
* Contains Swing component to display image from webcam / IP / network camera.
24+
* Contains Swing component to display image from webcam / IP / network camera,
2525

2626
## Maven
2727

2828
```xml
2929
<dependency>
3030
<groupId>com.github.sarxos</groupId>
3131
<artifactId>webcam-capture</artifactId>
32-
<version>0.3.5</version>
32+
<version>0.3.6</version>
3333
</dependency>
3434
```
3535

36-
If you are not using Maven, then **[here](http://www.sarxos.pl/repo/maven2/com/github/sarxos/webcam-capture/0.3.5/webcam-capture-0.3.5-dist.zip)**
36+
If you are not using Maven, then **[here](http://www.sarxos.pl/repo/maven2/com/github/sarxos/webcam-capture/0.3.6/webcam-capture-0.3.6-dist.zip)**
3737
you can download ZIP containing all required 3rd-party JARs.
3838

3939
## Examples
@@ -114,6 +114,28 @@ To explore example of how to create simple custom painter, please follow to the
114114
**[webcam-capture-painter](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-painter)**
115115
subproject. I'm sure you can find some fancy stuff there.
116116

117+
### Read QR Codes
118+
119+
Example presenting how to read QR codes with _Webcam Capture_ and
120+
[ZXing](https://github.com/zxing/zxing) project is available in
121+
**[webcam-capture-qrcode](https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-qrcode)**
122+
subproject.
123+
124+
```java
125+
BufferedImage image = webcam.getImage();
126+
LuminanceSource source = new BufferedImageLuminanceSource(image);
127+
BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
128+
129+
try {
130+
Result result = new MultiFormatReader().decode(bitmap);
131+
if (result != null) {
132+
System.out.println("QR code text: " + result.getText());
133+
}
134+
} catch (NotFoundException e) {
135+
System.out.println("No QR code in camera view");
136+
}
137+
```
138+
117139
## Drivers
118140

119141
Webcam Capture can utilize additional drivers to extend its own functionality. Currently below

webcam-capture-examples/webcam-capture-executable/.classpath

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<attribute name="maven.pomderived" value="true"/>
1313
</attributes>
1414
</classpathentry>
15-
<classpathentry kind="src" path="src/main/resources"/>
15+
<classpathentry including="**/*.java" kind="src" path="src/main/resources"/>
1616
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
1717
<attributes>
1818
<attribute name="maven.pomderived" value="true"/>

webcam-capture-pages/src/site/index.html

+10-7
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h1>Webcam Capture</h1>
3131
<div class="downloads">
3232
<span>Download:</span>
3333
<ul>
34-
<li><a href="http://repo.sarxos.pl/maven2/com/github/sarxos/webcam-capture/0.3.5/webcam-capture-0.3.5-dist.zip" class="button">ZIP</a></li>
34+
<li><a href="http://repo.sarxos.pl/maven2/com/github/sarxos/webcam-capture/0.3.6/webcam-capture-0.3.6-dist.zip" class="button">ZIP</a></li>
3535
</ul>
3636
</div>
3737
</div><!-- end banner -->
@@ -74,16 +74,19 @@ <h3>Core Features</h3>
7474

7575
<p>
7676
<ul>
77-
<li><b>Simple API</b> - write only few lines of code and start capturing images.</li>
78-
<li><b>Build-in video driver</b> - default build-in video grabber is provided, so you don't need to install any additional software (such as JMF, etc).</li>
77+
<li><b>Simple and thread-safe API</b> - write only few lines of code and start capturing images.</li>
78+
<li><b>Work standalone</b> - no additional software has to be installed to use it.</li>
7979
<li><b>System independent</b> - it will run without problems on most widely used operating systems - Windows (2k/XP/Vista/7, both 32- and 64-bit), Linux (x86, x64 and 32-bit ARM) and Mac OS X.</li>
80+
<li><b>Build-in video driver</b> - default build-in video grabber is provided, so you don't need to install any additional software (such as JMF, etc).</li>
8081
<li><b>Implementation independent</b> - write your code once and don't care which capture framework you will be using in future (LTI-CIVIL, JMF, QTJ, etc).</li>
8182
<li><b>Automated resources management</b> - you do not have to remember to deallocate resources used by your capturing device, library will always do that for you (while VM has been closed gracefully).</li>
83+
<li><b>Motion detector</b> - build in motion detector makes it easy to implement motion detecting features.</li>
84+
<li><b>Available in Maven Central</b> - it is available in Maven Central so your project can be deployed there too.</li>
85+
<li><b>Re-streamer</b> - simple JPEG/MJPEG re-streamer is build in, just run it and enjoy hosting your live stream.</li>
86+
<li><b>Swing ready</b> - contains Swing component to display images, together with painter API and thread-safe API which prevents Swing EDT from blocking issues when using camera.</li>
8287
</ul>
8388
</p>
8489

85-
86-
8790
<h2>How To Start</h2>
8891

8992
<p>
@@ -97,7 +100,7 @@ <h3>Maven</h3>
97100
&lt;dependency&gt;
98101
&lt;groupId&gt;com.github.sarxos&lt;/groupId&gt;
99102
&lt;artifactId&gt;webcam-capture&lt;/artifactId&gt;
100-
&lt;version&gt;0.3.5&lt;/version&gt;
103+
&lt;version&gt;0.3.6&lt;/version&gt;
101104
&lt;/dependency&gt;
102105
</pre>
103106

@@ -399,7 +402,7 @@ <h3>Logging</h3>
399402
</pre>
400403

401404

402-
<h3>Want More?</h3>
405+
<h2>More Examples?</h2>
403406

404407
<p>
405408
There are more examples available in <b>src/example</b>, don't forget to

0 commit comments

Comments
 (0)