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

Update examples to show how to use the post-rewrite barcode reading functions #3

Open
jasper-tms opened this issue Jul 12, 2021 · 0 comments

Comments

@jasper-tms
Copy link
Contributor

The current examples are nice, short, sweet examples of how to read barcodes from a vector of values (example01) and from an image file (example02). However example01 currently uses parser.read_barcode (which calls parser.parse_linescan) and example02 currently uses scanner.scan_image_y (which calls parser.read_barcode which calls parser.parse_linescan), and it seems like parser.parse_linescan has fallen out of use after the repo rewrite, in favor of linescan.scan. linescan.scan returns a Barcode object (which has nice features like a .center attribute that returns the center coordinate, among other things) which is preferable to what parser.parse_linescan returns. Let's update the examples to show how to use linescan.scan on a vector of values or an image file.

jasper-tms added a commit that referenced this issue Jul 12, 2021
jasper-tms added a commit that referenced this issue Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant