I am looking for a method for detecting if an image contains only black pixels. When I say method I mean an existing command line tool. I could write up something myself but I'm sure something probably exists already.

  • Do you want to detect exact black pictures RGB(0,0,0), or also dark pictures like ones with too short exposure? – Jonas Stein Sep 13 '14 at 17:05

I bet that Imagemagick is what you want. In fact, there's an Imagemagick forum entry that probably fits your needs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.