All Projects → phishman3579 → Android Quick Response Code

phishman3579 / Android Quick Response Code

Licence: apache-2.0
Android QR Code Decoder and Encoder

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Android Quick Response Code

Pwa Barcode Scanner
Information about food from the barcode, on your phone 🛒
Stars: ✭ 122 (-22.78%)
Mutual labels:  barcode
Phpasn1
A PHP library to encode and decode arbitrary ASN.1 structures using ITU-T X.690 encoding rules.
Stars: ✭ 136 (-13.92%)
Mutual labels:  decoding
Rxtool
Android开发人员不得不收集的工具类集合 | 支付宝支付 | 微信支付(统一下单) | 微信分享 | Zip4j压缩(支持分卷压缩与加密) | 一键集成UCrop选择圆形头像 | 一键集成二维码和条形码的扫描与生成 | 常用Dialog | WebView的封装可播放视频 | 仿斗鱼滑动验证码 | Toast封装 | 震动 | GPS | Location定位 | 图片缩放 | Exif 图片添加地理位置信息(经纬度) | 蛛网等级 | 颜色选择器 | ArcGis | VTPK | 编译运行一下说不定会找到惊喜
Stars: ✭ 11,567 (+7220.89%)
Mutual labels:  barcode
Zzyqrcode
a scanner for QRCode barCode 最好用的ios二维码、条形码,扫描、生成框架,支持闪光灯,从相册获取,扫描音效等,高仿微信,微博
Stars: ✭ 123 (-22.15%)
Mutual labels:  barcode
React Native Qrcode Scanner
A QR code scanner component for React Native.
Stars: ✭ 1,796 (+1036.71%)
Mutual labels:  barcode
Crypto Rnn
Learning the Enigma with Recurrent Neural Networks
Stars: ✭ 139 (-12.03%)
Mutual labels:  decoding
Sgqrcode
The easy to use bar code and QR code scan library for iOS【支持二维码生成、从相册中读取二维码、条形码和二维码扫描】
Stars: ✭ 1,571 (+894.3%)
Mutual labels:  barcode
Netbarcode
Barcode generation library written in C# and .NET Standard 2
Stars: ✭ 149 (-5.7%)
Mutual labels:  barcode
Fit
A Go package for decoding and encoding Garmin FIT files
Stars: ✭ 128 (-18.99%)
Mutual labels:  decoding
Segno
Python QR Code and Micro QR Code encoder
Stars: ✭ 144 (-8.86%)
Mutual labels:  barcode
Codability
Useful helpers for working with Codable types in Swift
Stars: ✭ 125 (-20.89%)
Mutual labels:  decoding
Javascript Barcode Reader
Simple and Fast Barcode decoder with support of Code128, Code93, Code39, Standard/Industrial 2 of 5, Interleaved 2 of 5, Codabar, EAN-13, EAN-8 barcodes in javascript.
Stars: ✭ 127 (-19.62%)
Mutual labels:  barcode
Barcode
barcode.php - Generate barcodes from a single PHP file. MIT license.
Stars: ✭ 141 (-10.76%)
Mutual labels:  barcode
Barcode To Pc App
Barcode to PC app
Stars: ✭ 121 (-23.42%)
Mutual labels:  barcode
React Native Barcode Builder
Component for generating barcode in react native app
Stars: ✭ 146 (-7.59%)
Mutual labels:  barcode
Vxg.media.sdk.android
Market leading Android SDK with encoding, streaming & playback functionality
Stars: ✭ 119 (-24.68%)
Mutual labels:  decoding
Escpos Php
PHP library for printing to ESC/POS-compatible thermal and impact printers
Stars: ✭ 1,851 (+1071.52%)
Mutual labels:  barcode
Rawloader
rust library to extract the raw data and some metadata from digital camera images
Stars: ✭ 153 (-3.16%)
Mutual labels:  decoding
Ffmpeg Video Player
An FFmpeg and SDL Tutorial.
Stars: ✭ 149 (-5.7%)
Mutual labels:  decoding
Zxinglite
🔥 ZXing的精简版,优化扫码和生成二维码/条形码,内置闪光灯等功能。扫描风格支持:微信的线条样式,支付宝的网格样式。几句代码轻松拥有扫码功能 ,ZXingLite让集成更简单。(扫码识别速度快如微信)
Stars: ✭ 2,117 (+1239.87%)
Mutual labels:  barcode

android-quick-response-code

Android QR Code Decoder and Encoder

Introduction

This is a port of the ZXing (version 2.1) project but reduced in size and scope. It can be used as a direct call from any Android project instead of using the ZXing Intents mechanism.

This project is an attempt to make working with QR codes in Android a bit easier.

Support me with a donation

Donate to this project

Encoding

You can encode a String fairly easily using the following code:

Encode with a QR Code

//Encode with a QR Code image
QRCodeEncoder qrCodeEncoder = new QRCodeEncoder("Hello", 
                                                null, 
                                                Contents.Type.TEXT,  
                                                BarcodeFormat.QR_CODE.toString(), 
                                                smallerDimension);
Bitmap bitmap = qrCodeEncoder.encodeAsBitmap();

Encode with a Barcode

//Encode with a QR Code image
QRCodeEncoder qrCodeEncoder = new QRCodeEncoder("12345678910", 
                                                null, 
                                                Contents.Type.TEXT, 
                                                BarcodeFormat.UPC_A.toString(), 
                                                smallerDimension);
Bitmap bitmap = qrCodeEncoder.encodeAsBitmap();

Encoding Activity Example

You can see an example of how to ecode a string as a Bitmap and display it on the screen by following along with the EncoderActivity.java file.

Decoding

You can decode what is being displayed by the camera by extending Activity and implementing both IDecoderActivity and SurfaceHolder.Callback. An easier option is just to extend the DecoderActivity and override the handleDecode() method, the CaptureActivity does exactly that and is a good example to follow.

//When you initialize the camera, start the DecoderActivityHandler
//decodeFormarts is a Collection of BarcodeFormat objects to decipher. NULL means all.
//characterSet should be NULL to get a callbak
//cameraManager is used to control the preview
@Override
public void surfaceCreated(SurfaceHolder holder) {
    DecoderActivityHandler handler = new DecoderActivityHandler(this, 
                                                                decodeFormats, 
                                                                characterSet, 
                                                                cameraManager);
}

//handleDecode() is called when a code has been deciphered.
@Override 
public void handleDecode(Result rawResult, Bitmap barcode) {
    drawResultPoints(barcode, rawResult);
    ResultHandler resultHandler = ResultHandlerFactory.makeResultHandler(this, rawResult);
    handleDecodeInternally(rawResult, resultHandler, barcode);
}

Decoding and Capture Activity Example

You can see an example of how to decode an image by following along with the DecoderActivity.java file. You will also find a minimal example of how to decode an image and display it's results by following the CaptureActivity.java file.

Decoding Formats

  • Aztec 2D barcode format.
  • CODABAR 1D format.
  • Code 39 1D format.
  • Code 93 1D format.
  • Code 128 1D format.
  • Data Matrix 2D barcode format.
  • EAN-8 1D format.
  • EAN-13 1D format.
  • ITF (Interleaved Two of Five) 1D format.
  • MaxiCode 2D barcode format.
  • PDF417 format.
  • QR Code 2D barcode format.
  • RSS 14 format.
  • RSS EXPANDED format.
  • UPC-A 1D format.
  • UPC-E 1D format.
  • UPC/EAN extension format. Not a stand-alone format.

Encoding Formats

  • CODABAR 1D format.
  • Code 128 1D format.
  • Code 39 1D format.
  • EAN-8 1D format.
  • EAN-13 1D format.
  • ITF (Interleaved Two of Five) 1D format.
  • PDF417 format.
  • QR Code 2D barcode format.
  • UPC-A 1D format.
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].