Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hotstu/qrcodecamerax
QRcode decoder based on CameraX & zxing-core & ML kit, in less than 50 lines
https://github.com/hotstu/qrcodecamerax
camera2-api camerax camerax-api qrcode qrcode-decoder zxing
Last synced: about 2 months ago
JSON representation
QRcode decoder based on CameraX & zxing-core & ML kit, in less than 50 lines
- Host: GitHub
- URL: https://github.com/hotstu/qrcodecamerax
- Owner: hotstu
- License: apache-2.0
- Created: 2019-06-10T07:42:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-02T04:30:22.000Z (over 3 years ago)
- Last Synced: 2023-11-07T18:06:12.939Z (about 1 year ago)
- Topics: camera2-api, camerax, camerax-api, qrcode, qrcode-decoder, zxing
- Language: Kotlin
- Homepage:
- Size: 194 KB
- Stars: 116
- Watchers: 7
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![author](https://img.shields.io/badge/author-hglf-blue.svg)](https://github.com/hotstu)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
![androidx](https://img.shields.io/badge/target-androidx-blue.svg)
[![Awesome Kotlin Badge](https://kotlin.link/awesome-kotlin.svg)](https://github.com/hotstu/QRCodeCameraX)# QRCodeCameraX
QRcode decoder based on CameraX & zxing-core & ML kit, in less than 50 lines基于CameraX api,代码极度精简,没有垃圾代码,直接操作yuvimage buffer,识别速度快
内置两种识别方式可以随意切换
QRcodeAnalyzer: 基于zxing-core的二维码识别
MLQRcodeAnalyzer: 基于firebase 机器视觉的二维码识别,(需要设备安装google paly Service,否则无法使用)
article:https://www.jianshu.com/p/3ce81b55468d
后记:目前camerax还没有发布稳定版,很多api都在变化中,所以如果升级了依赖版本可能会报很多错,等google发布正式版本吧
#### 2020.4.2日更新:
CameraX1.0.0-beta02已经发布,不出所料大量的breaking changes,目前网上的资料包括官方的教程还是旧的,这里放出最新的适配:
beta02的版本:[QRCodeCameraX/beta02](https://github.com/hotstu/QRCodeCameraX/tree/beta02)
#### 2021.6.18日更新:
CameraX1.0.0已经发布,API 基本稳定