1.0.2 • Published 6 months ago

qr-decode-wechat v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

qr-decode-wechat

中文版

A JavaScript QR code decoding library, compiled to WebAssembly using opencv v4.11.0 and wechat_qrcode module from opencv_contrib.

Partially based on code from qr-scanner-wechat project.

Key improvements compared to qr-scanner-wechat:

  • Support multiple decoding results return
  • Eliminate unsafe-eval usage, making it compatible with WeChat Mini Programs and Chrome Manifest V3 extensions

Usage

npm

npm i qr-decode-wechat
import { decode } from 'qr-decode-wechat'

const result = await decode(canvas) // Or ImageElement

Browser

<script src="//unpkg.com/qr-decode-wechat/dist/main.umd.js"></script>
<script>
    const result = await qrDecode.decode(canvas) // Or ImageElement
</script>

Node

Currently not supported

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago