I have several thousand images and I want to count the number of birds in them. 10 cameras were sited at 10 farms and they took pictures of birds scrounging off cattle feed every 5 minutes for 6 days between 0700 and 1700. The birds are dark brown and the cattle feed is light brown. Since the ambient lighting varies through the day, I am struggling to extract particle counts of birds using a batch process involving thresholding.
A colleague suggested I subtract each image from the previous image in order to more easily identify birds, compared to colour thresholding. This seems to work pretty well and I am able to extract a reasonably accurate count by comparing two pictures. However… I would like to automate this process to work on all pairs of images that are temporally adjacent in a specific folder.
I would like to be able to:
- Take my stack of images and use it to produce a new stack of images that only show the differences between adjacent images in the original stack. (similar to Process>Image Calculator>Subtract)
2.Turn each of these RGB image into a binary 8-bit B&W image.
- Set minimum and maximum particle size (necessary to adjust since particle size varies between farms depending on how far away the camera was from the birds in the target area).
- Output a list of the new image names/locations and the particle count for each image. I don’t need to know exactly where each particle/bird was so I don’t want a huge spreadsheet of coordinates, but having the ability to compare my new stack with the original stack would be nice for validating counts.
I am very new to image analysis, and I’m struggling to find a macro/plugin that will do this. Any help would be very much appreciated!
Many thanks, Richard