This project has moved. For the latest updates, please go here.

Barcode not recognized Windows 8 javascript metro application

Feb 17, 2014 at 9:37 AM
Hello,

I tried the sample https://zxingnet.svn.codeplex.com/svn/branches/WINMD/. It was working when i picked a barcode image. But i needed the barcode to be scanned, so i tried after capturing a photo. It captures the photo, but the line:

var result = reader.decode(pixels, decoder.pixelWidth, decoder.pixelHeight, format);

always returns "null" in result.

Please let me know what went wrong, or if I am missing some thing.

Thanks.
Coordinator
Feb 17, 2014 at 8:34 PM
Please can you send me or post here the full modified source code which you tried?
Feb 24, 2014 at 4:43 AM
Hi,

Please find attached javascript file having the modified code for capturing a photo to scan a Barcode.

Please let me know if there is something missing.

Thanks so much.


Coordinator
Feb 26, 2014 at 7:39 PM
Hm, I can't see an attached javascript file.
Mar 28, 2014 at 10:16 AM
Hi,

The problem was that only barcode image part should be clicked. If the images contains other things too, any border etc. It wouldn't be recognised.
Also, is it possible that barcode is recognised automatically, Currently user have to click to capture the image and then the barcode is identified.

Thanks.