Comments (5)
Hi!
Could you make this image available? If it is very large please post a dropbox share or similar?
Thanks.
from pyzbar.
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.
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.
@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
from pyzbar.
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)
- -1 on uint? "4294967295 is not a valid ZBarOrientation" HOT 2
- QR code detection is not scale invariant HOT 1
- Why do I only get part of the UPC? HOT 1
- Assertion error on QR code with ASCII SO and SOH
- Assertion failed: next > syms->datalen, file zbar/qrcode/qrdectxt.c, line 368
- How to ensure the order of the 4 points of the polygon is always correct?How to find the bottom or top border's points?
- Inconsistency in support of Data Matrix codes
- QR code orientation will be up for both 45-degree angle and -45-degree angle
- Format of Decoded.data HOT 1
- can't decode qr image with damaged modules
- Upload source to PyPi
- Unable to deploy to EC2 using AWS Beanstalk HOT 1
- Empty decode
- Error decode UTF-8 character 'â' HOT 2
- An unparsable QR code HOT 1
- Come across a corner case when decoding image cause core dump
- Provide wheel package
- Adding extra 0's to UPC-E barcode (8 digit barcodes to match length of 12 digits).
- FileNotFoundError: Could not find module 'libiconv.dll' (or one of its dependencies). Try using the full path with constructor syntax.` HOT 5
- Get qrcode mask version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyzbar.