new_contents: import numpy as np
  import cv2
  import pyautogui as m
  import sys
  import time
  
  k = 1
  user_input = input('This application recognizes your face and eye using the trained data model sets'
                     '\n It detects eye blink and handles mouse click event\n Press 1 to start the program ')
  
  face_cascade = cv2.CascadeClassifier('C:\....\haarcascade_frontalface_default.xml')
  eye_cascade =  cv2.CascadeClassifier('C:\....\haarcascade_eye.xml')
  cap = cv2.VideoCapture(0)
  #Change these parameters to play with sensitivity
  c1=7
  c2=5
  if user_input == 1:
      while(True):
          ret,img = cap.read()
          img = cv2.flip(img,1)
          gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
          faces = face_cascade.detectMultiScale(gray, 1.3, 5)
          for (x,y,w,h) in faces:
              k=1
              img = cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2)
              u1=x+w
              u2=y+h
              cir = cv2.circle(img,(x+w/2,y+h/2),1,(0,255,255),2)
              print x+w/2,y+h/2
              roi_gray = gray[y:y+h, x:x+w]
              roi_color = img[y:y+h, x:x+w]
              eyes = eye_cascade.detectMultiScale(roi_gray, 1.3, 5)
              for (ex,ey,ew,eh) in eyes:
                  k=0
                  cv2.rectangle(roi_color,(ex,ey),(ex+ew,ey+eh),(255,255,0),2)
                  
          if k == 1:
              print "1"
              # The below snippet is responsible for mouse click events. At the moment this is would work but still needs enhancements
              #uncomment the below to enable mouse left click events.
              #m.click()
          if k == 0:
              print "0"
          cv2.namedWindow("img",cv2.WINDOW_NORMAL)
          cv2.resizeWindow("img", 600,450)
          cv2.imshow('img',img)
          if cv2.waitKey(1) & 0xff == ord('q'):
              break
      cap.release()
      cv2.destroyAllWindows()
  else:
      print "Oops you pressed the wrong key try restarting the application again"
  
subject: Create eyeblink.py