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,11 +279,13 @@ locating-mechanism for more robust results.
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
Quagga.decodeSingle({
|
Quagga.decodeSingle({
|
||||||
readers: ['code_128_reader'],
|
decoder: {
|
||||||
locate: true, // try to locate the barcode in the image
|
readers: ["code_128_reader"] // List of active readers
|
||||||
src: '/test/fixtures/code_128/image-001.jpg' // or 'data:image/jpg;base64,' + data
|
},
|
||||||
|
locate: true, // try to locate the barcode in the image
|
||||||
|
src: '/test/fixtures/code_128/image-001.jpg' // or 'data:image/jpg;base64,' + data
|
||||||
}, function(result){
|
}, function(result){
|
||||||
console.log(result);
|
console.log(result);
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user