Giter VIP home page Giter VIP logo

artcoder's Introduction

ArtCoder: An End-to-end Method for Generating Scanning-robust Stylized QR Codes

A PyTorch implementation of "ArtCoder: An End-to-end Method for Generating Scanning-robust Stylized QR Codes".

The paper "ArtCoder: An End-to-end Method for Generating Scanning-robust Stylized QR Codes" has been accepted by CVPR 2021. If the paper or code is useful for your research, please cite

@inproceedings{su2021artcoder,
  title={ArtCoder: An End-to-End Method for Generating Scanning-Robust Stylized QR Codes},
  author={Su, Hao and Niu, Jianwei and Liu, Xuefeng and Li, Qingfeng and Wan, Ji and Xu, Mingliang and Ren, Tao},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={2277--2286},
  year={2021}
}

Demos

Style&Content Output

Prerequisites

  • Linux or Windows
  • CPU or NVIDIA GPU + CUDA CuDNN
  • Python 3
  • Pytorch 1.7.0

Getting Started

Installation

  • Clone this repo:
    git clone https://github.com/SwordHolderSH/ArtCoder
    cd ArtCoder
  • Install PyTorch and other dependencies.

Quick Start

  • Get detailed information about all parameters using
    python main.py -h
  • Generate your customized Stylized QR codes:
    python main.py -style_img_path ./xxxx/xxx.jpg  --content_img_path ./xxxx/xxx.jpg --code_img_path ./xxxx/xxx.jpg --output_dir ./xxxx/

Notices

  • The input code images are generated by the algorithm on the website https://meiyaoma.com/ . Of course, it is OK to use traditional QR codes (square modules appear as random distribution) as the input code images, and it just compromises some visual quality.
  • The QR codes of version 5 is used by default (37*37 modules). If you want to use different versions of QR code, you need to adjust the parameters --module_number (default: 37).

artcoder's People

Contributors

swordholdersh 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.