docs: 添加涉密文件自检工具实施计划
This commit is contained in:
53
UmiOCR-data/site-packages/zxing_cpp-2.2.0.dist-info/METADATA
Normal file
53
UmiOCR-data/site-packages/zxing_cpp-2.2.0.dist-info/METADATA
Normal file
@@ -0,0 +1,53 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: zxing-cpp
|
||||
Version: 2.2.0
|
||||
Summary: Python bindings for the zxing-cpp barcode library
|
||||
Home-page: https://github.com/zxing-cpp/zxing-cpp
|
||||
Author: ZXing-C++ Community
|
||||
Author-email: zxingcpp@gmail.com
|
||||
License: Apache License 2.0
|
||||
Keywords: barcode
|
||||
Classifier: Development Status :: 4 - Beta
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: License :: OSI Approved :: Apache Software License
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Topic :: Multimedia :: Graphics
|
||||
Requires-Python: >=3.6
|
||||
Description-Content-Type: text/markdown
|
||||
|
||||
# Python bindings for zxing-cpp
|
||||
|
||||
[](https://github.com/zxing-cpp/zxing-cpp/actions/workflows/python-build.yml)
|
||||
[](https://pypi.org/project/zxing-cpp/)
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
pip install zxing-cpp
|
||||
```
|
||||
or
|
||||
|
||||
```bash
|
||||
python setup.py install
|
||||
```
|
||||
|
||||
[Note: To install via `setup.py` (or via `pip install` in case there is no pre-build wheel available for your platfor or python version), you need a suitable [build environment](https://github.com/zxing-cpp/zxing-cpp#build-instructions) including a c++ compiler.]
|
||||
|
||||
## Usage
|
||||
|
||||
```python
|
||||
import cv2, zxingcpp
|
||||
|
||||
img = cv2.imread('test.png')
|
||||
results = zxingcpp.read_barcodes(img)
|
||||
for result in results:
|
||||
print('Found barcode:'
|
||||
f'\n Text: "{result.text}"'
|
||||
f'\n Format: {result.format}'
|
||||
f'\n Content: {result.content_type}'
|
||||
f'\n Position: {result.position}')
|
||||
if len(results) == 0:
|
||||
print("Could not find any barcode.")
|
||||
```
|
||||
|
||||
To get a full list of available parameters for `read_barcodes` and `write_barcode` as well as the properties of the result objects, have a look at the `PYBIND11_MODULE` definition in [this c++ source file](https://github.com/zxing-cpp/zxing-cpp/blob/master/wrappers/python/zxing.cpp).
|
||||
Reference in New Issue
Block a user