1. A device comprising: a processor; and a computer-readable medium operably coupled to the processor, the computer-readable medium having instructions stored thereon that when executed by the processor cause the device to: extract hue-saturation-intensity (HSI) parameters from source image data based on red-green-blue (RGB) parameters of the source image data to create first image data, wherein the source image data represents a stained image; create binary image data from the first image data based at least in part on the HSI parameters; define a plurality of groups of blobs in the created binary image data; determine a distance between a pair of the defined plurality of groups of blobs, wherein the distance is calculated based on extreme X and Y coordinates associated with each pair of groups of blobs; if the distance is below a threshold value, combine the pair into a single group of blobs; repeat the determination and the combination for pairs of the defined plurality of groups of blobs; and classify the plurality of groups of blobs that rain.