def __init__(self,master):
		
		HumanActivityInterface.__init__(self,master)
		self.color = plt.get_cmap('gray')
		self.backgroundFrame = None
		self.zoneBackground = None
		self.count  = 0
		self.bufferImages = []
		self.device = "http://192.168.1.104/asp/video.cgi?.mjpeg"
		#~ self.device = "http:admin@//192.168.1.105/snapshot.cgi"
		#~ self.device=0
		self.timer.add_callback(self.eventDetection)
		self.buttonTrain.bind("<Key>",self.trainZone)
		self.zoneArea = None
		grayFrame = self.captureVideo()
		self.setImageHandlers(grayFrame)
		self.mean =0
		self.variance=0
		self.contourMaxArea=0
		self.doorExit='UP' # Set UP , DOWN, LEFT , RIGHT according to the position of the door with respect to the camera
		self.hog = cv2.HOGDescriptor()
		self.hog.setSVMDetector( cv2.HOGDescriptor_getDefaultPeopleDetector() )
		
		self.frameCount=0
		self.meanList=[]
		self.previousFrame = None
	def __init__(self,master,camUrl):
		
		HumanActivityInterface.__init__(self,master)
		self.color = plt.get_cmap('gray')
		self.backgroundFrame = None
		#~ self.zoneBackground = None
		#~ self.bufferImages = []
		self.device = camUrl
		#~ self.device=0
		self.timer.add_callback(self.eventDetection)
		self.buttonTrain.bind("<Key>",self.trainZone)
		
		grayFrame = self.captureVideo()
		self.setImageHandlers(grayFrame)
		
		self.mean =0
		self.variance=0
		self.contourMaxArea=0
		self.zoneArea = None
		self.threshold = 100
		
		self.hog = cv2.HOGDescriptor()
		self.hog.setSVMDetector( cv2.HOGDescriptor_getDefaultPeopleDetector() )
		
		self.prevTime=0
		self.count =0
		self.meanList=[]
		self.previousFrame = None
		
		#~ self.pnt1=None
		#~ self.pnt2=None
		self.timer.start()
	def __init__(self,master):
		HumanActivityInterface.__init__(self,master)
		
		self.color = plt.get_cmap('gray')
		self.backgroundFrame = None
		self.device = "http://192.168.1.104/asp/video.cgi?.mjpeg"
		#self.device = 0
		self.count  = 0
		self.timer.add_callback(self.eventDetection)
		self.captureVideo()
		self.bufferImages = []
	def __init__(self,master):
		
		HumanActivityInterface.__init__(self,master)
		self.color = plt.get_cmap('gray')
		self.backgroundFrame = None
		self.count  = 0
		self.bufferImages = []
		self.device = "http://192.168.1.104/asp/video.cgi?.mjpeg"
		self.timer.add_callback(self.eventDetection)
		self.buttonTrain.bind("<Key>",self.trainZone)
		self.zoneArea = None
		grayFrame = self.captureVideo()
		self.setImageHandlers(grayFrame)
		self.mean =0
		self.variance=0
		self.contourMaxArea=0
		self.doorExit='UP' # Set UP , DOWN, LEFT , RIGHT according to the position of the door with respect to the camera