Coder Social home page Coder Social logo

qrcode-ncnn's Introduction

WeChat-QRCode-NCNN

WeChatQRCode是微信AI团队推出的二维码引擎,但原工作采用caffe,开源于OpenCV

(!!!这个原始引擎不是我做的,我只是移植而已!!!)

本人是ncnn狂热爱好者,看不得腾讯家的东西被caffe ntr了,因此把它弄到ncnn上,正本清源。

公众号介绍:传送门

原始代码:传送门

本项目工作:将该引擎的推理部分从caffe挪到了腾讯自家的ncnn上

简单介绍

该版本引擎工作流程简单介绍:

  1. 二维码检测,ncnn跑detect模型
  2. 二维码超分,ncnn跑sr模型
  3. 二维码解码,使用zxing-cpp

优点

  1. 调用简单:
cv::Ptr<cv::wechat_qrcode::WeChatQRCode> detector = cv::makePtr<cv::wechat_qrcode::WeChatQRCode>("assert/detect.param", "assert/detect.bin", "assert/sr.param", "assert/sr.bin");
vector<cv::Mat> points;
vector<string> res = detector->detectAndDecode(img, points);
  1. 工程小: detect模型+sr模型加起来只有960KB,即便是直接编译到工程里面也非常小

效果


说明:手机是红米7,骁龙632(超级典型的百元机),代码是实时一直检测和解码的所以用起来可能会觉得比较卡,设备好的话应该不会卡,而且实际使用都是one-shot的,应该没人跑实时的吧。

该APP已导出debug版本,here

工作内容

  • x86平台的工作
  • android平台的工作

声明

  1. 原始的推理引擎属于腾讯微信AI团队在OpenCV上的开源
  2. 本人所作工作仅仅是将推理的引擎从caffe换到了ncnn
  3. 商用等请参照官方的License!!!
  4. 开源不易(跪求star

qrcode-ncnn's People

Contributors

edvince avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.