I have a jar that is launched every minute via CRON to capture a beach webcam image and save it to a file. Since it runs 24*7, it saves nighttime images that are of no use. I'd like the jar to analyze the file and determine whether it is a "keeper".
The only approach I can see (I haven't coded it yet) is to iterate through each pixel, look at the RGB for each and if some percentage of pixels is totally or nearly black, call it a throwaway. Is this a reasonable approach?
FWIW, the image is from a camera mounted atop the Clearwater Beach Hilton, looking southwest over the beach and Pier 60 - Heaven on earth to this Iowa boy.
URL=http\://192.163.243.248/webcams/clearwater.jpg
Thanks, Chris