Skip to content

Free Motion Capture for Everyone πŸ’€βœ¨

TypeScript

Adding startframe as a RunMe parameter

aaroncherian9487e925266c
diff --git a/.gitignore b/.gitignore
index da1ffd0f..9b3e4e91 100644
--- a/.gitignore
+++ b/.gitignore
@@ -136,4 +136,5 @@ dmypy.json
update_pip.txt
-freemocap/user_preferences.yaml
\ No newline at end of file
+freemocap/user_preferences.yaml
+freemocap/fmc_startup/user_preferences.yaml
diff --git a/freemocap/fmc_runme.py b/freemocap/fmc_runme.py
index e75eca6f..1c96647f 100644
--- a/freemocap/fmc_runme.py
+++ b/freemocap/fmc_runme.py
@@ -38,6 +38,7 @@ def RunMe(sessionID=None,
reconstructionConfidenceThreshold = .7,
charucoSquareSize = 36,#mm - ~the size of the squares when printed on 8.5x11" paper based on parameters in ReadMe.md
calVideoFrameLength = 120,
+ startFrame = 0
):
"""
Starts the freemocap pipeline based on either user-input values, or default values. Creates a new session class instance (called sesh)
@@ -54,6 +55,7 @@ def RunMe(sessionID=None,
sesh.setDataPath = setDataPath
sesh.userDataPath = userDataPath
sesh.dataFolderName = recordingconfig.dataFolder
+ sesh.startFrame = startFrame
# %% Startup
startup.get_user_preferences(sesh,stage)
@@ -158,7 +160,7 @@ def RunMe(sessionID=None,
print('Starting Skeleton Plotting')
play_skeleton_animation.PlaySkeletonAnimation(
sesh,
- startFrame=0,
+ startFrame=sesh.startFrame,
azimuth=-90,
elevation=-81,
useOpenPose=useOpenPose,