Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinefalisse committed Jul 3, 2024
1 parent c424b47 commit 74404e6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions utilsChecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1037,12 +1037,9 @@ def synchronizeVideoKeypoints(keypointList, confidenceList,
allMarkerList = [p[:,idxStart:idxEnd] for p in allMarkerList]
confSyncList= [c[:,idxStart:idxEnd] for c in confidenceList]


# We do this again, since it might have changed after finding the overlap period.
keypointList = list(keypointList)
confidenceList = list(confidenceList)

# We do this check again, since it might have have changed after finding
# the overlap period.
badCamerasOverlap = []
for icam, conf in enumerate(confSyncList):
if np.mean(conf) <= 0.01: # Looser than sum=0 to disregard very few frames with data
Expand All @@ -1069,7 +1066,6 @@ def synchronizeVideoKeypoints(keypointList, confidenceList,
# to use. Input right and left ankle marker speeds. Gait should be
# detected for all cameras (all but one camera is > 2 cameras) for the
# trial to be considered a gait trial.

try:
isGait = detectGaitAllVideos(mkrSpeedList,allMarkerList,confSyncList,markers4Ankles,sampleFreq)
except:
Expand Down

0 comments on commit 74404e6

Please sign in to comment.