How do I segment this QR code from the white background using opencv

https://imgur.com/a/BchnHse

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

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

11 points · 2 comments · view on lemmy.world

2 Comments

SpaceNoodle@lemmy.world · 6 pts · 1y (1 reply)

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

eager_eagle@lemmy.world · 4 pts · 1y

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