{"id":13425791,"url":"https://github.com/dlazaro66/QRCodeReaderView","last_synced_at":"2025-03-15T20:31:20.751Z","repository":{"id":41368127,"uuid":"11426278","full_name":"dlazaro66/QRCodeReaderView","owner":"dlazaro66","description":"Modification of ZXING Barcode Scanner project for easy Android QR-Code detection and AR purposes","archived":false,"fork":false,"pushed_at":"2021-06-21T04:55:28.000Z","size":3667,"stargazers_count":1900,"open_issues_count":54,"forks_count":492,"subscribers_count":78,"default_branch":"master","last_synced_at":"2024-10-28T04:23:46.496Z","etag":null,"topics":["android","camera","qrcodereaderview","zxing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dlazaro66.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-15T15:18:11.000Z","updated_at":"2024-10-24T06:52:44.000Z","dependencies_parsed_at":"2022-07-15T06:30:56.515Z","dependency_job_id":null,"html_url":"https://github.com/dlazaro66/QRCodeReaderView","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlazaro66%2FQRCodeReaderView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlazaro66%2FQRCodeReaderView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlazaro66%2FQRCodeReaderView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlazaro66%2FQRCodeReaderView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dlazaro66","download_url":"https://codeload.github.com/dlazaro66/QRCodeReaderView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790943,"owners_count":20348378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","camera","qrcodereaderview","zxing"],"created_at":"2024-07-31T00:01:18.990Z","updated_at":"2025-03-15T20:31:16.035Z","avatar_url":"https://github.com/dlazaro66.png","language":"Java","readme":"QRCodeReaderView [![Download](https://api.bintray.com/packages/dlazaro66/maven/QRCodeReaderView/images/download.svg) ](https://bintray.com/dlazaro66/maven/QRCodeReaderView/_latestVersion) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-QRCodeReaderView-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/1891) [![Build Status](https://travis-ci.org/dlazaro66/QRCodeReaderView.svg?branch=master)](https://travis-ci.org/dlazaro66/QRCodeReaderView)\n===\n\n### Disclaimer: This project is no longer actively maintained ###\n\n#### Modification of ZXING Barcode Scanner project for easy Android QR-Code detection and AR purposes. ####\n\nThis project implements an Android view which show camera and notify when there's a QR code inside the preview.\n\nSome Classes of camera controls and autofocus are taken and slightly modified from Barcode Scanner Android App.\n\nYou can also use this for Augmented Reality purposes, as you get QR control points coordinates when decoding.\n\nUsage\n-----\n\n- Add a \"QRCodeReaderView\" in the layout editor like you actually do with a button for example.\n- In your onCreate method, you can find the view as usual, using findViewById() function.\n- Create an Activity which implements `onQRCodeReadListener`, and let implements required methods or set a `onQRCodeReadListener` to the QRCodeReaderView object\n- Make sure you have camera permissions in order to use the library. (https://developer.android.com/training/permissions/requesting.html)\n\n```xml\n\n \u003ccom.dlazaro66.qrcodereaderview.QRCodeReaderView\n        android:id=\"@+id/qrdecoderview\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\" /\u003e\n\n```\n\n- Start \u0026 Stop camera preview in onPause() and onResume() overriden methods.\n- You can place widgets or views over QRDecoderView.\n \n```java\npublic class DecoderActivity extends Activity implements OnQRCodeReadListener {\n\n    private TextView resultTextView;\n\tprivate QRCodeReaderView qrCodeReaderView;\n\n\t@Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_decoder);\n        \n        qrCodeReaderView = (QRCodeReaderView) findViewById(R.id.qrdecoderview);\n        qrCodeReaderView.setOnQRCodeReadListener(this);\n\n    \t  // Use this function to enable/disable decoding\n        qrCodeReaderView.setQRDecodingEnabled(true);\n\n        // Use this function to change the autofocus interval (default is 5 secs)\n        qrCodeReaderView.setAutofocusInterval(2000L);\n\n        // Use this function to enable/disable Torch\n        qrCodeReaderView.setTorchEnabled(true);\n\n        // Use this function to set front camera preview\n        qrCodeReaderView.setFrontCamera();\n\n        // Use this function to set back camera preview\n        qrCodeReaderView.setBackCamera();\n    }\n\n    // Called when a QR is decoded\n    // \"text\" : the text encoded in QR\n    // \"points\" : points where QR control points are placed in View\n\t@Override\n\tpublic void onQRCodeRead(String text, PointF[] points) {\n\t\tresultTextView.setText(text);\n\t}\n    \n\t@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tqrCodeReaderView.startCamera();\n\t}\n\t\n\t@Override\n\tprotected void onPause() {\n\t\tsuper.onPause();\n\t\tqrCodeReaderView.stopCamera();\n\t}\n}\n```\n\nAdd it to your project\n----------------------\n\nAdd QRCodeReaderView dependency to your build.gradle\n\n```groovy\n\ndependencies{\n      compile 'com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.3'\n}\n```\n\nNote: 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:\n\n```groovy\n\ndependencies{\n      compile ('com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.3@aar'){\n        transitive = true\n      }\n}\n```\nAnd in some cases, you need to clean your Gradle cache\n`./gradlew build --refresh-dependencies`\n\nDo you want to contribute?\n--------------------------\n\nPlease send a PR or open an issue with your comments.\nSee [CONTRIBUTING file](CONTRIBUTING.md) for further information\n\nLibraries used in this project\n------------------------------\n\n* [ZXING][1]\n\nScreenshots\n-----------\n\n![Image](../master/readme_images/app-example.gif?raw=true)\n\nDeveloped By\n------------\n\n* David Lázaro Esparcia  \n\n\u003ca href=\"https://twitter.com/_dlazaro\"\u003e\n  \u003cimg alt=\"Follow me on Twitter\" src=\"../master/readme_images/logo-twitter.png?raw=true\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://es.linkedin.com/pub/david-lázaro-esparcia/49/4b3/342\"\u003e\n  \u003cimg alt=\"Add me to Linkedin\" src=\"../master/readme_images/logo-linkedin.png?raw=true\" /\u003e\n\u003c/a\u003e\n\n\nWho's using it\n--------------\n\n*Does your app use QRCodeReaderView? If you want to be featured on this list drop me a line.*\n\n* [Swapcard][2]\n\nLicense\n-------\n\n    Copyright 2017 David Lázaro\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n[1]: https://github.com/zxing/zxing/\n[2]: https://www.swapcard.com/\n","funding_links":[],"categories":["Java"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlazaro66%2FQRCodeReaderView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlazaro66%2FQRCodeReaderView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlazaro66%2FQRCodeReaderView/lists"}