Git Product home page Git Product logo

zxing.net's Introduction

ZXing.Net

N|NuGet Build status Donate

ZXing.Net.Mobile Logo

Project Description

A library which supports decoding and generating of barcodes (like QR Code, PDF 417, EAN, UPC, Aztec, Data Matrix, Codabar) within images.

The project is a port of the java based barcode reader and generator library ZXing.
https://github.com/zxing/zxing
It has been ported by hand with a lot of optimizations and improvements.

The following barcodes are supported by the decoder: UPC-A, UPC-E, EAN-8, EAN-13, Code 39, Code 93, Code 128, ITF, Codabar, MSI, RSS-14 (all variants), QR Code, Data Matrix, Aztec and PDF-417. The encoder supports the following formats: UPC-A, EAN-8, EAN-13, Code 39, Code 128, ITF, Codabar, Plessey, MSI, QR Code, PDF-417, Aztec, Data Matrix

Assemblies are available for the following platforms:

  • .Net 2.0, 3.5, 4.0, 4.5, 4.6 and 4.7
  • Windows RT Class Library and Runtime Components (winmd)
  • .NET Standard / .NET Core / UWP
  • Portable Class Library
  • Unity3D (.Net 2.0 built without System.Drawing reference)
  • Xamarin.Android (formerly Mono for Android)
  • bindings to CoreCompat.System.Drawing, ImageSharp, SkiaSharp, OpenCVSharp, Magick, Kinect V1 and V2
  • support COM interop, can be used with VBA

obsolete Assemblies are available for the following platforms up to release 0.16:

  • Windows Phone 7.0, 7.1 and 8.0
  • Windows CE
  • Silverlight 4 and 5

The library is available in the release section and as NuGet package, too.

Additional platform support without pre-built binaries

The library can be built for Xamarin.iOS (formerly MonoTouch). The project file and solution are available in the source code repository.

A special version for the .Net Micro Framework can be found in a separate branch in the source code repository.

The following demo clients are available:

  • decoder for the command line
  • encoder for the command line
  • Windows Forms demo (demonstrates decoding and encoding of static images and from a camera)
  • Windows Service demo (demonstrates decoding of static images)
  • Windows Presentation Framework demo (demonstrates decoding of static images)
  • Windows RT demo (demonstrates decoding of static images)
  • Windows Store App with HTML5/JS (demonstrates decoding of static images)
  • Unity3D and Vuforia demo (demonstrates encoding of barcodes and decoding of images from a camera with Unity3D)
  • EmguCV demo (demonstrates decoding of images from a camera and uses the EmguCV framework)
  • OpenCV demo (demonstrates decoding of images from a camera and uses the OpenCVSharp framework)
  • AForge demo (demonstrates decoding of images from a camera and uses the AForge framework)

Thanks

Many thanks to the team of the zxing project for their great work. ZXing.Net would not be possible without your work!

Usage examples

The source code repository includes small examples for Windows Forms, Windows Phone and other project types. Obsolete examples are available for the following platforms in separate branches: 0.16:

  • Silverlight 4 and 5,
  • Windows CE demo (demonstrates decoding of static images)
  • Windows Phone demo (demonstrates decoding of static images and from a camera)

small example decoding a barcode inside a bitmap (.Net 2.0/3.5/4.x)

// create a barcode reader instance
IBarcodeReader reader = new BarcodeReader();
// load a bitmap
var barcodeBitmap = (Bitmap)Image.LoadFrom("C:\\sample-barcode-image.png");
// detect and decode the barcode inside the bitmap
var result = reader.Decode(barcodeBitmap);
// do something with the result
if (result != null)
{
   txtDecoderType.Text = result.BarcodeFormat.ToString();
   txtDecoderContent.Text = result.Text;
}

Help wanted

All help is welcome!

Feedback

You use the library? We would be happy if you give us a short note on the use of the library.

You found a bug? Please create a new issue here or start a discussion about it if you are not sure.

You use the library and you are not happy with it? Write us an email please or start a discussion about your problems with it. We will try to help you.

And you can find me on Twitter. N|http://twitter.com/micjahn

Support it

If you find the project useful and you wish to support the future development feel free to support it with a donation.

Donate

N|Donate

Beside a donation patches, bug reports, feedback and other useful help are always welcome!

Sponsors

Support us with a monthly donation and help us continue our activities. Become a sponsor and get your logo on our README on Github with a link to your site.

Donation WITHOUT money

It would be really, really great if you could support one of my social projects. You can support it WITHOUT paying money. You only have to go to the following url before you buy anything from a supported online shop (like Amazon or eBay):
http://www.bildungsspender.de/kitadorfhain
Select you prefered online shop and go shopping like everytime. The online shop will pay a provision to our Kindergarten for your purchase. No extra costs for you. There are 85 thankful kids. (and one thankful developer of ZXing.Net ;) )

zxing.net's People

Contributors

andriks2 avatar ayartsev-ast avatar brianpopow avatar ddrinka avatar deisterhold avatar dimonkov avatar dkatyler avatar dlemstra avatar ghost1face avatar hanabi1224 avatar hangy avatar jeremylee avatar junian avatar kolozsaron avatar lordofdoom avatar mejevin avatar mfabruno avatar micjahn avatar miguelcriado avatar syonip avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.