微信二维码

微信二维码简介

微信二维码引擎OpenCV开源!3行代码让你拥有微信扫码能力 - 知乎集二维码检测、增强和定位点检测于一体!该引擎已在OpenCV contrib项目中开源,真香! 注1:文末附【OpenCV】交流群 注2:整理不易,欢迎点赞,支持分享!作者:蔡博仑 原出处:OpenCV团队 原文链接:微信二维码引…https://zhuanlan.zhihu.com/p/348412200

zxing 代码分析

掘金

ZXing源码解析四:如何识别图片中的二维码

https://github.com/jenly1314/WeChatQRCode


Wechar移植

https://github.com/jenly1314/WeChatQRCodehttps://github.com/jenly1314/WeChatQRCode

 python 验证ZXing/ ZBar的能力

ZXing

import zxing

reader = zxing.BarCodeReader()
barcode = reader.decode('file name')
print (barcode.parsed)

ZBar

from pyzbar import pyzbar
import cv2
image = cv.imread('file name')
barcodes = pyzbar.decode(image)
print (barcodes)

An OpenCV barcode and QR code scanner with ZBar - PyImageSearchicon-default.png?t=LA92https://www.pyimagesearch.com/2018/05/21/an-opencv-barcode-and-qr-code-scanner-with-zbar/

wechat_qrcode

import cv2
detector = cv2.wechat_qrcode_WeChatQRCode("detect.prototxt", "detect.caffemodel", "sr.prototxt", "sr.caffemodel")
img = cv2.imread("file name")
res, points = detector.detectAndDecode(img)
print(res, points)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值