All Projects → mercari → Qrscanner

mercari / Qrscanner

Licence: mit
A simple QR Code scanner framework for iOS. Provides a similar scan effect to ios13.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Qrscanner

qrcodescan.in
📠 A simple, fast, and useful progressive web application.
Stars: ✭ 144 (+7.46%)
Mutual labels:  qrcode, qr, qrcode-scanner
Cordova Plugin Qrscanner
A fast, energy efficient, highly-configurable QR code scanner for Cordova apps and the browser.
Stars: ✭ 485 (+261.94%)
Mutual labels:  qrcode-scanner, qr, qrcode
quagga2-reader-qr
Quagga2 sample external reader for QR codes
Stars: ✭ 20 (-85.07%)
Mutual labels:  qrcode, qr, qrcode-scanner
Qr Code Scanner
📠 A simple, fast and useful progressive web application
Stars: ✭ 982 (+632.84%)
Mutual labels:  qrcode-scanner, qr, qrcode
qrcode
A flutter plugin for scanning QR codes. Use AVCaptureSession in iOS and zxing in Android.
Stars: ✭ 69 (-48.51%)
Mutual labels:  qrcode, qr, qrcode-scanner
Czxing
C++ port of ZXing and ZBar for Android.
Stars: ✭ 854 (+537.31%)
Mutual labels:  qrcode-scanner, qrcode
Jrqrcode
二维码生成库,把内容生成二维码,以base64编码的图片输出
Stars: ✭ 128 (-4.48%)
Mutual labels:  qr, qrcode
Qrcodescanner
A lib to aid you quickly achieve qrcode scan
Stars: ✭ 98 (-26.87%)
Mutual labels:  qrcode-scanner, qrcode
Qr Ascii
A small library to generate QR codes with ascii
Stars: ✭ 63 (-52.99%)
Mutual labels:  qr, qrcode
Qr.flutter
QR.Flutter is a Flutter library for simple and fast QR code rendering via a Widget or custom painter.
Stars: ✭ 434 (+223.88%)
Mutual labels:  qr, qrcode
Qr Code Scanner
Full stable QR code scanner android app.
Stars: ✭ 28 (-79.1%)
Mutual labels:  qr, qrcode
React Native Qrcode Scanner
A QR code scanner component for React Native.
Stars: ✭ 1,796 (+1240.3%)
Mutual labels:  qrcode-scanner, qrcode
Qr Image
Yet another QR code generator
Stars: ✭ 922 (+588.06%)
Mutual labels:  qr, qrcode
Tesseract Ocr Scanner
基于Tesseract-OCR实现自动扫描识别手机号
Stars: ✭ 622 (+364.18%)
Mutual labels:  qrcode-scanner, qrcode
Qrbtf
An art QR code (qrcode) beautifier. 艺术二维码生成器。https://qrbtf.com
Stars: ✭ 1,391 (+938.06%)
Mutual labels:  qr, qrcode
Qrcode
A pure JavaScript QRCode encode and decode library.
Stars: ✭ 69 (-48.51%)
Mutual labels:  qrcode-scanner, qrcode
Qrious
Pure JavaScript library for QR code generation using canvas
Stars: ✭ 1,160 (+765.67%)
Mutual labels:  qr, qrcode
Qrcodereader.swift
Simple QRCode reader in Swift
Stars: ✭ 1,202 (+797.01%)
Mutual labels:  qrcode-scanner, qrcode
Barcodescanner.xf
Barcode Scanner using GoogleVision API for Xamarin Form
Stars: ✭ 82 (-38.81%)
Mutual labels:  qrcode-scanner, qrcode
Efqrcode
A better way to operate QR Code in Swift, support iOS, macOS, watchOS and tvOS.
Stars: ✭ 4,121 (+2975.37%)
Mutual labels:  qrcode-scanner, qrcode

QRScanner

A simple QR Code scanner framework for iOS. Provides a similar scan effect to ios13+. Written in Swift.

iOS 13.0+ Use QRScanner in iOS 10.0+

"QR Code" is a registered trademark of DENSO WAVE INCORPORATED

Feature

  • Similar to iOS 13.0+ design
  • Simple usage Sample
  • Support for iOS 10.0+

Development Requirements

  • iOS 10.0+
  • Swift: 5.3
  • Xcode Version: 12.2

Installation

CocoaPods is the recommended method of installing QRScanner.

The Pod Way

  • Simply add the following line to your Podfile
  platform :ios, '10.0'
  pod 'MercariQRScanner'
  • Run command
  pod install
  • Write Import statement on your source file
  import MercariQRScanner

The Carthage Way

  • Move your project dir and create Cartfile
> touch Cartfile
  • add the following line to Cartfile
github "mercari/QRScanner"
  • Create framework
> carthage update --platform iOS
  • In Xcode, move to "General > Build Phase > Linked Frameworks and Libraries"
  • Add the framework to your project
  • Add a new run script and put the following code
/usr/local/bin/carthage copy-frameworks
  • Click "+" at Input file and Add the framework path
$(SRCROOT)/Carthage/Build/iOS/QRScanner.framework
  • Write Import statement on your source file
import QRScanner

Usage

See QRScannerSample

Add Privacy - Camera Usage Description to Info.plist file

The Basis Of Usage

import QRScanner
// If use the Pod way, please import MercariQRScanner

final class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()

        let qrScannerView = QRScannerView(frame: view.bounds)
        view.addSubview(qrScannerView)
        qrScannerView.configure(delegate: self)
        qrScannerView.startRunning()
    }
}

extension ViewController: QRScannerViewDelegate {
    func qrScannerView(_ qrScannerView: QRScannerView, didFailure error: QRScannerError) {
        print(error)
    }

    func qrScannerView(_ qrScannerView: QRScannerView, didSuccess code: String) {
        print(code)
    }
}

Customization

Source Code Way

override func viewDidLoad() {
        super.viewDidLoad()

        let qrScannerView = QRScannerView(frame: view.bounds)

        // Customize focusImage, focusImagePadding, animationDuration
        qrScannerView.focusImage = UIImage(named: "scan_qr_focus")
        qrScannerView.focusImagePadding = 8.0
        qrScannerView.animationDuration = 0.5

        qrScannerView.configure(delegate: self)
        view.addSubview(qrScannerView)
        qrScannerView.startRunning()
}

Interface Builder Way

Setup Custom Class Customize

Add FlashButton

FlashButtonSample

final class ViewController: UIViewController {

    ...

    @IBOutlet var flashButton: FlashButton!

    @IBAction func tapFlashButton(_ sender: UIButton) {
        qrScannerView.setTorchActive(isOn: !sender.isSelected)
    }
}

extension ViewController: QRScannerViewDelegate {

    ...

    func qrScannerView(_ qrScannerView: QRScannerView, didChangeTorchActive isOn: Bool) {
        flashButton.isSelected = isOn
    }
}

Add Blur Effect

Source Code Way

     qrScannerView.configure(delegate: self, input: .init(isBlurEffectEnabled: true))

Interface Builder Way

Customize

Committers

Contribution

Please read the CLA carefully before submitting your contribution to Mercari. Under any circumstances, by submitting your contribution, you are deemed to accept and agree to be bound by the terms and conditions of the CLA.

https://www.mercari.com/cla/

License

Copyright 2019 Mercari, Inc.

Licensed under the MIT License.

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].