From d74a1614fcf5b3a63b95aa2ec90cff0816a435cc Mon Sep 17 00:00:00 2001 From: AndreTheGreat Date: Wed, 11 Jan 2023 15:24:26 -0600 Subject: [PATCH] added lines of code for head movement calculation --- sample_data/sample_script.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sample_data/sample_script.py b/sample_data/sample_script.py index f7cf476e..36c19443 100644 --- a/sample_data/sample_script.py +++ b/sample_data/sample_script.py @@ -40,4 +40,13 @@ va_inten_mean = var_intensity.mean() ### Movement model_mv = mv() -model_mv.fit(path_file) # Requires Docker \ No newline at end of file +model_mv.fit(path_file) # Requires Docker + +#get head movement +var_headmv = model_mv.get_head_movement() + +#convert head movement to dataframe +df_headmv = var_headmv.to_dataframe() +#note can check to see headmovement in jupyter:variables +# this can be helpful for QC to see if head movement was captured. +# wheh face is not detected no movement is captured and return is array of nan