Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Zxing | 31,497 | 7,212 | 416 | 8 days ago | 17 | November 02, 2022 | 5 | apache-2.0 | Java | |
ZXing ("Zebra Crossing") barcode scanning library for Java, Android | ||||||||||
Zxing Android Embedded | 5,464 | 2 months ago | 6 | October 25, 2021 | 106 | apache-2.0 | Java | |||
Barcode scanner library for Android, based on the ZXing decoder | ||||||||||
Barcodescanner | 5,233 | 5 | 3 years ago | 27 | August 19, 2017 | other | Java | |||
Barcode Scanner Libraries for Android | ||||||||||
Zxingify Objc | 3,041 | 303 | 6 months ago | 28 | October 22, 2018 | 58 | apache-2.0 | Objective-C | ||
An Objective-C Port of ZXing | ||||||||||
Lbxscan | 3,014 | 110 | 3 years ago | 5 | October 22, 2018 | 148 | mit | Objective-C | ||
A barcode and qr code scanner (二维码、扫码、扫一扫、ZXing、ZBar、iOS系统AVFoundation扫码封装,扫码界面效果封装) | ||||||||||
Zxinglite | 2,739 | 14 days ago | 7 | April 15, 2023 | 15 | apache-2.0 | Java | |||
🔥 ZXing的精简极速版,优化扫码和生成二维码/条形码,内置闪光灯等功能。扫描风格支持:微信的线条样式,支付宝的网格样式。几句代码轻松拥有扫码功能 ,ZXingLite让集成更简单。(扫码识别速度快如微信) | ||||||||||
Library | 2,049 | 102 | 69 | a month ago | 56 | January 10, 2022 | 144 | apache-2.0 | TypeScript | |
Multi-format 1D/2D barcode image processing library, usable in JavaScript ecosystem. | ||||||||||
Qrcodereaderview | 1,770 | 231 | 1 | 4 years ago | 2 | March 29, 2017 | 49 | Java | ||
Modification of ZXING Barcode Scanner project for easy Android QR-Code detection and AR purposes | ||||||||||
Zxing.net.mobile | 1,035 | 207 | 40 | a year ago | 47 | January 19, 2021 | 178 | mit | C# | |
Barcode Scanner for Xamarin.iOS, Xamarin.Android, UWP and Tizen | ||||||||||
Binaryeye | 1,010 | 5 days ago | 84 | mit | Kotlin | |||||
Yet another barcode scanner for Android |
ZXingObjC is a full Objective-C port of ZXing ("Zebra Crossing"), a Java barcode image processing library. It is designed to be used on both iOS devices and in Mac applications.
The following barcodes are currently supported for both encoding and decoding:
ZXingObjC currently has feature parity with ZXing version 3.3.3.
ZXingObjC requires Xcode 8.3.3 and above, targeting either iOS 8.0 and above, or Mac OS X 10.8 Mountain Lion and above.
Encoding:
NSError *error = nil;
ZXMultiFormatWriter *writer = [ZXMultiFormatWriter writer];
ZXBitMatrix* result = [writer encode:@"A string to encode"
format:kBarcodeFormatQRCode
width:500
height:500
error:&error];
if (result) {
CGImageRef image = CGImageRetain([[ZXImage imageWithMatrix:result] cgimage]);
// This CGImageRef image can be placed in a UIImage, NSImage, or written to a file.
CGImageRelease(image);
} else {
NSString *errorMessage = [error localizedDescription];
}
Decoding:
CGImageRef imageToDecode; // Given a CGImage in which we are looking for barcodes
ZXLuminanceSource *source = [[[ZXCGImageLuminanceSource alloc] initWithCGImage:imageToDecode] autorelease];
ZXBinaryBitmap *bitmap = [ZXBinaryBitmap binaryBitmapWithBinarizer:[ZXHybridBinarizer binarizerWithSource:source]];
NSError *error = nil;
// There are a number of hints we can give to the reader, including
// possible formats, allowed lengths, and the string encoding.
ZXDecodeHints *hints = [ZXDecodeHints hints];
ZXMultiFormatReader *reader = [ZXMultiFormatReader reader];
ZXResult *result = [reader decode:bitmap
hints:hints
error:&error];
if (result) {
// The coded result as a string. The raw data can be accessed with
// result.rawBytes and result.length.
NSString *contents = result.text;
// The barcode format, such as a QR code or UPC-A
ZXBarcodeFormat format = result.barcodeFormat;
} else {
// Use error to determine why we didn't get a result, such as a barcode
// not being found, an invalid checksum, or a format inconsistency.
}
We highly recommend Carthage as module manager.
ZXingObjC can be installed using Carthage. After installing Carthage just add ZXingObjC to your Cartfile:
github "TheLevelUp/ZXingObjC" ~> 3.6
CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. After installing CocoaPods add ZXingObjC to your Podfile:
platform :ios, '8.0'
pod 'ZXingObjC', '~> 3.6.4'
ZXingObjC includes several example applications found in "examples" folder:
ZXingObjC is available under the Apache 2.0 license.