hrbrmstr / qrencoder

:white_square_button: Make QR codes in R via libqrencode
61 stars 7 forks source link

Can it read? #6

Open zx8754 opened 6 years ago

zx8754 commented 6 years ago

Looking at this SO post: https://stackoverflow.com/questions/49382712/is-there-a-package-in-r-for-reading-qr-codes

Found your package: https://stackoverflow.com/a/31775858/680068

Maybe feature?

hrbrmstr commented 6 years ago

I'll keep this open, but the current embedded C library doesn't do "reading" but there are some smaller ones that may work. I added a suggestion to the SO question for the time being.

brianwdavis commented 5 years ago

I commented on issue #4 about generating QR codes, and now I have them out in the wild for one of our research projects!

IMG_0001

One of my projects this summer is to read these images' metadata and push them into a database. I looked into trying to call the ZBar C library from within R, but ended up using a pipeline with reticulate and pyzbar (which is itself calling ZBar but from within Python), and then passing the barcode data into R for additional processing.

Do you think it's worth the effort to port over a library like that and cut out the Python middleman? To reduce dependencies I think I'd prefer that, but I'm not sure how to even get started with doing it. I've found lots of tips for writing new C functions and calling them, or building a package with Rcpp, but not taking a complex library and wrapping it with R functions.

Thanks!

jeroen commented 1 year ago

The opencv package now has a qr code reader: https://docs.ropensci.org/opencv/reference/qrcode.html