$qr - 二维码工具
- 更新时间:2026-02-08 19:43:41
二维码工具
使用$qr你可以实现制作二维码,或者识别二维码
make(content)
制作二维码
- 参数 : content {string} 二维码内容
- 返回 : {Image} 图片对象
- 版本 : 1.2.3
make(content, options)
制作二维码
- 参数 : content {string} 二维码内容
- 参数 : options {QrOptions} 参数
- 返回 : {Image} 图片对象
- 版本 : 1.2.3
parse(path)
解析二维码
- 参数 : path {string} 图片路径
- 返回 : {string} 二维码内容
- 版本 : 1.2.3
parse(image)
解析二维码
- 参数 : image {Image} 图片对象
- 返回 : {string} 二维码内容
- 版本 : 1.2.3
parse(x, y, w, h)
解析屏幕上的二维码
根据传入的范围来解析屏幕上的二维码,需要截屏权限
- 参数 : x {int} x坐标
- 参数 : y {int} y坐标
- 参数 : w {int} 宽度
- 参数 : h {int} 高度
- 返回 : {string} 二维码内容
- 版本 : 1.2.3
parse(region)
解析屏幕上的二维码
根据传入的范围来解析屏幕上的二维码,需要截屏权限
- 参数 : region {int[]} 范围
- 返回 : {string} 二维码内容
- 版本 : 1.2.3
parse(rect)
解析屏幕上的二维码
根据传入的范围来解析屏幕上的二维码,需要截屏权限
- 参数 : rect {rect} opencv的范围对象
- 返回 : {string} 二维码内容
- 版本 : 1.2.3