Giter Site home page Giter Site logo

黑边检测 about czxing HOT 4 CLOSED

devilsen avatar devilsen commented on August 16, 2024
黑边检测

from czxing.

Comments (4)

devilsen avatar devilsen commented on August 16, 2024

具体是什么样的黑边,需要具体看下

from czxing.

KrioWly avatar KrioWly commented on August 16, 2024

我这边图片上传有问题,问题是二维码周围是黑色的,或者接近,这样会导致二维码二值化前后没什么变化,周围都是黑的(正常的二维码周围都是有一圈留白的),这样就导致找不到1:1:3:1:1的关系,zxing没法定位pattern点,从而无法识别

from czxing.

devilsen avatar devilsen commented on August 16, 2024

我这边图片上传有问题,问题是二维码周围是黑色的,或者接近,这样会导致二维码二值化前后没什么变化,周围都是黑的(正常的二维码周围都是有一圈留白的),这样就导致找不到1:1:3:1:1的关系,zxing没法定位pattern点,从而无法识别

确实,程序的使用还是有一点的基本需求的,如果不能解决这样的问题,我们只能从其他角度入手,另辟蹊径了。

from czxing.

KrioWly avatar KrioWly commented on August 16, 2024

因为我觉得可能光从二值化的方法去做应该是不行的,你用findContours的方法如果把条件降低,也能找到定位点,但是这样框出来的外接矩阵的大小可能就不能包含二维码的位置,所以是不是需要找到更加精确的定位方法,这样就可以这准确的用zxing的方法识别,希望可以给个思考方向

from czxing.

Related Issues (20)

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.