How do I segment this QR code from the white background using opencv (imgur.com)
from thickertoofan@lemm.ee to python@programming.dev on 28 Mar 2025 16:53
https://lemm.ee/post/59714351

cross-posted from: lemm.ee/post/59714239

Some custom filter kernel to average out values from a chunk of pixels with some kind of “border aware” behaviour?

#python

threaded - newest

SpaceNoodle@lemmy.world on 28 Mar 2025 17:14 collapse

Square it up and crop the image, or just scan it and re-encode the content.

eager_eagle@lemmy.world on 28 Mar 2025 18:36 collapse

scanning and re-encoding is the way if you don’t care about the exact image or pattern