c/ComputerVision · by thickertoofan@lemm.ee · 1yHow do I segment this QR code from the white background using CV https://imgur.com/a/BchnHseSome custom filter kernel to average out values from a chunk of pixels with some kind of "border aware" behaviour? 7 points · 4 comments · view on lemmy.world
4 Comments
iii@mander.xyz · 5 pts · 1y
That's what those 3 corners are for.
After a convolution with such a square as template, there are 3 local maxima, of known relative distances to each other, that give the bounding box.
m_f@discuss.online · 2 pts · 1y
Is that scale invariant? Or would they need to do it multiple times at different scales if they can't rely on a consistent scale?
iii@mander.xyz · 2 pts · 1y
The latter: it's not scale invariant
nokturne213@sopuli.xyz · 1 pts · 1y
Wouldn’t it be easier to generate a new one?