import sys
sys.path.append('../../')
from moviegoer.tables import film_id_from_film_directory, load_film_object
from random import choice
film_id = film_id_from_film_directory()
film_id
'marauders_2016'
film_obj = load_film_object(film_id)
film_obj.print_info()
*Film Information* Title, Release Year: Marauders (2016) File Runtime: 01:47:06 Film Runtime (No Credits): 1:40:16 *Technical Details* Aspect Ratio: 2.39 Avg. Shot Duration: 8.76 Avg. Brightness: 53 Avg. Contrast: 40 *Dialogue Cadence* Sentences Per Minute: 13 Words Per Sentence 6.97 Questions Per Minute: 2.33 Pct. Questions: 18% *Emotion* Pct. Upset Faces: 63% Laughs Per Minute: 0.09 Profanity Per Minute: 0.86 Words Per Profanity: 106 Exclamations Per Minute: 0.71
print(len(film_obj.scene_objects))
film_obj.display_scenes()
10
*Plot Context*
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'cigarette': 1})
Active Actions: Counter({'smoking': 38, 'coming': 21, 'open': 1})
Left Wearing: Counter({'yellow jacket': 14, 'trench coat': 1, 'yellow coat': 1})
*Plot Context*
Context Themes: Counter({'violence': 1, 'dining': 1})
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'hand': 2, 'knife': 1, 'fist': 1, 'hand out': 1})
Active Actions: Counter({'pointing': 1, 'covering': 1})
Left Wearing: Counter({'suit': 43})
*Plot Context*
Context Themes: Counter({'drinking': 4})
Descriptors: ['indoors']
Held Items: Counter({'drink': 2, 'cup': 1})
Active Actions: Counter({'drinking': 4})
Left Wearing: Counter({'suit': 58})
*Plot Context*
Context Themes: Counter({'drinking': 2})
Potential Common Locations: Counter({'bar': 2})
Establishing Shot Locations: Counter({'airplane': 1})
Named Participants: Counter({'chris': 2, 'detective mims': 1, 'hi': 1})
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'cell phone': 4, 'piece of paper': 1})
Active Actions: Counter({'shaking': 1, 'putting': 1})
Left Wearing: Counter({'brown shirt': 14})
*Plot Context*
Context Themes: Counter({'transit': 311, 'driving': 311, 'dining': 2})
Potential Common Locations: Counter({'car': 311})
Named Participants: Counter({'derohan': 4, 'monty': 1})
Descriptors: ['sitting', 'rain']
Held Items: Counter({'cell phone': 5})
Active Actions: Counter({'eating': 2})
Left Wearing: Counter({'suit': 24})
*Plot Context*
Establishing Shot Locations: Counter({'building': 13})
Named Participants: Counter({'coffee': 1})
Active Actions: Counter({'reflected': 1})
Left Wearing: Counter({'suit': 23, 'suit with a blue face': 1})
Right Wearing: Counter({'suit': 16})
*Plot Context*
Descriptors: ['standing']
Held Items: Counter({'book': 10, 'piece of paper': 1})
Active Actions: Counter({'touching': 2})
Left Wearing: Counter({'suit': 1})
Right Wearing: Counter({'suit': 52})
*Plot Context*
Context Themes: Counter({'justice': 3})
Potential Other Locations: Counter({'jail cell': 3})
Establishing Shot Locations: Counter({'building': 14})
Descriptors: ['indoors', 'sitting']
*Plot Context*
Context Themes: Counter({'violence': 38, 'transit': 14, 'dining': 9, 'driving': 7, 'work': 4})
Potential Common Locations: Counter({'car': 7, 'office': 4})
Potential Other Locations: Counter({'street': 17, 'building': 7})
Establishing Shot Locations: Counter({'building': 4})
Descriptors: ['indoors', 'standing', 'rain']
Held Items: Counter({'gun': 29, 'cell phone': 15, 'knife': 9, 'arms': 4, 'guns': 3, 'gun standing': 1, 'hammer': 1, 'folder': 1, 'piece of paper': 1})
Active Actions: Counter({'driving': 7, 'making': 7, 'crossed': 7, 'riding': 6, 'open': 4, 'parked': 3, 'taking': 1})
Left Wearing: Counter({'shirt and a tie': 39, 'yellow shirt': 1})
Right Wearing: Counter({'hoodie': 77, 'hooded jacket': 5})
*Plot Context*
Context Themes: Counter({'violence': 144, 'dining': 1})
Potential Other Locations: Counter({'tunnel': 10, 'hallway': 4, 'road': 1})
Establishing Shot Locations: Counter({'building': 3})
Named Participants: Counter({'mims': 2, 'man on radio': 1, 'wells': 1})
Descriptors: ['indoors', 'standing', 'rain']
Held Items: Counter({'gun': 143, 'cell phone': 39, 'pipe': 3, 'bag': 1, 'umbrella': 1, 'piece of food': 1, 'knife': 1, 'cigarette': 1})
Active Actions: Counter({'shining': 16, 'pointing': 12, 'covered': 4, 'open': 2, 'shaved': 1, 'coming': 1, 'riding': 1, 'parked': 1, 'turned': 1, 'smoking': 1})
Left Wearing: Counter({'hoodie': 142})
Right Wearing: Counter({'suit': 2})
[None, None, None, None, None, None, None, None, None, None]
film_obj.chart_all_dialogue_emotional_indicators()
film_obj.chart_all_dialogue_shape()
film_obj.chart_all_dialogue_question_proportion()
film_obj.display_color_shots()
rand_scene = None
if film_obj.dialogue_objects:
rand_scene = choice(film_obj.dialogue_objects)
rand_scene.display_qna_frames()
if rand_scene:
rand_scene.display_first_p_sentence_frames()
if rand_scene:
rand_scene.display_second_p_address_frames()
film_obj.display_laughs()
[]
film_obj.display_unintelligible_language()
film_obj.display_self_intros()
Yes, I'm Special Agent Chase with the FBI.
film_obj.display_other_intros()
Chris, Agent Wells, this is Detective Mims.