Barcode Decoding with the .NET Micro Framework
Two-dimensional matrix barcodes such as QR Code or Datamatrix are spreading more and more. You can generate QR codes with the free KAYWA QR Code generator. The ZXing Decoder Online is a page that allows you to upload a barcode image to decode it. It supports
- UPC-A and UPC-E
- EAN-8 and EAN-13
- Code 39
- Code 128
- QR Code
- DataMatrix (experimental)
I thought it would be nice to decode barcode with the .NET Micro Framework. I wrote the ZXingOnlineDecoder class in the Kuehner.SPOT.Barcode namespace. The Decode method accepts the bytes of an image to decode (jpeg, bitmap, gif) and uploads it to the ZXing online decoder page and returns the decoded bytes.
The attached library and demo application is also a good sample for submitting web form data to a web page via HTTP (thanks to Michael Schwarz for pointing that Fiddler thing).
It might also be possible to grap an image from the C328R Jpeg Camera with managed drivers as described on Pavel Banskys blog here and to decode it with my class.