Free Motion Capture for Everyone πβ¨
TypeScript
Update fmc_demo.py
kelly-phalen7a4aed6fbb7f
diff --git a/freemocap/fmc_demo.py b/freemocap/fmc_demo.pyindex 24054921..39aefc8c 100644--- a/freemocap/fmc_demo.py+++ b/freemocap/fmc_demo.py@@ -4,14 +4,22 @@ import zipfilefrom pathlib import Pathimport tkinter as tkfrom tkinter import Tk, Label, Button, Frame, Listbox, Entry, filedialog+import requests+import iodef DemoSetup():download_data = runDataDownloadGUI() #ask for user input on downloading+ zip_file_url = "https://ndownloader.figshare.com/files/28927743"+if download_data: #if they want to download#code to download stuff from online will go here+ r = requests.get(zip_file_url)+ z = zipfile.ZipFile(io.BytesIO(r.content))+ #z.extractall()+ #error seems to expect the sample session to still be a zip file even though it is unzipped below#run the GUI to get the directory locations of the zipped folder, and where to extract it to