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

Why do I only get part of the UPC? #141

Open
selected-pixel-jameson opened this issue Oct 18, 2022 · 1 comment
Open

Why do I only get part of the UPC? #141

selected-pixel-jameson opened this issue Oct 18, 2022 · 1 comment

Comments

@selected-pixel-jameson
Copy link

I'm trying to read the UPC Code from this image via the following code.

img = Image.open(requests.get(url, stream=True).raw)
results = decode(img)

https://previewsworld.com/SiteImage/MainImage/STL241987.jpg

And it returns the following.

[[
        [
            "0759606204007",
            "EAN13",
            [
                613,
                1956,
                201,
                69
            ],
            [
                [
                    613,
                    1957
                ],
                [
                    613,
                    2025
                ],
                [
                    710,
                    2025
                ],
                [
                    813,
                    2024
                ],
                [
                    814,
                    1958
                ],
                [
                    814,
                    1956
                ]
            ],
            139,
            "UP"
        ]
    ]]

This is the correct code. But it's missing the 00241 located in the secondary bar code and doesn't return that value either. Am I doing something wrong? Sorry, I'm new to working with barcodes so I might be missing something here.

@selected-pixel-jameson
Copy link
Author

Investigating this further the second bar code in the referenced image is referred to as a supplemental barcode that can be associated with a UPC-A format.

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