This is a pre-trained inception v3 tensorflow model that should be able to correctly classify common UK birds.
Good question, there are two models currently, (look in the models folder.) largeBirds4.pb
is trained on many many more species of birds, with a slight drop in accuracy, where as ukGarenModel.pb
is trained on only 12.
The data I've trained this model on is fairly specific. All animals were closely cropped, this means that to get good results you'll need to make sure that your image you wish to classify is side on and quite big.
The list of animals that ukGardenBirds.pb
has been trained on are:
- Gray Squirrels
- Crow (carrion and rook)
- Wren
- Wood pidgeon
- House sparrow
- Magpie
- Blackbird (male and female, although female is less well defined in the model)
- Chaffinch
- Dunnock
- Song Thrush
- Robin (male and female)
- Cats
LargeBirds4 however has many more species it can detect:
- pheasant
- grey partridge
- wren
- black restart
- grey heron
- yellow wagtail
- starling
- goldfinch
- stock dove
- jackdaw
- squirrel
- great tit
- jay
- long tailed tit
- crossbill
- collared dove
- house sparrow
- mistle thrush
- chaffinch
- wood pigeon
- bullfinch
- coal tit
- pied wagtail
- blackheaded gull
- meadow pipit
- treecreeper
- bluetit
- lesser whitethroat
- turtle dove
- grey wagtail
- dunnock
- reed bunting
- swift
- ring necked parakeet
- green woodpecker
- siskin
- stonechat
- waxwing
- rook
- chiffchaff
- cuckoo
- house martin
- spotted flycatcher
- nuthatch
- cat
- pied flycatcher
- swallow
- great black backed gull
- blackbird
- crested tit
- lesser spotted woodpecker
- robin
- herring gull
This should cover most common birds in your garden.
First you need to make sure that Tensorflow is installed
Then once you have cloned this repo, run:
python bird.py
which will classify any pictures in the "testImages" folder
The script "bird.py" is just the example from tensor flow, and has no special magic to make it run (apart from the blackbox that is TF...)
I have not included the dataset, as I don't own the copyright. However if you wish to obtain a copy, please get in touch