InĀ [1]:
import sys
sys.path.append('../../')
from moviegoer.tables import film_id_from_film_directory, load_film_object
from random import choice
InĀ [2]:
film_id = film_id_from_film_directory()
film_id
Out[2]:
'frankensteins_army_2013'
InĀ [3]:
film_obj = load_film_object(film_id)
film_obj.print_info()
*Film Information* Title, Release Year: Frankensteins Army (2013) File Runtime: 01:24:02 Film Runtime (No Credits): 1:20:14 *Technical Details* Aspect Ratio: 1.78 Avg. Shot Duration: 10.79 Avg. Brightness: 48 Avg. Contrast: 19 *Dialogue Cadence* Sentences Per Minute: 14 Words Per Sentence 4.04 Questions Per Minute: 1.56 Pct. Questions: 11% *Emotion* Pct. Upset Faces: 62% Laughs Per Minute: 0.15 Profanity Per Minute: 0.87 Words Per Profanity: 63 Exclamations Per Minute: 3.81
InĀ [4]:
print(len(film_obj.scene_objects))
film_obj.display_scenes()
5
*Plot Context*
Establishing Shot Locations: Counter({'building': 1})
Descriptors: ['sitting']
*Plot Context*
Context Themes: Counter({'violence': 66, 'dining': 4, 'nature': 3, 'animal': 2})
Potential Other Locations: Counter({'building': 23, 'street': 22, 'doorway': 20, 'hallway': 19, 'sidewalk': 6, 'forest': 3, 'barn': 2, 'bridge': 1, 'escalator': 1, 'road': 1})
Establishing Shot Locations: Counter({'building': 1})
Named Participants: Counter({'dimitri': 10, 'vassili': 2, 'alexei': 1, 'comrade': 1, 'dima': 1, 'ivan': 1, 'ooh': 1, 'sasha': 1, 'seryosha': 1})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'gun': 37, 'cell phone': 14, 'rifle': 8, 'knife': 4, 'guns': 4, 'box': 4, 'cat': 2, 'hand': 1, 'baby': 1, 'piece of paper': 1, 'crate': 1})
Active Actions: Counter({'flying': 18, 'open': 7, 'crossed': 5, 'turned': 5, 'pointing': 3, 'making': 3, 'railing': 2, 'striped': 1, 'pushing': 1, 'hanging': 1, 'lit': 1, 'covered': 1})
Left Wearing: Counter({'trench coat': 4, 'coat': 2, 'military uniform': 1, 'green jacket': 1, 'jacket': 1, 'helmet': 1})
Right Wearing: Counter({'military uniform': 16, 'trench coat': 14, 'coat': 6, 'jacket': 2})
*Plot Context*
Context Themes: Counter({'violence': 56, 'dining': 21, 'intimacy': 7, 'transit': 1})
Potential Common Locations: Counter({'train': 1})
Potential Other Locations: Counter({'doorway': 28, 'street': 3, 'building': 1})
Establishing Shot Locations: Counter({'building': 1, 'boat': 1})
Named Participants: Counter({'ivan': 6, 'vanya': 2, 'dimitri': 1, 'ja': 1, 'nein': 1, 'sergei': 1, 'woman': 1})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'gun': 35, 'knife': 21, 'cell phone': 12, 'object': 9, 'hand': 7, 'woman': 5, 'child': 4, 'hat': 2, 'hands': 2, 'pole': 1, 'pipe': 1, 'arm': 1, 'dark': 1, 'piece': 1, 'person': 1, 'girl': 1, 'guitar': 1, 'gun standing': 1, 'his head': 1, 'piece of paper': 1, 'hands together': 1, "hat over another person 's head": 1, 'face': 1})
Active Actions: Counter({'flying': 15, 'putting': 10, 'cutting': 7, 'kissing': 5, 'touching': 4, 'playing': 2, 'squatting': 2, 'hugging': 2, 'covering': 2, 'railing': 1, 'hiding': 1, 'carried': 1, 'held': 1, 'riding': 1, 'hand': 1})
*Plot Context*
Context Themes: Counter({'violence': 9})
Held Items: Counter({'camera': 15, 'gun': 9})
Active Actions: Counter({'filmed': 10, 'photographed': 9})
*Plot Context*
Context Themes: Counter({'violence': 4, 'dining': 4, 'justice': 3})
Potential Other Locations: Counter({'jail cell': 3})
Named Participants: Counter({'dimitri': 1})
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'cell phone': 10, 'knife': 4, 'box': 1, 'something': 1, 'control': 1, 'tennis racquet': 1})
Active Actions: Counter({'tied': 27, 'flying': 6, 'says': 1, 'coming': 1, 'using': 1, 'taking': 1, 'assisted': 1})
Left Wearing: Counter({'white shirt': 5})
Right Wearing: Counter({'jail cell': 2})
Out[4]:
[None, None, None, None, None]
InĀ [5]:
film_obj.chart_all_dialogue_emotional_indicators()
InĀ [6]:
film_obj.chart_all_dialogue_shape()
InĀ [7]:
film_obj.chart_all_dialogue_question_proportion()
InĀ [8]:
film_obj.display_color_shots()
InĀ [9]:
rand_scene = None
if film_obj.dialogue_objects:
rand_scene = choice(film_obj.dialogue_objects)
rand_scene.display_qna_frames()
InĀ [10]:
if rand_scene:
rand_scene.display_first_p_sentence_frames()
InĀ [11]:
if rand_scene:
rand_scene.display_second_p_address_frames()
InĀ [12]:
film_obj.display_laughs()
Out[12]:
[]
InĀ [13]:
film_obj.display_unintelligible_language()
InĀ [14]:
film_obj.display_self_intros()
My name is Dimitri asna and I'm a graduate of the all-union institute of cinematography in moscow.
InĀ [15]:
film_obj.display_other_intros()