HappyVidMarker

pipeline.HappyVidMarker.bar_movie(vid, vid_dir, times, corr, replace_input=True)

Creates the bar for the given vid and places the movie with bar in the vid_dir

Parameters:
  • vid (str) – Video
  • vid_dir (str) – Video directory
  • times – Array with times for vid
  • corr – Array with corresponding “happy” probability for each time
  • replace_input – Whether to replace the input video or output new video
pipeline.HappyVidMarker.mark_vid_dir(out_q, vid_dir)

Use emotion data to put the happy bar movie in the video directory :param out_q: for multiprocessing, queue to put the vid_dir in to indicate done :param vid_dir: Video directory to mark :effects: Puts {vid_dir: sum(emotion probs)/len(emotion probs)} into the out_q