All Projects → Credntia → MVBarcodeReader

Credntia / MVBarcodeReader

Licence: Apache-2.0 license
A Barcode scanner library for Android. Uses the Google Play Services' mobile vision api for barcode detection.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to MVBarcodeReader

Rxtool
Android开发人员不得不收集的工具类集合 | 支付宝支付 | 微信支付(统一下单) | 微信分享 | Zip4j压缩(支持分卷压缩与加密) | 一键集成UCrop选择圆形头像 | 一键集成二维码和条形码的扫描与生成 | 常用Dialog | WebView的封装可播放视频 | 仿斗鱼滑动验证码 | Toast封装 | 震动 | GPS | Location定位 | 图片缩放 | Exif 图片添加地理位置信息(经纬度) | 蛛网等级 | 颜色选择器 | ArcGis | VTPK | 编译运行一下说不定会找到惊喜
Stars: ✭ 11,567 (+17164.18%)
Mutual labels:  barcode
Bitglitter
⚡ Embed data payloads inside of ordinary images or video with high-performance animated 2-D barcodes. (Python library)
Stars: ✭ 193 (+188.06%)
Mutual labels:  barcode
React Native Barcode Mask
A barcode and QR scan layout for react-native applications with customizable styling
Stars: ✭ 230 (+243.28%)
Mutual labels:  barcode
Netbarcode
Barcode generation library written in C# and .NET Standard 2
Stars: ✭ 149 (+122.39%)
Mutual labels:  barcode
Tc Lib Barcode
PHP library to generate linear and bidimensional barcodes
Stars: ✭ 165 (+146.27%)
Mutual labels:  barcode
Quagga2
An advanced barcode-scanner written in Javascript and TypeScript - Continuation from https://github.com/serratus/quaggajs
Stars: ✭ 198 (+195.52%)
Mutual labels:  barcode
Zxinglite
🔥 ZXing的精简版,优化扫码和生成二维码/条形码,内置闪光灯等功能。扫描风格支持:微信的线条样式,支付宝的网格样式。几句代码轻松拥有扫码功能 ,ZXingLite让集成更简单。(扫码识别速度快如微信)
Stars: ✭ 2,117 (+3059.7%)
Mutual labels:  barcode
taro-code
Taro Barcode & QRCode
Stars: ✭ 88 (+31.34%)
Mutual labels:  barcode
Nbzxing
🔥 2020年最好用的开源扫码,全方位优化,强烈推荐!! 支持多种常规zxing无法扫出的码,用就完了!! 🔥
Stars: ✭ 184 (+174.63%)
Mutual labels:  barcode
React Barcode
A <Barcode/> component for use with React.
Stars: ✭ 210 (+213.43%)
Mutual labels:  barcode
Android Quick Response Code
Android QR Code Decoder and Encoder
Stars: ✭ 158 (+135.82%)
Mutual labels:  barcode
Vue Barcode
Barcode generator for Vue.js
Stars: ✭ 164 (+144.78%)
Mutual labels:  barcode
Escpos Thermalprinter Android
Useful library to help Android developpers to print with (Bluetooth, TCP, USB) ESC/POS thermal printer.
Stars: ✭ 204 (+204.48%)
Mutual labels:  barcode
React Native Barcode Builder
Component for generating barcode in react native app
Stars: ✭ 146 (+117.91%)
Mutual labels:  barcode
Qrcodereader
Barcode and QR code reader built in Swift
Stars: ✭ 237 (+253.73%)
Mutual labels:  barcode
Segno
Python QR Code and Micro QR Code encoder
Stars: ✭ 144 (+114.93%)
Mutual labels:  barcode
Flutter barcode scanner
Barcode scanner plugin for flutter. Supports barcode scanning for Android and iOS
Stars: ✭ 194 (+189.55%)
Mutual labels:  barcode
ZZYQRCode
a scanner for QRCode barCode 最好用的ios二维码、条形码,扫描、生成框架,支持闪光灯,从相册获取,扫描音效等,高仿微信,微博
Stars: ✭ 124 (+85.07%)
Mutual labels:  barcode
Python Barcode
㊙️ Create standard barcodes with Python. No external dependencies. 100% Organic Python.
Stars: ✭ 241 (+259.7%)
Mutual labels:  barcode
Qrcoder
A pure C# Open Source QR Code implementation
Stars: ✭ 2,794 (+4070.15%)
Mutual labels:  barcode

MVBarcodeReader

Download Android Arsenal

A Barcode scanning library for Android. Uses the Google Play Services' mobile vision api for barcode detection.

Setup

Maven

<dependency>
  <groupId>online.devliving</groupId>
  <artifactId>mvbarcodereader</artifactId>
  <version>LATEST_VERSION</version>
  <type>pom</type>
</dependency>

Gradle

compile 'online.devliving:mvbarcodereader:LATEST_VERSION'

Add following dependencies to your app's gradle file

compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.google.android.gms:play-services-basement:11.0.1'
compile 'com.google.android.gms:play-services-vision:11.0.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:support-annotations:25.3.1'

Usage

Scanning Modes

  • SINGLE_AUTO: The fastest mode. Returns the first barcode it can detect as soon as possible.
  • SINGLE_MANUAL: Detects and highlights all the barcode it can find but returns only the one that user chooses by tapping.
  • MULTIPLE: Detects and highlights all the barcode it can find. Returns all the barcodes on tap.

Barcode Types

You can view this link for a list of supported barcode formats.

Use the standalone scanner

launch the scanner from your Activity like this:

new MVBarcodeScanner.Builder()
                    .setScanningMode(mMode)
                    .setFormats(mFormats)
                    .build()
                    .launchScanner(this, REQ_CODE);

You'll receive the scanned barcode/barcodes in your Activity's onActivityResult

if (requestCode == REQ_CODE) {
            if (resultCode == RESULT_OK && data != null
                    && data.getExtras() != null) {
              
                if (data.getExtras().containsKey(MVBarcodeScanner.BarcodeObject)) {
                    Barcode mBarcode = data.getParcelableExtra(MVBarcodeScanner.BarcodeObject);
                } else if (data.getExtras().containsKey(MVBarcodeScanner.BarcodeObjects)) {
                    List<Barcode> mBarcodes = data.getParcelableArrayListExtra(MVBarcodeScanner.BarcodeObjects);
                }
            }
        }

Use the scanner fragment

You can use the BarcodeCaptureFragment to scan barcodes. Just add the fragment to your Activity

MVBarcodeScanner.ScanningMode mode = null;
@MVBarcodeScanner.BarCodeFormat int[] formats = null;

BarcodeCaptureFragment fragment = BarcodeCaptureFragment.instantiate(mode, formats);
getSupportFragmentManager().beginTransaction()
                .add(R.id.container, fragment)
                .commit();

Then make the the Activity implement the BarcodeCaptureFragment.BarcodeScanningListener so that you can receive results from the fragment or you can set the listener directly to the fragment

        fragment.setListener(new BarcodeCaptureFragment.BarcodeScanningListener() {
            @Override
            public void onBarcodeScanned(Barcode barcode) {
                
            }

            @Override
            public void onBarcodesScanned(List<Barcode> barcodes) {

            }

            @Override
            public void onBarcodeScanningFailed(String reason) {

            }
        });
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].