Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wqh17101 committed Aug 10, 2021
1 parent dafc8f4 commit da0e3a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,21 @@ python setup.py install

## Some errors you could meet:

### 1. cannot find -lmsvcr140
### 1. Cannot find -lmsvcr140

if you build this whl in Windows with `python setup.py build_ext --compiler=mingw32`,
you may meet an error that `cannot find -lmsvcr140`, as you can see in <https://stackoverflow.com/questions/43873604/where-is-msvcr140-dll-does-it-exist>.

*I fixed it in the setup.py*

### 2. should be build by std99 or gnu99
### 2. Should be build by std99 or gnu99
```
CC="-std=gnu99" python setup.py bdist_wheel
```

### 3. Do not support inverted Code
When the background is darker than the QR Code's foreground, it's called an inverted Code.
These types of Codes typically have a dark background such as black, navy or dark grey.
While a few scanners can read an inverted Code, some apps are not able to scan them including us.
# How to use
### *We provide several versions of whl right now. You can try to install via `pip install zbar-lite`.*

Expand Down Expand Up @@ -117,7 +120,7 @@ del(image)
```
from zbar_helper.utils import decode, show_info
import cv2
image_path = "../test.png"
image_path = "test.png"
img = cv2.imread(image_path)
print(decode(cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)))
show_info(decode(cv2.imread(image_path, cv2.IMREAD_GRAYSCALE)), img)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def has_libc_iconv():
zbar = Extension('zbar', sources=SRCS, include_dirs=INCLUDE, libraries=LIBS)

setup(name='zbar-lite',
version='0.23.1',
version='0.23.90',
description='zbar lite package only support scan image and recognize barcode',
long_description=open(os.path.join(CUR_DIR, "README.md"), encoding="utf-8").read(),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit da0e3a8

Please sign in to comment.