daily pastebin goal
9%
SHARE
TWEET

cvar

lamiastella Aug 1st, 2017 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CVAR_dir = os.path.dirname(CVAR_depth_image)
  2.         for subdirs, dirs, files in os.walk(CVAR_dataset_path):
  3.             for dir in dirs:
  4.                 per_folder_correct_fingertips_count[dir] = 0
  5.                 per_folder_accuracy[dir] = 0
  6.                 root_path = CVAR_dataset_path + "\\" + dir
  7.                 #ex. CVAR_folders\openark_P1.txt
  8.                 fingertips_file = open(root_path + "\\" + "fingertips.txt", 'w')
  9.                 if (os.path.dirname(root_path+"\\") == CVAR_dir):
  10.                     print("normpath {0}".format("CVAR_folders\\openark_"+os.path.basename(os.path.normpath(CVAR_dir))+".txt"))
  11.                     with open("CVAR_folders\\openark_"+os.path.basename(os.path.normpath(CVAR_dir))+".txt", 'a+') as openark_tmp_handle:
  12.                         openark_tmp_handle.write(line)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top