All Projects → nisrulz → Qreader

nisrulz / Qreader

Licence: apache-2.0
🔳 [Android Library] Read QR codes using google's mobile vision api, but without the hassle

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Qreader

Qr Code
QR Code Generator
Stars: ✭ 3,519 (+882.96%)
Mutual labels:  reader, qrcode
qrrs
CLI QR code generator and reader written in rust
Stars: ✭ 29 (-91.9%)
Mutual labels:  qrcode, reader
barcode scan2
[reborned barcode_scan] A flutter plugin for reading 2D barcodes and QR codes.
Stars: ✭ 43 (-87.99%)
Mutual labels:  qrcode, reader
Duareader
电子书阅读器,支持txt,e-pub(图文混排),纯swift编写,支持OC混编。 An e-book reader that supports TXT and e-pub formats. This project is written in swift and supports hybrid compilation with objective OC
Stars: ✭ 258 (-27.93%)
Mutual labels:  reader
Mbook
毕业设计--基于微信小程序的在线免费小说应用
Stars: ✭ 261 (-27.09%)
Mutual labels:  reader
Stegastamp
Invisible Hyperlinks in Physical Photographs
Stars: ✭ 306 (-14.53%)
Mutual labels:  qrcode
Simplereader
参考"任阅" 网络小说阅读器,一款ReactNative小说阅读器
Stars: ✭ 351 (-1.96%)
Mutual labels:  reader
Mimanganu
*ES - Lector de Manga online / offline, gratuito y de código abierto. *EN - Manga reader online / offline, free and open source. *FR - Lecteur de manga en ligne / hors ligne, gratuit et open source. *DE - Eine App um Manga zu lesen. Man kann damit Manga online und offline lesen. Es ist kostenlos und quelloffen. *IT - Manga lettore online / offline, gratuito e open source. *RU - В России Манга читает вас. Попробуйте MiMangaNu прямо сейчас.
Stars: ✭ 255 (-28.77%)
Mutual labels:  reader
Weapp Qrcode
Wechat miniapp generate qrcode image
Stars: ✭ 339 (-5.31%)
Mutual labels:  qrcode
Angularx Qrcode
Angular4/5/6/7/8/9/10/11 QRCode generator component library for QR Codes (Quick Response) with AOT support based on node-qrcode
Stars: ✭ 281 (-21.51%)
Mutual labels:  qrcode
Friendbook
📕 "友书" 小说阅读app
Stars: ✭ 275 (-23.18%)
Mutual labels:  reader
Esp Rfid Tool
A tool for logging data/testing devices with a Wiegand Interface. Can be used to create a portable RFID reader or installed directly into an existing installation. Provides access to a web based interface using WiFi in AP or Client mode. Will work with nearly all devices that contain a standard 5V Wiegand interface. Primary target group is 26-37bit HID Cards. Similar to the Tastic RFID Thief, Blekey, and ESPKey.
Stars: ✭ 262 (-26.82%)
Mutual labels:  reader
Thorium Reader
A cross platform desktop reading app, based on the Readium Desktop toolkit
Stars: ✭ 319 (-10.89%)
Mutual labels:  reader
Asmresolver
A library for editing PE files with full .NET metadata support
Stars: ✭ 267 (-25.42%)
Mutual labels:  reader
Xreader
XML, NEWS, RSS & Scrapping Reader maked in Xamarin, for educational purpose.
Stars: ✭ 259 (-27.65%)
Mutual labels:  reader
Spout
Read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way
Stars: ✭ 3,861 (+978.49%)
Mutual labels:  reader
React Reader
An ePub-reader for React, powered by Epub.js
Stars: ✭ 256 (-28.49%)
Mutual labels:  reader
Roundcode
Custom rounded QR code with lots of customization.
Stars: ✭ 267 (-25.42%)
Mutual labels:  qrcode
Swiftscan
A barcode and qr code scanner( 二维码/条形码扫描、生成,仿微信、支付宝)
Stars: ✭ 293 (-18.16%)
Mutual labels:  qrcode
Qrcode
QR code generation library in C, optimized for low-power devices, such as Arduino.
Stars: ✭ 351 (-1.96%)
Mutual labels:  qrcode

Image

Specs

API

Badges/Featured In

Android Arsenal AndroidDev Digest

Show some ❤️

GitHub stars GitHub forks GitHub watchers GitHub followers Twitter Follow

Android library which makes use of Google's Mobile Vision API to enable reading QR Code.

The library is built for simplicity and ease of use. It not only eliminates most boilerplate code for dealing with setting up QR Code reading , but also provides an easy and simple API to retrieve information from QR Code quickly.

Requires Google Play Services

Changelog

Starting with 1.0.4, Changes exist in the releases tab.

#Integration QREader is available in the Jcenter, so getting it as simple as adding it as a dependency

  • For gradle version < 4.0

    compile 'com.github.nisrulz:qreader:{latest version}'
    
  • For gradle 4.0+

    implementation 'com.github.nisrulz:qreader:{latest version}'
    

where {latest version} corresponds to published version in Download

Usage Docs

Steps

  1. Add a SurfaceView to your layout
<SurfaceView
  android:id="@+id/camera_view"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:layout_above="@+id/info"
  />
  1. Setup SurfaceView and QREader in onCreate()
// QREader
private SurfaceView mySurfaceView;
private QREader qrEader;
..

@Override
protected void onCreate(final Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main);
  ..
  ..

  // Setup SurfaceView
  // -----------------
  mySurfaceView = (SurfaceView) findViewById(R.id.camera_view);

  // Init QREader
  // ------------
  qrEader = new QREader.Builder(this, mySurfaceView, new QRDataListener() {
    @Override
    public void onDetected(final String data) {
      Log.d("QREader", "Value : " + data);
      text.post(new Runnable() {
        @Override
        public void run() {
          text.setText(data);
        }
      });
    }
  }).facing(QREader.BACK_CAM)
      .enableAutofocus(true)
      .height(mySurfaceView.getHeight())
      .width(mySurfaceView.getWidth())
      .build();

}
  1. Initialize and Start in onResume()
  @Override
  protected void onResume() {
    super.onResume();

    // Init and Start with SurfaceView
    // -------------------------------
    qrEader.initAndStart(mySurfaceView);
  }
  1. Cleanup in onPause()
  @Override
  protected void onPause() {
    super.onPause();

    // Cleanup in onPause()
    // --------------------
    qrEader.releaseAndCleanup();
  }
  1. Some provided utility functions which you can use
  • To check if the camera is running

    boolean isCameraRunning = qrEader.isCameraRunning()
    
  • To stop QREader

    qrEader.stop();
    
  • To start QREader

    qrEader.start();
    
Check the included sample app for a working example.

Pull Requests

I welcome and encourage all pull requests. It usually will take me within 24-48 hours to respond to any issue or request. Here are some basic rules to follow to ensure timely addition of your request:

  1. Match coding style (braces, spacing, etc.) This is best achieved using CMD+Option+L (Reformat code) on Mac (not sure for Windows) with Android Studio defaults.
  2. If its a feature, bugfix, or anything please only change code to what you specify.
  3. Please keep PR titles easy to read and descriptive of changes, this will make them easier to merge :)
  4. Pull requests must be made against develop branch. Any other branch (unless specified by the maintainers) will get rejected.
  5. Check for existing issues first, before filing an issue.
  6. Have fun!

Created & Maintained By

Nishant Srivastava (@nisrulz)

If you found this library helpful or you learned something from the source code and want to thank me, consider buying me a cup of ☕️

  • PayPal
  • Bitcoin Address: 13PjuJcfVW2Ad81fawqwLtku4bZLv1AxCL
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].