Remove irregular rounded corners from scanned images
Posted: 2017-10-05T03:05:13-07:00
Hello,
I'm quite new to ImageMagick. I have scanned thousands of old slides. On some of them, I have rounded corners I'd like to automatically remove.
The position of the corners is not always the same so applying exactly the same inner cropping would not work.
I would like to detect automatically and crop only the red area, while respecting the ratio of the picture.
https://cl.ly/222C1b3w042R
Here are some original pictures if needed for testing:
https://cl.ly/2u2F2Q3L3P2l
https://cl.ly/3b3Z3s3w3442
https://cl.ly/3C3R0n1s0D0O
https://cl.ly/0p1B401l112k
Do you know how to do this?
Many thanks for your help,
Michel
I'm quite new to ImageMagick. I have scanned thousands of old slides. On some of them, I have rounded corners I'd like to automatically remove.
The position of the corners is not always the same so applying exactly the same inner cropping would not work.
I would like to detect automatically and crop only the red area, while respecting the ratio of the picture.
https://cl.ly/222C1b3w042R
Here are some original pictures if needed for testing:
https://cl.ly/2u2F2Q3L3P2l
https://cl.ly/3b3Z3s3w3442
https://cl.ly/3C3R0n1s0D0O
https://cl.ly/0p1B401l112k
Do you know how to do this?
Many thanks for your help,
Michel