Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible to add a way to generically call other parsing libraries, or wrappers around other parsing libraries? #31

Closed
ericblade opened this issue Sep 14, 2019 · 3 comments

Comments

@ericblade
Copy link
Owner

I'm thinking about adding OCR (optical character recognition) as an option to my app, and i wonder if it would be possible to add a reader option that wraps Tesseract or some other thing.. and possibly to extend that into a generic reader that can plug to other things somehow or other.

@ericblade
Copy link
Owner Author

with the current reader architecture, it doesn't look like it's possible to pass a reader anything but a small amount of an image that the code in barcode_locator has determined is likely to be a barcode. I'll probably take a stab next weekend at adding an ability to pass a complete image to a reader, and see if that's an interesting place to go.

@ericblade
Copy link
Owner Author

i take that previous statement back, as the fork that implemented qr-code reading does exactly what i think is needed.

z-funfan/quaggaJS@5798cd3

@ericblade
Copy link
Owner Author

I'm thinking that perhaps expanding the 'readers' support to allow you to pass an object to it that contains a reader, rather than just an array of strings, might be an excellent way to implement something like that. Or have a Quagga.registerReader sort of function that will allow you to plug in a new reader from external code, before you call Quagga.init()...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant