惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Fortinet All Blogs
WordPress大学
WordPress大学
The Cloudflare Blog
云风的 BLOG
云风的 BLOG
博客园 - Franky
D
Docker
小众软件
小众软件
阮一峰的网络日志
阮一峰的网络日志
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
MongoDB | Blog
MongoDB | Blog
U
Unit 42
M
MIT News - Artificial intelligence
B
Blog
GbyAI
GbyAI
C
Check Point Blog
P
Proofpoint News Feed
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网
IT之家
IT之家
Google DeepMind News
Google DeepMind News
V
V2EX
Stack Overflow Blog
Stack Overflow Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Why Artistic QR Codes Silently Fail (And How I'm Trying t...
Siradj · 2026-05-30 · via DEV Community
Cover image for Why Artistic QR Codes Silently Fail (And How I'm Trying to Fix It)

Siradj

So I have been building a free browser-based QR code generator for the past few months. It supports custom gradients, image overlays, and different dot shapes. The results look cool—think nebula images fading into purple gradients.

I was happy... until I tried to actually use one.

The "iPhone Failure" 📱

I tried scanning one of my cooler designs on my iPhone and it just did not scan. At all. WhatsApp failed. Some Android scanners worked, some didn't.

I set the error correction to Level H (the max 30% recovery level). Still nothing.

The Real Culprit: Contrast Detection

I spent hours thinking it was a bug in my library. It wasn't.

Phone cameras don't read QR codes like humans. They use contrast algorithms to find the boundary between dark modules and the light background.

  • Your eyes: See two distinct colors.
  • The camera algorithm: Sees gray noise.

Error correction doesn't help because the modules aren't "missing"—they are just invisible to the scanner's logic.

My Solution: The MSQF Framework

To fix this, I’m building the Multi-Step QR Framework (MSQF). Instead of "generate and hope," it runs the QR through a verification pipeline:

  1. 1SQF (Internal): Scans with an internal engine. If it fails, it auto-adjusts opacity/contrast and retries.
  2. 2SQF (ZXing): Passes through Google’s open-source engine (common on Android).
  3. 3SQF (quirc-wasm): A stricter pass for edge cases.
  4. 4SQF (zxing-wasm Strict): My closest approximation to the iPhone's native camera behavior.
Technical Implementation Note
I don't make 4SQF the default because it takes significantly longer, especially for bulk generation. It allows users to choose the trade-off between "art" and "reliability."

I Need Your Advice 🤝

I’m still building this out, and I have two big questions for the community:

  1. Engine Choices: Is zxing-wasm in strict mode really the best way to simulate the iPhone Vision framework?
  2. The "Look" vs. "Function" Trade-off: When auto-adjusting, sometimes the design loses its "vibe" to make it scannable. Where would you draw the line?

Try the Generator (Free, No Signup)

I'd love to hear if anyone else has dealt with scan reliability for custom-styled QRs!