BarCode reader component for Silverlight/.net, resources, recommendations, animal crossing? oh my [closed]
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years开发者_StackOverflow ago.
Improve this questionI'm looking for a barcode reader component. Hoping to use it in a Silverlight Out of browser Application. Eventually be ported for usage in windows 8. Hoping to supliment physical bar code readers. Possibly reading other types the physical device may not be able to decode.
http://blog.lemqi.com/?cat=3 a posting from 2008 has a round up comparing different components. A few look promising but it's a bit dated.
General recommendations, or general products to stay away from would be greatly appreciated. Open source projects are welcome, I briefly looked at a Silverlight port of Zebra Crossing(zxing) but the documentation looked scarce.
Looking for something that will work world wide, and detects the barcode types.
Ended up going with http://imagetools.codeplex.com/
Nice little added wrapper for Zebra Crossing for Silverlight. Had some other features I was considering using.
If anyone is interested, grab the source code, there are examples. Basic run down incase anyone is interested.
Add Dependencies
App.xaml.cs
Decoders.AddDecoder<PngDecoder>(); //or whatever format your barcode is in.
Load Image
FileInfo fileInfo = path;
var extendedImage = new ExtendedImage();
extendedImage.SetSource(fileInfo.OpenRead());
Image.Source=extendedImage; //Image is of type AnimatedImage and found in the xaml.
Scan Image
IBarcodeReader barcodeReader = new ZxingBarcodeReader(true, BinarizerMode.Hybrid)
BarcodeResult result = barcodeReader.ReadBarcode(Image.Source);
// Set some values in the xaml for results
Barcode.Text = result.Text
BarcodeFormat.Text = result.Format.ToString();
This is more or less the example. I just trimmed it down so people could understand it at a glance.
Based on your requirements, the ClearImage Barcode Recognition SDK from Inlite Research should work well for you. It's designed for Windows with COM and .Net APIs so should have no issues with Silverlight or Windows 8.
It handles all popular 1D and 2D barcodes types and reliably handles all types of damaged barcodes (which happen more often than you may think).
Note: I have done some work for Inlite
Siverlight provides access to the Webcam, but I haven't done that yet. I would be a little wary, as you probably are, of a vendor-based review/comparison that you linked to. I have heard good things about http://www.atalasoft.com/ but I haven't used it. http://accusoft.com/ worked well in Silverlight for me, but I didn't use the AccuSoft barcode module. If the user will provide 90 degree-ish alignment with the camera, you'll probably be good with any open source bar code library or writing your own.
精彩评论