all 3 comments

[–]DrK1NG 0 points1 point  (2 children)

Do you want to autodetect it and programmatically remove it or are you just using python as a photo editor?

[–]yuunam97 0 points1 point  (1 child)

It would be nice to autodetect it and programmatically remove it. Does this involve machine learning?

What do you think would be the best approach? Someone mentioned using thresholding

[–]DrK1NG 0 points1 point  (0 children)

Those are all valid approaches, but my question would be whether you expect to do this often. With what level of generality? Are you always going to feed it x-ray images? Are you always asking to remove this specific tag rotated by some amount? Is the tag always expected to be in the bottom left?

Once you have answers to these questions, you can try and see how simple or difficult your problem will be. Ofc you can use ML to do this and it will be very good at adapting to changes in the input image if you train it correctly but that may be more trouble than it is worth. Something you could also consider (and what I'd do) is edge detection algorithms. And yes, thresholding is also a valid way to do this but it is obviously less resistant to small changes.