this post was submitted on 10 May 2026
14 points (88.9% liked)

Programming

26913 readers
363 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

I am writing something that needs to verify the practical readability of qr codes which has been painted over.

First thing that comes to mind is to apply Gaussian blur on the image and check if it is readable. Then I could get a "readability score" by doing binary search between blur strengths range [0, n].

I also may do the same with noise, not sure if I should.

Would appreciate if somebody with more knowledge of QR codes help me

you are viewing a single comment's thread
view the rest of the comments
[–] yogurtwrong@lemmy.world 4 points 4 days ago* (last edited 4 days ago) (2 children)

I just did.

I will block (or discourage) writing on timing bits and stuff and limit writes on format bits. It seems that I need to implement my own QR functions to properly check every feature manually

I am also in the process of manually calculating a QR code and drawing it on paper to understand the format better. (pretty fun activity ngl)

Btw the thing I am building is an app that would help manually create qr code art.

RGB is not feasible because the aim of the app is to be a monochrome first QR art creator.

[–] cecilkorik@lemmy.ca 2 points 3 days ago

The art may be monochrome but the readers interpreting the QR (the part you are supposed to be testing) are almost certainly RGB. If you are not testing from the point of view of a camera reading the image, you are leaving a blind spot, no pun intended, and are not really testing properly.

[–] MonkderVierte@lemmy.zip 2 points 4 days ago

Great! Knock yourself out!

RGB is not feasible because the aim of the app is to be a monochrome first QR art creator.

Ah, right. Not shades of black either then.