diff --git a/webcam-capture-examples/webcam-capture-qrcode/README.md b/webcam-capture-examples/webcam-capture-qrcode/README.md index 5d612604..d5153134 100644 --- a/webcam-capture-examples/webcam-capture-qrcode/README.md +++ b/webcam-capture-examples/webcam-capture-qrcode/README.md @@ -1,10 +1,10 @@ # Webcam Capture QR Code Reader Example -This example show how to read QR codes with Webcam Capture. +This example show how to read QR and bar codes with Webcam Capture. ## What Is This -This example show how to process QR codes with your webcam using +This example show how to process QR and bar codes with your webcam using [Webcam Capture](https://github.com/sarxos/webcam-capture) project together with [ZXing](https://github.com/zxing/zxing) library. @@ -17,17 +17,19 @@ First I took a picture of some sample QR code I found on Google ([link](http://www.google.pl/imgres?um=1&hl=pl&client=firefox-a&sa=N&tbo=d&rls=org.mozilla:en-US:official&biw=1366&bih=552&tbm=isch&tbnid=ZnVvKF0A2BGNTM:&imgrefurl=http://www.qrstuff.com/&docid=1A-zeI71ulZS1M&imgurl=http://www.qrstuff.com/images/sample.png&w=3000&h=3000&ei=yLSwUNTdCIOC4gS1xIGIBQ&zoom=1&iact=hc&vpx=154&vpy=141&dur=1160&hovh=225&hovw=225&tx=124&ty=78&sig=117284320547613276213&page=1&tbnh=149&tbnw=159&start=0&ndsp=24&ved=1t:429,r:1,s:0,i:87)) and then put it opposite to my build-in PC web camera. -This is picture from my cell phone: - -![QR Code](https://raw.github.com/sarxos/webcam-capture/master/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/20121124.jpg "QR Code") - In the application window webcam image is displayed on the left side, and on the right side there is a text area containing QR code data. In this case this is just a link to the web page from where I took my QR code example. ![QR Code Example Application](https://raw.github.com/sarxos/webcam-capture/master/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/qrcode-zxing.png "QR Code Example Application") -Some other QR codes: +Some bar codes: + +![Bar Code 1](https://raw.github.com/sarxos/webcam-capture/master/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/bar1.jpg "Bar Code 1") +![Bar Code 2](https://raw.github.com/sarxos/webcam-capture/master/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/bar2.jpg "Bar Code 2") +![Bar Code 3](https://raw.github.com/sarxos/webcam-capture/master/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/bar3.jpg "Bar Code 3") + +Some QR codes: ![QR Code 2](https://raw.github.com/sarxos/webcam-capture/master/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/qrcode2.jpg "QR Code 2") ![QR Code 3](https://raw.github.com/sarxos/webcam-capture/master/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/qrcode3.jpg "QR Code 3") diff --git a/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/20121124.jpg b/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/20121124.jpg deleted file mode 100644 index 8c413bbf..00000000 Binary files a/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/20121124.jpg and /dev/null differ diff --git a/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/bar1.jpg b/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/bar1.jpg new file mode 100644 index 00000000..240fbe02 Binary files /dev/null and b/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/bar1.jpg differ diff --git a/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/bar2.jpg b/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/bar2.jpg new file mode 100644 index 00000000..bc7d89a6 Binary files /dev/null and b/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/bar2.jpg differ diff --git a/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/bar3.jpg b/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/bar3.jpg new file mode 100644 index 00000000..19f47912 Binary files /dev/null and b/webcam-capture-examples/webcam-capture-qrcode/src/etc/resources/bar3.jpg differ diff --git a/webcam-capture-examples/webcam-capture-qrcode/src/main/java/com/github/sarxos/webcam/WebcamQRCodeExample.java b/webcam-capture-examples/webcam-capture-qrcode/src/main/java/com/github/sarxos/webcam/WebcamQRCodeExample.java index 473b7d25..3814f663 100644 --- a/webcam-capture-examples/webcam-capture-qrcode/src/main/java/com/github/sarxos/webcam/WebcamQRCodeExample.java +++ b/webcam-capture-examples/webcam-capture-qrcode/src/main/java/com/github/sarxos/webcam/WebcamQRCodeExample.java @@ -33,7 +33,7 @@ public WebcamQRCodeExample() { super(); setLayout(new FlowLayout()); - setTitle("Read QR Code With Webcam"); + setTitle("Read QR / Bar Code With Webcam"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); webcam = Webcam.getWebcams().get(0);