You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
485 B
JavaScript
22 lines
485 B
JavaScript
var Quagga = require('../dist/quagga.node').default;
|
|
|
|
Quagga.decodeSingle({
|
|
src: '../test/fixtures/code_128/image-001.jpg',
|
|
numOfWorkers: 0,
|
|
inputStream: {
|
|
size: 800,
|
|
area: {
|
|
top: '10%',
|
|
right: '5%',
|
|
left: '5%',
|
|
bottom: '10%'
|
|
}
|
|
}
|
|
}, function (result) {
|
|
if (result.codeResult) {
|
|
console.log('result', result.codeResult.code);
|
|
} else {
|
|
console.log('not detected');
|
|
}
|
|
});
|