Skip to main content

识别支付宝微信收款码信息

Project description

DPayOcr

PyPI version

介绍

dpayocr 可以识别支付宝微信收款码信息。例如支付类型,支付金额,支付链接。

安装

$ pip install dpayocr

使用

命令行使用

dpayocr 66.JPG

输出

PayQrCode(pay_type=1, price=66.0, url='https://qr.alipay.com/xxx')

接口

>>> from dpayocr import parse_pay_qr_code
>>> fp = '66.JPG' # 可以传入文件名或者二进制IO
>>> parse_pay_qr_code(fp)
PayQrCode(pay_type=1, price=66.0, url='https://qr.alipay.com/xxx')

问题

在虚拟环境找不到 Tesseract 命令

# If you don't have tesseract executable in your PATH, include the following:
pytesseract.pytesseract.tesseract_cmd = r'<full_path_to_your_tesseract_executable>'
# Example tesseract_cmd = r'C:\Program Files (x86)\Tesseract-OCR\tesseract'

参考链接

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

dpayocr-1.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file dpayocr-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: dpayocr-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for dpayocr-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 edfa633a078dae11b0578e21fa49854313dd22cbae8c98c58fc59310c2fcd600
MD5 be39fbf78937d80b78cbe9785d65f486
BLAKE2b-256 3db1fc31d7772d563808a5fbc2d45888545b19ca9f0ebb4b88af077ee1891ca6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page