@ -1,22 +1,24 @@
quaggaJS
quaggaJS
========
========
- [Changelog ](#changelog ) (2017-01-08 )
- [Changelog ](#changelog ) (2017-06-07 )
- [Browser Support ](#browser-support )
- [Browser Support ](#browser-support )
- [Installing ](#installing )
- [Installing ](#installing )
- [Getting Started ](#gettingstarted )
- [Getting Started ](#gettingstarted )
- [API ](#api )
- [API ](#api )
- [Configuration ](#configobject )
- [Configuration ](#configobject )
- [Tips & Tricks ](#tipsandtricks )
- [Sponsors ](#sponsors )
## What is QuaggaJS?
## What is QuaggaJS?
QuaggaJS is a barcode-scanner entirely written in JavaScript supporting real-
QuaggaJS is a barcode-scanner entirely written in JavaScript supporting real-
time localization and decoding of various types of barcodes such as __EAN__ ,
time localization and decoding of various types of barcodes such as __EAN__ ,
__CODE 128__, __CODE 39__ , __EAN 8__ , __UPC-A__ , __UPC-C__ , __I2of5__ and
__CODE 128__, __CODE 39__ , __EAN 8__ , __UPC-A__ , __UPC-C__ , __I2of5__ ,
__CODABAR__. The library is also capable of using `getUserMedia` to get direct
__2of5__, __CODE 93__ and __CODABAR__ . The library is also capable of using
access to the user's camera stream. Although the code relies on heavy image-
`getUserMedia` to get direct access to the user's camera stream. Although the
processing even recent smartphones are capable of locating and decoding
code relies on heavy image- processing even recent smartphones are capable of
barcodes in real-time.
locating and decoding barcodes in real-time.
Try some [examples ](https://serratus.github.io/quaggaJS/examples ) and check out
Try some [examples ](https://serratus.github.io/quaggaJS/examples ) and check out
the blog post ([How barcode-localization works in QuaggaJS][oberhofer_co_how])
the blog post ([How barcode-localization works in QuaggaJS][oberhofer_co_how])
@ -443,6 +445,8 @@ barcodes which should be decoded during the session. Possible values are:
- upc_reader
- upc_reader
- upc_e_reader
- upc_e_reader
- i2of5_reader
- i2of5_reader
- 2of5_reader
- code_93_reader
Why are not all types activated by default? Simply because one should
Why are not all types activated by default? Simply because one should
explicitly define the set of barcodes for their use-case. More decoders means
explicitly define the set of barcodes for their use-case. More decoders means
@ -587,6 +591,36 @@ Quagga.decodeSingle({
});
});
```
```
## < a name = "tipsandtricks" > Tips & Tricks< / a >
A growing collection of tips & tricks to improve the various aspects of Quagga.
### Barcodes too small?
Barcodes too far away from the camera, or a lens too close to the object
result in poor recognition rates and Quagga might respond with a lot of
false-positives.
Starting in Chrome 59 you can now make use of `capabilities` and directly
control the zoom of the camera. Head over to the
[web-cam demo ](https://serratus.github.io/quaggaJS/examples/live_w_locator.html )
and check out the __Zoom__ feature.
You can read more about those `capabilities` in
[Let's light a torch and explore MediaStreamTrack's capabilities ](https://www.oberhofer.co/mediastreamtrack-and-its-capabilities )
### Video too dark?
Dark environments usually result in noisy images and therefore mess with the
recognition logic.
Since Chrome 59 you can turn on/off the __Torch__ of our device and vastly
improve the quality of the images. Head over to the
[web-cam demo ](https://serratus.github.io/quaggaJS/examples/live_w_locator.html )
and check out the __Torch__ feature.
To find out more about this feature [read on ](https://www.oberhofer.co/mediastreamtrack-and-its-capabilities ).
## Tests
## Tests
Unit Tests can be run with [Karma][karmaUrl] and written using
Unit Tests can be run with [Karma][karmaUrl] and written using
@ -663,8 +697,32 @@ calling ``decodeSingle`` with the same configuration as used during recording
. In order to reproduce the exact same result, you have to make sure to turn
. In order to reproduce the exact same result, you have to make sure to turn
on the ``singleChannel`` flag in the configuration when using ``decodeSingle``.
on the ``singleChannel`` flag in the configuration when using ``decodeSingle``.
## < a name = "sponsors" > Sponsors< / a >
- [Maintenance Connection Canada (Asset Pro Solutions Inc. ](http://maintenanceconnection.ca/ )
## < a name = "changelog" > Changelog< / a >
## < a name = "changelog" > Changelog< / a >
### 2017-06-07
- Improvements
- added `muted` and `playsinline` to `<video/>` to make it work for Safari 11
Beta (even iOS)
- Fixes
- Fixed [example/live_w_locator.js ](https://github.com/serratus/quaggaJS/blob/master/example/live_w_locator.js )
### 2017-06-06
- Features
- Support for Standard 2of5 barcodes (See
[\#194 ](https://github.com/serratus/quaggaJS/issues/194 ))
- Support for Code 93 barcodes (See
[\#194 ](https://github.com/serratus/quaggaJS/issues/195 ))
- Exposing `Quagga.CameraAccess.getActiveTrack()` to get access to the
currently used `MediaStreamTrack`
- Example can be viewed here: [example/live_w_locator.js ](https://github.com/serratus/quaggaJS/blob/master/example/live_w_locator.js ) and a [demo ](https://serratus.github.io/quaggaJS/examples/live_w_locator.html )
Take a look at the release-notes (
[0.12.0 ](https://github.com/serratus/quaggaJS/releases/tag/v0.12.0 ))
### 2017-01-08
### 2017-01-08
- Improvements
- Improvements
- Exposing `CameraAccess` module to get access to methods like
- Exposing `CameraAccess` module to get access to methods like