All Projects → idpass → smartscanner-android-api

idpass / smartscanner-android-api

Licence: Apache-2.0 license
Convenience API for ID PASS SmartScanner to simplify the Intent call out process

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to smartscanner-android-api

smartscanner-core
ID scanning Android app and library. Supports MRZ, NFC, Barcodes, and ID PASS Lite cards.
Stars: ✭ 44 (+131.58%)
Mutual labels:  barcode-scanner, idpass, mrz-scanner
barcode-server
Barcode Server for Barcode Client-Server android application
Stars: ✭ 40 (+110.53%)
Mutual labels:  barcode-scanner
Vue Barcode Scanner
Barcode Scanner Plugin for Vue.js
Stars: ✭ 116 (+510.53%)
Mutual labels:  barcode-scanner
React Native Barcode Mask
A barcode and QR scan layout for react-native applications with customizable styling
Stars: ✭ 230 (+1110.53%)
Mutual labels:  barcode-scanner
Barcode To Pc App
Barcode to PC app
Stars: ✭ 121 (+536.84%)
Mutual labels:  barcode-scanner
barcode-detector
Spec compliant polyfill of the Barcode Detection API 🤳
Stars: ✭ 31 (+63.16%)
Mutual labels:  barcode-scanner
Eflinventory V2
🏬 Point-of-sale and inventory tracking for small-scale retail stores. Easily manage inventory, purchases, sales, and damaged and/or expired products.
Stars: ✭ 106 (+457.89%)
Mutual labels:  barcode-scanner
ZXingSample
Working sample app for a blog post on barcode scanning and generating with ZXing
Stars: ✭ 20 (+5.26%)
Mutual labels:  barcode-scanner
android-zbar-sdk
🔗 android-zbar-sdk, provide jni source, so file and jar file used alone, gradle/maven remote dependencies.
Stars: ✭ 311 (+1536.84%)
Mutual labels:  barcode-scanner
Zxing Barcode
A barcode scanner based on zxing for android
Stars: ✭ 206 (+984.21%)
Mutual labels:  barcode-scanner
Quagga2
An advanced barcode-scanner written in Javascript and TypeScript - Continuation from https://github.com/serratus/quaggajs
Stars: ✭ 198 (+942.11%)
Mutual labels:  barcode-scanner
Zxinglite
🔥 ZXing的精简版,优化扫码和生成二维码/条形码,内置闪光灯等功能。扫描风格支持:微信的线条样式,支付宝的网格样式。几句代码轻松拥有扫码功能 ,ZXingLite让集成更简单。(扫码识别速度快如微信)
Stars: ✭ 2,117 (+11042.11%)
Mutual labels:  barcode-scanner
MLKit-Android-Apps
All android applications (apps) using MLKit
Stars: ✭ 24 (+26.32%)
Mutual labels:  barcode-scanner
Pwa Barcode Scanner
Information about food from the barcode, on your phone 🛒
Stars: ✭ 122 (+542.11%)
Mutual labels:  barcode-scanner
Flutter barcode scanner
Barcode scanner plugin for flutter. Supports barcode scanning for Android and iOS
Stars: ✭ 194 (+921.05%)
Mutual labels:  barcode-scanner
Barcodescanner
🔎 A simple and beautiful barcode scanner.
Stars: ✭ 1,527 (+7936.84%)
Mutual labels:  barcode-scanner
Barcodescanner
Android手机客户端关于二维码扫描的源码,使用了zxing 3.1.1代码并对其进行了精简,支持低版本的sdk,实现了二维码和一维码的扫描、从图片解析一维码和二维码,闪光灯、调焦。。。
Stars: ✭ 246 (+1194.74%)
Mutual labels:  barcode-scanner
openfoodfacts-cordova-app
Open Food Facts mobile app, developed with Cordova, for iOS, Android, Windows Phone, FirefoxOS etc.
Stars: ✭ 24 (+26.32%)
Mutual labels:  barcode-scanner
BarcodeReader
Simple multi-format barcode reader for Windows
Stars: ✭ 26 (+36.84%)
Mutual labels:  barcode-scanner
MlKitBarcodeScan
Sample project to explain the barcode scanning API from Firebase MLKit
Stars: ✭ 31 (+63.16%)
Mutual labels:  barcode-scanner

SmartScanner Android API

Convenience API for SmartScanner Core to simplify the Intent call out process.

This library provides methods that can be called to initiate scanning of MRZ, barcode, and ID PASS Lite cards, instead of manually creating and calling intents.

Note: The library's API might keep evolving before we reach v1.0, so be careful when upgrading between these pre-v1.0 versions. Starting at v1.0 we will be careful in introducing breaking API changes.

Installation

Declare Maven Central repository in the dependency configuration, then add this library in the dependencies. An example using build.gradle:

repositories {
  mavenCentral()
}

dependencies {
  implementation "org.idpass:smartscanner-android-api:0.0.1-SNAPSHOT"
}

If you want to build this library from source, instructions to do so can be found in the Building from source wiki page.

Usage

The API methods are all provided in the ScannerIntent class. Import it in order to start using the library:

import org.idpass.smartscanner.api.ScannerIntent
import org.idpass.smartscanner.api.ScannerConstants

Then call the desired method from the ScannerIntent class, for example to initiate an MRZ scan:

class MainActivity : AppCompatActivity() {

  private const val OP_SCANNER = 1001 // Activity request code

  override fun onStart() {
    super.onStart()

    try {
      val intent = ScannerIntent.intentMrz(isManualCapture = true, mrzFormat = ScannerConstants.MRZ_FORMAT_MRTD_TD1)
      startActivityForResult(intent, OP_SCANNER)
    } catch (ex: ActivityNotFoundException) {
      ex.printStackTrace()
    }
  }

  public override fun onActivityResult(requestCode: Int, resultCode: Int, intent: Intent?) {
    super.onActivityResult(requestCode, resultCode, intent)

    if (requestCode == OP_SCANNER) {
      if (resultCode == Activity.RESULT_OK) {
        val bundle = intent?.getBundleExtra(ScannerConstants.RESULT)
      }
    }
  }

}

API

ScannerIntent

  • intentBarcode() : Create an Android Intent for scanning barcodes.

    • Parameters:
      • useODK : Boolean, default: false. Whether to create intents for ODK or not.
    • Return: Intent
  • intentIDPassLite() : Create an Android Intent for scanning ID PASS Lite cards.

    • Parameters:
      • useODK : Boolean, default: false. Whether to create intents for ODK or not.
    • Return: Intent
  • intentMrz() : Create and Android Intent for scanning MRZ.

    • Parameters:
      • useODK : Boolean, default: false. Whether to create intents for ODK or not.
      • isManualCapture : Boolean, default: false. Whether the MRZ is captured manually by the user or automatically once MRZ data is detected. This is added as extended data to the created Intent.
      • mrzFormat : String, default: null. The MRZ format to be scanned. One of the supported MRZ formats. This is added as extended data to the created Intent.
    • Return: Intent

ScannerConstants

Provides constant variables that can be used instead of hardcoded strings. We recommend using these constants when working with this library and smartscanner-core.

Related projects

License

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