Detect images with drops with ImageMagick
Posted: 2018-05-02T08:02:41-07:00
Hi,
I have a big amount of pictures which I will use to do some timelapses. Well, some of them have drops of rain and I would like to apply a filter (yes, cover the camera would have been a good idea..). I think one of the best options is to use ImageMagick, but i do not know what way to choose. To my mind come several options, as using histogram on each picture ( convert picture.jpg -verbose -identify +verbose histogram:hist_picture.jpg) and configure a threshold or something like that or using spectrum/colorspectrum and also configure a threshold. I would like to know if you know any mehod that can be used to this situation and which could be the most effective. The purpose is only to conclude YES/NO DROPS for each picture.
Extra information: I am using perl scripts to do other filters and using mysql tables to save the information for each pic.
PD: cover the cameras
I have a big amount of pictures which I will use to do some timelapses. Well, some of them have drops of rain and I would like to apply a filter (yes, cover the camera would have been a good idea..). I think one of the best options is to use ImageMagick, but i do not know what way to choose. To my mind come several options, as using histogram on each picture ( convert picture.jpg -verbose -identify +verbose histogram:hist_picture.jpg) and configure a threshold or something like that or using spectrum/colorspectrum and also configure a threshold. I would like to know if you know any mehod that can be used to this situation and which could be the most effective. The purpose is only to conclude YES/NO DROPS for each picture.
Extra information: I am using perl scripts to do other filters and using mysql tables to save the information for each pic.
PD: cover the cameras