How to Automate Selection of Black Bands
I need to batch process images that are flanked by black areas. These black areas may be top and bottom, or left and right. They vary in proportion, but regardless I need to delete these black areas without selecting any black within the central image. Shown here are two images that typical of what I am starting with. The idea is to crop down to just the central image and eliminate the black boundary, without selecting incidental black in the central image.
What is the best sequence of actions to accomplish this? Thank you!

.
