This works gives solution to two most important problems in the universities by equipping a surveillance camera with Artificial Intelligence (AI) technology. The first problem solved is unnecessary time wastage in manual and bio-metric (fingerprint based) attendance marking for students. The second problem solved is the unnecessary electricity wastage in classrooms without occupants. Using the videos getting recorded in surveillance cameras, the number of heads detection and face recognition is done. When there is no occupants in the class, the number of heads detected will be zero. So we can cut-off the electricity supply for that classroom. With the face recognition process the attendance for the students will be get automatically marked. The Intel movidius stick does the work of face recognition and finding the head counts.