{"id":30639637,"url":"https://github.com/credntia/mvbarcodereader","last_synced_at":"2025-08-31T00:09:26.713Z","repository":{"id":57738287,"uuid":"67932914","full_name":"Credntia/MVBarcodeReader","owner":"Credntia","description":"A Barcode scanner library for Android. Uses the Google Play Services' mobile vision api for barcode detection.","archived":false,"fork":false,"pushed_at":"2018-05-09T14:10:31.000Z","size":219,"stargazers_count":68,"open_issues_count":8,"forks_count":22,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-27T14:55:49.044Z","etag":null,"topics":["android","barcode","barcode-detection","mobile-vision","scanning-barcodes"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Credntia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-11T14:00:12.000Z","updated_at":"2024-07-01T18:02:28.000Z","dependencies_parsed_at":"2022-08-24T09:00:16.898Z","dependency_job_id":null,"html_url":"https://github.com/Credntia/MVBarcodeReader","commit_stats":null,"previous_names":["iammehedi/mvbarcodereader"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Credntia/MVBarcodeReader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Credntia%2FMVBarcodeReader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Credntia%2FMVBarcodeReader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Credntia%2FMVBarcodeReader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Credntia%2FMVBarcodeReader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Credntia","download_url":"https://codeload.github.com/Credntia/MVBarcodeReader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Credntia%2FMVBarcodeReader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272922346,"owners_count":25015769,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","barcode","barcode-detection","mobile-vision","scanning-barcodes"],"created_at":"2025-08-31T00:09:25.783Z","updated_at":"2025-08-31T00:09:26.699Z","avatar_url":"https://github.com/Credntia.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MVBarcodeReader\n[ ![Download](https://api.bintray.com/packages/iammehedi/MVBarcodeReader/online.devliving%3Amvbarcodereader/images/download.svg) ](https://bintray.com/iammehedi/MVBarcodeReader/online.devliving%3Amvbarcodereader/_latestVersion)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-MVBarcodeReader-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/4457)\n\nA Barcode scanning library for Android. Uses the Google Play Services' mobile vision api for barcode detection.\n\n## Setup\n### Maven\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eonline.devliving\u003c/groupId\u003e\n  \u003cartifactId\u003emvbarcodereader\u003c/artifactId\u003e\n  \u003cversion\u003eLATEST_VERSION\u003c/version\u003e\n  \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle\n```groovy\ncompile 'online.devliving:mvbarcodereader:LATEST_VERSION'\n```\nAdd following dependencies to your app's gradle file\n```groovy\ncompile 'com.android.support:appcompat-v7:25.3.1'\ncompile 'com.google.android.gms:play-services-basement:11.0.1'\ncompile 'com.google.android.gms:play-services-vision:11.0.1'\ncompile 'com.android.support:design:25.3.1'\ncompile 'com.android.support:support-annotations:25.3.1'\n```\n\n## Usage\n### Scanning Modes\n- `SINGLE_AUTO`: The fastest mode. Returns the first barcode it can detect as soon as possible.\n- `SINGLE_MANUAL`: Detects and highlights all the barcode it can find but returns only the one that user chooses by tapping.\n- `MULTIPLE`: Detects and highlights all the barcode it can find. Returns all the barcodes on tap.\n\n### Barcode Types\nYou can view [this link](https://developers.google.com/vision/barcodes-overview) for a list of supported barcode formats.\n\n### Use the standalone scanner\nlaunch the scanner from your `Activity` like this:\n```java\nnew MVBarcodeScanner.Builder()\n                    .setScanningMode(mMode)\n                    .setFormats(mFormats)\n                    .build()\n                    .launchScanner(this, REQ_CODE);\n```\nYou'll receive the scanned barcode/barcodes in your Activity's `onActivityResult`\n```java\nif (requestCode == REQ_CODE) {\n            if (resultCode == RESULT_OK \u0026\u0026 data != null\n                    \u0026\u0026 data.getExtras() != null) {\n              \n                if (data.getExtras().containsKey(MVBarcodeScanner.BarcodeObject)) {\n                    Barcode mBarcode = data.getParcelableExtra(MVBarcodeScanner.BarcodeObject);\n                } else if (data.getExtras().containsKey(MVBarcodeScanner.BarcodeObjects)) {\n                    List\u003cBarcode\u003e mBarcodes = data.getParcelableArrayListExtra(MVBarcodeScanner.BarcodeObjects);\n                }\n            }\n        }\n```\n\n### Use the scanner fragment\nYou can use the `BarcodeCaptureFragment` to scan barcodes. Just add the fragment to your `Activity`\n```java\nMVBarcodeScanner.ScanningMode mode = null;\n@MVBarcodeScanner.BarCodeFormat int[] formats = null;\n\nBarcodeCaptureFragment fragment = BarcodeCaptureFragment.instantiate(mode, formats);\ngetSupportFragmentManager().beginTransaction()\n                .add(R.id.container, fragment)\n                .commit();\n```\nThen 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\n```java\n        fragment.setListener(new BarcodeCaptureFragment.BarcodeScanningListener() {\n            @Override\n            public void onBarcodeScanned(Barcode barcode) {\n                \n            }\n\n            @Override\n            public void onBarcodesScanned(List\u003cBarcode\u003e barcodes) {\n\n            }\n\n            @Override\n            public void onBarcodeScanningFailed(String reason) {\n\n            }\n        });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcredntia%2Fmvbarcodereader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcredntia%2Fmvbarcodereader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcredntia%2Fmvbarcodereader/lists"}