Skip to content

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

TypeScript

Rotated videos not running from stage 2 of the pipeline bug fix

Aaron Cherianf5c15d79ec1c
diff --git a/freemocap/webcam/videotrim.py b/freemocap/webcam/videotrim.py
index 33d36808..9b5a82dc 100644
--- a/freemocap/webcam/videotrim.py
+++ b/freemocap/webcam/videotrim.py
@@ -15,7 +15,6 @@ def VideoTrim(session, vidList, ft, parameterDictionary, rotationState, numCamRa
trueWidth = resWidth # creating true resWidth and resHeight in case we need to rotate our images
trueHeight = resHeight
codec = parameterDictionary.get("codec")
-
postTrimmingTotalNumFrames = []
for vid,cam,camNum in zip(vidList,camList,numCamRange): #iterate in parallel through camera identifiers and matching videos
diff --git a/freemocap/webcamGUI.py b/freemocap/webcamGUI.py
index c29773e9..246ad8c6 100644
--- a/freemocap/webcamGUI.py
+++ b/freemocap/webcamGUI.py
@@ -109,8 +109,8 @@ def initialize(session, stage, board):
#from the config settings add the camera input parameters to parameter dictionary
session.parameterDictionary = session.session_settings['recording_parameters']['ParameterDict']
- session.rotationInputs = session.session_settings['recording_parameters']['RotationInputs']
-
+ rotationDict = session.session_settings['recording_parameters']['RotationInputs']
+ session.rotationInputs = list(rotationDict.values())
#initialize the path to the timestamp csv
csvName = session.sessionID + '.csv'
csvPath = session.sessionPath/csvName