you can take a look if the open source Zxing barcode could help you or not.
Copyright (c) Marimer LLC