Code Monkey home page Code Monkey logo

nbzxing's Introduction

NBZxing

一个稳定完善的扫码库,几行代码既可接入,完美适配各种分辨率无拉伸,可插拔式自定义UI 。

亮点

  • 基于google-cameraView调整优化,大量机型测试,可稳定流畅启动关闭相机
  • Camera2-Camera1分别实现扫码, 高版本默认走Camera2, 低版本Camera1, Camera2启动失败走Camera1
  • 灰度算法处理, 可应付一些特殊场景二维码并可拓展
  • zxing源码修改,彻底解决复杂二维码扫出一堆不相干数字问题
  • 可能是目前最完善的扫码横竖屏切换,可配置不同布局,可动态切换

依赖

API

	        implementation 'com.github.ailiwean:NBZxing:0.0.28'
		//若需要使用灰度算法增强库,再次添加以下依赖(纯java超轻量,两个同时依赖,包体积只增大约400kb,混淆后仅200k)
		implementation 'com.github.ailiwean:NBZxing-Scale:0.0.4'

NBZxing-Scale

说明

  • 仅AndroidX 不提供support,有需要自己改也没多少。
  • 库中已经包含zxing源码无需再次依赖

下版预期

  • 支持黑边等异形二维码扫描

WIKI

如何使用-超简易

感谢@guangming提供近百台机型应用测试🙏

下载体验

在这里插入图片描述

  • 安装密码1234
😊 <自从写了这个库后,感觉身体与时间被掏空!!真的是花费了太多精力。如果觉得还凑合不错,强烈请求来上一个star ,开源不易,多多鼓励,感谢!> 😊

测试二维码

标准反色 标准反色
彩色 彩色
暗色 暗色
曝光 曝光
浅色 浅色
间断 间断

联系我

QQ群: 444236054欢迎进群交流

😊 😊
请喝咖啡 pay

nbzxing's People

Contributors

ailiwean avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.