1 | initial version |
I think you should start with background subtraction using image averaging or BackgroundSubtractorMOG2. There is also a good chapter about the topic in Learning OpenCV book.
Then you need to classify the foreground and find your birds from example with a cascade classifier. Training the classifier is not an easy task. You may start with HOG descriptors to subtract pedestrians.
I would simply use background subtraction only to make things simpler at first. It will not harm if the system detects persons because if your are in the garden then herons are not and you will not care about the alarm inside. :)