qr-decode-wechat
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i qr-decode-wechat

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

20.8 MB

Total Files

10

Last publish

Collaborators

  • curtion