Detecting and counting human heads in a coloured image using basic concepts of Image Processing which will then be used to take attendance in class. This was implemented using OpenCV-Python. Received about 70% accuracy in detecting the total number of students in a class. This was made using basic concepts of image processing such as erosion, dilation, thresholding, median filtering.