예제 #1
0
def main():
	config = parse_config()
	title = config.get('project', 'title')
	try:
		topk = config.getint('data', 'topk')
	except ValueError as e:
		topk = None

	db_result = fetch_annos(title)
	images = refine(db_result)
	output_filename = name_as_datetime(os.path.join(DATA_DIR,'triplelens'))
	with open(output_filename, 'w') as f:
		for image_set in images:
			track_list = cluster_by_frames(image_set, topk=topk)
			format_output(track_list, f)
예제 #2
0
파일: start.py 프로젝트: muma378/datatang
	def refresh(new_conf, conf_path, last_conf):
		shutil.copy(new_conf, last_conf)	# copy the new config
		bak_conf = name_as_datetime(conf_path, prefix='.', suffix='.cfg')
		shutil.copy(new_conf, bak_conf)	# back up with name in datename