Example #1
0
def option1_start():
    if os.path.isfile(os.path.join(cfg.userPath, cfg.userFolder, "data.mat")):
        cfg.loadUserData()
    else:
        tkMessageBox.showinfo("ERROR", "No data.mat file found in user folder")
        return
    if os.path.isfile(os.path.join(cfg.gtPath, "data.mat")) and not skipGT.get():
        cfg.loadGT()
    else:
        tkMessageBox.showinfo("ERROR", "No data.mat file found in GT folder")
        return
        # check if there is data first, so we dont have to run video processing again

    perf.wholeShebang(alone=skipGT.get())
    showResults()
Example #2
0
 def continueProcess0():
     # TODO: check option choice, and based on that decide to process alone or correlate with ground truth
     if os.path.isfile(sidePath.get()) and os.path.isfile(ohpath.get()):
         cfg.userHeights = img.sideProcess(sidePath.get())
         cfg.userAngles = img.ohProcess(ohPath.get())
         shutil.copy2(sidePath.get(), os.path.join(cfg.userPath, cfg.userFolder, "sideView.avi"))
         shutil.copy2(ohPath.get(), os.path.join(cfg.userPath, cfg.userFolder, "overheadView.avi"))
         # shutil.copy2(frontPath.get(), os.path.join(cfg.userPath, cfg.userFolder, 'frontView.avi'))
         # create analysis images, and go to screen to present them- maybe have message box saying where everything is saved
         perf.wholeShebang(alone=True)
         # move onto window that nicely shows images
         showResults()
     else:
         tkMessageBox.showinfo("ERROR", "Invalid files, try again")
         return