Android扫码优化(一)-openCV 官方Demo配置

2019-07-09  本文已影响0人  A代码搬运工

背景

目前主流的扫码框架主要是ZXing和Zbar两种。ZXing是Google官方的二维码扫码库,Zbar是第三方开发者提供的(已经没人在维护)。对于App日常的一些扫码需求,不管是ZXing还是Zbar都能满足。但是碰到一些特殊的场景,ZXing和ZBar识别率就不高。这些场景包括:

下图就是一张模糊样图,读者可以自行用市面上主流的App扫码测试。

灰色二维码.png

对于此种问题,就必须结合openCV处理了。

使用

OpenCV官方介绍:

OpenCV (Open Source Computer Vision Library) is an open source computer vision and machine learning software library. OpenCV was built to provide a common infrastructure for computer vision applications and to accelerate the use of machine perception in the commercial products. Being a BSD-licensed product, OpenCV makes it easy for businesses to utilize and modify the code.

sdk下载地址:https://opencv.org/releases/

操作步骤:

Demo地址:https://github.com/gongchaobin/openCVDemo.git

上一篇下一篇

猜你喜欢

热点阅读