mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
Fixed example in readme, fixes #50
This commit is contained in:
@@ -279,7 +279,9 @@ locating-mechanism for more robust results.
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
Quagga.decodeSingle({
|
Quagga.decodeSingle({
|
||||||
readers: ['code_128_reader'],
|
decoder: {
|
||||||
|
readers: ["code_128_reader"] // List of active readers
|
||||||
|
},
|
||||||
locate: true, // try to locate the barcode in the image
|
locate: true, // try to locate the barcode in the image
|
||||||
src: '/test/fixtures/code_128/image-001.jpg' // or 'data:image/jpg;base64,' + data
|
src: '/test/fixtures/code_128/image-001.jpg' // or 'data:image/jpg;base64,' + data
|
||||||
}, function(result){
|
}, function(result){
|
||||||
|
|||||||
Reference in New Issue
Block a user