Replies: 4 comments 5 replies
-
Your codesandbox just errors out with I don't see anywhere in your code where you're specifying the reader resolution or patch size or any other parameters you set to get a successful read. Your constraints block (and I know there's a lot of bad examples out there) could stand to be updated to modern specs too, https://blog.addpipe.com/getusermedia-video-constraints/ |
Beta Was this translation helpful? Give feedback.
-
the constraints only tell the browser what kind of camera you want to find. Other commonly used parameters in Quagga.init
I'm realizing maybe the README needs to be re-organized and re-thought well before the next major update. |
Beta Was this translation helpful? Give feedback.
-
I'm confused as to what our goal is here now If we're trying to improve the camera resolution, then you're probably looking for something like
|
Beta Was this translation helpful? Give feedback.
-
My experience indicates that on a cell phone, typically, you get whatever resolution the maximum of the selected camera is, regardless of what you actually ask for, whereas on a PC with a single camera, it'll give you the closest resolution that camera supports (ie, if i ask for 640x480 on my USB webcam that supports multiple resolutions, I'll actually get it, instead of getting 1920x1080) Also have experienced significant differences between how the HTML video element works between desktop and mobile, in that on desktop, the video inside the element will be resized to fit the element, whereas on mobile, the element is resized to fit the resolution of the video. This has all been a couple of years since I've last looked at it, though, and things may be wildly different now. Here's the block I'm currently using (and i'm noticing it doesn't have a 'size' param, so i'm curious what the default is)
|
Beta Was this translation helpful? Give feedback.
-
Hello i need to integrate Quagga2 in a project to read a barcode that looks like this:
https://www.sociale.it/wp-content/uploads/2014/08/tessera-sanitaria-2.png
It's the barcode of an italian health insurance card which is in a code_39 format.
I tried Quagga first on this demo page
https://serratus.github.io/quaggaJS/examples/live_w_locator.html
and i managed to get it working by setting the resolution to 1920*1080, so i took the react example of Quagga2 and tried to do the same thing by setting these constraints
but without much success ( i get an empty array on the result when i try to scan that barcode ( or any code_39 barcode))
Here is my codesandbox where i'm doing my tests
https://codesandbox.io/s/reactjs-quagga2-test-z9f4hl?file=/src/Scanner.js
Beta Was this translation helpful? Give feedback.
All reactions