|
|
@ -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);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|