Giter VIP home page Giter VIP logo

Comments (10)

Jibin-Balachandran avatar Jibin-Balachandran commented on August 18, 2024 6

@serratus , Does it support 2D barcodes now??

from quaggajs.

serratus avatar serratus commented on August 18, 2024

Sorry, 2D barcode decoding is not yet implemented. Currently Code128 and EAN are the only options available. In the near future, a few more one-d barcodes will be supported.

2D barcodes are further down the roadmap and will require quite some effort. Maybe someone in the community can help out.

from quaggajs.

usermsdpa avatar usermsdpa commented on August 18, 2024

thank you for your quick response. can you please point me to something when i can decode 2d barcodes or can you please help me in getting the barcode image from the video stream so that i can pass the image to a barcode reader. your help is so much appreciated thank you

from quaggajs.

serratus avatar serratus commented on August 18, 2024

Sorry, I don't quite understand what your requirements are. Do you need it to run in a web-browser? You could try zxing for running it natively on your phone. But I don't know any implementation running in the browser.

from quaggajs.

usermsdpa avatar usermsdpa commented on August 18, 2024

i am trying to run in a web browser. i am able to open camera take a snapshot from video and send the image to the server and passing that bitmap image to zxing barcoder reader But the problem is with the snapshot the images are not clear and zxing reader cannot recognize the bitmap. can you suggest a way to fetch the barcode image out of the viedo stream?

from quaggajs.

serratus avatar serratus commented on August 18, 2024

One way to get clearer images is by using the html5 File-API and prompt the user to take a picture with his/her camera.

If you want to use getUserMedia, try to increase the resolution of the camera by setting the appropriate constraints. Take a look at camera_access if you want to know how.

from quaggajs.

usermsdpa avatar usermsdpa commented on August 18, 2024

i tried using this camera_access.js file in the application when i am trying to load it says define is not defined i am really new to javascript please help me

from quaggajs.

usermsdpa avatar usermsdpa commented on August 18, 2024

i tried setting the below code for video but it stays the same can you please help
video: {
"mandatory": {
"minWidth": "1280",
"maxWidth": "1280",
"minHeight": "720",
"maxHeight": "720",
"minFrameRate": "30"
},
"optional": []
}

from quaggajs.

serratus avatar serratus commented on August 18, 2024

I've created a gist which demonstrates how to request the camera stream, including constraints (for Chrome only). Additionally, the video stream is copied to a canvas element which can then be used to capture the frames. You can take a look at the canvas API here where you can find the calls for your use-case (most probably toDataURL())

from quaggajs.

usermsdpa avatar usermsdpa commented on August 18, 2024

Thank you very much. Now i am able to get clear picture with resolution thank again you help me a lot

from quaggajs.

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.