The code takes in a video of microbeads of different colours flowing through a microfluidic channel and counts and classifies them by colour. Videos are upto 20 minutes long. Counting error <5%. Classification error <2%. Tested on videos obtained from lab setup in 2012.