From 9c966aa3ad1886dc79dbacb0d42b5817b485a68d Mon Sep 17 00:00:00 2001 From: Christoph Oberhofer Date: Fri, 10 Jul 2015 18:15:57 +0200 Subject: [PATCH] Fixed example in readme, fixes #50 --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d2afe80..ccf7280 100644 --- a/README.md +++ b/README.md @@ -279,11 +279,13 @@ locating-mechanism for more robust results. ```javascript Quagga.decodeSingle({ - readers: ['code_128_reader'], - locate: true, // try to locate the barcode in the image - src: '/test/fixtures/code_128/image-001.jpg' // or 'data:image/jpg;base64,' + data + decoder: { + readers: ["code_128_reader"] // List of active readers + }, + 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){ - console.log(result); + console.log(result); }); ```