Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


QuantiFly is a software package for automating egg counting in Drosophila genetics research[1]. QuantiFly is optimised for counting eggs in media containing vials, captured using a digital USB camera. QuantiFly utilises an advanced computer vison and machine learning algorithm[2][3] and improves upon the baseline approach [1]. The technique uses a modified version of a density estimation approach which is a robust and accurate means of estimating numbers of objects in dense and complicated scenes.

Source code

QuantiFly is open source and the python code files are included above. QuantiFly has multiple python dependencies.

QuantiFly Software

The software which is available through the following link allows immediate access to the QuantiFly technique:

Click for downloads


A detailed manual for QuantiFly can be downloaded here:

Click for downloads


QuantiFly has eight test datasets which can be downloaded from the following page:

Click for downloads


Q: I have found a bug in the code how can I report it? A: Goto You can report issues or ask any questions here.

Q: I've double-clicked the software and it takes a while to load? A: The first time the software is run, it may take a little while to appear, the next time it will load almost instantly.

Q: What image types can I use with QuantiFly? A: QuantiFly is currently compatible with '.png' and '.tif' files. QuantiFly will also work '.tif' stacks but only if the colour space is RGB. If in doubt, download Fiji ( and convert your image to RGB and File->SaveAs 'tif'.

Q: I notice the datasets contain image files of two types, what are the ones with dot in the name? A: These are the ground-truth images which have been produced by a human researcher to analyse the accuracy of the technique. Each image contains a variety of dots which are spatially located to represent the egg in the corresponding image. To find the overall count you just need to count the dots. This can be done using Fiji in three steps: Open the image. Click from the menu Process->Find Maxima. Check 'Preview point selection' to see the overall count.

Q: Can QuantiFly be used to count other things? A: Yes QuantiFly can be used to count just about anything of more-or-less constant size in 2D images.

Dominic Waithe 2015 (c)

[1] Waithe, Dominic, et al. "QuantiFly: Robust Trainable Software for Automated Drosophila Egg Counting." (2015): e0127659.

[2] Lempitsky, Victor, and Andrew Zisserman. "Learning to count objects in images." Advances in Neural Information Processing Systems. 2010.

[3] Fiaschi, Luca, et al. "Learning to count with regression forest and structured labels." Pattern Recognition (ICPR), 2012 21st International Conference on. IEEE, 2012.


QuantiFly, density estimation for counting Drosophila eggs.






No packages published