chenjie1219 / Swiftscan
A barcode and qr code scanner( 二维码/条形码扫描、生成,仿微信、支付宝)
Stars: ✭ 293
Programming Languages
swift
15916 projects
Labels
Projects that are alternatives of or similar to Swiftscan
Zxinglite
🔥 ZXing的精简版,优化扫码和生成二维码/条形码,内置闪光灯等功能。扫描风格支持:微信的线条样式,支付宝的网格样式。几句代码轻松拥有扫码功能 ,ZXingLite让集成更简单。(扫码识别速度快如微信)
Stars: ✭ 2,117 (+622.53%)
Mutual labels: qrcode-scanner, qrcode, barcode, scanner, scan
barcode scan2
[reborned barcode_scan] A flutter plugin for reading 2D barcodes and QR codes.
Stars: ✭ 43 (-85.32%)
Mutual labels: scanner, qrcode, barcode, scan, qrcode-scanner
Barcode To Pc App
Barcode to PC app
Stars: ✭ 121 (-58.7%)
Mutual labels: qrcode-scanner, barcode, scanner, app
Qr Code Scanner
📠 A simple, fast and useful progressive web application
Stars: ✭ 982 (+235.15%)
Mutual labels: qrcode-scanner, qrcode, barcode, scanner
Swiftscan
A barcode and qr code scanner( 二维码 各种码识别,生成,界面效果)
Stars: ✭ 1,349 (+360.41%)
Mutual labels: qrcode, barcode, avfoundation, scan
Lbxscan
A barcode and qr code scanner (二维码、扫码、扫一扫、ZXing、ZBar、iOS系统AVFoundation扫码封装,扫码界面效果封装)
Stars: ✭ 3,133 (+969.28%)
Mutual labels: qrcode-generator, qrcode-scanner, avfoundation, scan
Efqrcode
A better way to operate QR Code in Swift, support iOS, macOS, watchOS and tvOS.
Stars: ✭ 4,121 (+1306.48%)
Mutual labels: qrcode-generator, qrcode-scanner, qrcode, barcode
Czxing
C++ port of ZXing and ZBar for Android.
Stars: ✭ 854 (+191.47%)
Mutual labels: qrcode-generator, qrcode-scanner, qrcode, barcode
QR Attendance
This project is an attendance system which provides attendance on scanning QR code. The attendance is stored in Excel sheet named with the date of attendance taken. In this folder a file named Generate.py is used to generate the QR code for given input file. Attend.py file is for scanning the QR code
Stars: ✭ 17 (-94.2%)
Mutual labels: qrcode, qrcode-scanner, qrcode-generator
Ipadownload
Search and download decrypted IPA file from 3rd-party App Store.
Stars: ✭ 247 (-15.7%)
Mutual labels: ipa, xcode, app
garden.zbarcam
Migrated to https://github.com/kivy-garden/zbarcam
Stars: ✭ 49 (-83.28%)
Mutual labels: scanner, qrcode, barcode
Barcode
barcode.php - Generate barcodes from a single PHP file. MIT license.
Stars: ✭ 141 (-51.88%)
Mutual labels: qrcode-generator, qrcode, barcode
ZZYQRCode
a scanner for QRCode barCode 最好用的ios二维码、条形码,扫描、生成框架,支持闪光灯,从相册获取,扫描音效等,高仿微信,微博
Stars: ✭ 124 (-57.68%)
Mutual labels: scanner, qrcode, barcode
Qrcode
A pure JavaScript QRCode encode and decode library.
Stars: ✭ 69 (-76.45%)
Mutual labels: qrcode-generator, qrcode-scanner, qrcode
flutter qr code scanner generator sharing
Flutter App For Scanning, Generating, Sharing QR Code
Stars: ✭ 137 (-53.24%)
Mutual labels: qrcode, qrcode-scanner, qrcode-generator
android-zbar-sdk
🔗 android-zbar-sdk, provide jni source, so file and jar file used alone, gradle/maven remote dependencies.
Stars: ✭ 311 (+6.14%)
Mutual labels: qrcode, barcode, qrcode-scanner
Barcode
a barcode creation lib for golang
Stars: ✭ 953 (+225.26%)
Mutual labels: qrcode-generator, qrcode, barcode
barcode-detector
Spec compliant polyfill of the Barcode Detection API 🤳
Stars: ✭ 31 (-89.42%)
Mutual labels: qrcode, barcode, qrcode-scanner
BGAQRCode-Android
QRCode 扫描二维码、扫描条形码、相册获取图片后识别、生成带 Logo 二维码、支持微博微信 QQ 二维码扫描样式
Stars: ✭ 7,714 (+2532.76%)
Mutual labels: qrcode, qrcode-scanner, qrcode-generator
SwiftScan
主要内容的介绍
-
生成二维码/条形码
-
扫描二维码/条形码
-
根据光线强弱开启手电筒
-
扫描成功之后界面之间逻辑跳转处理
-
扫描界面可自定义(线扫描条样式以及网格样式)
-
扫描界面仿微信、支付宝(请根据项目需求,自行布局或调整)
Requirements
- Swift 4.2
- iOS 9.0.0+
- Xcode 9.x
Installation
Carthage
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
To integrate SwiftScan into your Xcode project using Carthage, specify it in your Cartfile
:
github "chenjie1219/SwiftScan"
Run carthage update
to build the framework and drag the built SwiftScanner.framework
into your Xcode project.
Manually
Just download the project, and drag and drop the "SwiftScanner" folder in your project.
Usage
1、在 info.plist 中添加以下字段(iOS 10 之后需添加的字段)
-
NSCameraUsageDescription (相机权限访问)
2、二维码扫描
Push方式弹出扫描页面
/// 创建二维码扫描
let vc = ScannerVC()
//设置标题、颜色、扫描样式(线条、网格)、提示文字
vc.setupScanner("微信扫一扫", .green, .default, "将二维码/条码放入框内,即可自动扫描") { (code) in
//扫描回调方法
<#code#>
//关闭扫描页面
self.navigationController?.popViewController(animated: true)
}
//push到扫描页面
navigationController?.pushViewController(vc, animated: true)
Present方式弹出扫描页面
/// 创建二维码扫描
let vc = ScannerVC()
//设置标题、颜色、扫描样式(线条、网格)、提示文字
vc.setupScanner("支付宝扫一扫", .blue, .grid, "放入框内,自动扫描") { (code) in
//扫描回调方法
<#code#>
//关闭扫描页面
self.dismiss(animated: true, completion: nil)
}
//Present到扫描页面
present(vc, animated: true, completion: nil)
3、二维码生成
/// 带 logo 的二维码(logoImage为nil则不带logo)
QRCodeView.image = UIImage.generateQRCode("https://github.com/chenjie1219", 300, logoImage, .orange)
4、条形码生成
/// 条形码
barCodeView.image = UIImage.generateCode128("https://github.com/chenjie1219", CGSize(width: 300, height: 100, .blue)
效果图
Author
-
Email:[email protected]
-
Wechat:4234115
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].