Diffusion-based Aesthetic QR Code Generation via Scanning-Robust Perceptual Guidance

Jia-Wei Liao, Winston Wang, Tzu-Sian Wang, Li-Xuan Peng, Cheng-Fu Chou +1 more
3/23/2024
1 citation
cs.CV
diffusion-flow

No official code found. Best implementation: jwliao1209/DiffQRCoder (57 stars, Python, last commit 2025-09-06).

Abstract

QR codes, prevalent in daily applications, lack visual appeal due to their conventional black-and-white design. Integrating aesthetics while maintaining scannability poses a challenge.

Show full abstract

In this paper, we introduce a novel diffusion-model-based aesthetic QR code generation pipeline, utilizing pre-trained ControlNet and guided iterative refinement via a novel classifier guidance (SRG) based on the proposed Scanning-Robust Loss (SRL) tailored with QR code mechanisms, which ensures both aesthetics and scannability. To further improve the scannability while preserving aesthetics, we propose a two-stage pipeline with Scanning-Robust Perceptual Guidance (SRPG). Moreover, we can further enhance the scannability of the generated QR code by post-processing it through the proposed Scanning-Robust Projected Gradient Descent (SRPGD) post-processing technique based on SRL with proven convergence. With extensive quantitative, qualitative, and subjective experiments, the results demonstrate that the proposed approach can generate diverse aesthetic QR codes with flexibility in detail. In addition, our pipelines outperforming existing models in terms of Scanning Success Rate (SSR) 86.67% (+40%) with comparable aesthetic scores. The pipeline combined with SRPGD further achieves 96.67% (+50%). Our code will be available https://github.com/jwliao1209/DiffQRCode.

View on arXivView PDF

Code Implementations(1)

🔥 [WACV'25] Official implementation of "DiffQRCoder: Diffusion-based Aesthetic QR Code Generation with Scanning Robustness Guided Iterative Refinement"

5710Python, ShellMar 23, 20241 years ago
classifier-guidancecontrolnetdiffusion-modelsqrcode

Similar Papers

Cite this paper

@article{liao2024diffusionbased,
  title  = {Diffusion-based Aesthetic QR Code Generation via Scanning-Robust Perceptual Guidance},
  author = {Jia-Wei Liao and Winston Wang and Tzu-Sian Wang and Li-Xuan Peng and Cheng-Fu Chou and Jun-Cheng Chen},
  year   = {2024},
  eprint = {2403.15878},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.15878v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.15878.svg)](https://codeofpaper.com/paper/2403.15878)

Discussion