cropping inner rectangle
Posted: 2017-11-04T19:30:59-07:00
Hi,
In the example images below, I am looking to crop to the inner rectangular-like shape.
This target shape does not have to have 90 degree angles for example the old fashioned TV set screen does qualify.
Most of the examples are of doors and I would like to crop out the window or rectangular-like shape within a door.
If there are more than one outer rectangular shapes, then all of their "children" or inner rectangular-shapes are indeed targets.
If there is no outer and inner rectangle and the image contains just one or more rectangles, then I would like to target these rectangles and to crop them out as well.
Is this achievable? I have Version: ImageMagick 7.0.7-9 Q16 x86_64 2017-10-31 on Mac
https://nofile.io/f/zc25H3s5bTb/sw.jpg
https://nofile.io/f/VQWjykSFY7Z/IMG_4588.JPG
https://nofile.io/f/pYFKg6bWnDW/10.jpg? ... eight:160)
https://nofile.io/f/temtn5Bpvta/IMG_1937-1.jpg
https://nofile.io/f/JWPVpNEfRdC/eddce97 ... -doors.jpg
https://nofile.io/f/M9Z64MmyyAm/single- ... 50x250.jpg
https://nofile.io/f/cbYjYMxom2D/10.jpg
https://nofile.io/f/zWaPN0mV6eS/1200px- ... _(PSF).png
https://nofile.io/f/KXNpT9eTJme/PrimeDoorSmall1.jpg
https://nofile.io/f/3GEw2qVP5RE/cottage ... window.jpg
Thank you for any suggestions.
Best regards
Mets
In the example images below, I am looking to crop to the inner rectangular-like shape.
This target shape does not have to have 90 degree angles for example the old fashioned TV set screen does qualify.
Most of the examples are of doors and I would like to crop out the window or rectangular-like shape within a door.
If there are more than one outer rectangular shapes, then all of their "children" or inner rectangular-shapes are indeed targets.
If there is no outer and inner rectangle and the image contains just one or more rectangles, then I would like to target these rectangles and to crop them out as well.
Is this achievable? I have Version: ImageMagick 7.0.7-9 Q16 x86_64 2017-10-31 on Mac
https://nofile.io/f/zc25H3s5bTb/sw.jpg
https://nofile.io/f/VQWjykSFY7Z/IMG_4588.JPG
https://nofile.io/f/pYFKg6bWnDW/10.jpg? ... eight:160)
https://nofile.io/f/temtn5Bpvta/IMG_1937-1.jpg
https://nofile.io/f/JWPVpNEfRdC/eddce97 ... -doors.jpg
https://nofile.io/f/M9Z64MmyyAm/single- ... 50x250.jpg
https://nofile.io/f/cbYjYMxom2D/10.jpg
https://nofile.io/f/zWaPN0mV6eS/1200px- ... _(PSF).png
https://nofile.io/f/KXNpT9eTJme/PrimeDoorSmall1.jpg
https://nofile.io/f/3GEw2qVP5RE/cottage ... window.jpg
Thank you for any suggestions.
Best regards
Mets