Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 11 19:37
    ericblade commented #391
  • Jan 11 19:29
    ericblade commented #391
  • Jan 02 19:43
    github-actions[bot] commented #391
  • Jan 02 19:42
    cpwood opened #391
  • Dec 29 2021 15:28
  • Dec 16 2021 04:14
    rollingversions[bot] commented #121
  • Dec 16 2021 04:14
    snyk-bot opened #121
  • Dec 16 2021 04:14

    ericblade on snyk-fix-f88d7ef21cd72e3158cbe5b16a8da910

    fix: example/package.json & exa… (compare)

  • Dec 16 2021 04:14

    ericblade on snyk-fix-f88d7ef21cd72e3158cbe5b16a8da910

    (compare)

  • Dec 15 2021 20:59
    kmpm closed #14
  • Dec 15 2021 20:59
    kmpm commented #14
  • Dec 15 2021 00:15
  • Dec 13 2021 06:20
    ericblade commented #14
  • Dec 01 2021 20:09
    rollingversions[bot] commented #120
  • Dec 01 2021 20:09
    snyk-bot opened #120
  • Dec 01 2021 20:09

    ericblade on snyk-upgrade-519d1e7d4ee1c2a80934b2965feca8c5

    fix: upgrade @testing-library/j… (compare)

  • Dec 01 2021 20:09

    ericblade on snyk-upgrade-519d1e7d4ee1c2a80934b2965feca8c5

    (compare)

  • Dec 01 2021 20:09
    rollingversions[bot] commented #119
  • Dec 01 2021 20:09
    snyk-bot opened #119
  • Dec 01 2021 20:09

    ericblade on snyk-upgrade-9f2c3c9cc2e2b069caa78adb804c2ce6

    fix: upgrade @testing-library/r… (compare)

Eric Blade
@ericblade
i know the readme, and i have said "try higher resolution so the image comes out better", but something to also try is lower resolution so that the barcode isn't so small. might help? not sure
and if you can get away with setting a locate area, and turning off auto-locate, then you're eliminating a large chunk of the work that makes things break sometimes
Gabriel Balint
@zadof
been trying them, I tried some commercial ones as well, found one that works instantly, all the others have a hard time
128 works, but if it's small enough and the image get a little blurry, it wont work
Lukas Visinskis
@LukasVisinskis_twitter
Hi guys, do you know if it's possible to choose what rear camera to initialize? Currently on my mobile device the app picks ultrawide lens which distorts the image and it doesn't read barcode at all.
Gabriel Balint
@zadof
I think you can provide a name of the camera to use, so you probably need a selection screen where the user picks the camera from the list
I don't think you have an automatic way to pick the "good" camera
Lukas Visinskis
@LukasVisinskis_twitter

@zadof Yeah I guess I can make a camera picker and alert users that ultrawide camera might not work for them. And yeah I agree, I can't think of a method to pick "good" camera as well.

What really bothers me is that every single other app(instagram, snapchat, myfitnesspal and etc.) They always seem to open "good" rear camera never ultrawide and never telephoto.

Is it different with native apps?

Gabriel Balint
@zadof
Not sure exactly, they just go by the name and try to pick the right one, might have some more info to go by, not sure about that
Eric Blade
@ericblade
@LukasVisinskis_twitter sorry, i don't always notice that people have popped into the chat!
I have yet to figure out if there's some way to determine a good way to ignore ultrawide and telephoto camera designations. My assumption is that there should be a way to filter them using the constraints, but unfortunately, it seems that the only obvious way there is to get a list of cameras using the anemic MediaDevices.enumerateDevices() call (which is wrapped in Quagga) and use that to fill a selector for the user.
@LukasVisinskis_twitter @zadof there is also this mess from the scandit library: https://unpkg.com/browse/scandit-sdk@4.6.1/src/lib/cameraAccess.ts
i'm not entirely certain what a lot of it actually achieves, but so far my experience has been that the last rear camera in the list is almost always the one we want, and that the only useful descriptions we get on most devices is "rear" or "front", with no further information
Eric Blade
@ericblade
unfortunately, my experience is only with about 4 android devices
on top of that mess of it being notoriously difficult to pick the "right" camera, on mobile, Chrome doesn't even prompt for camera permission until you actually attempt to use a camera, so you can't get an accurate listing of devices until after you've already tried to use the camera.
Eric Blade
@ericblade
it might be worth defaulting to "last rear" like at least part of that scandit code seems to do. but also allowing user to provide a setting to change it
Eric Blade
@ericblade
i am right now adding ability to do Quagga.CameraAccess.request(null) to allow you to open (and then call release() immediately after) the camera without a video element available, to see if that will work for asking permission on mobile before calling enumerateVideoDevices
1.3.1 has been published to npm, i haven't actually tested that this new ability actually works in achieving that goal on mobile chrome quite yet, though.
Stridesdata
@Stridesdata
Good Day everyone..
How does one implement this on a laravel project?
@ericblade Good morning,
can this be used on a laravel project?
Eric Blade
@ericblade
@Stridesdata laravel is php, server side.. quagga is javascript... can run on browser side?
Eric Blade
@ericblade
so i don't understand where you're confused, usually you'd be running the scanner on the browser, so it's completely separate from the server side
Stridesdata
@Stridesdata
@ericblade
Its a wonderful thing you did continuing the project from serratus. I have implemented the old quagga on my vuejs project using sinata's input. I have some important questions, what are the benefits of Switching from quagga1 to quagga2?
What is the best way to add Qr code to my vue project
Eric Blade
@ericblade
@Stridesdata overall.. well, not a whole lot, really. there's the ability to add the qr plugin that i wrote to it, though. :-)
better typescript support, much much newer depdendencies
a lot easier to do work inside. not a lot user facing though
Katharina Bogad
@mistressofjellyfish
So I'm currently entering the worst-idea-of-2021 contest and compiled libdmtx with emscripten to wasm. My ultimate goal is to just basically do what the qr plugin does and shove the pixel data to libdmtx which then does detection and recognition. So far I have sucessfully compiled libdmtx to js and wasm and now have a module I can import \o/
now I just have to figure out how to get typescript running :joy:
Eric Blade
@ericblade
@mistressofjellyfish that sounds interesting.... sorry i didn't check in for a long time here, i usually only check in when i get a notification... and apparently i didn't receive one for this, or missed it
i wonder how difficult it would be to get the barcode area finder in Quagga to detect QR and DMX there
Chyslain Nsufeu
@chyslain_gitlab
I am using the Quagga library to read and decode an image's barcode. Everything works fine on all devices except the camera on the device with Android 11. The screen just froze with the image. However, in the background, the application did its job. it is fine. The application read the barcode, decode and return the right value but the camera freeze the screen.
MrKneetjie
@MrKneetjie
Hello @ericblade are you active here ?
Gustavo
@gustavinho_f:matrix.org
[m]
QuaggaJS cannot read Interleaved 2 of 5, someone with this issue too?
Eric Blade
@ericblade
@MrKneetjie ... i'm sorry i missed you there, i've been recently re-employed and have been quite busy with that.. gitter kind of falls by the wayside sometimes
If I don't respond here, you can almost always catch me by filing an issue on Github.. since Github reliably emails me when people do that... Gitter does NOT reliably notify me when someone says something
Eric Blade
@ericblade
Merry Christmas to all! Thanks for your support these couple of years!