All Projects → dlazaro66 → Qrcodereaderview

dlazaro66 / Qrcodereaderview

Modification of ZXING Barcode Scanner project for easy Android QR-Code detection and AR purposes

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Qrcodereaderview

Ngx Scanner
Angular (2+) QR code, Barcode, DataMatrix, scanner component using ZXing.
Stars: ✭ 420 (-77.58%)
Mutual labels:  zxing, camera
Instascan
HTML5 QR code scanner using your webcam
Stars: ✭ 2,657 (+41.86%)
Mutual labels:  zxing, camera
Nbzxing
🔥 2020年最好用的开源扫码,全方位优化,强烈推荐!! 支持多种常规zxing无法扫出的码,用就完了!! 🔥
Stars: ✭ 184 (-90.18%)
Mutual labels:  zxing, camera
Scanner
二维码/条码识别、身份证识别、银行卡识别、车牌识别、图片文字识别、黄图识别、驾驶证(驾照)识别
Stars: ✭ 547 (-70.8%)
Mutual labels:  zxing, camera
Ngx Webcam
A simple Angular webcam component / pure & minimal, no flash-fallback
Stars: ✭ 148 (-92.1%)
Mutual labels:  camera
Imageprocessing
MicaSense RedEdge and Altum image processing tutorials
Stars: ✭ 139 (-92.58%)
Mutual labels:  camera
Wslivedemo
音视频,直播SDK,rtmp推流,录制视频,滤镜。百万用户,线上迭代半年,已经稳定。
Stars: ✭ 1,782 (-4.86%)
Mutual labels:  camera
React Native Qrcode Scanner
A QR code scanner component for React Native.
Stars: ✭ 1,796 (-4.11%)
Mutual labels:  camera
Mipi csi receiver fpga
MIPI CSI-2 Camera Sensor Receiver verilog HDL implementation For any generic FPGA. Tested with IMX219 on Lattice MachXO3LF. 2Gbps UVC Video Stream Over USB 3.0 with Cypress FX3
Stars: ✭ 154 (-91.78%)
Mutual labels:  camera
Sltk
An OpenCV-based structured light processing toolkit.
Stars: ✭ 151 (-91.94%)
Mutual labels:  camera
Hybridcamera
Video and photo camera for iOS
Stars: ✭ 145 (-92.26%)
Mutual labels:  camera
Androidcamera
🔥🔥🔥自定义Android相机(仿抖音 TikTok),其中功能包括视频人脸识别贴纸,美颜,分段录制,视频裁剪,视频帧处理,获取视频关键帧,视频旋转,添加滤镜,添加水印,合成Gif到视频,文字转视频,图片转视频,音视频合成,音频变声处理,SoundTouch,Fmod音频处理。 Android camera(imitation Tik Tok), which includes video editor,audio editor,video face recognition stickers, segment recording,video cropping, video frame processing, get the first video frame, key frame, v…
Stars: ✭ 2,112 (+12.76%)
Mutual labels:  camera
Imagecapture Polyfill
MediaStream ImageCapture polyfill. Take photos from the browser as easy as .takePhoto().then(processPhoto)
Stars: ✭ 150 (-91.99%)
Mutual labels:  camera
C Is For Camera
A 35mm camera, based on the Canonet G-III QL17 rangefinder, simulated in Python.
Stars: ✭ 138 (-92.63%)
Mutual labels:  camera
Mmalsharp
C# wrapper to Broadcom's MMAL with an API to the Raspberry Pi camera.
Stars: ✭ 152 (-91.88%)
Mutual labels:  camera
Fullscreencamera
A Full Screen Camera App written in Swift
Stars: ✭ 131 (-93.01%)
Mutual labels:  camera
Zxing
基于zxing的扫一扫,优化了扫描二维码速度,集成最新版本的jar包(zxing-core.jar 3.3.3),集成简单,速度快,可配置颜色,还有闪光灯,解析二维码图片,生成二维码等功能
Stars: ✭ 1,873 (+0%)
Mutual labels:  zxing
Nextlevel
NextLevel was initally a weekend project that has now grown into a open community of camera platform enthusists. The software provides foundational components for managing media recording, camera interface customization, gestural interaction customization, and image streaming on iOS. The same capabilities can also be found in apps such as Snapchat, Instagram, and Vine.
Stars: ✭ 1,940 (+3.58%)
Mutual labels:  camera
Pictureselectorlight
Picture Selector Library for Android or 图片选择器
Stars: ✭ 145 (-92.26%)
Mutual labels:  camera
Mobilecameratemplate
A HTML5, JS, CSS Camera interface template. Feel free to use it in your next Computer Vision or AI project.
Stars: ✭ 145 (-92.26%)
Mutual labels:  camera

QRCodeReaderView Download Android Arsenal Build Status

Disclaimer: This project is no longer actively maintained

Modification of ZXING Barcode Scanner project for easy Android QR-Code detection and AR purposes.

This project implements an Android view which show camera and notify when there's a QR code inside the preview.

Some Classes of camera controls and autofocus are taken and slightly modified from Barcode Scanner Android App.

You can also use this for Augmented Reality purposes, as you get QR control points coordinates when decoding.

Usage

  • Add a "QRCodeReaderView" in the layout editor like you actually do with a button for example.
  • In your onCreate method, you can find the view as usual, using findViewById() function.
  • Create an Activity which implements onQRCodeReadListener, and let implements required methods or set a onQRCodeReadListener to the QRCodeReaderView object
  • Make sure you have camera permissions in order to use the library. (https://developer.android.com/training/permissions/requesting.html)
 <com.dlazaro66.qrcodereaderview.QRCodeReaderView
        android:id="@+id/qrdecoderview"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
  • Start & Stop camera preview in onPause() and onResume() overriden methods.
  • You can place widgets or views over QRDecoderView.
public class DecoderActivity extends Activity implements OnQRCodeReadListener {

    private TextView resultTextView;
	private QRCodeReaderView qrCodeReaderView;

	@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_decoder);
        
        qrCodeReaderView = (QRCodeReaderView) findViewById(R.id.qrdecoderview);
        qrCodeReaderView.setOnQRCodeReadListener(this);

    	  // Use this function to enable/disable decoding
        qrCodeReaderView.setQRDecodingEnabled(true);

        // Use this function to change the autofocus interval (default is 5 secs)
        qrCodeReaderView.setAutofocusInterval(2000L);

        // Use this function to enable/disable Torch
        qrCodeReaderView.setTorchEnabled(true);

        // Use this function to set front camera preview
        qrCodeReaderView.setFrontCamera();

        // Use this function to set back camera preview
        qrCodeReaderView.setBackCamera();
    }

    // Called when a QR is decoded
    // "text" : the text encoded in QR
    // "points" : points where QR control points are placed in View
	@Override
	public void onQRCodeRead(String text, PointF[] points) {
		resultTextView.setText(text);
	}
    
	@Override
	protected void onResume() {
		super.onResume();
		qrCodeReaderView.startCamera();
	}
	
	@Override
	protected void onPause() {
		super.onPause();
		qrCodeReaderView.stopCamera();
	}
}

Add it to your project

Add QRCodeReaderView dependency to your build.gradle

dependencies{
      compile 'com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.3'
}

Note: There is an issue with gradle 2.10, if you declare your dependency and it can't be found in jCenter repository (could not find qrcodereaderview.jar Searched in the following locations: or similar), try to declare the library dependency like this:

dependencies{
      compile ('com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.3@aar'){
        transitive = true
      }
}

And in some cases, you need to clean your Gradle cache ./gradlew build --refresh-dependencies

Do you want to contribute?

Please send a PR or open an issue with your comments. See CONTRIBUTING file for further information

Libraries used in this project

Screenshots

Image

Developed By

  • David Lázaro Esparcia
Follow me on Twitter Add me to Linkedin

Who's using it

Does your app use QRCodeReaderView? If you want to be featured on this list drop me a line.

License

Copyright 2017 David Lázaro

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the 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].