Coder Social home page Coder Social logo

Comments (4)

undecaf avatar undecaf commented on August 17, 2024 1

I suspect that the video height and width settings might influence the videoHeight and videoWidth attributes (i.e. the intrinsic resolution) of the video. If that is the case then the resolution might be too low to detect Code-128 but still sufficient to detect QR codes.

Could you therefore please also log videoEl.videoHeight and videoEl.videoWidth to see whether that is true?

Another test for my hypothesis would be to test whether other bar codes such as ean_13 also cannot be detected.

from barcode-detector-polyfill.

MahdiHoseiniTabar avatar MahdiHoseiniTabar commented on August 17, 2024

Thanks for your reply.
I printed videoEl.videoWidth and videoEl.videoHeight and see 640 x 480 so you are right.
I changed MediaTrackConstraints for video and set width: { exact: 1920 }, height: { exact: 1080 } now intrinsic resolution is 1920 x 1080 but steel cannot be detected code_128 :(

I take a picture from code_128 with great camera and the zoomed picture of code_128 be detected.

I tested ean_13 and be detected easily.

Have any solution?

from barcode-detector-polyfill.

mfulton26 avatar mfulton26 commented on August 17, 2024

Have you tried setting your width and height to the same values? I have found that an even numbered width/height along with an aspect ratio of one improves detection for code_128.

from barcode-detector-polyfill.

undecaf avatar undecaf commented on August 17, 2024

No activity here for the last four weeks, so closing. Please reopen if necessary.

from barcode-detector-polyfill.

Related Issues (15)

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.