def stop(self): logger.info("Stopping Touchup") self.smooth_pos = 0.,0. self.sample_site = -2,-2 self.counter = 0 self.active = False self.button.status_text = '' offset_pt_clound = calibrate.preprocess_2d_data_monocular(calibrate.closest_matches_monocular(self.ref_list,self.gaze_list) ) if len(offset_pt_clound)<3: logger.error('Did not sample enough data for touchup please retry.') return #Calulate the offset for gaze to target offset_pt_clound = np.array(offset_pt_clound) offset = offset_pt_clound[:,:2]-offset_pt_clound[:,2:] mean_offset = np.mean(offset,axis=0) user_calibration = load_object(os.path.join(self.g_pool.user_dir, "user_calibration_data")) self.pupil_list = user_calibration['pupil_list'] self.ref_list = user_calibration['ref_list'] calibration_method = user_calibration['calibration_method'] if '3d' in calibration_method: logger.error('adjust calibration is not supported for 3d calibration.') return for r in self.ref_list: r['norm_pos'] = [ r['norm_pos'][0]-mean_offset[0],r['norm_pos'][1]-mean_offset[1] ] finish_calibration(self.g_pool,self.pupil_list,self.ref_list)
def stop(self): audio.say("Stopping Calibration") logger.info("Stopping Calibration") self.screen_marker_state = 0 self.active = False # self.close_window() self.button.status_text = "" finish_calibration(self.g_pool, self.pupil_list, self.ref_list)
def stop(self): audio.say("Stopping Calibration") logger.info('Stopping Calibration') self.screen_marker_state = 0 self.active = False #self.close_window() self.button.status_text = '' finish_calibration(self.g_pool, self.pupil_list, self.ref_list)
def stop(self): audio.say("Stopping Calibration") logger.info("Stopping Calibration") self.active = False self.button.status_text = '' finish_calibration(self.g_pool,self.pupil_list,self.ref_list) # Mohammad: send a notification that calibration stopped to be caught by CRowd eye plugin self.notify_all( {'subject':'cal_stopped'} )
def stop(self): self.notify_all({'subject':'calibration.stopped'}) audio.say("Stopping Calibration") logger.info('Stopping Calibration') self.screen_marker_state = 0 self.active = False #self.close_window() self.button.status_text = '' finish_calibration(self.g_pool,self.pupil_list,self.ref_list)
def stop(self): # TODO: redundancy between all gaze mappers -> might be moved to parent class audio.say("Stopping Calibration") logger.info("Stopping Calibration") self.smooth_pos = 0, 0 self.counter = 0 self.close_window() self.active = False self.button.status_text = '' finish_calibration(self.g_pool, self.pupil_list, self.ref_list)
def stop(self): # TODO: redundancy between all gaze mappers -> might be moved to parent class audio.say("Stopping Calibration") logger.info("Stopping Calibration") self.smooth_pos = 0,0 self.counter = 0 self.close_window() self.active = False self.button.status_text = '' finish_calibration(self.g_pool,self.pupil_list,self.ref_list)
def stop(self): audio.say("Stopping Calibration") logger.info("Stopping Calibration") self.active = False self.button.status_text = '' base_dir = self.g_pool.user_dir.rsplit(os.path.sep,1)[0] dir = makeCalibDir(base_dir) finish_calibration(self.g_pool,self.pupil_list,self.ref_list, dir = dir)
def stop(self): # TODO: redundancy between all gaze mappers -> might be moved to parent class audio.say("Stopping Calibration") logger.info("Stopping Calibration") self.smooth_pos = 0,0 self.counter = 0 self.close_window() self.active = False self.button.status_text = '' finish_calibration(self.g_pool,self.pupil_list,self.ref_list) # Mohammad: send a notification that calibration stopped to be caught by CRowd eye plugin self.notify_all( {'subject':'cal_stopped'} )
def stop(self): self.notify_all({'subject':'calibration.stopped'}) audio.say("Stopping Calibration") logger.info('Stopping Calibration') self.screen_marker_state = 0 self.active = False #self.close_window() self.button.status_text = '' base_dir = self.g_pool.user_dir.rsplit(os.path.sep,1)[0] dir = makeCalibDir(base_dir) finish_calibration(self.g_pool,self.pupil_list,self.ref_list, dir = dir)
def stop(self): audio.say("Stopping Calibration") logger.info("Stopping Calibration") self.active = False self.button.status_text = '' finish_calibration(self.g_pool,self.pupil_list,self.ref_list)