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
'bedtime_stories_2008'
film_obj = load_film_object(film_id)
film_obj.print_info()
*Film Information* Title, Release Year: Bedtime Stories (2008) File Runtime: 01:39:12 Film Runtime (No Credits): 1:31:29 *Technical Details* Aspect Ratio: 2.35 Avg. Shot Duration: 8.55 Avg. Brightness: 72 Avg. Contrast: 52 *Dialogue Cadence* Sentences Per Minute: 23 Words Per Sentence 5.16 Questions Per Minute: 3.09 Pct. Questions: 14% *Emotion* Pct. Upset Faces: 56% Laughs Per Minute: 0.28 Profanity Per Minute: 0.00 Words Per Profanity: 0 Exclamations Per Minute: 2.57
print(len(film_obj.scene_objects))
film_obj.display_scenes()
3
*Plot Context*
Context Themes: Counter({'transit': 4, 'driving': 4})
Potential Common Locations: Counter({'car': 4})
Descriptors: ['standing']
Held Items: Counter({'gift box': 30, 'present': 13, 'gift': 3})
Active Actions: Counter({'handing': 1, 'carrying': 1, 'getting': 1})
Right Wearing: Counter({'green shirt': 13})
*Plot Context*
Context Themes: Counter({'transit': 6, 'driving': 6, 'dining': 2})
Potential Common Locations: Counter({'car': 6})
Potential Other Locations: Counter({'sidewalk': 11, 'hallway': 1, 'street': 1})
Establishing Shot Locations: Counter({'building': 8})
Descriptors: ['outdoors']
Held Items: Counter({'hand': 3, 'piece of food': 2, 'donut': 1, 'something': 1, 'cell phone': 1, 'umbrella': 1})
Active Actions: Counter({'making': 6, 'eating': 2, 'pointing': 1, 'riding': 1})
Left Wearing: Counter({'headband talking': 1})
Right Wearing: Counter({'jacket': 6, 'green jacket': 2})
*Plot Context*
Context Themes: Counter({'nature': 14})
Potential Other Locations: Counter({'forest': 14})
Descriptors: ['outdoors', 'standing']
Held Items: Counter({'toothbrush': 4, 'head with his hands': 1, 'his head': 1, 'something': 1, 'hand': 1})
Active Actions: Counter({'touching': 1, 'pointing': 1})
Right Wearing: Counter({'plaid': 2})
[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()
I'm Patrick.
I'm Jill.
My name is Jill.
My name is Jill Hastings.
film_obj.display_other_intros()
This is Jill.