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]:
'passengers_2016'
In [3]:
film_obj = load_film_object(film_id)
film_obj.print_info()
*Film Information*
Title, Release Year: Passengers (2016)
File Runtime: 01:56:09
Film Runtime (No Credits): 1:46:55

*Technical Details*
Aspect Ratio: 2.39
Avg. Shot Duration: 9.61
Avg. Brightness: 57
Avg. Contrast: 44

*Dialogue Cadence*
Sentences Per Minute: 13
Words Per Sentence 4.80
Questions Per Minute: 1.62
Pct. Questions: 12%

*Emotion*
Pct. Upset Faces: 59%
Laughs Per Minute: 0.36
Profanity Per Minute: 0.05
Words Per Profanity: 1333
Exclamations Per Minute: 0.80
In [4]:
print(len(film_obj.scene_objects))
film_obj.display_scenes()
4
*Plot Context*
Potential Other Locations: Counter({'hallway': 8})
Establishing Shot Locations: Counter({'building': 2})
Named Participants: Counter({'observatory': 1})
Descriptors: ['indoors', 'standing']
*Plot Context*
Establishing Shot Locations: Counter({'building': 3})
Descriptors: ['sitting']
Right Wearing: Counter({'brown shirt': 7})
*Plot Context*
Named Participants: Counter({'jim': 1})
Descriptors: ['indoors', 'sitting']
Active Actions: Counter({'lit': 2})
Left Wearing: Counter({'brown shirt': 11})
*Plot Context*
Context Themes: Counter({'transit': 1, 'aquatic': 1})
Potential Other Locations: Counter({'boat': 1})
Left Wearing: Counter({'brown shirt': 1})
Out[4]:
[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()
SPEAKING JAPANESE
JIM SPEAKING SPANISH
CONTINUES SPEAKING IN SPANISH
SPEAKING FRENCH
In [14]:
film_obj.display_self_intros()
I'm Aurora Lane.
Uh, I'm Jim Preston.
In [15]:
film_obj.display_other_intros()
This is Aurora.