Giter VIP home page Giter VIP logo

Comments (5)

quicklizard99 avatar quicklizard99 commented on August 23, 2024

Hi!

Could you make this image available? If it is very large please post a dropbox share or similar?

Thanks.

from pyzbar.

grahambo2015 avatar grahambo2015 commented on August 23, 2024

I am having a similar issue when decoding CODE128 barcodes.

I am on a raspberry pi 3 B+ using python 3.5.3
Installed via sudo apt install -y libzbar* and pip and pip3 install pyzbar

It appears to happen primarily on CODE128 barcodes that are shorter (top to bottom) than typical. The only example I have it of the multiple barcodes on the box for a cellphone. All of the CODE128 barcodes were decoded correctly but the rect and polygon each had a width of 1 or 0.

from pyzbar.

quicklizard99 avatar quicklizard99 commented on August 23, 2024

I think this is an issue of the zbar library itself, not of the pyzbar wrapper. I need to have images to be able to reproduce the problem.

from pyzbar.

wrishel avatar wrishel commented on August 23, 2024

@quicklizard99 Here is a simple example with the source file attached. I am sorry if the info here is a bit redundant but I wanted to provide all the information someone might need. Note that the problem is not only with the rect and polygon attributes but with the data values received as well.

Using what I believe are the current stable versions of zbar (0.10) and pyzbar (0.1.8) and a very unambiguous image (below), I receive two Decoded objects (below).

One of them is correct and the other is very close but the data is wrong and the rect and polygon attributes have seeming incomplete values.

The images are fuzzy because they were originally scanned as jpegs and then opened and cropped using Pillow.

The rect and polygon attributes of the incorrect Decoded image have bogus or missing values. Is this a reliable clue on which I could use to weed out the bogus values?

(MacOS Mojave, zbar installed with HomeBrew)

Correct:

Decoded(
data='10001330100070',
type='I25',
rect=Rect(left=35, top=79, width=69, height=674),
polygon=[
Point(x=35, y=79),
Point(x=36, y=753),
Point(x=104, y=753),
Point(x=103, y=80),
Point(x=99, y=79)]
)
Incorrect:

Decoded(
data='10001330100062',
type='I25',
rect=Rect(left=33, top=145, width=0, height=0),
polygon=[Point(x=33, y=145)]
)
unambigous bar code
image

from pyzbar.

YairBenamou avatar YairBenamou commented on August 23, 2024

Hello,
Is there any update on this issue?
I have the same problem.

In my program I crop the image between two barcodes. The barcodes are decoded successfully but one of them sometimes contains the "rect" corrupted (event the "left" or "top" values are not correct).

from pyzbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.